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