From 8494e7dc3ba9fc08ee45228a001ac9cf145681b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Sat, 26 Mar 2022 17:05:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E6=B5=81=E7=A8=8B=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=B7=BB=E5=8A=A0=E6=A0=87=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step1.vue | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 75147920a..d2fbca014 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -1450,6 +1450,7 @@ export default { callback() } return { + textList: [], gdType: '', //归档位置的赋值 standTypeModel: 'INLAND', submitType: '', @@ -2651,8 +2652,8 @@ export default { }, // 代替政策编号确定 replaceLawsNumModelBt() { + let subFlag = true let textArr = [] - if (typeof this.value === 'string') { if (this.value) { textArr = this.value.split(',') @@ -2677,7 +2678,23 @@ export default { } else { texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber } - textArr.push(texts) + // textArr.push(texts) + if(this.textList.length < 1){ + textArr.push(texts) + }else{ + this.textList.forEach(item =>{ + if(item !== texts){ + textArr.push(texts) + }else{ + this.$message.warning('请勿重复添加数据') + subFlag = false + return + } + }) + } + if(!subFlag){ + textArr = [] + } textArr = [...new Set(textArr)] this.replaceLawsNumModel = false }) @@ -2722,6 +2739,15 @@ export default { this.getReplaceLawsNumRow() }, selectLaws(type) { + if(type === 'dtbjh'){ + this.textList = this.form.dtbjh.split(',') + }else if(type === 'bfbdtbzh'){ + this.textList = this.form.bfbdtbzh.split(',') + }else if(type === 'cbbh'){ + this.textList = this.form.cbbh.split(',') + }else if(type === 'yybj'){ + this.textList = this.form.yybj.split(',') + } // if (this.standNumFlag === 1) { // this.$refs.selections.selectAll(false) // }