From 804bc24cf62c25463d183585ee5e6b129ba587be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Thu, 16 May 2024 17:23:42 +0800 Subject: [PATCH 1/2] --- src/views/operation/seaexport/detail/asd.json | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 src/views/operation/seaexport/detail/asd.json diff --git a/src/views/operation/seaexport/detail/asd.json b/src/views/operation/seaexport/detail/asd.json deleted file mode 100644 index 4ddb934a..00000000 --- a/src/views/operation/seaexport/detail/asd.json +++ /dev/null @@ -1,4 +0,0 @@ - -The req field is required -Error converting value {null} to type 'System.DateTime'. Path 'customDate', line 1, position 1314 -Error converting value {null} to type 'System.DateTime'. Path 'inspectionDate', line 1, position 2562. \ No newline at end of file From 684c64f6bd90dbf6f786e15598d6d6e66b0e9f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Fri, 17 May 2024 14:00:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=9B=86=E8=A3=85=E7=AE=B1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seaexport/detail/modules/goodsTable.vue | 114 ++++++------------ 1 file changed, 36 insertions(+), 78 deletions(-) diff --git a/src/views/operation/seaexport/detail/modules/goodsTable.vue b/src/views/operation/seaexport/detail/modules/goodsTable.vue index fc916fb7..e116edbf 100644 --- a/src/views/operation/seaexport/detail/modules/goodsTable.vue +++ b/src/views/operation/seaexport/detail/modules/goodsTable.vue @@ -646,54 +646,43 @@ } // 添加行 function addboxLine() { - const data = { - rowKey: dataSource.value.length - ? dataSource.value[dataSource.value.length - 1].rowKey + 1 - : 1, - id: '', - bsno: '', - ctnNum: '', - cntrNo: '', - sealNo: '', - kindPkgs: '', - kgs: '', - size: '', - tareWeight: '', - weightType: '', - ctnCode: '', - ctn: '', - weightKGS: '', - weightDate: '', - teu: '', - ctnAll: '', - cbm: '', - goodsName: '', - ctnStatus: '', - weightATTN: '', - weightTel: '', - weightSign: '', - masterNo: '', - trucker: '', - truckNo: '', - truckFee: '', - freeStorageDay: '', - storageDay: '', - storagePrice: '', - storageFee: '', - freeCtnDay: '', - ctnDay: '', - ctnPrice: '', - ctnFee: '', - isTemp: '', - vgmAddr: '', - vgmEmail: '', - pickUpTime: '', - actualArrivalPortTime: '', - pkgs: '', - } - console.log(data) + list.value.push({}) + } + // 删除行 + function removeLine() { + console.log(list.value) + list.value = list.value.filter((item) => item.selected !== true) + console.log(list.value) + + // selectArr.value.map((item, index) => { + // tableData.value.map((oitem: any, oindex) => { + // if (item === oitem.rowKey) { + // tableData.value.splice(oindex, 1) + // } + // }) + // }) + // let kgs = 0 + // tableData.value.map((item: any, index) => { + // kgs += Number(item.kgs) + // }) + // totalKgs.value = kgs + + // let cbm = 0 + // tableData.value.map((item: any, index) => { + // cbm += Number(item.cbm) + // }) + // totalCbm.value = cbm - setTableData([...getDataSource(), data]) + // let pkgs = 0 + // tableData.value.map((item: any, index) => { + // pkgs += Number(item.pkgs) + // }) + // totalPkgs.value = pkgs + // checkboxOption.value.selectedRowKeys = [] + // selectArr.value = [] + // tableData.value.forEach((item: any, index) => { + // item.rowKey = index + // }) } function EditRow(record, index, event) { console.log('双击', record, index, event) @@ -1955,37 +1944,6 @@ console.log('selectionRangeKeys::', selectionRangeKeys) } - function removeLine() { - selectArr.value.map((item, index) => { - tableData.value.map((oitem: any, oindex) => { - if (item === oitem.rowKey) { - tableData.value.splice(oindex, 1) - } - }) - }) - let kgs = 0 - tableData.value.map((item: any, index) => { - kgs += Number(item.kgs) - }) - totalKgs.value = kgs - - let cbm = 0 - tableData.value.map((item: any, index) => { - cbm += Number(item.cbm) - }) - totalCbm.value = cbm - - let pkgs = 0 - tableData.value.map((item: any, index) => { - pkgs += Number(item.pkgs) - }) - totalPkgs.value = pkgs - checkboxOption.value.selectedRowKeys = [] - selectArr.value = [] - tableData.value.forEach((item: any, index) => { - item.rowKey = index - }) - } function changeSelectedRowKeys(keys) { selectArr.value = keys checkboxOption.value.selectedRowKeys = keys