| | |
| | | <view class="suffix">{{ weighList.orderSurplus ||"" }}</view> |
| | | <text style="color: #ff6363;font-weight: bold;font-size: 26rpx;" |
| | | class="error-tip" |
| | | v-show="orderSurplusLess">* 订单余量不足</text> |
| | | v-show="orderSurplusLess&&!isSpecial">* 订单余量不足</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | afterEvacuationStatus: null, //放空后提煤单状态状态为21时提示‘等待磅房确认’ |
| | | afterEvacuationText: '', |
| | | TwoEvacuationLoading: false, |
| | | addAndSubtractCoalLoading: false |
| | | addAndSubtractCoalLoading: false, |
| | | isSpecial: null //1 是特殊 0不是特殊 |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | this.temporaryWeighObj.clean = x.minus(y).toNumber().toFixed(2) |
| | | // this.temporaryWeighObj.clean = (this.temporaryWeighObj.hair - this.weighList.skin).toFixed( |
| | | // 2); |
| | | this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this |
| | | this.isweigh = (this.temporaryWeighObj.clean > this.weighList.orderSurplus || this |
| | | .temporaryWeighObj |
| | | .clean < 0; |
| | | .clean < 0) && !this.isSpecial |
| | | this.orderSurplusLess = this.temporaryWeighObj.clean > this.weighList.orderSurplus |
| | | // this.mergeStateShow = this.weighList.source !== 0 && this.orderSurplusLess |
| | | } |
| | |
| | | this.temporaryWeighObj.clean = x.minus(y).toNumber().toFixed(2) |
| | | // this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed( |
| | | // 2); |
| | | this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this |
| | | this.isweigh = (this.temporaryWeighObj.clean > this.weighList.orderSurplus || this |
| | | .temporaryWeighObj |
| | | .clean < 0; |
| | | .clean < 0) && !this.isSpecial |
| | | this.orderSurplusLess = this.temporaryWeighObj.clean > this.weighList.orderSurplus |
| | | // this.mergeStateShow = this.weighList.source !== 0 && this.orderSurplusLess |
| | | } |
| | |
| | | }, |
| | | sideline() { |
| | | return this.weighList.orderType == '内购' || this.weighList.orderType == '转入'; |
| | | }, |
| | | isNeedOrigin() { |
| | | return uni.getStorageSync('isNeedOrigin') |
| | | } |
| | | }, |
| | | |
| | |
| | | if (res.code == 0) { |
| | | uni.hideLoading() |
| | | this.weighList = res.data; |
| | | this.isSpecial = res.data.isSpecial |
| | | this.weighData.deptId = res.data.deptId; |
| | | this.weighData.tmId = res.data.id; |
| | | this.weighData.carNo = res.data.carNo; |
| | |
| | | skinAbnormal() { |
| | | this.$reqPost('skinAbnormal', { sceneId: this.weighData.sceneId, tmId: this.weighData.tmId }, 'params') |
| | | }, |
| | | // mergeStateChange(e) { |
| | | // if (e.length !== 0) { |
| | | // this.weighData.isMerge = 1 |
| | | // this.MergeState = true |
| | | // this.isweigh = false |
| | | // this.orderSurplusLess = false |
| | | // } else { |
| | | // this.weighData.isMerge = 0 |
| | | // this.MergeState = false |
| | | // this.isweigh = true |
| | | // this.orderSurplusLess = true |
| | | // } |
| | | // }, |
| | | confirmWeighConfirm() { |
| | | this.changeconfirmWeighVisiable(false) |
| | | this.isConfirmWeighLoading = false |