From 50d513773f5f4e976eec0bb6d3422c80a7c261ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Tue, 14 Dec 2021 15:56:53 +0800 Subject: [PATCH] commit --- .../pages/creatProcess/wbsm/step1-5.vue | 543 ++++++++++++++++++ .../pages/creatProcess/wbsm/step1.vue | 91 +-- .../pages/creatProcess/wbsm/step2.vue | 44 +- .../pages/creatProcess/wbsm/step3.vue | 44 +- .../pages/creatProcess/wbsm/step4.vue | 44 +- .../pages/creatProcess/wbsm/step5.vue | 42 +- .../pages/creatProcess/xmpg2/step4.vue | 5 +- .../processCenter/pages/phone/wbsm/step4.vue | 13 + .../processCenter/pages/phone/wbsm/step5.vue | 13 + .../pages/processDetail/index.vue | 5 +- src/router/index.js | 39 ++ 11 files changed, 767 insertions(+), 116 deletions(-) create mode 100644 src/pages/processCenter/pages/creatProcess/wbsm/step1-5.vue create mode 100644 src/pages/processCenter/pages/phone/wbsm/step4.vue create mode 100644 src/pages/processCenter/pages/phone/wbsm/step5.vue diff --git a/src/pages/processCenter/pages/creatProcess/wbsm/step1-5.vue b/src/pages/processCenter/pages/creatProcess/wbsm/step1-5.vue new file mode 100644 index 000000000..1b0d8508a --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/wbsm/step1-5.vue @@ -0,0 +1,543 @@ + + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/wbsm/step1.vue b/src/pages/processCenter/pages/creatProcess/wbsm/step1.vue index 06a8b2058..26f675413 100644 --- a/src/pages/processCenter/pages/creatProcess/wbsm/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/wbsm/step1.vue @@ -61,8 +61,12 @@ @@ -282,18 +286,12 @@ prop="XCXSSRQ" align="center" label="新车型实施日期"> - - + + @@ -357,9 +362,11 @@ export default { deleteDataList: [], drawerTitle: "", //drawer标题 modalshowflag: false, // 选择人员drawer开关 + modalshowflag2: false, standModel: false, //添加标准抽屉 zrIndex: "", nodeList: [], //存放人员信息数组 + nodeList2: [], standOptions: [], //标准类别 standardData:[], pageNo: 1, @@ -519,18 +526,27 @@ export default { this.$set(this.textStatusMap, item.value, item.label); }); }, - // 点击查看 - handlePreview (item) { + // // 点击查看 + // handlePreview (item) { + // let routeUrl = this.$router.resolve({ + // name: 'OtherStandardDetails', + // params: { + // id: item.standId, + // pageType: item.standType + '_STAND' + // } + // }) + // window.open(routeUrl.href, '_blank') + // }, + handlePreview(item) { let routeUrl = this.$router.resolve({ - name: 'OtherStandardDetails', + name: "OtherStandardDetails", params: { - id: item.standId, - pageType: item.standType + '_STAND' + id: item.id, + pageType: "INLAND_STAND" } - }) - window.open(routeUrl.href, '_blank') + }); + window.open(routeUrl.href, "_blank"); }, - handleTabs(name) { this.active = name }, @@ -539,11 +555,14 @@ export default { this.standList = data; }, choiceZRRS(row, index) { - this.drawerTitle = "选择责任人"; - this.nodeList = []; + this.nodeList2 = []; this.zrIndex = index; - this.nodeList.push(row); - this.modalshowflag = true; + if(row.workPeopleId){ + this.nodeList2 = row.workPeopleId.split(","); + }else{ + this.nodeList2.push(row); + } + this.modalshowflag2 = true; }, typeChange(type) { this.standardSearch.standType = type; @@ -603,7 +622,7 @@ export default { }, //查询项目下的标准 getStandData() { - this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", { + this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1", { standType: this.standardSearch.standType, standNumber: this.standardSearch.standNumber, page: this.pageNo, @@ -613,13 +632,8 @@ export default { }, res => { this.standardData = res.data.list; this.standardData.forEach(item => { - if (item.attrInfoMap === null) { - this.$set(item, "ZCCSSRQ", ''); - this.$set(item, "XCXSSRQ", ''); - } else { - this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ); - this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ); - } + this.$set(item, "ZCCSSRQ", item.zccssrq); + this.$set(item, "XCXSSRQ", item.xcxssrq); }) this.totalNo = res.data.count; }, e => { @@ -748,14 +762,25 @@ export default { }else if(this.type === 'president'){ this.roleForm.president = data[0].id; this.roleForm.presidentName = data[0].name; - }else{ - const newRow = JSON.parse(JSON.stringify(this.dataList[this.zrIndex])); - newRow.workPeopleId = data[0].id; - newRow.workPeople = data[0].name + '(' + data[0].institutionName + ')'; - this.$set(this.dataList, this.zrIndex, newRow); } this.modalshowflag = false; }, + checkedRole2(data){ + let idList = ""; + let nameList = ""; + data.forEach(item => { + if (nameList.length) { + nameList += ","; + idList += ","; + } + idList += item.id; + nameList += item.name + '(' + item.institutionName + ')'; + }); + const newRow = JSON.parse(JSON.stringify(this.dataList[this.zrIndex])); + newRow.workPeopleId = idList + newRow.workPeople = nameList + this.$set(this.dataList, this.zrIndex, newRow); + }, } } diff --git a/src/pages/processCenter/pages/creatProcess/wbsm/step2.vue b/src/pages/processCenter/pages/creatProcess/wbsm/step2.vue index 10b839be8..33508b21e 100644 --- a/src/pages/processCenter/pages/creatProcess/wbsm/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/wbsm/step2.vue @@ -60,7 +60,7 @@ - +
{ - if (res.success) { - this.$message.success(res.message); - this.$router.push("/processCenter"); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + let son = { + signFlag: '2', + commentText: this.commentText, + dataList: this.dataList, + roleForm: this.roleForm } - }, e => { - }); + var json = JSON.stringify(son) + 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 => { + }); + } }, //转办按钮 handleTransfer(){ diff --git a/src/pages/processCenter/pages/creatProcess/wbsm/step3.vue b/src/pages/processCenter/pages/creatProcess/wbsm/step3.vue index 74b15c08e..5da498bb2 100644 --- a/src/pages/processCenter/pages/creatProcess/wbsm/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/wbsm/step3.vue @@ -60,7 +60,7 @@
- +
{ - if (res.success) { - this.$message.success(res.message); - this.$router.push("/processCenter"); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + let son = { + signFlag: '2', + commentText: this.commentText, + dataList: this.dataList, + roleForm: this.roleForm } - }, e => { - }); + var json = JSON.stringify(son) + 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 => { + }); + } }, //转办按钮 handleTransfer(){ diff --git a/src/pages/processCenter/pages/creatProcess/wbsm/step4.vue b/src/pages/processCenter/pages/creatProcess/wbsm/step4.vue index ec5ac6e64..7a3433f1b 100644 --- a/src/pages/processCenter/pages/creatProcess/wbsm/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/wbsm/step4.vue @@ -60,7 +60,7 @@
- +
{ - if (res.success) { - this.$message.success(res.message); - this.$router.push("/processCenter"); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + let son = { + signFlag: '2', + commentText: this.commentText, + dataList: this.dataList, + roleForm: this.roleForm } - }, e => { - }); + var json = JSON.stringify(son) + 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 => { + }); + } }, //转办按钮 handleTransfer(){ diff --git a/src/pages/processCenter/pages/creatProcess/wbsm/step5.vue b/src/pages/processCenter/pages/creatProcess/wbsm/step5.vue index 5a6de76a0..fde49c6a6 100644 --- a/src/pages/processCenter/pages/creatProcess/wbsm/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/wbsm/step5.vue @@ -388,26 +388,30 @@ export default { }, //驳回按钮 beforeBack(){ - let son = { - yzFlag: '2', - commentText: this.commentText, - dataList: this.dataList, - roleForm: this.roleForm - } - var json = JSON.stringify(son) - 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"); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + let son = { + yzFlag: '2', + commentText: this.commentText, + dataList: this.dataList, + roleForm: this.roleForm } - }, e => { - }); + var json = JSON.stringify(son) + 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 => { + }); + } }, //转办按钮 handleTransfer(){ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue index 9101f2de9..9c2083c7c 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step4.vue @@ -444,10 +444,9 @@ export default { }, //提交事件 handleSubmit() { + this.peopleFlag = true; this.listForm.dataList.forEach(item => { - if (item.liablePeople !== undefined) { - this.peopleFlag = true; - } else { + if (!item.liablePeople) { this.peopleFlag = false; } }); diff --git a/src/pages/processCenter/pages/phone/wbsm/step4.vue b/src/pages/processCenter/pages/phone/wbsm/step4.vue new file mode 100644 index 000000000..e966bff51 --- /dev/null +++ b/src/pages/processCenter/pages/phone/wbsm/step4.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/pages/processCenter/pages/phone/wbsm/step5.vue b/src/pages/processCenter/pages/phone/wbsm/step5.vue new file mode 100644 index 000000000..60a5fa44d --- /dev/null +++ b/src/pages/processCenter/pages/phone/wbsm/step5.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/pages/processCenter/pages/processDetail/index.vue b/src/pages/processCenter/pages/processDetail/index.vue index 8914299d4..249a08612 100644 --- a/src/pages/processCenter/pages/processDetail/index.vue +++ b/src/pages/processCenter/pages/processDetail/index.vue @@ -264,7 +264,10 @@ export default { }else if(prcType === '10'){ //项目清单确认 this.toProcessDetail('xmqdqrStep1-3',row) - } else if(prcType === '20') { + } else if(prcType === '16'){ + //外部署名 + this.toProcessDetail('wbsmStep1-5',row) + }else if(prcType === '20') { // 入会流程 this.toProcessDetail('bzrhStep6-1',row) } else if(prcType === '21') { diff --git a/src/router/index.js b/src/router/index.js index 535f26f7c..81a29c1ec 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1511,6 +1511,15 @@ const routes = [ title: '外部署名推荐审批流程' } }, + { + path: '/wbsmStep1-5', + name: 'wbsmStep1-5', + component: () => import('@/pages/processCenter/pages/creatProcess/wbsm/step1-5.vue'), + meta: { + requireAuth: true, + title: '外部署名推荐审批流程' + } + }, { path: '/cywbbzzxdStep1', name: 'cywbbzzxdStep1', @@ -2122,6 +2131,36 @@ const routes = [ title: '加入标准化协会信息提报流程' } }, + { + path: '/phoneWbsmStep3', + name: 'phoneWbsmStep3', + component: () => import('@/pages/processCenter/pages/phone/wbsm/step3.vue'), + meta: { + isBoolean: true, + requireAuth: true, + title: '外部署名推荐审批流程' + } + }, + { + path: '/phoneWbsmStep4', + name: 'phoneWbsmStep4', + component: () => import('@/pages/processCenter/pages/phone/wbsm/step4.vue'), + meta: { + isBoolean: true, + requireAuth: true, + title: '外部署名推荐审批流程' + } + }, + { + path: '/phoneWbsmStep5', + name: 'phoneWbsmStep5', + component: () => import('@/pages/processCenter/pages/phone/wbsm/step5.vue'), + meta: { + isBoolean: true, + requireAuth: true, + title: '外部署名推荐审批流程' + } + }, { path: '/phoneWfhxStep5', name: 'phoneWfhxStep5',