Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into intex

intex_online20250220
lijuncheng 1 week ago
parent
commit
9d86241acb
  1. 9
      src/mycomponents/scan/winScanPackAndLocationNoShow.vue
  2. 20
      src/pages/issueSupplies/job/issueDetailBatch.vue

9
src/mycomponents/scan/winScanPackAndLocationNoShow.vue

@ -507,9 +507,12 @@
}, },
packGetFocus() { packGetFocus() {
if (this.$refs.comscan) { setTimeout(()=>{
this.$refs.comscan.getfocus(); if (this.$refs.comscan) {
} this.$refs.comscan.getfocus();
}
},300)
}, },
packLoseFocus() { packLoseFocus() {

20
src/pages/issueSupplies/job/issueDetailBatch.vue

@ -244,7 +244,7 @@
this.showErrorMessage("物料【" + itemCode + "】已经扫描") this.showErrorMessage("物料【" + itemCode + "】已经扫描")
return return
} }
if(qty>result.balance.qty){ if(detail.qty>result.balance.qty){
this.showErrorMessage("物料【" + itemCode + "】库存不足") this.showErrorMessage("物料【" + itemCode + "】库存不足")
return return
} }
@ -269,10 +269,6 @@
}, },
submitJob() { submitJob() {
uni.showLoading({
title: "提交中....",
mask: true
});
// var params = this.setParams() // var params = this.setParams()
issueJobEopSubmit(this.detailSource).then(res => { issueJobEopSubmit(this.detailSource).then(res => {
uni.hideLoading() uni.hideLoading()
@ -387,11 +383,11 @@
return return
} }
let index = 0 let index = 0
uni.showLoading({
title: "提交中....",
mask: true
});
await this.recursion(index) await this.recursion(index)
if(this.str1){
console.log(this.str1)
}
}, },
async recursion(index){ async recursion(index){
let filters = [] let filters = []
@ -413,7 +409,7 @@
await getBalanceByFilter(params).then(res => { await getBalanceByFilter(params).then(res => {
const balance = res.data.list[0] const balance = res.data.list[0]
if(this.detailSource.subList[index].qty>balance.qty){ if(this.detailSource.subList[index].qty>balance.qty){
this.str1 += "物料【" + itemCode + "】、" this.str1 += "物料【" + this.detailSource.subList[index].itemCode + "】、"
} }
index++; index++;
if(index < this.detailSource.subList.length){ if(index < this.detailSource.subList.length){
@ -421,7 +417,8 @@
}else{ }else{
if(this.str1){ if(this.str1){
this.str1 = this.str1.substring(0,this.str1.length - 1) this.str1 = this.str1.substring(0,this.str1.length - 1)
this.showErrorMessage(`${str1}库存不足`) this.showErrorMessage(`${this.str1}库存不足`)
uni.hideLoading()
}else{ }else{
this.submitJob() this.submitJob()
} }
@ -480,6 +477,7 @@
}, },
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopupForJob(this.jobContent); this.$refs.scanPopup.openScanPopupForJob(this.jobContent);
this.scanPopupGetFocus();
}, },
closeScanPopup() { closeScanPopup() {

Loading…
Cancel
Save