| | |
| | | <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> |
| | |
| | | return { |
| | | conditionList: [], |
| | | coalList: [], |
| | | proType:['散装','液氣瓶装','罐装','PVC25','PVC80','PVC1150','PVc1200'], |
| | | proType:['散装','液氯瓶装','罐装','PVC25','PVC80','PVC1150','PVc1200'], |
| | | bunnkerList:[], |
| | | typeList: [], |
| | | customerList: [], |
| | |
| | | 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); |