| | |
| | | </view> |
| | | <view class="middle-container"> |
| | | <view class="dept-name"> |
| | | {{ deptName }} |
| | | <text v-show="deptName">({{ coalName }})</text> |
| | | {{ !pageType ? deptName : customerName }} |
| | | <text v-show="deptName">({{ productNames || productName}})</text> |
| | | </view> |
| | | <view class="dept-num"> |
| | | <view class="dept-num" v-if="!pageType"> |
| | | <text style="font-size: 46rpx; |
| | | font-weight: 400; |
| | | color: #FFFFFF; |
| | |
| | | </view> |
| | | </view> |
| | | <view class="bottom-container"> |
| | | <view class="bottom-block"> |
| | | <view class="bottom-block" v-if="!pageType"> |
| | | <view class="bottom-content" |
| | | v-for="(item, index) in orderPlanDetail.huodaiList" |
| | | :key="index"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="block-top"> |
| | | <combined-title title="提煤单历史"></combined-title> |
| | | <combined-title title="收发单历史"></combined-title> |
| | | <view class="total"> |
| | | 总净重 |
| | | <text>{{ total.toFixed(2) || 0 }}</text> |
| | | </view> |
| | | <text>{{ Number(total).toFixed(2) || 0 }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="main-banner"> |
| | | <view class="empty-pointer" |
| | |
| | | <view class="second-line"> |
| | | <view class="line-content"> |
| | | <view class="line-content_text">净重</view> |
| | | <view class="line-content_num">{{ item.clean.toFixed(2) || 0 }}</view> |
| | | <view class="line-content_num">{{ Number(item.clean) .toFixed(2) || 0 }}</view> |
| | | </view> |
| | | <view class="line-content"> |
| | | <view class="line-content_text">余量</view> |
| | | <view class="line-content_num">{{ item.allowance.toFixed(2) || 0 }}</view> |
| | | <view class="line-content_num">{{ Number(item.orderSurplus).toFixed(2) || 0 }}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | this.cars2 = value.cars2 ? value.cars2 : null; |
| | | this.deptName = value.deptName; |
| | | this.coalName = value.coalName; |
| | | this.productName = value.productNames; |
| | | this.customerName = value.customerName; |
| | | this.carNum = value.carNum ? value.carNum : null |
| | | console.log(value, '发运计划参数'); |
| | | if(value.roleType && value.roleType === '5'){ |
| | | this.pageType = true; // 表示是库管,隐藏某些元素 |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | orderPlanId: null, |
| | | orderCode: null, |
| | | customerName:'', |
| | | orderPlanDetail: {}, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', |
| | | '进入场院', '异常审核中' |
| | | pageType:false, // 页面显示dom判断条件 |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入仓库', '出仓库', '放空', '作废', '入场申请', |
| | | '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写' |
| | | ], |
| | | yyDailyList: [], |
| | | // 领取数量 |
| | | cars2: '', |
| | | coalName: '', |
| | | productName:'', |
| | | deptName: '', |
| | | total: 0, |
| | | carNum: '' |
| | |
| | | }, |
| | | showMore(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}` |
| | | url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore?orderPlanId=${this.orderPlanId}&id=${item.id}&orderType=${item.orderType}` |
| | | }); |
| | | }, |
| | | init() { |
| | |
| | | this.total = this.yyDailyList.reduce((prev, cur) => { |
| | | return prev + cur.clean; |
| | | }, 0); |
| | | console.log(this.total,'total') |
| | | } else { |
| | | this.total = 0; |
| | | } |
| | |
| | | @include flex margin-left: vww(10); |
| | | |
| | | .top-title { |
| | | width: 226rpx; |
| | | width: 250rpx; |
| | | height: 36rpx; |
| | | font-size: 38rpx; |
| | | font-weight: normal; |
| | |
| | | justify-content: center; |
| | | |
| | | .main-block { |
| | | width: 690rpx; |
| | | width: 90%; |
| | | background: #ffffff; |
| | | box-shadow: 4rpx 6rpx 51rpx 0rpx rgba(73, 120, 240, 0.11); |
| | | border-radius: 20rpx; |