| | |
| | | :show="servieceShow" |
| | | cancelText="取消"></u-action-sheet> |
| | | </view> |
| | | <!-- 磅房忙碌提示弹窗 --> |
| | | <view class=""> |
| | | <u-modal :show="wsgVisiable" |
| | | title="提示" |
| | | :content="wsgContent" |
| | | @confirm="wsgContentConfirm"></u-modal> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | clearInterval(this.interval); |
| | | }, |
| | | computed: { |
| | | ...mapState(['globalweigh', 'globalinfraredStatus']), |
| | | ...mapState(['globalweigh', 'globalinfraredStatus', 'wsgVisiable', 'wsgContent']), |
| | | name() { |
| | | return uni.getStorageSync('name'); |
| | | }, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changewsgVisiable']), |
| | | init() { |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | |
| | | 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('加载失败'); |
| | | } |
| | |
| | | }&primaryHair=${this.primaryHair}&psrimaryClean=${this.primaryClean}&sceneInOut=${res.data.sceneInOut}&overTmWaixiao=${this.overTmWaixiao}` |
| | | }); |
| | | } else { |
| | | this.$u.toast('未在磅房,请前往磅房后再试!!'); |
| | | this.$u.toast(res.msg ? res.msg : '未在磅房,请前往磅房后再试!!'); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | 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 { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | wsgContentConfirm() { |
| | | this.changewsgVisiable(false) |
| | | } |
| | | } |
| | | }; |
| | | </script> |