yangan
2024-07-18 6ba1c5a9f73604edb005212b7fed058e185ce295
pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails.vue
@@ -11,10 +11,10 @@
            </view>
            <view class="middle-container">
               <view class="dept-name">
                  {{ deptName }}
                  <text v-show="deptName">({{ coalName  || productName}})</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;
@@ -30,7 +30,7 @@
               </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">
@@ -60,11 +60,11 @@
            </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"
@@ -86,11 +86,11 @@
                     <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>
@@ -114,16 +114,22 @@
         this.cars2 = value.cars2 ? value.cars2 : null;
         this.deptName = value.deptName;
         this.coalName = value.coalName;
         this.productName =  value.productName;
         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: [],
@@ -147,7 +153,7 @@
         },
         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() {
@@ -224,7 +230,7 @@
            @include flex margin-left: vww(10);
            .top-title {
               width: 226rpx;
               width: 250rpx;
               height: 36rpx;
               font-size: 38rpx;
               font-weight: normal;
@@ -327,7 +333,7 @@
         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;