qingyiay
2023-05-16 a12ac4f4388672c62c6fb59c5ef975e5dff5fc06
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -2,7 +2,8 @@
   <view class="bill-of-lading-details">
      <view class="top-banner" style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
         <view class="top-information">
            <view class="cutomer-name">客户:{{ coalDetailsData.customerName || '' }}</view>
            <view class="cutomer-name" v-if="orderType == '转入' || orderType == '转出'">煤场:{{ coalDetailsData.filedName || '' }}</view>
            <view class="cutomer-name" v-else>客户:{{ coalDetailsData.customerName || '' }}</view>
            <view class="fild-name">
               <view class="">矿场:{{ coalDetailsData.deptName || '暂无' }}</view>
               <view class="">煤场:{{ coalDetailsData.filedName || '暂无' }}</view>
@@ -140,7 +141,9 @@
         primarySkin: null,
         primaryHair: null,
         primaryClean: null,
         scrollTop: 0
         scrollTop: 0,
         // 磅单类型
         orderType: ''
      };
   },
   onShow() {
@@ -193,10 +196,15 @@
      },
      // 获取提煤单详情
      getTakeCoal() {
         uni.showLoading({
            title: '加载中'
         });
         this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
            if (res.code == 0) {
               uni.hideLoading();
               console.log(res, '提煤单详情');
               this.coalDetailsData = res.data;
               this.orderType = this.coalDetailsData.orderType;
               // 获取所在磅房参数赋值
               this.getWeightHouseObj.deptId = this.coalDetailsData.deptId;
               this.getWeightHouseObj.filedId = this.coalDetailsData.filedId;
@@ -216,6 +224,8 @@
               this.primarySkin = this.coalDetailsData.skinTwo;
               this.primaryHair = this.coalDetailsData.hairTwo;
               this.primaryClean = this.coalDetailsData.cleanTwo;
            } else {
               this.$u.toast('加载失败');
            }
         });
      },