diff --git a/src/pages/processCenter/pages/creatProcess/bzpg/step1.vue b/src/pages/processCenter/pages/creatProcess/bzpg/step1.vue index e0cb7145e..e6ec3219a 100644 --- a/src/pages/processCenter/pages/creatProcess/bzpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzpg/step1.vue @@ -445,7 +445,8 @@ { if(!item.distributePerson || !item.projectGroupPeople){ this.$message.warning('请填写完整的人员信息') - }else{ + }else { this.isSubmit = true; - this.listForm.dataList = this.dataList + this.listForm.dataList = this.dataList; this.listForm.commentText = this.commentText; let json = Object.assign(this.listForm, this.roleForm); console.log(json); @@ -837,7 +829,7 @@ export default { this.$http.post("lawss/activiti/startProcessRollBack", { createUser: this.$store.getters.userInfo.userId, createUserName: this.$store.getters.userInfo.userName, - type: '5', + type: "5", json: JSON.stringify({ taskInfo: "选择已拆分标准", form: this.listForm, diff --git a/src/pages/processCenter/pages/creatProcess/bzpg/step3.vue b/src/pages/processCenter/pages/creatProcess/bzpg/step3.vue index 9ead05378..a5a596550 100644 --- a/src/pages/processCenter/pages/creatProcess/bzpg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzpg/step3.vue @@ -1,4 +1,4 @@ - + @@ -341,7 +358,7 @@ import ProcessHeader from "process/components/ProcessHeader"; import ProcessFooter from "process/components/ProcessFooter"; import ProcessTitle from "process/components/ProcessTitle"; -import { changeAssigneeNew, inboundLiaisonDetail } from "api/process"; +import { changeAssigneeNew, inboundLiaisonDetail, saveTaskForPub } from "api/process"; export default { name: "bzpgStep3", @@ -352,7 +369,7 @@ export default { }, data(){ return { - active: '1', + active: "1", //折叠的标志,true为折叠,false为不折叠 foldFormFlag: false, drawerModal: false, @@ -360,33 +377,49 @@ export default { isTransfer: false, isSubmit: false, saveLoading: false, - ProjectModel: false, + projectModel: false, + modalshowflag: false, pageNo: 1, totalNo: 0, pageSizeNo: this.$store.getters.userInfo.configContent, - userId:this.$store.getters.userInfo.userId, + userId: this.$store.getters.userInfo.userId, taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, - commentText: '', - drawerTitle: '', - projectGroup: '', //用来查询项目 + commentText: "", + drawerTitle: "", + projectGroup: "", //用来查询项目 listForm: {}, dataList: [], + projectDataList: [], + breakdownList: [], //标准下的分解单数据 detailData: [], nodeList: [], + nodeList2: [], selectProjectList: [], selectProjectGroupList: [], productData: [], //项目群下的项目 projectStatus: [], //项目状态下拉框 projectSearch: { - projectStatus: "", //项目状态 - }, + projectStatus: "" //项目状态 + } } }, mounted() { - this.getData() - this.processTable() - this.getProductData() + this.getData(); + this.processTable(); + this.getProductData(); + /** + * 获取项目群筛选项的值 + */ + this.$http.post("sarStandProjectLibrary/querySelect", {}, { + _this: this + }, res => { + res.data.statusList.forEach(item => { + if (item) { + this.projectStatus.push(item); //项目状态 + } + }); + }); }, methods: { getData() { @@ -406,22 +439,37 @@ export default { /** * @description: 动态表单读取 */ - getFormFieldList (item) { + getFormFieldList(item) { this.$nextTick(() => { - this.listForm = JSON.parse(JSON.stringify(item)) - this.listForm.prcNum = this.prcNum - this.listForm.prcName = this.prcName - this.listForm['id'] = item.id - this.listForm.dataList = item.dataList - this.dataList = item.dataList - this.projectGroup = item.dataList[0].projectGroup - this.dataList.distributePerson = item.dataList[0].distributePerson - this.listForm.breakdownList = item.breakdownList - }) + this.listForm = JSON.parse(JSON.stringify(item)); + this.listForm.prcNum = this.prcNum; + this.listForm.prcName = this.prcName; + this.listForm["id"] = item.id; + this.projectGroup = item.dataList[0].projectGroup; + this.$http.get('SarStandItems/sar-stand-items/findAllItems', { + ids: item.standId, + type: item.fileType + },{ + _this: this + }, res => { + this.breakdownList = res.data + }) + }); + }, + choiceZRRS(row, type, index) { + this.nodeList2 = []; + this.lsIndex = index; + this.lsType = type; + if (row.unameId) { + this.nodeList2 = row.unameId.split(","); + } else { + this.nodeList2.push(row); + } + this.modalshowflag = true; }, //查询项目群下的项目 - getProductData(){ - this.$http.get('sarStandProjectLibrary/queryProjects',{ + getProductData() { + this.$http.get("sarStandProjectLibrary/queryProjects", { projectGroup: this.projectGroup, current: this.pageNo, PageSize: this.pageSizeNo, @@ -429,9 +477,9 @@ export default { }, { _this: this }, res => { - this.productData = res.data.records - this.totalNo = res.data.count - }) + this.productData = res.data.records; + this.totalNo = res.data.count; + }); }, //查询项目按钮 getProductDataBtn(){ @@ -463,31 +511,85 @@ export default { cancelButtonText: "取消", type: "warning" }).then(() => { - + this.selectProjectGroupList.map(item => { + let index; + index = this.dataList.findIndex(items => { + return items.projectNumber === item.projectNumber; + }); + if (index > -1) { + this.dataList.splice(index, 1); + } + }); + this.selectProjectGroupList = []; + this.$refs.selection.clearSelection(); }).catch(() => { }); } }, - cancelStand(){ - this.projectModel = false + cancelStand() { + this.projectModel = false; }, - okProject(){ - if(this.selectProjectList.length){ - - }else{ - this.$message.warning('请至少选择一条数据进行添加') - } + okProject() { + if (this.selectProjectList.length) { + let addFlag = true; + let projectNumbers = ""; + this.selectProjectList.forEach(item => { + projectNumbers += item.projectNumber; + projectNumbers += ","; + }); + if(this.dataList.length){ + this.dataList.forEach(item => { + if (item.projectNumber === projectNumbers) { + addFlag = false; + } + }); + } + if (addFlag) { + this.projectDataList = []; + let projectNames = "", projectNumbers = ""; + this.selectProjectList.forEach(items => { + projectNames += items.projectName; + projectNames += ","; + projectNumbers += items.projectNumber; + projectNumbers += ","; + }); + this.$set(this.projectDataList, "projectName", projectNames); + this.$set(this.projectDataList, "projectNumber", projectNumbers); + this.$set(this.projectDataList, "managementHostName", this.selectProjectList[0].managementHostName); + this.$set(this.projectDataList, "developmentHostName", this.selectProjectList[0].developmentHostName); + this.$set(this.projectDataList, "categoryName", this.selectProjectList[0].categoryName); + this.$set(this.projectDataList, "projectStatus", this.selectProjectList[0].projectStatus); + this.$set(this.projectDataList, "uname", this.selectProjectList[0].uname); + this.$set(this.projectDataList, "unameId", this.selectProjectList[0].projectManager); + this.dataList.push({ + projectName: this.projectDataList.projectName, + projectNumber: this.projectDataList.projectNumber, + managementHostName: this.projectDataList.managementHostName, + developmentHostName: this.projectDataList.developmentHostName, + categoryName: this.projectDataList.categoryName, + projectStatus: this.projectDataList.projectStatus, + uname: this.projectDataList.uname, + unameId: this.projectDataList.unameId, + }) + } else { + this.$message.warning("请勿重复添加数据"); + } + this.projectModel = false; + this.$refs.projectTable.clearSelection(); + } else { + this.$message.warning("请至少选择一条数据进行添加"); + } }, - selectProject(data){ - this.selectProjectList = data + selectProject(data) { + this.selectProjectList = data; }, - pageChangeNo(page){ - this.pageNo = page - this.getProductData() + pageChangeNo(page) { + this.pageNo = page; + this.getProductData(); }, - pageSizeChangeNo(pageSize){ - this.pageSizeNo = pageSize - this.getProductData() + pageSizeChangeNo(pageSize) { + this.pageSizeNo = pageSize; + this.getProductData(); }, //tab发生变化 handleTabs(name) { @@ -495,7 +597,7 @@ export default { }, //折叠/展开基础信息方法 foldForm() { - this.foldFormFlag = !this.foldFormFlag + this.foldFormFlag = !this.foldFormFlag; }, // 点击查看 handlePreview(item) { @@ -509,28 +611,74 @@ export default { window.open(routeUrl.href, "_blank"); }, //提交 - handleSubmit(){ + handleSubmit() { + if (!this.dataList.length) { + this.$message.warning("请添加项目数据"); + } else if(this.dataList.length > 5) { + this.$message.warning('您最多只能选择五条数据') + }else{ + this.listForm.dataList = this.dataList; + this.listForm.breakdownList = this.breakdownList + this.listForm.commentText = this.commentText; + const json = JSON.stringify(this.listForm); + this.isSubmit = true; + 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"); + } + this.isSubmit = false; + }, e => { + }); + } }, - //驳回 - beforeBack(){ - + //保存 + handleSave() { + this.saveLoading = true; + this.listForm.dataList = this.dataList; + let _formData = new FormData(); + _formData.append("id", this.bpnId || ""); + _formData.append("prcType", "5"); + _formData.append("taskIds", this.taskIds); + _formData.append("json", JSON.stringify({ + form: this.listForm, + commentText: this.commentText + })); + saveTaskForPub(_formData).then(res => { + this.saveLoading = false; + this.$message.success("保存成功"); + this.bpnId = res.result; + }).catch(e => { + this.saveLoading = false; + }); + }, + checkedRole2(data) { + this.dataList[this.lsIndex].unameId = data[0].id; + this.dataList[this.lsIndex].uname = data[0].name; + this.modalshowflag = false; }, //确认转办 - checkedRole (data) { - this.assigneeNewLoading = true + checkedRole(data) { + this.assigneeNewLoading = true; changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id assignee: data[0].id, // 被委托人 userId: this.$store.getters.userInfo.userId, // 委托人 pId: this.$route.query.prcId // 流程实例 }).then(res => { - this.isTransfer = false + this.isTransfer = false; if (res.success) { - this.drawerModal = false - this.$message.success('调整成功') + this.drawerModal = false; + this.$message.success("调整成功"); this.$router.push("/processCenter"); - this.processNum() + this.processNum(); } else { this.$message.warning(res.message) } diff --git a/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue b/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue new file mode 100644 index 000000000..505953b26 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/bzpg/step4.vue @@ -0,0 +1,556 @@ + + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzpg/step5.vue b/src/pages/processCenter/pages/creatProcess/bzpg/step5.vue new file mode 100644 index 000000000..60a5fa44d --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/bzpg/step5.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue index 97723e319..d47164285 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue @@ -94,12 +94,12 @@
生成汇总单 生成上报意见
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue index e30146ceb..ad935450d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue @@ -86,12 +86,12 @@
生成汇总单 生成上报意见
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue index c87546e05..f6c8d9ea3 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue @@ -86,12 +86,12 @@
生成汇总单 生成上报意见
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue index a851a20d5..ef32a0454 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue @@ -86,12 +86,12 @@
生成汇总单 生成上报意见
diff --git a/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue new file mode 100644 index 000000000..72f75e6e7 --- /dev/null +++ b/src/pages/regulatoryRepository/standardForComments/pags/AddFileDetails.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue index 212a98648..92bdf4bd1 100644 --- a/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue +++ b/src/pages/regulatoryRepository/standardForComments/pags/consultationDetails.vue @@ -250,6 +250,7 @@ export default { name: 'consultationDetails', data() { return { + freshClueNum: '', itermsConditionsFlag: false, itermsConditionsTitle: '', options: [], @@ -385,7 +386,7 @@ export default { }, //编辑 selectStandardPro(type, row) { - this.type = type + this.type = type if (type === 'edit') { this.id = row.id this.opiniontitle = '编辑意见内容' @@ -394,16 +395,34 @@ export default { this.opinionContent.oldText = row.oldText this.opinionContent.newText = row.newText this.opinionContent.cause = row.cause + this.isDialog = true } else { - this.id = '' - this.opiniontitle = '新增意见' - this.opinionContent.partCode = '' - this.opinionContent.reason = '' - this.opinionContent.oldText = '' - this.opinionContent.newText = '' - this.opinionContent.cause = '' + localStorage.setItem('freshClueNum', new Date().getTime()) + this.freshClueNum = localStorage.getItem('freshClueNum') || ''; + let routeData = this.$router.resolve({ + name: "AddFileDetails", + query: { + attId: this.fileInfoList[0].attId, + userId: this.$store.getters.userInfo.userId || '', + userName: this.$store.getters.userInfo.userName || '', + deptName: this.$store.getters.userInfo.institutionName || '', + deptId: this.$store.getters.userInfo.institutionId || '', + standId: JSON.parse(this.$route.query.item.files)[0].standId, + fileType: JSON.parse(this.$route.query.item.files)[0].standFileClassify, + ideaId: this.$route.query.item.id, + cid: this.$route.query.item.cid, + } + }); + window.open(routeData.href, '_blank') + // return + // this.id = '' + // this.opiniontitle = '新增意见' + // this.opinionContent.partCode = '' + // this.opinionContent.reason = '' + // this.opinionContent.oldText = '' + // this.opinionContent.newText = '' + // this.opinionContent.cause = '' } - this.isDialog = true }, //删除 deleteStand(id) { @@ -449,8 +468,8 @@ export default { cause: this.opinionContent.cause, userId: this.$store.getters.userInfo.userId || '', userName: this.$store.getters.userInfo.userName || '', - deptName: this.$store.getters.userInfo.orgName || '', - deptId: this.$store.getters.userInfo.orgId || '' + deptName: this.$store.getters.userInfo.institutionName || '', + deptId: this.$store.getters.userInfo.institutionId || '', } if (this.type === 'edit') { form.id = this.id @@ -498,6 +517,11 @@ export default { } }, mounted() { + window.addEventListener("storage", ev => { + if(ev.key === 'freshClueNum'){ + this.getList() + } + }) if (JSON.parse(this.$route.query.item.wkfiles).length) { this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles) } else { @@ -522,7 +546,7 @@ export default { this.getList() this.getIdeaKey() this.getFileInfo() - } + }, } diff --git a/src/router/index.js b/src/router/index.js index 5c112b253..b10d95503 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -547,6 +547,24 @@ const routes = [ title: '标准合规评估流程' } }, + { + path: '/bzpgStep4', + name: 'bzpgStep4', + component: () => import('@/pages/processCenter/pages/creatProcess/bzpg/step4.vue'), + meta: { + requireAuth: true, + title: '标准合规评估流程' + } + }, + { + path: '/bzpgStep5', + name: 'bzpgStep5', + component: () => import('@/pages/processCenter/pages/creatProcess/bzpg/step5.vue'), + meta: { + requireAuth: true, + title: '标准合规评估流程' + } + }, { path: '/xmpgStep1', name: 'xmpgStep1', @@ -3720,6 +3738,19 @@ const routes = [ // menuId: '' } }, + { + path: '/AddFileDetails', + name: 'AddFileDetails', + component: () => + import('@/pages/regulatoryRepository/standardForComments/pags/AddFileDetails'), + meta: { + requireAuth: true, + title: '新增', + parentPath: '/standardForComments', + isBoolean: true, + // menuId: '' + } + }, { path: '/details', name: 'Details',