From c0bb52fd5a72a1b196229b8065950bf59fb609bb Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 28 Nov 2024 14:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceipt/purchasereceiptRequestMain/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 75a56ea0c..b8829a5e9 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -589,12 +589,13 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r if (item.itemType == '可采购') { array.push(item) - } else if(item.itemType == '可制造') { + } + if (item.itemType == '可制造') { array1.push(item) } }) if (array.length>0) { - await PackageApi.getPrintingLableId({packingNumbers:packingNumbers}).then(res => { + await PackageApi.getPrintingLableId({packingNumbers:array.map(item1=>item1.number)}).then(res => { console.log(res) window.open(BASE_URL + '/jmreport/view/1016234988731322368?token=' + getAccessToken()+'&id=' + res) }).catch(err => { @@ -603,7 +604,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r }) } if (array1.length > 0) { - await PackageApi.batchPrintingLable(val.map(item1=>item1.number).join(',')).then(res => { + await PackageApi.batchPrintingLable(array1.map(item1=>item1.number).join(',')).then(res => { console.log(res) window.open(src.value + '&asn_number=' + res) }).catch(err => {