From 77d3c3755131308551c0fef2b1e819d36e8c53f2 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 6 Sep 2024 15:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BF=BB=E5=8C=85=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E4=B8=8D=E6=98=AF=E6=8E=A8=E8=8D=90=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/package/coms/comScanPackagePack.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/package/coms/comScanPackagePack.vue b/src/pages/package/coms/comScanPackagePack.vue index 3ffd4563..93b4d22a 100644 --- a/src/pages/package/coms/comScanPackagePack.vue +++ b/src/pages/package/coms/comScanPackagePack.vue @@ -242,7 +242,7 @@ import { getDirectoryItemArray } from '@/common/directory'; let record = batch.Records.find(r => r.packingNumber == packingCode); if (record == undefined) { //如果有推荐箱码 - if (batch.Recommends.length > 0) { + if (batch.Recommends != undefined &&batch.Recommends.length > 0) { let recommend = batch.Recommends.find(r => r.packingNumber == packingCode); if (recommend != undefined) { that.addRecord(batch, label, balance, packageInfo)