| | |
| | | <view class="content-num">发运车数</view> |
| | | </view> |
| | | <view class="content-text"> |
| | | <view class="content-container">{{ totalTon.toFixed(2) }}</view> |
| | | <view class="content-container">{{totalTon}}</view> |
| | | <view class="content-num">发运吨数</view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="card-top"> |
| | | <view class="left"><combined-title :title="item.condition"></combined-title></view> |
| | | <view class="card-top_num"> |
| | | {{ item.taskCoalList.length }}车{{ |
| | | item.taskCoalList |
| | | {{ item.taskCoalList.length }}车 |
| | | {{Number(item.taskCoalList |
| | | .reduce((prev, cur) => { |
| | | cur.clean=cur.clean||0 |
| | | return prev + cur.clean; |
| | | }, 0) |
| | | .toFixed(2) |
| | | }}吨 |
| | | }, 0)).toFixed(2)}}吨 |
| | | </view> |
| | | </view> |
| | | <view class="card-main" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="main-divider"></view> |
| | | <view class="point-number">{{ value.clean.toFixed(2) || 0 }}</view> |
| | | <view class="point-number">{{ Number(value.clean).toFixed(2) || 0 }}</view> |
| | | </view> |
| | | <view class="first-extra"> |
| | | <view class="main-information"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="filter-body"> |
| | | <view class="condition-name">煤种</view> |
| | | <view class="condition-name">品种</view> |
| | | <view class="filter-name"> |
| | | <view class="filter-button" |
| | | v-for="(item, index) in coalList" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="filter-body" |
| | | v-if="roleType != 3"> |
| | | v-if="roleType !== 3&&roleType !== 4"> |
| | | <view class="condition-name">车队</view> |
| | | <view class="filter-name"> |
| | | <view class="filter-button" |
| | |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | <view class="filter-body"> |
| | | <view class="condition-name">矿场</view> |
| | | <view class="filter-body" |
| | | v-if="roleType != 4"> |
| | | <view class="condition-name">仓库</view> |
| | | <view class="filter-name"> |
| | | <view class="filter-button" |
| | | v-for="(item, index) in filedList" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="filter-body" |
| | | v-if="roleType == 2"> |
| | | v-if="roleType == 2||roleType == 4"> |
| | | <view class="condition-name">车牌号</view> |
| | | <view class="filter-name"> |
| | | <view class="filter-button" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BigNumber from "bignumber.js" |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import { onlineurl } from '@/api/request.js' |
| | | export default { |
| | |
| | | this.totalLength = this.filterList.map(v => v.taskCoalList.length).reduce((x, y) => x + y); |
| | | this.totalTon = this.filterList.map(v => |
| | | v.taskCoalList.reduce((prev, cur) => { |
| | | return cur.clean + prev; |
| | | const cleanvalue = cur.clean || 0 |
| | | return cleanvalue + prev |
| | | }, 0) |
| | | ); |
| | | this.totalTon = this.totalTon.reduce((x, y) => x + y); |
| | | this.totalTon = this.totalTon.reduce((x, y) => { |
| | | let xx = new BigNumber(x) |
| | | let yy = new BigNumber(y) |
| | | return xx.plus(yy).toNumber().toFixed(2) |
| | | }, new BigNumber(0)); |
| | | } else { |
| | | this.totalLength = 0; |
| | | this.totalTon = 0; |
| | |
| | | this.totalLength = this.filterList.map(v => v.taskCoalList.length).reduce((x, y) => x + y); |
| | | this.totalTon = this.filterList.map(v => |
| | | v.taskCoalList.reduce((prev, cur) => { |
| | | return cur.clean + prev; |
| | | const cleanvalue = cur.clean || 0 |
| | | return cleanvalue + prev |
| | | }, 0) |
| | | ); |
| | | this.totalTon = this.totalTon.reduce((x, y) => x + y); |
| | | this.totalTon = this.totalTon.reduce((x, y) => { |
| | | let xx = new BigNumber(x) |
| | | let yy = new BigNumber(y) |
| | | return xx.plus(yy).toNumber().toFixed(2) |
| | | }, new BigNumber(0)); |
| | | } else { |
| | | this.totalLength = 0; |
| | | this.totalTon = 0; |
| | |
| | | // 跳转发运详情 |
| | | faYunDetail(takeCoalId) { |
| | | uni.navigateTo({ |
| | | url: `/pages/public-page/faYunstatisticsDetails/faYunstatisticsDetails?id=${takeCoalId}` |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${takeCoalId}` |
| | | }); |
| | | }, |
| | | // 打开筛选条件弹窗 |