qingyiay
2023-06-26 029dd92e96bec1ca325e99f154c8a2188919e8d5
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -18,11 +18,11 @@
         <view class="block-information">
            <view class="block-main">
               <view class="basic">
                  <view class="coalName">{{ coalDetailsData.coalName }}</view>
                  <view class="coalName">{{ coalDetailsData.coalName||'' }}</view>
                  <view class="status-button"
                     style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/statusbutton.png') no-repeat;
                              background-size: cover;">
                     {{ coalStatus[coalDetailsData.status] || '' }}
                     {{ coalStatus[coalDetailsData.statusWeigh] || '' }}
                  </view>
               </view>
               <view class="time">
@@ -34,24 +34,29 @@
               <view class="coal-code">提煤单编号:&nbsp;&nbsp;{{ coalDetailsData.code || '' }}</view>
               <view class="order-code">
                  订单编号:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ coalDetailsData.orderCode || '' }}</view>
               <view class="coal-code"
                  @click="jumpWeighDetail"
                  style="color: rgb(73, 123, 251);">
                  查看明细
               </view>
               <view class="weigh-item">
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
                        皮</view>
                     <view class="num">{{ coalDetailsData.skin }}</view>
                     <view class="num">{{ showWeigh.skin }}</view>
                  </view>
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
                        毛</view>
                     <view class="num">{{ coalDetailsData.hair }}</view>
                     <view class="num">{{ showWeigh.hair }}</view>
                  </view>
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
                        净</view>
                     <view class="num">{{ coalDetailsData.clean }}</view>
                     <view class="num">{{ showWeigh.clean }}</view>
                  </view>
               </view>
            </view>
@@ -174,9 +179,7 @@
               openId: null,
               openName: ''
            },
            coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请',
               '进入场院'
            ], // 状态
            coalStatus: ['未称重', '称重中', '验质中', '称重完成'], // 状态
            weighHouseCode: '',
            // 放空弹窗控制变量
            evacuationModalShow: false,
@@ -243,6 +246,11 @@
         },
         isapproach() {
            return this.currentPageCoalStatus !== 3;
         },
         // 展示皮毛净
         showWeigh() {
            return this.coalDetailsData.tmTaskCoalItems ? (this.coalDetailsData.tmTaskCoalItems[0] ? this
               .coalDetailsData.tmTaskCoalItems[0] : {}) : {}
         }
      },
      methods: {
@@ -287,8 +295,8 @@
               title: '加载中'
            });
            this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
               uni.hideLoading();
               if (res.code == 0) {
                  uni.hideLoading();
                  console.log(res, '提煤单详情');
                  this.coalDetailsData = res.data;
                  this.orderType = this.coalDetailsData.orderType;
@@ -311,7 +319,7 @@
                  this.getServiceOpenid.deptId = this.coalDetailsData.deptId;
                  this.getServiceOpenid.filedId = this.coalDetailsData.filedId;
                  // 获取提煤单状态
                  this.currentPageCoalStatus = this.coalDetailsData.status;
                  this.currentPageCoalStatus = this.coalDetailsData.statusWeigh;
                  // 获取原发信息
                  this.primarySkin = this.coalDetailsData.skinTwo;
                  this.primaryHair = this.coalDetailsData.hairTwo;
@@ -356,7 +364,7 @@
                     });
                  }
               });
            }, 5000);
            }, 10000);
         },
         // 展示提煤单详情
         showCaolPickUpBill() {
@@ -493,6 +501,12 @@
         completeOutSaleCancel() {
            this.completeOutSaleShow = false
         },
         // 查看质量明细
         jumpWeighDetail() {
            uni.navigateTo({
               url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${this.orderPlanId}`
            })
         }
      }
   };
</script>