| | |
| | | <!-- .外购订单,不出现返回加减吨的按钮 --> |
| | | <u-button type="primary" |
| | | text="确定称重" |
| | | :disabled="realTimeWeigh == 0 || globalinfraredStatus || isweigh ||globalWarning" |
| | | :disabled="realTimeWeigh == 0 || globalinfraredStatus || isweigh ||globalWarning || weighList.isReWeigh == 1" |
| | | :loading="isConfirmWeighLoading" |
| | | loadingText="确认" |
| | | @click="confirmWeigh"></u-button> |
| | |
| | | :loading="UnloadingAgainLoading" |
| | | loadingText="确认" |
| | | :disabled="isweigh||realTimeWeigh == 0" |
| | | v-if='canUnload && !isJixuxiehuo'></u-button> |
| | | v-if='canUnload && isJixuxiehuo'></u-button> |
| | | <!-- 放空 --> |
| | | <u-button type="primary" |
| | | text="放空" |
| | |
| | | ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning', 'globalisconnect', 'globalisUploadimg', |
| | | 'globalisLogin', 'socketTask','is_open_socket' |
| | | ]), |
| | | ...mapGetters(['yuanFaList']), |
| | | token() { |
| | | return uni.getStorageSync('token'); |
| | | }, |
| | |
| | | } |
| | | }, |
| | | isJixuxiehuo() { //是否显示继续卸货按钮 |
| | | console.log(this.yuanFaList,'this.yuanFaList====是否显示继续卸货') |
| | | console.log(this.$store.getters.yuanFaList,'yuanFaList====getters') |
| | | console.log(this.weighList?.tmTaskCoalItems,'this.weighList?.tmTaskCoalItems') |
| | | if(this.weighList?.tmTaskCoalItems && this.weighList?.tmTaskCoalItems.length > 0 && this.yuanFaList && this.yuanFaList.length > 0) { |
| | | return this.weighList?.tmTaskCoalItems.length == this.yuanFaList.length |
| | | if(this.weighList?.tmTaskCoalItems && this.weighList?.tmTaskCoalItems.length > 0) { |
| | | return this.weighList?.tmTaskCoalItems.length > 0 |
| | | }else { |
| | | return false |
| | | } |
| | |
| | | this.outBuy = (this.weighList.orderType.indexOf('销') !== -1) && this.showWeigh.skin > 0; |
| | | // 继续卸货只有外购类型第二次会有 |
| | | this.canUnload = this.weighList.orderType === '外购' && this.showWeigh.hair > 0; |
| | | console.log(this.canUnload,'this.canUnload====') |
| | | } |
| | | }); |
| | | }, |
| | |
| | | carNo: this.weighData.carNo, |
| | | tmId: this.weighData.tmId, |
| | | filedId: this.weighData.filedId, |
| | | tmId: this.weighData.tmId, |
| | | gateCameraId: this.weighData.gateCameraId, |
| | | equipmentCode: this.weighData.equipmentCode, |
| | | tmCode: this.weighData.tmCode, |
| | |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | this.$u.toast('操作失败,请稍候重试'); |
| | | this.$u.toast(res.msg); |
| | | } |
| | | }) |
| | | }, |