From fd2fa09fd9ee2aae6802b0a77709702b82ced809 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Mon, 18 Jul 2022 15:22:12 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=E5=8F=8A=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E6=8C=82=E6=8E=A5=E8=AE=A1=E8=B4=B9=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=8F=AA=E8=83=BD=E9=80=89=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../putOnTheShelf/components/special.vue | 14 +- .../components/addApplication.vue | 566 +++++++++++------- 2 files changed, 349 insertions(+), 231 deletions(-) diff --git a/back/src/views/modules/putOnTheShelf/components/special.vue b/back/src/views/modules/putOnTheShelf/components/special.vue index db1157f0..0333e984 100644 --- a/back/src/views/modules/putOnTheShelf/components/special.vue +++ b/back/src/views/modules/putOnTheShelf/components/special.vue @@ -104,8 +104,17 @@ export default { }) if (flag) { const obj = {} + let sfFlag = false + list.forEach((item) => { if (item.type === 'input2') { + sfFlag = this.data.filter( + (val) => val.type === this.numType + )[0] + if (sfFlag) { + this.$message.warning('已添加过该类型!') + return + } obj[item.field] = item.note1 + (this.numType === '一次性买断' @@ -121,7 +130,10 @@ export default { obj[item.field] = item.note1 } }) - this.data.push(obj) + if (!sfFlag) { + this.data.push(obj) + } + // this.data.push(obj) this.$emit('changeInfoList', { attrType: title, attrValue: JSON.stringify(this.data), diff --git a/front/src/views/personalCenter/components/addApplication.vue b/front/src/views/personalCenter/components/addApplication.vue index 581d5c5b..b334b1bd 100644 --- a/front/src/views/personalCenter/components/addApplication.vue +++ b/front/src/views/personalCenter/components/addApplication.vue @@ -9,38 +9,83 @@
您已成功申请{{ - formName.demandSubject || '' + formName.demandSubject || '' }},请耐心等待审批结果,结果会第一时间通知您!