qingyiay
2023-09-21 c234dffcd3adaf7b8d87a5a8301871493c0cadbd
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -154,6 +154,13 @@
            :show="servieceShow"
            cancelText="取消"></u-action-sheet>
      </view>
      <!-- 磅房忙碌提示弹窗 -->
      <view class="">
         <u-modal :show="wsgVisiable"
            title="提示"
            :content="wsgContent"
            @confirm="wsgContentConfirm"></u-modal>
      </view>
   </view>
</template>
@@ -252,7 +259,7 @@
         clearInterval(this.interval);
      },
      computed: {
         ...mapState(['globalweigh', 'globalinfraredStatus']),
         ...mapState(['globalweigh', 'globalinfraredStatus', 'wsgVisiable', 'wsgContent']),
         name() {
            return uni.getStorageSync('name');
         },
@@ -278,6 +285,7 @@
         }
      },
      methods: {
         ...mapMutations(['changewsgVisiable']),
         init() {
            this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
               if (res.code == 0) {
@@ -352,7 +360,8 @@
                  this.primaryClean = this.coalDetailsData.cleanTwo;
                  // 入门证 和 出门证 是否显示
                  this.ablePrintInduction = this.coalDetailsData.hair || this.coalDetailsData.skin
                  this.ablePrintOut = this.coalDetailsData.hair && this.coalDetailsData.skin
                  this.ablePrintOut = this.coalDetailsData.hair && this.coalDetailsData.skin || this
                     .coalDetailsData.status === 6
               } else {
                  this.$u.toast('加载失败');
               }
@@ -498,7 +507,7 @@
                  }&primaryHair=${this.primaryHair}&psrimaryClean=${this.primaryClean}&sceneInOut=${res.data.sceneInOut}&overTmWaixiao=${this.overTmWaixiao}`
                  });
               } else {
                  this.$u.toast('未在磅房,请前往磅房后再试!!');
                  this.$u.toast(res.msg ? res.msg : '未在磅房,请前往磅房后再试!!');
               }
            });
         },
@@ -548,6 +557,7 @@
            this.$reqGet('printer', { type: 2, tmId: this.coalDetailsData.id }).then(res => {
               uni.hideLoading()
               this.enterLoading = false
               console.log(res);
               if (res.code === 0) {
                  this.$u.toast('打印成功')
               } else {
@@ -571,6 +581,9 @@
               }
            })
         },
         wsgContentConfirm() {
            this.changewsgVisiable(false)
         }
      }
   };
</script>