From a24d13a7d7399a7d9b598fa3c6f587a58a0dd220 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 10:36:14 +0800 Subject: [PATCH] =?UTF-8?q?YT-1415=E8=AE=A1=E5=88=92=E5=A4=96=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E7=94=B3=E8=AF=B7=EF=BC=8C=E6=B2=A1=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E4=B8=8D=E5=85=81=E8=AE=B8=E6=8F=90=E4=BA=A4=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E6=8F=90=E4=BA=A4=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E7=BB=99=E5=87=BA=E6=AD=A3=E7=A1=AE=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E7=9B=AE=E5=89=8D=E6=B2=A1=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=8F=AF=E4=BB=A5=E6=8F=90=E4=BA=A4=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=88=90=E5=8A=9F=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=95=B0=E6=8D=AE=E6=B2=A1=E6=9C=89=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unplannedreceiptRequestMain/index.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index 18c4a5a4c..6437a5922 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -453,7 +453,7 @@ const buttonTableClick = async (val, row) => { handleReAdd(row.masterId) } else if (val == 'mainSubmit') { // 提交审批 console.log('列表-操作按钮事件-提交审批') - handleSubmit(row.masterId) + handleSubmit(row) } else if (val == 'mainTurnDown') { // 驳回 console.log('列表-操作按钮事件-驳回') handleRefused(row.masterId) @@ -588,11 +588,24 @@ const handleReAdd = async (id: number) => { } /** 提交按钮操作 */ -const handleSubmit = async (id: number) => { +const handleSubmit = async (row:any) => { + // 判断 是否已创建标签 + let isCreateLabel = false + await PackageApi.getPackagePage({ + requestNumber: row.number + }).then(res => { + if (res) { + if (res.list.length > 0) isCreateLabel = true + } + }) + if (!isCreateLabel) { + message.warning('还没有创建标签!!!') + return + } await message.confirm(t('common.confirmSubmit')) tableObject.loading = true try{ - await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(id) + await UnplannedreceiptRequestMainApi.submitUnplannedreceiptRequestMain(row.masterId) message.success(t('common.submitSuccess')) tableObject.loading = false buttonBaseClick('refresh',null)