pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -1,7 +1,7 @@
<template>
   <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;">
         style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
         <u-notice-bar :text="originInfoNotice"
            v-if="haveInputOrigin"
            fontSize='36'></u-notice-bar>
@@ -23,9 +23,9 @@
               <view class="basic">
                  <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;
                     style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/statusbutton.png') no-repeat;
                              background-size: cover;">
                     {{coalStatus[correctStatus]||''}}
                     {{coalDetailsData.statusView||''}}
                  </view>
               </view>
               <view class="time">
@@ -40,19 +40,19 @@
               <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;">
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
                        皮</view>
                     <view class="num">{{ coalDetailsData.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;">
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
                        毛</view>
                     <view class="num">{{ coalDetailsData.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;">
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
                        净</view>
                     <view class="num">{{ coalDetailsData.clean||""  }}</view>
                  </view>
@@ -141,7 +141,8 @@
                  <u-button text="提交"
                     type="primary"
                     @click.stop="submitOriginInfo"
                     :disabled="isModifyoriginInfo"></u-button>
                     :disabled="isModifyoriginInfo"
                     :loading="submitOriginInfoLoading"></u-button>
               </view>
            </view>
         </view>
@@ -336,7 +337,7 @@
               serviecePhone: ''
            },
            coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请',
               '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写'
               '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写', '放空确认中', '超最大毛重确认中'
            ], // 状态
            weighHouseCode: '',
            // 放空弹窗控制变量
@@ -395,7 +396,8 @@
            timeout: '0',
            wsgShow: false,
            timeLineStatus: null,
            originInfoNotice: '填写原发信息后可上磅计量'
            originInfoNotice: '填写原发信息后可上磅计量',
            submitOriginInfoLoading: false
         };
      },
      watch: {
@@ -717,16 +719,20 @@
         evacuationConfirm() {
            this.weighData = {
               ...this.weighData,
               weigh: this.globalweigh
               weigh: this.globalweigh,
               isBackground: 1
            };
            uni.showLoading({
               title: '加载中'
            })
            let mix = Object.assign(this.weighData, this.getWeightHouseObj);
            this.$reqPost('getOneEvacuation', mix, 'json').then(res => {
               console.log(res, '第一次放空');
               uni.hideLoading()
               if (res.code == 0) {
                  this.$u.toast('操作成功');
                  this.evacuationModalShow = false;
               } else {
                  this.$u.toast('操作失败,请稍后重试');
                  this.$u.toast(res.msg ? res.msg : '操作失败,请稍后重试');
                  this.evacuationModalShow = false;
               }
            });
@@ -771,7 +777,10 @@
                  } else {
                     this.$u.toast(res.msg ? res.msg : '打印失败')
                  }
               })
               }).catch(e => {
               uni.hideLoading()
               this.outLoading = false
            })
         },
         // 打印出门证
         printExitPermit() {
@@ -780,14 +789,15 @@
            })
            let form = {
               deptId: this.getWeightHouseObj.deptId,
               filedId: this.getWeightHouseObj.filedId,
               tmId: this.getWeightHouseObj.tmId,
               carNo: uni.getStorageSync('carNo'),
               type: 3,
               weighingNumber: 2
            }
            let form1 = uni.getStorageSync('WeighHouseForm') ? uni.getStorageSync('WeighHouseForm') : '{}'
            this.outLoading = true
            this.$reqPost('printer', Object.assign(form, JSON.parse(uni.getStorageSync('WeighHouseForm'))),
               'json').then(res => {
            this.$reqPost('printer', Object.assign(form, JSON.parse(form1)), 'json').then(res => {
               uni.hideLoading()
               this.outLoading = false
               if (res.code === 0) {
@@ -795,6 +805,9 @@
               } else {
                  this.$u.toast(res.msg ? res.msg : '打印失败')
               }
            }).catch(e => {
               uni.hideLoading()
               this.outLoading = false
            })
         },
         wsgContentConfirm() {
@@ -881,10 +894,13 @@
            if (this.originInfoForm.coalContactSkin && this.originInfoForm.coalContactHair && this
               .originInfoForm
               .contactPicture) {
               this.submitOriginInfoLoading = true
               this.$reqPost('appSaveContact', form, 'json').then(res => {
                  if (res.code === 0) {
                     this.$u.toast('提交成功')
                     this.submitOriginInfoLoading = false
                  } else {
                     this.submitOriginInfoLoading = false
                     this.isModifyoriginInfo = true
                     this.$u.toast(res.msg ? res.msg : '提交失败')