diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue index 7421e62e3..f6eafc52b 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue @@ -202,6 +202,7 @@ const butttondata = (row,$index) => { return [ // defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 + defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// 生成采购上架申请 defaultButtons.mainListPointBtn(null), // 标签打印 defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // 制品回收 //recoveryRequestFlag==TRUE不展示 ] @@ -211,6 +212,8 @@ const butttondata = (row,$index) => { const buttonTableClick = async (val, row) => { if(val == 'inspectRequest'){//生成到货检验申请 handleCreateInspectRequest(row.number) + }else if (val == 'putawayRequest') { // 生成采购上架申请 + handleCreatePutawayRequest(row.number) } else if (val == 'point') { // 标签打印 labelPrint(row) } else if (val == 'recovery') { //制品回收 @@ -218,6 +221,18 @@ const buttonTableClick = async (val, row) => { } } +/** 生成采购上架申请按钮操作 */ +const handleCreatePutawayRequest = async (number:string) => { + try{ + await message.confirm(t('ts.确认生成上架申请吗?')) + tableObject.loading = true + await ProductreceiptRecordMainApi.createPutawayRequest(number) + message.success(t('ts.上架申请生成成功')) + buttonBaseClick('refresh',null) + }catch{}finally{ + tableObject.loading = false + } +} const BASE_URL = getJmreportBaseUrl() // 标签打印 const searchTableRef = ref()