Browse Source

YT-634发料任务,扫描数量大于库存数量,没有提示,应不能大于库存数量

intex_online20241111
zhang_li 3 weeks ago
parent
commit
0ccfa31daa
  1. 20
      src/pages/issue/job/issueDetailBatch.vue

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

@ -473,13 +473,15 @@
const isTrue = params.subList.some(item=>{
return item.recordList.some(cur=>cur.scaned) == true
})
if(!isTrue){
uni.hideLoading()
this.showErrorMessage("请扫描您需要提交的发料任务")
return
}
// return
console.log("提交参数", params);
return
issueJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
@ -588,6 +590,7 @@
let str1=""
var totalQty =0;
var taskQty =0;
console.log(877,this.detailSource)
this.detailSource.forEach(detail => {
detail.subList.forEach(item => {
if(item.scaned){
@ -603,15 +606,18 @@
})
})
if(str){
str = '任务明细未全部完成,是否提交?\n' + str
}
if(str1){
this.$refs.comMessage.showQuestionMessage1(str1, 'red', res => {
})
this.$refs.comMessage.showMessage(str1, res => {
if (res) {
this.afterCloseMessage()
}
});
return
}
if(str){
str = '任务明细未全部完成,是否提交?\n' + str
}
if(totalQty!=taskQty){
str ="扫描数量["+totalQty+"]与任务数量不一致["+taskQty+"],是否提交"
this.$refs.comMessage.showQuestionMessage1(str, 'red', res => {

Loading…
Cancel
Save