| | |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.overallLength" |
| | | v-model="form.outBatchNo" |
| | | disabled |
| | | /> |
| | | </view> |
| | |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.proposedLocation" |
| | | v-model="form.partName" |
| | | disabled |
| | | /> |
| | | </view> |
| | |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.reelNumber" |
| | | v-model="form.partNo" |
| | | disabled |
| | | /> |
| | | </view> |
| | |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.reelWeight" |
| | | v-model="form.grossWeight" |
| | | disabled |
| | | /> |
| | | </view> |
| | |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input |
| | | class="item-one item-two" |
| | | v-model="form.grossWeight" |
| | | v-model="form.tareWeight" |
| | | disabled |
| | | /> |
| | | </view> |
| | |
| | | <text class="item-one">叉车重量</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.outerDiameter" /> |
| | | <u-input class="item-one item-two" v-model="form.forkliftWeight" /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">长度</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.voltage" /> |
| | | <u-input class="item-one item-two" v-model="form.originalLength" disabled /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">盘号</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.speed" /> |
| | | <u-input class="item-one item-two" v-model="form.palletNo" disabled /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | | } |
| | | if (!this.form.voltage) { |
| | | if (!this.form.forkliftWeight) { |
| | | this.$u.toast("请输入叉车重量"); |
| | | this.$refs.uModal.clearLoading(); // 清除加载状态 |
| | | return; |
| | |
| | | // -10kg 以内 |
| | | // 核磅重量-2(新的毛重)皮重(新的毛重-净重)超过 10kg提示生产核查(不能提交) |
| | | // (2).导体 |
| | | // 正磅差:0-3kg可直接提交 |
| | | // 正磅差:3-3kg可直接提交 |
| | | // 超过 3kg及 负磅差提示生产核查(不能提交) |
| | | // (3).导体2.6 |
| | | // 士0.5kg 都可直接提交 |
| | |
| | | //磅差计算:核榜-叉车盘-毛重 |
| | | Number(this.form.h); |
| | | const magnetic = |
| | | Number(this.form.verificationWeight) - Number(this.form.voltage) - Number(this.form.reelWeight); |
| | | Number(this.form.verificationWeight) - Number(this.form.forkliftWeight) - Number(this.form.grossWeight); |
| | | let productType = this.operationTaskList.productType; |
| | | let formList = this.form; |
| | | let self = this; // 保存组件实例引用 |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "磅差为:" + magnetic, |
| | | showCancel: false, |
| | | success: function () { |
| | | switch (this.operationTaskList.productType) { |
| | | case "铜杆": |
| | | if (magnetic > 0 && magnetic < 3) { |
| | | this.verifySubmission(this.form); |
| | | switch (productType) { |
| | | case "TG01": |
| | | if (magnetic >= 0 && magnetic <= 3) { |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 4) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 2; |
| | | this.form.netWeight = Number(this.form.netWeight) + 2; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 2; |
| | | formList.netWeight = Number(formList.netWeight) + 2; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 5) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 3; |
| | | this.form.netWeight = Number(this.form.netWeight) + 3; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 3; |
| | | formList.netWeight = Number(formList.netWeight) + 3; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 6) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 4; |
| | | this.form.netWeight = Number(this.form.netWeight) + 4; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 4; |
| | | formList.netWeight = Number(formList.netWeight) + 4; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 7) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 5; |
| | | this.form.netWeight = Number(this.form.netWeight) + 5; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 5; |
| | | formList.netWeight = Number(formList.netWeight) + 5; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 8) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 6; |
| | | this.form.netWeight = Number(this.form.netWeight) + 6; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 6; |
| | | formList.netWeight = Number(formList.netWeight) + 6; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 9) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 7; |
| | | this.form.netWeight = Number(this.form.netWeight) + 7; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 7; |
| | | formList.netWeight = Number(formList.netWeight) + 7; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic == 10) { |
| | | this.form.grossWeight = Number(this.form.grossWeight) + 8; |
| | | this.form.netWeight = Number(this.form.netWeight) + 8; |
| | | this.$u.toast( |
| | | formList.grossWeight = Number(formList.grossWeight) + 8; |
| | | formList.netWeight = Number(formList.netWeight) + 8; |
| | | self.$u.toast( |
| | | "更改合格证毛重为:" + |
| | | this.form.grossWeight + |
| | | formList.grossWeight + |
| | | "净重为:" + |
| | | this.form.netWeight |
| | | formList.netWeight |
| | | ); |
| | | this.verifySubmission(this.form); |
| | | self.verifySubmission(formList); |
| | | } |
| | | if (magnetic > 10) { |
| | | this.$u.toast("生产核查"); |
| | | self.$u.toast('磅差:' + magnetic + ',请车间核查'); |
| | | } |
| | | break; |
| | | // case "导体": |