| | |
| | | <u-input class="item-one item-two" v-model="form.reelNumber" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">盘重</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.reelWeight" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">盘重</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.reelWeight" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">毛重</text> |
| | |
| | | <text class="item-one">净重</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.netWeight" disabled /> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.netWeight" |
| | | disabled |
| | | /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">废料</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.waste" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | return { |
| | | show: false, |
| | | form: {}, |
| | | loading: false |
| | | loading: false, |
| | | }; |
| | | }, |
| | | watch: { |
| | | 'form.grossWeight'(val) { |
| | | if (val === '') { |
| | | this.form.netWeight = ''; |
| | | "form.grossWeight"(val) { |
| | | if (val === "") { |
| | | this.form.netWeight = ""; |
| | | } else if (this.form.reelWeight) { |
| | | this.form.netWeight = (parseFloat(val) - parseFloat(this.form.reelWeight)); |
| | | this.form.netWeight = |
| | | parseFloat(val) - parseFloat(this.form.reelWeight); |
| | | } |
| | | }, |
| | | 'form.reelWeight'(val) { |
| | | "form.reelWeight"(val) { |
| | | if (this.form.grossWeight && val) { |
| | | this.form.netWeight = (parseFloat(this.form.grossWeight) - parseFloat(val)); |
| | | this.form.netWeight = |
| | | parseFloat(this.form.grossWeight) - parseFloat(val); |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | confirm() { |
| | | if (this.loading) return; |
| | | if (!this.form.outerDiameter) { |
| | | this.$u.toast("请输入成品外径测量值"); |
| | | // if (!this.form.outerDiameter) { |
| | | // this.$u.toast("请输入成品外径测量值"); |
| | | // this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | // return; |
| | | // } |
| | | // if (!this.form.voltage) { |
| | | // this.$u.toast("请输入退火电压"); |
| | | // this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | // return; |
| | | // } |
| | | // if (!this.form.speed) { |
| | | // this.$u.toast("请输入转速"); |
| | | // this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | // return; |
| | | // } |
| | | // if (!this.form.pressure) { |
| | | // this.$u.toast("请输入外部气压"); |
| | | // this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | // return; |
| | | // } |
| | | // if (!this.form.productionSpeed) { |
| | | // this.$u.toast("请输入生产速度"); |
| | | // this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | // return; |
| | | // } |
| | | if (!this.form.outBatchNo) { |
| | | this.$u.toast("请输入批号"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | if (!this.form.voltage) { |
| | | this.$u.toast("请输入退火电压"); |
| | | if (Number(this.form.netWeight) == 0) { |
| | | this.$u.toast("净重不为0"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | if (!this.form.speed) { |
| | | this.$u.toast("请输入转速"); |
| | | if (!this.form.waste) { |
| | | this.$u.toast("请输入废料"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | if (!this.form.pressure) { |
| | | this.$u.toast("请输入外部气压"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | if (!this.form.productionSpeed) { |
| | | this.$u.toast("请输入生产速度"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | if (!this.form.outBatchNo) { |
| | | this.$u.toast("请输入批号"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | this.operationTaskList.operationTaskId = this.operationTaskList.id; |
| | | this.form.operationTaskId = this.operationTaskList.id; |
| | | this.form.status = this.operationTaskList.status; |