|
|
@ -188,6 +188,7 @@ const butttondata = (row,$index) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
|
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// 生成采购上架申请 |
|
|
|
defaultButtons.mainPurchasereturnRecordBtn({hasPermi:'wms:purchasereceipt-record-main:createPurchasereturnRecord',hide:row.purchasereturnRecordFlag == "FALSE" }),// 生成采购退后记录申请 |
|
|
|
//defaultButtons.mainListPlanCheckQualityReportBtn({hide:row.orderTypeM == "2"}), // 查看质检报告 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 查看质检报告 |
|
|
|
defaultButtons.mainListPrintInspectionBtn({hide:routeName.value.includes('SCP')}) |
|
|
@ -200,6 +201,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
handleCreatePutawayRequest(row.number) |
|
|
|
}else if(val == 'inspectRequest'){//生成到货检验申请 |
|
|
|
handleCreateInspectRequest(row.number) |
|
|
|
}else if(val == 'purchasereturnRecord'){//生成采购退后记录申请 |
|
|
|
handleCreatePurchasereturnRecord(row.number) |
|
|
|
}else if(val == 'mainPlanCheckQualityReport'){ |
|
|
|
// 查看质检报告 |
|
|
|
checkQualityReport(row) |
|
|
@ -262,6 +265,18 @@ const handleCreateInspectRequest = async (number:string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 生成采购退货记录按钮操作 */ |
|
|
|
const handleCreatePurchasereturnRecord = async (number:string) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('ts.确认生成采购退货记录吗?')) |
|
|
|
tableObject.loading = true |
|
|
|
await PurchasereceiptRecordMainApi.createPurchasereturnRecord(number) |
|
|
|
message.success(t('ts.采购退货记录生成成功')) |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 子包装数据 |
|
|
|
const detailParenPackingRef = ref() |
|
|
|