Browse Source

HL-5359 在开关表中增加开关:semiProductReceipCommitValidate,在预生产完工收货任务提交时根据开关校验是否要扫描目标库位,如果不扫描目标库位取任务中的目标库位,参考装配任务中的fgProductReceipCommitValidate开关

lijuncheng0816
wangyufei 4 months ago
parent
commit
908af99949
  1. 2
      src/pages/index/index.vue
  2. 20
      src/pages/productReceipt/job/productReceiptDetail.vue

2
src/pages/index/index.vue

@ -388,7 +388,7 @@
console.log("包装规格获取失败", res)
})
var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated";
var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated";
getSwitchByCode(switchCode).then(res=>{
uni.setStorageSync("switch", res.data)

20
src/pages/productReceipt/job/productReceiptDetail.vue

@ -85,7 +85,8 @@
import {
goHome,
navigateBack,
getPackingNumberAndBatch,
getPackingNumberAndBatch,
getSwitchInfoByCode
} from '@/common/basic.js';
import {
@ -334,18 +335,21 @@
});
},
commit() {
commit() {
this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
var valiDate = getSwitchInfoByCode("semiProductReceipCommitValidate")
//
if(valiDate){
if (!this.checkLocation()) {
return
}
}else{
this.toLocationCode = this.jobToLocationCode
}
//
if (!this.checkLocation()) {
return
}
//
if (this.scanCount == this.subList.length) {
if (this.checkCount()) {

Loading…
Cancel
Save