|
|
@ -90,12 +90,8 @@ |
|
|
|
> |
|
|
|
<iframe height="600px" width="100%" :src="qualityReport" frameborder="0"></iframe> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { PurchasereceiptJobMain, |
|
|
@ -217,17 +213,17 @@ const butttondata = (row,$index) => { |
|
|
|
} |
|
|
|
return [ |
|
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
|
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 |
|
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 |
|
|
|
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
|
{ |
|
|
|
label: '拒收', |
|
|
|
name: 'mainJobClo', |
|
|
|
name: 'mainJobRefusal', |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: 'wms:purchasereceipt-job-main:close', |
|
|
|
hasPermi: 'wms:purchasereceipt-job-main:refusal', |
|
|
|
link: true // 文本展现按钮 |
|
|
|
}, |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({}), // 查看质检报告 |
|
|
@ -244,9 +240,11 @@ const buttonTableClick = async (val, row) => { |
|
|
|
handleClose(row.masterId) |
|
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
|
console.log('列表-操作按钮事件-承接') |
|
|
|
}else if(val == 'mainPlanCheckQualityReport'){ |
|
|
|
} else if(val == 'mainPlanCheckQualityReport'){ |
|
|
|
// 查看质检报告 |
|
|
|
checkQualityReport(row) |
|
|
|
} else if(val == 'mainJobRefusal'){ |
|
|
|
handleRefusal(row.masterId) |
|
|
|
} |
|
|
|
} |
|
|
|
// 查看质检报告 |
|
|
@ -267,6 +265,16 @@ const handleClose = async (id: number) => { |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
/** 拒收按钮操作 */ |
|
|
|
const handleRefusal = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmRefusal')) |
|
|
|
await PurchasereceiptJobMainApi.refusalPurchasereceiptJobMain(id) |
|
|
|
message.success(t('common.refusalSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
// 子包装数据 |
|
|
|
const detailParenPackingRef = ref() |
|
|
|
const { tableObject: packingDetatableData, tableMethods: packDetatableMethods } = useTable({ |
|
|
|