diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue index df6ab80f..346ed891 100644 --- a/src/pages/issue/job/issueDetailBatch.vue +++ b/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 => {