From 1a4ada19f93322d94db898f3904b68503dc22c4a Mon Sep 17 00:00:00 2001 From: liuyp Date: Wed, 3 Jul 2024 16:21:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E5=8F=B7+?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=B1=BB=E5=9E=8B=E7=9A=84=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emisWaybillProblemInfo/problemEntry.vue | 24 +++++- .../registrationProblemInquiry.vue | 76 ++++++++++++------- 2 files changed, 71 insertions(+), 29 deletions(-) diff --git a/src/views/emis/emisWaybillProblemInfo/problemEntry.vue b/src/views/emis/emisWaybillProblemInfo/problemEntry.vue index 5f9c05dc..23dbf478 100644 --- a/src/views/emis/emisWaybillProblemInfo/problemEntry.vue +++ b/src/views/emis/emisWaybillProblemInfo/problemEntry.vue @@ -368,6 +368,14 @@ export default { // this.getWaybill(this.form.billCode) // this.loading = true; + for(let i = 0; i < this.emisWaybillList.length; i++){ + if(this.emisWaybillList[i].billCode == this.form.billCode && this.emisWaybillList[i].problemId == this.form.problemId){ + this.$message.error("重复扫描"); + this.form.billCode = ""; + return; + } + } + let res=await getWaybillDetail(this.form.billCode); // this.loading = false; if(res.code != 200){ @@ -476,7 +484,6 @@ export default { this.$message.error("请填写问题原因"); return; } - debugger; this.tempRecord.notifySiteCode = this.form.notifySiteCode; this.tempRecord.notifySiteName = this.form.notifySiteName; this.tempRecord.problemTypeName=this.form.problemType; @@ -641,7 +648,20 @@ export default { // }); this.loading = true; for(let bc=0;bc (item.billCode == bcList[bc] && item.problemId == this.form.problemId)); + if(exitlist.length > 0){ + this.$message.error("单号:"+ bcList[bc] + ", 已存在"); + continue; + }else{ + await this.addToList(bcList[bc]); + } } this.loading = false; this.openBatch=false; diff --git a/src/views/emis/emisWaybillProblemInfo/registrationProblemInquiry.vue b/src/views/emis/emisWaybillProblemInfo/registrationProblemInquiry.vue index 15350079..59ddf3fc 100644 --- a/src/views/emis/emisWaybillProblemInfo/registrationProblemInquiry.vue +++ b/src/views/emis/emisWaybillProblemInfo/registrationProblemInquiry.vue @@ -83,6 +83,15 @@ @click="getList" >查询 + + - + @@ -202,7 +212,7 @@