From 93c421bb25860b60aed6a1a75f2927f8ac4789af Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 28 十月 2024 16:05:05 +0800 Subject: [PATCH] feat:库管修改细节问题 --- pages/loadUnload-page/historyOrder/index.vue | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/pages/loadUnload-page/historyOrder/index.vue b/pages/loadUnload-page/historyOrder/index.vue index 2291e0b..6ca2393 100644 --- a/pages/loadUnload-page/historyOrder/index.vue +++ b/pages/loadUnload-page/historyOrder/index.vue @@ -118,7 +118,7 @@ <text>璁″垝閲忥細{{ value.planMeasure ?value.planMeasure :'鏆傛棤'}}</text> </view> <view class="productName"> - <text>瀹為檯閲忥細{{value.realityMeasure ? value.realityMeasure : '鏆傛棤'}}</text> + <text>瀹為檯閲忥細{{value.productQuantity ? value.productQuantity : '鏆傛棤'}}</text> </view> </view> </view> @@ -248,7 +248,7 @@ return { conditionList: [], coalList: [], - proType:['鏁h','娑叉埃鐡惰','缃愯','PVC25','PVC80','PVC1150','PVc1200'], + proType:['鏁h','娑叉隘鐡惰','缃愯','PVC25','PVC80','PVC1150','PVc1200'], bunnkerList:[], typeList: [], customerList: [], @@ -392,13 +392,25 @@ uni.showLoading({ title: '鍔犺浇涓�' }); - this.$reqGet('getHistoryTaskCoalList', { startTime: this.first, endTime: this.last,bunkerIds:this.bunkerIds,userId:this.userId }).then(res => { + this.$reqGet('getHistoryTaskCoalList', { startTime: this.first, endTime: this.last,bunkerIds:this.bunkerIds,productIds:uni.getStorageSync('productIds') }).then(res => { console.log(res.data,'res.data'); - this.filterList = this.taskList = res.data; + this.filterList = this.taskList = res.data.map(item=>{ + if(!item.carNum){ + item.carNum = 0; + } + if(!item.weight){ + item.weight = 0; + } + if(!item.number){ + item.number = 0; + } + return item; + }); // this.totalLength = res.data.carNum; // this.totalTon = res.data.weight; // this.tmNum = res.data.number; if (this.filterList.length != 0) { + 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); -- Gitblit v1.9.1