| | |
| | | ); |
| | | console.log("差异字段:", diff); |
| | | console.log("是否有差异:", Object.keys(diff).length > 0); |
| | | if (this.registerInfo.locationNo !== this.submitList.locationNo) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "扫描库位号与系统数据不一致", |
| | | showCancel: true, |
| | | success: function (res) {}, |
| | | }); |
| | | return; |
| | | if (this.registerInfo.locationNo) { |
| | | // 输入了库位号:校验输入值与系统数据是否一致 |
| | | if (this.registerInfo.locationNo !== this.submitList.locationNo) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "扫描库位号与系统数据不一致", |
| | | showCancel: true, |
| | | success: function (res) {}, |
| | | }); |
| | | return; |
| | | } |
| | | } else { |
| | | // 未输入库位号:校验系统库位是否属于成品库位 |
| | | const finishedGoodsLocations = ["CD01", "CT01", "CY01", "ZF01"]; |
| | | if (!finishedGoodsLocations.includes(this.submitList.locationNo)) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "库位号不属于成品库位(CD01、CT01、CY01、ZF01)", |
| | | showCancel: true, |
| | | success: function (res) {}, |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | if (Object.keys(diff).length > 0) { |
| | | if (diff.partNo) { |