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) // }