From 9fd445780a72819344e256d954d47d7d11b4a43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Mon, 28 Oct 2024 15:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=B4=E6=8A=A4=202024/8/7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/deliver/coms/comScanDeliverPack.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/deliver/coms/comScanDeliverPack.vue b/src/pages/deliver/coms/comScanDeliverPack.vue index f0b78b7b..06282d22 100644 --- a/src/pages/deliver/coms/comScanDeliverPack.vue +++ b/src/pages/deliver/coms/comScanDeliverPack.vue @@ -268,7 +268,7 @@ const afterGetBalance = (label, balance, packageInfo) => { const record = batch.Records.find((r) => r.packingNumber == packingCode) if (record == undefined) { // 如果有推荐箱码 - if (batch.Recommends.length > 0) { + if (batch.Recommends && batch.Recommends.length > 0) { const recommend = batch.Recommends.find((r) => r.packingNumber == packingCode) if (recommend != undefined) { addRecord(batch, label, balance, packageInfo)