From 035a2fd733df1c3cee460b5fca6b368dab758506 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 06 二月 2025 16:25:14 +0800 Subject: [PATCH] feat:历史收发单总件数修改 --- pages/loadUnload-page/historyOrder/index.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/loadUnload-page/historyOrder/index.vue b/pages/loadUnload-page/historyOrder/index.vue index dc63a64..0564d64 100644 --- a/pages/loadUnload-page/historyOrder/index.vue +++ b/pages/loadUnload-page/historyOrder/index.vue @@ -433,7 +433,7 @@ console.log(this.filterList,'fis') this.totalLength = this.filterList.reduce((x, y) => x + y.carNum,0); this.totalTon = this.filterList.reduce((x, y) => new BigNumber(x).plus( y.weight),0).toFixed(2); - this.tmNum = this.filterList.reduce((x, y) => x + y.number,0); + this.tmNum = this.filterList.reduce((x, y) =>new BigNumber(x).plus(new BigNumber(y.number)),0); let coalTemp,customerTemp,bunnkerTemp = []; coalTemp = res.data.map(item=>item.tmTaskCoalList.map(val=>{ return { @@ -785,7 +785,7 @@ return uni.getStorageSync('userId') }, bunkerIds(){ - return uni.getStorageSync('bunkerIds') + return Array.from(new Set(uni.getStorageSync('bunkerIds').split(',') || [])).join(",") }, // totalLength(){ // console.log(this.filterList,'filterList') -- Gitblit v1.9.1