From b8066dece501b4241143162aa478139fce0fce68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 4 Dec 2025 09:56:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms):=20=E4=BF=AE=E5=A4=8D=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=9C=BA=E7=BB=84=E4=BB=B6=E4=B8=AD=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E8=BF=90=E5=8D=95=E8=AF=A6=E6=83=85=E6=95=B0=E6=8D=AE=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整数据映射逻辑以正确获取原材料和产品名称,并添加调试日志以便追踪数据 --- klp-ui/src/views/wms/receive/components/Printer.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/klp-ui/src/views/wms/receive/components/Printer.vue b/klp-ui/src/views/wms/receive/components/Printer.vue index ae301956..0aad11cf 100644 --- a/klp-ui/src/views/wms/receive/components/Printer.vue +++ b/klp-ui/src/views/wms/receive/components/Printer.vue @@ -164,9 +164,12 @@ export default { this.localWaybillDetails = newVal.map((item, index) => ({ ...item, quantity: 1, // 默认数量为1 - ...results[index], - itemName: results[index].rawMaterialName || results[index].productName || '' + ...results[index].data, + ...results[index].data.rawMaterial, + ...results[index].data.product, + itemName: results[index].data.rawMaterial.rawMaterialName || results[index].data.product.productName || '' })); + console.log(this.localWaybillDetails); this.loading = false; }) .catch(error => {