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 || '' }},请耐心等待审批结果,结果会第一时间通知您!