From 160c6d930f79b25a7cd2a1ad746aaa28fdc02617 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 30 Aug 2024 09:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E9=85=8D=E6=94=B6=E8=B4=A7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95--=E6=93=8D=E4=BD=9C=E5=88=97=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E2=80=9C=E7=94=9F=E6=88=90=E9=87=87=E8=B4=AD=E4=B8=8A=E6=9E=B6?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E2=80=9D=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptRecordMain/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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()