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)