From 1b179c0a38dc8001093e74564f4089fe5eb8e41c Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 30 Jul 2024 11:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/relegate/relegateRequest/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index dd8a09be9..b519046d1 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -182,7 +182,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['fromLocationCode']==item['locationCode']&&item1['inventoryStatus']==item['inventoryStatus'])) if(val.length==0) return val.forEach(item=>{ - const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) + const newRow = JSON.parse(JSON.stringify({...tableFormKeys})) newRow['id'] = item['id'] newRow['itemCode'] = item['itemCode'] newRow['uom'] = item['uom'] @@ -758,12 +758,15 @@ const labelPrint = async (row) => { // 获得表格的各种操作 const { getList:getListPrint } = tableMethods - getListPrint() + await getListPrint() tableObject.loading = false const tableColumns = RelegateRequestDetailLabel.allSchemas.tableFormColumns tableColumns.forEach((item) => { item.width = item.table?.width || 150 }) + tableObjectPrint.tableList.forEach(item=>{ + item.fromBatch = item.batch + }) searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true) }