| | |
| | | '转出') { |
| | | if (this.weighList.skin == 0) { |
| | | this.temporaryWeighObj.skin = newV; |
| | | this.isweigh = this.temporaryWeighObj.skin > this.weighList.orderSurplus; |
| | | } else { |
| | | this.temporaryWeighObj.hair = newV; |
| | | this.temporaryWeighObj.clean = (this.temporaryWeighObj.hair - this.weighList.skin).toFixed(2); |
| | |
| | | .orderType == '转入') { |
| | | if (this.weighList.hair == 0) { |
| | | this.temporaryWeighObj.hair = newV; |
| | | this.isweigh = this.temporaryWeighObj.hair > this.weighList.orderSurplus; |
| | | } else { |
| | | this.temporaryWeighObj.skin = newV; |
| | | this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed(2); |
| | |
| | | this.weighData.filedId = res.data.filedId; |
| | | this.weighData.coalContactHair = res.data.hairTwo ? res.data.hairTwo : 0; |
| | | this.weighData.coalContactSkin = res.data.skinTwo ? res.data.skinTwo : 0; |
| | | this.outBuy = (this.weighList.orderType.indexOf('销') !== -1) && this.showWeigh.hair > 0; |
| | | // 继续卸货第二次称重就会有,无订单类型限制 |
| | | this.canUnload = this.showWeigh.hair > 0 || this.showWeigh.skin > 0; |
| | | this.outBuy = (this.weighList.orderType.indexOf('销') !== -1) && this.showWeigh.skin > 0; |
| | | // 继续卸货只有外购类型第二次会有 |
| | | this.canUnload = this.weighList.orderType === '外购' && this.showWeigh.hair > 0; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | gateCameraId: this.weighData.gateCameraId, |
| | | equipmentCode: this.weighData.equipmentCode, |
| | | tmCode: this.weighData.tmCode, |
| | | sceneInOut: this.weighData.sceneInOut |
| | | sceneInOut: this.weighData.sceneInOut, |
| | | weigh: this.realTimeWeigh |
| | | }, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('操作成功,即将返回上一页'); |
| | |
| | | gateCameraId: this.weighData.gateCameraId, |
| | | equipmentCode: this.weighData.equipmentCode, |
| | | tmCode: this.weighData.tmCode, |
| | | sceneInOut: this.weighData.sceneInOut |
| | | sceneInOut: this.weighData.sceneInOut, |
| | | weigh: this.realTimeWeigh |
| | | }, 'json').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('操作成功'); |
| | | |
| | | this.$u.toast('操作成功,即将返回上一页'); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | this.$u.toast('操作失败,请稍候重试'); |
| | | } |