diff --git a/src/pages/productReceipt/job/ccProductReceiptDetail.vue b/src/pages/productReceipt/job/ccProductReceiptDetail.vue index b3c5e3e6..52a96f9e 100644 --- a/src/pages/productReceipt/job/ccProductReceiptDetail.vue +++ b/src/pages/productReceipt/job/ccProductReceiptDetail.vue @@ -339,9 +339,12 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } - //校验库位、 - if (!this.checkLocation()) { - return + var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate") + //校验库位 + if(valiDate){ + if (!this.checkLocation()) { + return + } } diff --git a/src/pages/productReceipt/job/fgProductReceiptDetail.vue b/src/pages/productReceipt/job/fgProductReceiptDetail.vue index 52474a1a..9e4331c5 100644 --- a/src/pages/productReceipt/job/fgProductReceiptDetail.vue +++ b/src/pages/productReceipt/job/fgProductReceiptDetail.vue @@ -441,11 +441,14 @@ // this.showErrorMessage("扫描数为0,请先扫描") // return; // } - //校验库位、 - if (!this.checkLocation()) { - return + + var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate") + //校验库位 + if(valiDate){ + if (!this.checkLocation()) { + return + } } - var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate") this.detailSource.forEach(item => { item.subList.forEach(subitem => { if (valiDate) {