diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue index cd4a2765..33b73820 100644 --- a/src/pages/issue/job/issueDetailBatch.vue +++ b/src/pages/issue/job/issueDetailBatch.vue @@ -632,6 +632,8 @@ totalQty =calc.add(totalQty,item.handleQty) if(parseFloat(item.handleQty) parseFloat(item.qty)){ @@ -671,6 +673,7 @@ str3 = str3+",是否提交" this.$refs.comMessage.showQuestionMessage1(str3, 'red', res => { if (res) { + return //防止重复点击 this.$throttle(this.submit, 2000, this)() } else { @@ -678,6 +681,7 @@ } }); }else { + return //防止重复点击 this.$throttle(this.submit, 2000, this)() } diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index 6e80ce4e..d42d2a5b 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -691,12 +691,10 @@ //扫描数量和任务数量相等,直接提交 let str = '' let str1 = '' - var scanCount=0; this.jobContent.allowBiggerQty = "FALSE" this.detailSource.forEach((item) => { item.subList.forEach(cur=>{ if(cur.scaned){ - scanCount++; if(parseFloat(cur.qty)>parseFloat(cur.handleQty)){ str += `物料号【${item.itemCode}】批次【${cur.batch}】扫描数量【${cur.handleQty}】小于任务推荐数量【${cur.qty}】,\n请修改后再提交` } @@ -718,6 +716,8 @@ // return; // } // } + console.log(this.scanCount) + console.log( this.subList.length) if(this.scanCount < this.subList.length){ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { @@ -736,6 +736,7 @@ }); } }else{ + return this.submitJob(); } },