From c5be53ca4757c5c59c2d769b1e25586122f930c1 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Tue, 16 May 2023 08:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=95=E5=85=A5=E5=9C=BA?= =?UTF-8?q?=E7=AB=99=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/detail/modules/goodsTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/main/BookingLedger/detail/modules/goodsTable.vue b/src/views/main/BookingLedger/detail/modules/goodsTable.vue index b827fd4..28540b2 100644 --- a/src/views/main/BookingLedger/detail/modules/goodsTable.vue +++ b/src/views/main/BookingLedger/detail/modules/goodsTable.vue @@ -1545,18 +1545,16 @@ export default { .then((res) => { if (res.success) { const data = JSON.parse(res.data) + console.log(data) const addTable = [] const cntrnoArr = [] let kindpkgsOld = '' this.tableData.map((item, index) => { - console.log(item.kindpkgs) if (!item.cntrno) { - // delete this.tableData[index] this.tableData.splice(index, 1) } else { cntrnoArr.push(item.cntrno) } - console.log(item.kindpkgs) if (item.kindpkgs !== '') { kindpkgsOld = item.kindpkgs } @@ -1567,6 +1565,7 @@ export default { this.tableData[cntrnoArr.indexOf(item.CNTRNO)] = { rowKey: lastNum + index, ctnall: item.CTNALL, + CtnCode: item.CtnCode, ctnnum: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].ctnnum, cntrno: item.CNTRNO, sealno: item.SEALNO, @@ -1586,6 +1585,7 @@ export default { ctnnum: '1', cntrno: item.CNTRNO, sealno: item.SEALNO, + CtnCode: item.CtnCode, pkgs: item.PKGS, kindpkgs: kindpkgsOld || item.KINDPKGS, kgs: item.KGS,