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