From 7ecba402712a9777059a9be29cda1940fa313333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Fri, 5 May 2023 10:50:42 +0800 Subject: [PATCH] 5/5 --- src/views/main/BookingLedger/detail/modules/preOrder.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/main/BookingLedger/detail/modules/preOrder.vue b/src/views/main/BookingLedger/detail/modules/preOrder.vue index ec75315..5612929 100644 --- a/src/views/main/BookingLedger/detail/modules/preOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/preOrder.vue @@ -1923,8 +1923,7 @@ export default { let Rdata = 0 if (this.orderDetails.ediCtn) { this.orderDetails.ediCtn.forEach(item => { - Rdata = parseFloat(Rdata) + parseFloat(item[type]) - console.log(item) + Rdata = parseFloat(Rdata) + parseFloat(item[type]) || 0 }) } @@ -2076,7 +2075,8 @@ export default { sealno: item.sealno, pkgs: item.pkgs, kindpkgs: item.kindpkgs, - kgs: item.sealkgsno, + kgs: item.kgs || 0, + cbm: item.cbm, rowKey: item.rowKey }) })