qingyiay
2023-09-26 97d88adcdfa7e13b2203c8716c02866fae087704
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -130,7 +130,7 @@
                        height="150"
                        :previewFullImage="true"
                        :disabled="isModifyoriginInfo"
                        :deletable='!deletable'></u-upload>
                        :deletable="!deletable"></u-upload>
                  </u-form-item>
               </u-form>
               <view class="submit-button">
@@ -241,7 +241,7 @@
      </view>
      <!-- 磅房忙碌提示弹窗 -->
      <view class="">
         <u-modal :show="wsgVisiable"
         <u-modal :show="wsgShow"
            title="提示"
            :content="wsgContent"
            @confirm="wsgContentConfirm"></u-modal>
@@ -256,7 +256,6 @@
   import combinedTitle from '@/components/combined-title/combined-title.vue';
   import BigNumber from "bignumber.js"
   const dayjs = require('dayjs')
   import isBetween from 'dayjs/plugin/isBetween'
   export default {
      components: {
         combinedTitle
@@ -270,8 +269,9 @@
            this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao
         }
         this.fileList1 = []
         dayjs.extend(isBetween)
         this.changeglobalIsFirstWeighing(1)
         if (this.globalIsFirstWeighing === 1) {
            console.log('获取详情 onload');
            this.getTakeCoal(); //获取提煤单详情
         }
         this.init(); //获取日志
@@ -279,6 +279,7 @@
      onShow() {
         this.coalDayPage(); //获取日志 定时任务
         if (this.globalIsFirstWeighing === 2) {
            console.log('获取详情 onShow');
            this.getTakeCoal(); //获取提煤单详情
         }
      },
@@ -402,8 +403,17 @@
               }
            },
            timeout: '0',
            wsgShow: false
         };
      },
      watch: {
         '$store.state.wsgVisiable': {
            deep: true,
            handler: function(val) {
               this.wsgShow = val
            }
         }
      },
      computed: {
         ...mapState(['globalweigh', 'globalinfraredStatus', 'wsgVisiable', 'wsgContent', 'globalIsFirstWeighing']),
@@ -517,19 +527,11 @@
                  this.primarySkin = this.coalDetailsData.skinTwo;
                  this.primaryHair = this.coalDetailsData.hairTwo;
                  this.primaryClean = this.coalDetailsData.cleanTwo;
                  // 判断当前时间是否超出预约时间
                  let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this.coalDetailsData
                     .yuYueSection.slice(-5);
                  if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) {
                     this.$u.toast('已超出预约时间,可点击入场申请重新入场')
                     this.timeout = '1'
                  }
                  // 入门证 和 出门证 是否显示
                  this.ablePrintInduction = this.coalDetailsData.hair || this.coalDetailsData.skin
                  this.ablePrintOut = this.coalDetailsData.hair && this.coalDetailsData.skin || this
                     .coalDetailsData.status === 6
                  // 原发信息回显以及控制是否可修改
                  this.haveInputOrigin = !this.coalDetailsData.skinTwo && this.coalDetailsData.orderType ===
                     '外购'
                  this.deletable = this.isModifyoriginInfo = this.coalDetailsData.status > 3
@@ -566,6 +568,17 @@
               }
            }).then(() => {
               this.getgetService(); //获取客服
            }).then(() => {
               // 判断当前时间是否超出预约时间
               setTimeout(() => {
                  let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this
                     .coalDetailsData
                     .yuYueSection.slice(-5);
                  if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) {
                     this.$u.toast('已超出预约时间,可点击入场申请重新入场')
                     this.timeout = '1'
                  }
               }, 1000)
            })
         },
         // 日志查询