Browse Source

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

lijuncheng0816
wangyufei 4 months ago
parent
commit
908af99949
  1. 2
      src/pages/index/index.vue
  2. 12
      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)

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

@ -86,6 +86,7 @@
goHome,
navigateBack,
getPackingNumberAndBatch,
getSwitchInfoByCode
} from '@/common/basic.js';
import {
@ -340,12 +341,15 @@
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
var valiDate = getSwitchInfoByCode("semiProductReceipCommitValidate")
//
if (!this.checkLocation()) {
return
if(valiDate){
if (!this.checkLocation()) {
return
}
}else{
this.toLocationCode = this.jobToLocationCode
}
//
if (this.scanCount == this.subList.length) {
if (this.checkCount()) {

Loading…
Cancel
Save