From 42f62dc0cd72c219d3fa55608c892e92a563614b 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, 31 Mar 2022 14:55:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BF=E7=AD=96=E5=BE=81=E6=B1=82=E6=84=8F?= =?UTF-8?q?=E8=A7=81=E6=B5=81=E7=A8=8B=E4=BF=9D=E5=AD=98=E5=8F=8A=E8=8D=89?= =?UTF-8?q?=E7=A8=BF=E5=8A=9E=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/components/ProcessMixin.vue | 8 ++-- .../pages/creatProcess/zczqyj/step1.vue | 48 +++++++++++-------- .../tabComponents/taskDraft/index.vue | 10 ++++ 3 files changed, 42 insertions(+), 24 deletions(-) diff --git a/src/pages/processCenter/pages/components/ProcessMixin.vue b/src/pages/processCenter/pages/components/ProcessMixin.vue index 8a5330dfe..4ca8a60fe 100644 --- a/src/pages/processCenter/pages/components/ProcessMixin.vue +++ b/src/pages/processCenter/pages/components/ProcessMixin.vue @@ -48,6 +48,10 @@ export default { label: "项目合规评估流程-项目", value: "6" }, + { + label: "政策征求意见流程", + value: "laws2" + }, { label: "未符合项整改流程", value: "8" @@ -80,10 +84,6 @@ export default { label: "参与外部标准制修订信息提报流程", value: "14" }, - { - label: "政策征求意见流程", - value: "laws2" - }, { label: "重点认证标准/政策合规性项目审查流程", value: "laws3" diff --git a/src/pages/processCenter/pages/creatProcess/zczqyj/step1.vue b/src/pages/processCenter/pages/creatProcess/zczqyj/step1.vue index 7d74ea179..46d713d54 100644 --- a/src/pages/processCenter/pages/creatProcess/zczqyj/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/zczqyj/step1.vue @@ -183,10 +183,10 @@ @submit="handleSubmit" > - + { + let mes = JSON.parse(res.mes); + this.form = mes.form + this.roleForm = mes.roleForm + }); + }, handleProcessStandardNext(status) { switch (status) { // 新增 case 1: - this.selectedList = [] this.standardCheckedList = [] this.standardDrawer = false this.verifySarStandard = true @@ -456,13 +472,16 @@ export default { break // 带入 case 2: - if (this.standardCheckedList.length === 1) { + if(!this.standardCheckedList.length){ + this.$message.warning('请至少选择一条政策信息进行带入') + }else if(this.standardCheckedList.length > 1){ + this.$message.warning('您只能选择一条政策信息进行带入') + }else{ this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, { _this: this }, res => { if (res && res.data) { const bringData = res.data - const json = Object.assign(bringData, bringData.attrInfoMap); this.form = JSON.parse(JSON.stringify(json)) this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : [] @@ -488,16 +507,10 @@ export default { } console.log("res", res); }) - - } else if (this.standardCheckedList.length > 1) { - this.$message.warning('最多可以带入一条政策信息') - } else { - this.$message.warning('请选择要带入的政策信息') } break // 取消 case 3: - this.selectedList = [] this.standardCheckedList = [] this.standardDrawer = false break @@ -523,10 +536,6 @@ export default { window.open(routeUrl.href, '_blank') }, standSelectChange(data) { - this.selectedList = [] - for (let i = 0; i < data.length; i++) { - this.selectedList.push(data[i].id) - } this.standardCheckedList = data }, //清空搜索条件 @@ -611,20 +620,19 @@ export default { handleSave() { this.saveLoading = true; let _formData = new FormData(); - _formData.append("id", this.bpnId || ""); + this.form.commentText = this.commentText + this.form.filesId = this.addFjList _formData.append("createUser", this.$store.getters.userInfo.userId); _formData.append("createUserName", this.$store.getters.userInfo.userName); _formData.append("prcType", "12"); _formData.append("json", JSON.stringify({ - taskInfo: "人确认", - form: this.infoForm, + form: this.form, roleForm: this.roleForm, commentText: this.commentText })); saveTaskFirst(_formData).then(res => { this.saveLoading = false; this.$message.success("保存成功"); - this.bpnId = res.result; }).catch(e => { this.saveLoading = false; }); diff --git a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue index 0d369eb39..522e7161c 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue @@ -724,6 +724,16 @@ export default { } }) break + case '12': + this.$router.push({ + name: 'zczqyjStep1', + query: { + type: '12', + processName: '政策征求意见流程', + bpnId: id + } + }) + break case '17': this.$router.push({ name: 'zcrhStep1-1',