Browse Source

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

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

2
src/pages/index/index.vue

@ -388,7 +388,7 @@
console.log("包装规格获取失败", res) 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=>{ getSwitchByCode(switchCode).then(res=>{
uni.setStorageSync("switch", res.data) uni.setStorageSync("switch", res.data)

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

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

Loading…
Cancel
Save