pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue
@@ -3,13 +3,13 @@
      <view class="driver" style="background:url(../../../../../static/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;">
         <view class="driver-coalOne">电子提煤单</view>
         <view class="driver-coalTwo">
            <view class="">东庞矿北井</view>
            <view class="">1/3焦</view>
            <view class="">冀A37U98</view>
            <view class="">{{ coalData.deptName || '暂无所属矿' }}</view>
            <view class="">{{ coalData.coalName || '暂无煤种' }}</view>
            <view class="">{{ coalData.carNo || '暂无车牌' }}</view>
         </view>
         <view class="driver-coalThree">
            <view class="">旭阳焦化有限责任公司</view>
            <view class="">2022年8月28日 15:00:56</view>
            <view class="">{{ coalData.customerName || '暂无单位' }}</view>
            <view class="">{{ coalData.yuYueTime || '暂无时间' }}</view>
         </view>
         <view class="driver-coalFour"><image src="@/static/logo.gif" mode=""></image></view>
      </view>
@@ -17,36 +17,40 @@
</template>
<script>
   export default {
      onLoad(value) {
         console.log('页面加载', value);
         if (value.orderPlanId) {
            this.orderPlanId = value.orderPlanId;
         }
      },
      data() {
         return {
            orderPlanId: null
         };
      },
      onShow() {
         this.init();
      },
      methods: {
         init() {
            this.getTakeCoal();
         },
         // 获取提煤单详情
         getTakeCoal() {
            this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
               console.log('获取提煤单详情', res);
            });
         }
         /**
          * @desc 等待取煤单接口
          * */
export default {
   onLoad(value) {
      console.log('页面加载', value);
      if (value.orderPlanId) {
         this.orderPlanId = value.orderPlanId;
      }
   },
   data() {
      return {
         orderPlanId: null,
         coalData: {}
      };
   },
   onShow() {
      this.init();
   },
   methods: {
      init() {
         this.getTakeCoal();
      },
      // 获取提煤单详情
      getTakeCoal() {
         this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
            console.log('获取提煤单详情', res);
            if (res.code == 0) {
               this.coalData = res.data[0];
            }
         });
      }
      /**
       * @desc 等待取煤单接口
       * */
   }
};
</script>
<style lang="scss" scoped>
@@ -103,4 +107,3 @@
   }
}
</style>