From 1b11701b84f89dd2349d579d7e0ffb2b6d8c1f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 18 Dec 2023 17:48:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=20=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=88=9B=E5=BB=BA=E8=BF=87=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=20=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMain/index.vue | 12 +++++++++--- .../productionreturnRequestMainNo/index.vue | 9 +++++++++ .../productreceiptRequestMain/index.vue | 12 +++++++++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index ade468c5e..3d3a765c5 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -348,9 +348,15 @@ const buttonTableClick = async (val, row) => { }) } else if (val == 'mainHandle') { // 处理 - if (row.packingNumber) { - isCreateLabel.value = true - } + await ProductionreturnRequestDetailApi.getProductionreturnRequestDetailPage({ + masterId: row.id + }).then(res => { + if (res.list) { + if (res.list[0].packingNumber) { + isCreateLabel.value = true + } + } + }) if (!isCreateLabel.value) { message.warning('请先创建标签') return diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue index 8e16f91b9..ef17c0ec5 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue @@ -350,6 +350,15 @@ const buttonTableClick = async (val, row) => { }) } else if (val == 'mainHandle') { // 处理 + await ProductionreturnRequestDetailNoApi.getProductionreturnRequestDetailPage({ + masterId: row.id + }).then(res => { + if (res.list) { + if (res.list[0].packingNumber) { + isCreateLabel.value = true + } + } + }) if (!isCreateLabel.value) { message.warning('请先创建标签') return diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue index 339680630..9eb5990cb 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue @@ -371,9 +371,15 @@ const buttonTableClick = async (val, row) => { }) } else if (val == 'mainHandle') { // 处理 - if (row.packingNumber) { - isCreateLabel.value = true - } + await ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPage({ + masterId: row.id + }).then(res => { + if (res.list) { + if (res.list[0].packingNumber) { + isCreateLabel.value = true + } + } + }) if (!isCreateLabel.value) { message.warning('请先创建标签') return