From 1957fcde25c6c24385e50f06e8e5063c2c3845d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Thu, 4 Jul 2024 23:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task/myProcess/editTaskDrawer.vue | 75 ++++++++++--------- .../task/myProcess/initTaskDrawer.vue | 28 ++++--- 2 files changed, 58 insertions(+), 45 deletions(-) diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue index 91179d8b..a9da000d 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue @@ -40,7 +40,11 @@ > --> - {{item.projectName}} + {{ item.projectName }} {{ deptName }} @@ -103,11 +107,7 @@ placeholder="请输入分包单位项目经理" /> - + - + -
+
提交流程 取 消
@@ -197,7 +197,7 @@ export default { projectName: "", files: "", remark: "", - subDeptScope:[], + subDeptScope: [], }, // 表单校验 rules: { @@ -275,10 +275,10 @@ export default { taskOpen: false, daterangeMarksTime: [], fbAptitude: false, - persChangeList1: ['flow_xmglzdl_xmzbdwrybg','flow_xmglzdl_xmjldwrybg'], - persChangeList2: ['flow_xmglzdl_xmjlzjrybg','flow_xmglzdl_xmzbjlrybg'], + persChangeList1: ["flow_xmglzdl_xmzbdwrybg", "flow_xmglzdl_xmjldwrybg"], + persChangeList2: ["flow_xmglzdl_xmjlzjrybg", "flow_xmglzdl_xmzbjlrybg"], persChange1: false, - persChange2: false + persChange2: false, }; }, computed: {}, @@ -295,7 +295,6 @@ export default { return; } }); - }, doCanel() { this.onOpen = false; @@ -303,17 +302,25 @@ export default { show(options) { this.options = options; this.onOpen = true; + this.fbAptitude = false; + this.persChange1 = false; + this.persChange2 = false; this.title = options.procDefName; //初始化流程类型 if (options.procDefKey == "flow_fbzzsp_fbszzsp") { this.fbAptitude = true; - } - if (this.persChangeList1.indexOf(options.flowKey)){ + }else if ( + options.procDefKey == "flow_xmglzdl_xmzbdwrybg" || + options.procDefKey == "flow_xmglzdl_xmjldwrybg" + ) { this.persChange1 = true; - } - if (this.persChangeList2.indexOf(options.flowKey)){ + }else if ( + options.procDefKey == "flow_xmglzdl_xmjlzjrybg" || + options.procDefKey == "flow_xmglzdl_xmzbjlrybg" + ) { this.persChange2 = true; } + console.log("procDefKey==>"+options.procDefKey); this.initFormDate(options.procInsId); flowXmlAndNode({ procInsId: options.procInsId, deployId: options.deployId }).then( (res) => { @@ -346,8 +353,8 @@ export default { const params = { procInsId: procInsId }; findFormDatasByProcInsId(params) .then((res) => { - if(res.data.subDeptScope){ - res.data.subDeptScope = res.data.subDeptScope.split(','); + if (res.data.subDeptScope) { + res.data.subDeptScope = res.data.subDeptScope.split(","); } this.form = res.data; this.deptName = this.options.startDeptName; @@ -378,22 +385,22 @@ export default { this.$refs["form"].validate((valid) => { if (valid) { let fbAptitudeParams = {}; - if(this.fbAptitude){ - if(this.form.subDeptScope.length==0){ + if (this.fbAptitude) { + if (this.form.subDeptScope.length == 0) { this.$modal.msgError("请至少选择一个分包范围!"); return false; - }else{ - fbAptitudeParams={ - subDeptType:this.form.subDeptType, - subDeptScope:this.form.subDeptScope.toString(), - subDeptName:this.form.subDeptName, - subDeptAptitude:this.form.subDeptAptitude, - subDeptChairman:this.form.subDeptChairman, - subDeptSafetyCertificate:this.form.subDeptSafetyCertificate, - subDeptCustodian:this.form.subDeptCustodian, - subDeptCustodianCardId:this.form.subDeptCustodianCardId, - subDeptApproachDate:this.form.subDeptApproachDate - } + } else { + fbAptitudeParams = { + subDeptType: this.form.subDeptType, + subDeptScope: this.form.subDeptScope.toString(), + subDeptName: this.form.subDeptName, + subDeptAptitude: this.form.subDeptAptitude, + subDeptChairman: this.form.subDeptChairman, + subDeptSafetyCertificate: this.form.subDeptSafetyCertificate, + subDeptCustodian: this.form.subDeptCustodian, + subDeptCustodianCardId: this.form.subDeptCustodianCardId, + subDeptApproachDate: this.form.subDeptApproachDate, + }; } } this.loading = true; @@ -403,7 +410,7 @@ export default { files: this.form.files, remark: this.form.remark, INITIATOR: this.form.INITIATOR, - ...fbAptitudeParams + ...fbAptitudeParams, }; complete(this.form).then((res) => { this.$store.dispatch("settingAwaitNum"); diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue index d88a0370..c1918f3e 100644 --- a/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue +++ b/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue @@ -128,16 +128,16 @@ title="请至少上传报审表,营业执照,安全生产许可证,资质证书,人员证书等!缺少相关附件可能被驳回申请。" type="warning" show-icon - /> - + > + - - + "+options.flowKey); const self = this; this.onOpen = true; flowXmlAndNode({ deployId: options.deploymentId }).then((res) => {