| | |
| | | <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> |
| | |
| | | icon="http://cdn.uviewui.com/uview/empty/data.png" |
| | | textSize="30" |
| | | iconSize="1000" |
| | | text="暂无数据" |
| | | v-if="filterList.length == 0"></u-empty> |
| | | <view class="statistics-card" |
| | | v-for="(item, index) in filterList" |
| | |
| | | <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 class="black-block"><view class="black-bar"></view></view> |
| | | <view class="coal-type">{{ value.orderType }}</view> --> |
| | | </view> |
| | | <view class="third-line"> |
| | | <text class="carnum-text" style="font-size: 28rpx;">创建时间:</text> |
| | | <view class="carnum-text">{{ value.createTime || '' }}</view> |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="carnum-icon"> |
| | |
| | | </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 === 2||roleType === 1"> |
| | | <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" |
| | |
| | | @click="confirmCondition"></u-button></view> |
| | | </view> |
| | | </u-popup> |
| | | <tab-bar :current="roleType===4?2:1"></tab-bar> |
| | | <tab-bar :current="roleType===4?1:1"></tab-bar> |
| | | </view> |
| | | <view class="white-block"></view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import BigNumber from "bignumber.js" |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | import { onlineurl } from '@/api/request.js' |
| | | export default { |
| | |
| | | // 点击右箭头详情弹窗 |
| | | faYunDetailobj: {}, |
| | | modalShow: false, |
| | | coalStatus: ['未称重', '称重中', '验质中', '称重完成', '验质完成'], |
| | | coalStatus: ['未称重', '称重中', '验质中', '称重完成', '处理完成'], |
| | | onlineurl, |
| | | }; |
| | | }, |
| | | onShow() { |
| | | onLoad() { |
| | | this.firstDate(); |
| | | this.lastDate(); |
| | | this.getShipping(); |
| | |
| | | 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}&flag=${true}` |
| | | }); |
| | | }, |
| | | // 打开筛选条件弹窗 |
| | |
| | | this.first = newV.slice(0, 10); |
| | | this.last = newV.slice(11); |
| | | this.getTmTaskCoalData(); |
| | | this.getShipping(); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | .third-line { |
| | | width: 40%; |
| | | width: 80%; |
| | | min-height: vww(15); |
| | | display: flex; |
| | | justify-content: flex-start; |