From ef67138e57db2f7a500a1f1cda4a7f00138b9b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 5 Aug 2021 15:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=84=8F=E8=A7=81=E5=A1=AB?= =?UTF-8?q?=E5=86=99=E6=A1=86=20=20=E5=8E=BB=E6=8E=89=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/xmpg2/step1-1.vue | 17 +++ .../pages/creatProcess/xmpg2/step1.vue | 121 ++++++++++-------- .../pages/creatProcess/xmpg2/step10.vue | 4 - .../pages/creatProcess/xmpg2/step11.vue | 29 ----- .../pages/creatProcess/xmpg2/step12.vue | 4 - .../pages/creatProcess/xmpg2/step2.vue | 4 - .../pages/creatProcess/xmpg2/step3.vue | 19 ++- .../pages/creatProcess/xmpg2/step4.vue | 15 +++ .../pages/creatProcess/xmpg2/step5.vue | 15 +++ .../pages/creatProcess/xmpg2/step6.vue | 15 +++ .../pages/creatProcess/xmpg2/step7.vue | 4 - .../pages/creatProcess/xmpg2/step8.vue | 4 - .../pages/creatProcess/xmpg2/step9.vue | 4 - 13 files changed, 146 insertions(+), 109 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step1-1.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step1-1.vue index ad751c081..db6b832e9 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step1-1.vue @@ -140,6 +140,21 @@ +
+ + +
+ + +
+
+
+
@@ -337,6 +352,7 @@ export default { active: "1", //当前选中的type isSubmit: false, saveLoading: false, + commentText: '', //表单的数据 listForm: { projectNumber: "", //项目编号 @@ -522,6 +538,7 @@ export default { }, //流程提交事件 handleSubmit(){ + this.listForm.commentText = this.commentText; var json = Object.assign(this.listForm, this.roleForm) json.prcCreateUser = this.$store.getters.userInfo.userId; json.prcCreateUserName = this.$store.getters.userInfo.uName; diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue index 30d04e355..2539b5689 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue @@ -140,6 +140,21 @@
+
+ + +
+ + +
+
+
+
@@ -340,7 +355,7 @@ export default { projectNumber: "", //项目编号 projectName: "", //项目名称 dataList: [], //项目下的标准数据 - breakdownList: [], //标准下的分解单数据 + breakdownList: [] //标准下的分解单数据 }, dataList: [], //下面标准的数据 breakdownList: [], //标准下的条款数据 @@ -379,6 +394,7 @@ export default { modalshowflag: false, // drawer开关 drawerTitle: "", //drawer标题 nodeList: [], + commentText: "", projectModel: false, //项目抽屉开关 projectId: "", //项目id 用来查询标准 standId: [], //标准id 用来条款 @@ -457,17 +473,17 @@ export default { this.listForm.dataList.forEach(item => { // 责任部门转换 if (item.zrbm !== null || item.zrbm !== "") { - let k = (item.zrbm || "").split(',') + let k = (item.zrbm || "").split(","); for (let i in this.zrbmOptions) { - for (let m = 0; m< k.length; m++) { + for (let m = 0; m < k.length; m++) { if (this.zrbmOptions[i].value === k[m]) { - k[m] = this.zrbmOptions[i].label + k[m] = this.zrbmOptions[i].label; } - item.zrbm = k.join(',') + item.zrbm = k.join(","); } } } - }) + }); let ids = []; this.dataList.forEach(item => { ids.push(item.standId); @@ -485,7 +501,7 @@ export default { { _this: this }, res => { - this.listForm.breakdownList = res.data + this.listForm.breakdownList = res.data; }); }, //标准的多选框改变 @@ -502,64 +518,65 @@ export default { }, //流程保存事件 - handleSave(){ - this.saveLoading = true - let _formData = new FormData() - _formData.append('id', this.bpnId || '') - _formData.append('createUser', this.$store.getters.userInfo.userId) - _formData.append('createUserName', this.$store.getters.userInfo.userName) - _formData.append('prcType', '6') - _formData.append('json', JSON.stringify({ + handleSave() { + this.saveLoading = true; + let _formData = new FormData(); + _formData.append("id", this.bpnId || ""); + _formData.append("createUser", this.$store.getters.userInfo.userId); + _formData.append("createUserName", this.$store.getters.userInfo.userName); + _formData.append("prcType", "6"); + _formData.append("json", JSON.stringify({ form: this.form, roleForm: this.roleForm, commentText: this.commentText - })) + })); saveTaskFirst(_formData).then(res => { - this.saveLoading = false - this.$message.success('保存成功') - this.bpnId = res.result + this.saveLoading = false; + this.$message.success("保存成功"); + this.bpnId = res.result; }).catch(e => { - this.saveLoading = false - }) + this.saveLoading = false; + }); }, //流程提交事件 - handleSubmit(){ - var json = Object.assign(this.listForm, this.roleForm) - json.prcCreateUser = this.$store.getters.userInfo.userId; - json.prcCreateUserName = this.$store.getters.userInfo.uName; - json.standId = this.listForm.standId; - this.$refs['listForm'].validate((valid) => { + handleSubmit() { + this.listForm.commentText = this.commentText; + var json = Object.assign(this.listForm, this.roleForm); + json.prcCreateUser = this.$store.getters.userInfo.userId; + json.prcCreateUserName = this.$store.getters.userInfo.uName; + json.standId = this.listForm.standId; + this.$refs["listForm"].validate((valid) => { + if (valid) { + this.$refs["roleForm"].validate((valid) => { if (valid) { - this.$refs['roleForm'].validate((valid) => { - if (valid) { - this.isSubmit = true - this.$http.get("lawss/activiti/startProcess", { type: "6" }, { + this.isSubmit = true; + this.$http.get("lawss/activiti/startProcess", { type: "6" }, { + _this: this + }, res => { + if (res.ok) { + this.$http.post("lawss/activiti/completeTask", { + taskIds: res.data, + userId: this.$store.getters.userInfo.userId, + json: JSON.stringify(json) + }, { _this: this }, res => { - if (res.ok) { - this.$http.post("lawss/activiti/completeTask", { - taskIds: res.data, - userId: this.$store.getters.userInfo.userId, - json: JSON.stringify(json) - }, { - _this: this - }, res => { - if (res.success) { - this.$message.success(res.message); - this.$router.push("/processCenter"); - } - this.isSubmit = false - }); + if (res.success) { + this.$message.success(res.message); + this.$router.push("/processCenter"); } + this.isSubmit = false; }); - } else { - return this.$message.warning("请完善人员信息"); } }); } else { - return this.$message.warning("请完善基础信息"); + return this.$message.warning("请完善人员信息"); } }); + } else { + return this.$message.warning("请完善基础信息"); + } + }); }, choiceZRR(type, title, id) { this.nodeList = []; @@ -584,13 +601,13 @@ export default { mounted() { this.getProjectData(); // 查询各下拉框数据 - this.$http.get('sys/dictype/getDicTypeListCode', '', { + this.$http.get("sys/dictype/getDicTypeListCode", "", { _this: this, - loading: 'loading' + loading: "loading" }, res => { - this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.zrbmOptions = res.data.ZRBMCLASS; // 责任部门 }, e => { - }) + }); } }; diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue index dc5411ced..516268297 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step10.vue @@ -431,9 +431,6 @@ export default { }, //提交事件 handleSubmit() { - if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ - this.$message.warning('请填写审批意见') - }else{ this.listForm.bzFlag = "1"; this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -451,7 +448,6 @@ export default { } }, e => { }); - } }, }, computed: { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue index d94aab4b9..f9f964ad9 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step11.vue @@ -275,12 +275,10 @@
@@ -407,34 +405,8 @@ export default { this.listForm.breakdownList = item.breakdownList; }); }, - //驳回事件 - beforeBack() { - if (this.commentText === null || this.commentText === undefined || this.commentText === '') { - this.$message.warning('请填写审批意见') - } else { - this.listForm.bzFlag = "2"; - this.listForm.commentText = this.commentText; - const json = JSON.stringify(this.listForm); - this.$http.post("lawss/activiti/completeTask", { - taskIds: this.taskIds, - userId: this.userId, - json: json - }, { - _this: this - }, res => { - if (res.success) { - this.$message.success(res.message); - this.$router.push("/processCenter"); - } - }, e => { - }); - } - }, //提交事件 handleSubmit() { - if (this.commentText === null || this.commentText === undefined || this.commentText === '') { - this.$message.warning('请填写审批意见') - } else { this.listForm.bzFlag = "1"; this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -451,7 +423,6 @@ export default { } }, e => { }); - } }, }, diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue index 246dab1e3..7daf927fe 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step12.vue @@ -431,9 +431,6 @@ export default { }, //提交事件 handleSubmit() { - if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ - this.$message.warning('请填写审批意见') - }else{ this.listForm.dlFlag = "1"; this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -450,7 +447,6 @@ export default { } }, e => { }); - } }, }, computed: { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step2.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step2.vue index f05bd4925..aa6eded29 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step2.vue @@ -337,9 +337,6 @@ export default { }, //提交事件 handleSubmit() { - if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ - this.$message.warning('审批意见不能为空') - }else{ this.isSubmit = true this.listForm.BZFlag = "1"; this.listForm.commentText = this.commentText; @@ -359,7 +356,6 @@ export default { }, e => { }); } - } }, computed: { listNoDataText() { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step3.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step3.vue index 8a522f912..3975526c7 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step3.vue @@ -106,6 +106,21 @@ +
+ + +
+ + +
+
+
+
@@ -333,9 +348,6 @@ export default { }, //提交事件 handleSubmit() { - if (this.listForm.jgUser == null || this.listForm.jgUser == undefined ) { - this.$message.warning("请选择架构经理"); - } else { this.isSubmit = true this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -353,7 +365,6 @@ export default { this.isSubmit = false }, e => { }); - } }, choiceZRR(scope, type, title, id) { if (scope != null) { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue index b97ace1ac..1b6c15777 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue @@ -112,6 +112,21 @@
+
+ + +
+ + +
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue index f192017ae..abc4b4732 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue @@ -98,6 +98,21 @@
+
+ + +
+ + +
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue index 7b034e7d7..8baf4cbd6 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue @@ -236,6 +236,21 @@
+
+ + +
+ + +
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue index be6930e03..877d12c52 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step7.vue @@ -432,9 +432,6 @@ }, //提交事件 handleSubmit() { - if (this.commentText === null || this.commentText === undefined || this.commentText === '') { - this.$message.warning('请填写审批意见') - } else { this.listForm.ffFlag = "1"; this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -450,7 +447,6 @@ this.$router.push("/processCenter"); } }); - } }, }, computed: { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue index 58a19121c..663a26e34 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step8.vue @@ -431,9 +431,6 @@ export default { }, //提交事件 handleSubmit() { - if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ - this.$message.warning('请填写审批意见') - }else{ this.listForm.jgFlag = "1"; this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -450,7 +447,6 @@ export default { } }, e => { }); - } }, }, computed: { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue index 358573f9d..57dad97d2 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step9.vue @@ -431,9 +431,6 @@ export default { }, //提交事件 handleSubmit() { - if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ - this.$message.warning('请填写审批意见') - }else{ this.listForm.gcFlag = "1"; this.listForm.commentText = this.commentText; const json = JSON.stringify(this.listForm); @@ -450,7 +447,6 @@ export default { } }, e => { }); - } }, }, computed: {