Browse Source

PDA采购收货任务执行,是否打印的开关

hella_online_20240829
wangyufei 3 months ago
parent
commit
1976767453
  1. 2
      src/pages/index/index.vue
  2. 25
      src/pages/purchaseReceipt/job/receiptDetail.vue

2
src/pages/index/index.vue

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

25
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -73,7 +73,8 @@
getCurrDateTime,
getPackingNumberAndBatch,
compareAsc,
navigateBack
navigateBack,
getSwitchInfoByCode
} from '@/common/basic.js';
import {
@ -134,7 +135,8 @@
isAllReceived: false,
operation: '',
scanedPackingNumber: '',
status:''
status:'',
switchCode:''
};
},
@ -144,6 +146,9 @@
this.scanedPackingNumber = option.scaned || '';
this.operation = option.operation;
this.status = option.status;
this.switchCode = "purchasereceiptPrintPDA"
},
onShow(){
@ -472,8 +477,15 @@
this.managementList = res.list;
var params = this.setParams()
purchaseReceiptJobSubmit(params).then(res => {
if (res.data) {
// this.showCommitSuccessMessage("<br><br><br><br>" + res.data)
let isCheckPrint = getSwitchInfoByCode(this.switchCode)
if(!isCheckPrint){
uni.hideLoading()
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录<br>" + res.data.number)
}else{
uni.showLoading({
title: "提交成功,将跳转到打印页面",
mask: true
@ -525,6 +537,10 @@
})
}, 2000)
}
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
@ -678,8 +694,9 @@
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
// navigateBack(1)
navigateBack(1)
})
},
}

Loading…
Cancel
Save