diff --git a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue index a73609cd6..1db90460b 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue @@ -345,7 +345,7 @@

费用管理部门

- +
@@ -425,6 +425,12 @@ :nodeList="nodeList" @checkedRole="drawerCheck" /> + 0) { + this.nodeList = id.split(',') + } this.type = type this.drawerTitle = title this.roleShowflag = true }, + choiceFEE(type, title, id) { + this.nodeList = [] + this.nodeList = JSON.parse(JSON.stringify(id.split(','))) + this.drawerTitle = title + this.roleShowflagFEE = true + }, drawerCheck(data) { var idList = '' var nameList = '' @@ -786,6 +801,21 @@ export default { } this.roleShowflag = false }, + drawerCheckFEE(data) { + var idList = '' + var nameList = '' + data.forEach(item => { + if (nameList.length > 0) { + nameList += ',' + idList += ',' + } + idList += item.id; + nameList += item.name; + }); + this.roleForm.feeUser = nameList + this.roleForm.feeUserId = idList + this.roleShowflag = false + }, // 流程阶段人选择 choiceZRROne(type, title, id) { diff --git a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step6.vue b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step6.vue index db88f7917..53dee04f2 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step6.vue @@ -393,6 +393,7 @@ export default { let json = { passFlag: '0', rh_pageData: this.rh_pageData, + commentText: this.textarea, roleList: this.roleForm } if (this.taskInfo === '标准法规部主管领导审核') { diff --git a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue index 41961537d..c20e48566 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue @@ -273,7 +273,7 @@

管理推进部

- +
@@ -346,6 +346,12 @@ :nodeList="nodeListOne" @checkedRole="drawerCheckOne" /> + 0) { + this.nodeListOne = id.split(',') + } + this.drawerTitleOne = title + this.roleShowflagFEE = true + }, + drawerCheckFEE(data) { + var idList = '' + var nameList = '' + data.forEach(item => { + if (nameList.length > 0) { + nameList += ',' + idList += ',' + } + idList += item.id; + nameList += item.name; + }); + this.roleForm.feeUser = nameList + this.roleForm.feeUserId = idList + this.roleShowflag = false + }, drawerCheckOne(data) { this.unqualidiedData.forEach(item => { item.engineer = data[0].name diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step1.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step1.vue index d06f9abee..1461b4d12 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step1.vue @@ -50,7 +50,7 @@
+ @click.native="choiceDirector('directorUser', '选择标准法规部部长', roleForm.directorUser)">
@@ -73,6 +73,13 @@ @checkedRole="checkedRole" :nodeList="nodeList" >
+ 0) { @@ -165,6 +180,7 @@ export default { } else if (this.type === "directorUser") { this.roleForm.directorUser = data[0].id; this.roleForm.directorUserName = data[0].name; + this.modalshowflagDirector = false } this.modalshowflag = false; }, diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step2.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step2.vue index 9e3def10d..e97cc8920 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step2.vue @@ -50,7 +50,7 @@
+ @click.native="choiceZRRS('workPeople', '选择责任工程师', roleForm.workPeople)">
@@ -88,7 +88,6 @@ :nodeList="nodeList" >
0) { + if (this.roleForm.workPeople && this.roleForm.workPeople.length > 0) { this.nodeList2 = this.roleForm.workPeople.split(","); } this.modalshowflag2 = true; diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue index f73a17fe1..5142edd81 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue @@ -692,14 +692,19 @@ export default { }); }, handleSubmit() { + let isValid = true if (this.participantsData.length < 1) { this.$message.warning("项目信息不能为空"); } else { this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { + if (item.projectNumber === undefined || item.projectNumber === '') { this.$message.warning("请完善项目信息"); + isValid = false } }); + if (!isValid){ + return + } this.wbbzform.commentText = this.commentStep; let json = { participantsData: this.participantsData, @@ -723,6 +728,7 @@ export default { this.isSubmit = false }); } else { + this.isSubmit = false return this.$message.warning("请完善基础信息"); } }); diff --git a/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue b/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue index 571142ff9..e06c84a7b 100644 --- a/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue @@ -548,18 +548,16 @@ export default { parList.forEach(items => { if(items.name === item.workPeople){ this.$message.warning('请勿重复添加参与人') - return - }else{ + throw new Error('请勿重复添加参与人') } }) }) - }else{ - this.participantsData = data - this.participantsData.forEach(item => { + } + this.participantsData[this.selectedId] = data[0] + this.participantsData.forEach(item => { this.$set(item, "workPeople", item.name) }); - this.participantsData = JSON.parse(JSON.stringify(this.participantsData)); - } + this.participantsData = JSON.parse(JSON.stringify(this.participantsData)); }, handleTabs(type) { @@ -618,6 +616,33 @@ export default { //流程提交 handleSubmit() { this.isSubmit = true + let isValid1 = true + let isValid2 = true + this.participantsData.forEach(item => { + if (Array.isArray(item) && item.length === 0) { + this.isSubmit = false + isValid1 = false + }else if (typeof item === 'object') { + if (!item.accounts || !item.duties || !item.email || !item.passwords) { + this.isSubmit = false + isValid1 = false + } + } + }) + this.associationData.forEach(item => { + if (!item.contactPerson || !item.mailbox || !item.telephone) { + this.isSubmit = false + isValid2 = false + } + }) + if (!isValid1) { + this.$message.warning('请完善参与人信息') + return + } + if (!isValid2) { + this.$message.warning('请完善协会信息') + return + } this.wbbzform.dlFlag = '1' this.wbbzform.comityOptionsOne = this.comityOptionsOne this.wbbzform.comityOptionsTwo = this.comityOptionsTwo @@ -698,7 +723,30 @@ export default { }, //批量删除协会信息 deleteSociety(){ - + if(this.selectList2.length < 1){ + this.$message.warning('请选择一条数据进行删除') + }else{ + this.$confirm('您确认删除这些数据?', '提示', { + confirmButtonText: "确认", + confirmButtonClass: "common-button-primary", + cancelButtonText: "取消", + type: "warning" + }).then(() => { + let exits = []; + this.selectList2.map(item => { + let index; + index = this.associationData.findIndex(items => { + return items.account === item; + }); + if (index > -1) { + this.associationData.splice(index, 1); + } + exits.push(item); + }); + this.selectList2 = []; + }).catch(() => { + }); + } }, // 删除上传的文件 delFileInfo(file, fileList) { diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue index 9bf111c7a..6313ad720 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1-2.vue @@ -12,11 +12,11 @@
@@ -27,49 +27,49 @@