From 32bdb021820325f128a87ee76c15c41b207ac0d7 Mon Sep 17 00:00:00 2001 From: Jaunty <15613469426@163.com> Date: Wed, 7 Jul 2021 17:40:49 +0800 Subject: [PATCH 01/15] =?UTF-8?q?=E7=82=B9=E5=87=BB=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=BB=A3=E5=8A=9E=E6=A0=87=E9=A2=98=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E7=9B=B8=E5=BA=94=E5=8A=9E=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home1/components/todoList/index.vue | 122 +++++++++++++++++- 1 file changed, 120 insertions(+), 2 deletions(-) diff --git a/src/pages/home1/components/todoList/index.vue b/src/pages/home1/components/todoList/index.vue index fbe177ea9..c0ffaa12a 100644 --- a/src/pages/home1/components/todoList/index.vue +++ b/src/pages/home1/components/todoList/index.vue @@ -7,7 +7,7 @@ @@ -48,7 +48,125 @@ export default { }, toPage() { this.$router.push(this.path) - } + }, + dealWith (row) { // 办理 + // this.setHandleInfo(JSON.stringify(row)) + const prcType = row.prcType + switch(prcType) { + case '1': + if (row.taskInfo === '标准法规业务经理审批') { + this.$router.push({ + name: 'bzrkStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '责任人会签'){ + this.$router.push({ + name: 'bzrkStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '申请人修订'){ + this.$router.push({ + name: 'bzrkStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + case '2': + if (row.taskInfo === '责任对接人选择责任人') { + this.$router.push({ + name: 'bzdyStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '责任人上传调研结果') { + this.$router.push({ + name: 'bzdyStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break; + //标准清单更新/发布流程 + case'4' : + if (row.taskInfo === '进行会签,填写意见') { + this.$router.push({ + name: 'bzqdfbStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '根据会签意见修订') { + this.$router.push({ + name: 'bzqdfbStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '业务经理审批') { + this.$router.push({ + name: 'bzqdfbStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break; + //项目合规评估流程 + case '5' : + if(row.taskInfo === ''){ + this.$router.push({ + name: '', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + + } + }, }, } From 1a0242fea671d45902c30c5054cf97e179bfb4d4 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, 8 Jul 2021 14:41:49 +0800 Subject: [PATCH 02/15] commit --- src/assets/styles/scroll.less | 2 +- .../pages/creatProcess/bzqdfb/step1.vue | 488 ++++++---- .../pages/creatProcess/bzqdfb/step2.vue | 14 +- .../pages/creatProcess/bzqdfb/step3.vue | 200 ++-- .../pages/creatProcess/bzqdfb/step4.vue | 12 +- .../pages/creatProcess/xmpg/step1.vue | 694 ++++++++++++++ .../processCenter/pages/newProcess/index.vue | 5 + .../pages/addEdit.vue | 3 +- .../pages/otherAddEit.vue | 885 ++++-------------- src/router/index.js | 9 + 10 files changed, 1342 insertions(+), 970 deletions(-) create mode 100644 src/pages/processCenter/pages/creatProcess/xmpg/step1.vue diff --git a/src/assets/styles/scroll.less b/src/assets/styles/scroll.less index 96695f989..d8105b39e 100644 --- a/src/assets/styles/scroll.less +++ b/src/assets/styles/scroll.less @@ -20,7 +20,7 @@ box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2) inset; } .el-table__fixed { - height:auto !important; // 让固定列的高自适应,且设置!important覆盖ele-ui的默认样式 + //height:auto !important; // 让固定列的高自适应,且设置!important覆盖ele-ui的默认样式 bottom:17px; // 固定列默认设置了定位, position: absolute;top: 0;left: 0;只需要再设置一下bottom的值,让固定列和父元素的底部出现距离即可 position: absolute; top: 0; diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 29e7bb6c0..d228e91d0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -7,7 +7,7 @@
基础信息
-
审批历史
+
人员信息
@@ -15,7 +15,9 @@ @@ -51,9 +53,9 @@ clearable > - + - + @@ -94,8 +96,9 @@ @@ -110,8 +113,11 @@ width="180px" label="标准号">
-
+
- + -

填写会签意见

+

会签人

- +
- +

标准/政策法规工程师

- +
@@ -193,7 +199,8 @@

业务经理

- +
@@ -455,7 +462,6 @@ @pageSizeChange="pageSizeChange" />
-
+ - + @@ -582,43 +603,53 @@ export default { }, data() { return { + standList: [], //新添加的标准 modalshowflag: false, // drawer开关 - drawerTitle: '', //drawer标题 + drawerTitle: "", //drawer标题 nodeList: [], defaultProps: { - children: 'children', - label: 'name' + children: "children", + label: "name" }, roleForm: { - startUserName: this.$store.getters.userInfo.account, + startUserName: this.$store.getters.userInfo.userName, startUser: this.$store.getters.userInfo.id, - dockUser: '', - responUserList: '', - ministerUser: '', - directorUser: '', - presidentUser: '', - dockUserName: '', - responUserListName: '', - ministerUserName: '', - directorUserName: '', - presidentUserName: '' + dockUser: "", + responUserList: "", + ministerUser: "", + directorUser: "", + presidentUser: "", + dockUserName: "", + responUserListName: "", + ministerUserName: "", + directorUserName: "", + presidentUserName: "" + }, + formRules: { + listType: [ + { required: true, message: "请选择清单类型", trigger: "blur" } + ], + listName: [ + { required: true, message: "请填写清单名称", trigger: "change" } + ] }, roleFormRules: { - dockUserName: [ - { required: true, message: '请选择会签责任人', trigger: 'blur' }, - ], + // dockUserName: [ + // { required: true, message: "请选择会签责任人", trigger: "blur" } + // ], ministerUserName: [ - { required: true, message: '请选择修订责任人', trigger: 'blur' }, + { required: true, message: "请选择修订责任人", trigger: "blur" } ], directorUserName: [ - { required: true, message: '请选择审批责任人', trigger: 'blur' }, - ], + { required: true, message: "请选择审批责任人", trigger: "blur" } + ] }, dataList: [],//清单里的标准数据 sarAccessListDatas: [], //国家地区清单表格 - uploadFileListPath: 'api/att/attFile/upload', // 上传的地址 + uploadFileListPath: "api/att/attFile/upload", // 上传的地址 fileInfoList: [], // 上传的附件 standardData: [], //添加标准数据 + standardData1: [], //添加标准数据 ListModel: false, //选择清单抽屉状态 standModel: false, // 选择标准抽屉状态 active: "1", @@ -633,15 +664,18 @@ export default { page: 1, total: 0, pageSize: this.$store.getters.userInfo.configContent, + pageNo: 1, + totalNo: 0, + pageSizeNo: this.$store.getters.userInfo.configContent, listForm: { listType: "", //区分是哪个清单 listName: "", //清单名称 applyRegion: "", //适用区域 descriptionList: "", //清单说明 - enclosure: "", //附件 + fileId: "", //附件 standId: "", //选择的清单的id signFlag: "1", //是否会签 1为会签 2为不会签 - inforlist:"" , //用来存放标准列表的标准id + inforlist: "", //用来存放标准列表的标准id dataList: [{ code: "", //标准号 standName: "", //标准名称 @@ -663,24 +697,24 @@ export default { }; }, methods: { - saveUserInfo () { - if (this.type === 'dockUser') { - this.roleForm.dockUser = this.roleRow.id - this.roleForm.dockUserName = this.roleRow.name - } else if (this.type === 'ministerUser') { - this.roleForm.ministerUser = this.roleRow.id - this.roleForm.ministerUserName = this.roleRow.name - } else if (this.type === 'directorUser') { - this.roleForm.directorUser = this.roleRow.id - this.roleForm.directorUserName = this.roleRow.name - } else if (this.type === 'presidentUser') { - this.roleForm.presidentUser = this.roleRow.id - this.roleForm.presidentUserName = this.roleRow.name + saveUserInfo() { + if (this.type === "dockUser") { + this.roleForm.dockUser = this.roleRow.id; + this.roleForm.dockUserName = this.roleRow.name; + } else if (this.type === "ministerUser") { + this.roleForm.ministerUser = this.roleRow.id; + this.roleForm.ministerUserName = this.roleRow.name; + } else if (this.type === "directorUser") { + this.roleForm.directorUser = this.roleRow.id; + this.roleForm.directorUserName = this.roleRow.name; + } else if (this.type === "presidentUser") { + this.roleForm.presidentUser = this.roleRow.id; + this.roleForm.presidentUserName = this.roleRow.name; } - this.modalshowflag = false + this.modalshowflag = false; }, - cancleUserInfo () { - this.modalshowflag = false + cancleUserInfo() { + this.modalshowflag = false; }, //tab发生变化 handleTabs(name) { @@ -689,21 +723,21 @@ export default { choiceShow() { this.ListModel = true; }, - drawerCheck (data) { - // var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); - // if(getlist.length == 1) { - // this.roleRow = getlist[0] - // }else { - // this.$refs.tree.setCheckedKeys([data.id]); - // this.roleRow = this.$refs.tree.getCheckedNodes()[0] - // } + drawerCheck(data) { + var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); + if (getlist.length == 1) { + this.roleRow = getlist[0]; + } else { + this.$refs.tree.setCheckedKeys([data.id]); + this.roleRow = this.$refs.tree.getCheckedNodes()[0]; + } }, //判断当前是否会签 - selectSign (type) { - if(type ==='1'){ - this.listForm.signFlag = 1 - }else if(type == '2'){ - this.listForm.signFlag = 2 + selectSign(type) { + if (type === "1") { + this.listForm.signFlag = 1; + } else if (type == "2") { + this.listForm.signFlag = 2; } }, // //判断当前选中的是哪个清单 @@ -746,13 +780,13 @@ export default { }); } }, - //点击新增事件 + //点击添加事件 addList() { this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", "", { _this: this }, res => { - console.log(res); this.standardData = res.data.list; + this.totalNo = res.data.pageCount }, e => { }); this.standModel = true; @@ -786,62 +820,74 @@ export default { }, //保存事件 handleSave() { - this.saveLoading = true - let _formData = new FormData() - _formData.append('createUser', this.$store.getters.userInfo.userId) - _formData.append('createUserName', this.$store.getters.userInfo.uName) - _formData.append('prcType', this.$route.query.type) - _formData.append('json', JSON.stringify({ + this.saveLoading = true; + let _formData = new FormData(); + _formData.append("createUser", this.$store.getters.userInfo.userId); + _formData.append("createUserName", this.$store.getters.userInfo.uName); + _formData.append("prcType", this.$route.query.type); + _formData.append("json", JSON.stringify({ prcForm: this.prcForm, sarAccessInfoList: this.sarAccessInfoList, sarAccessInfoListADMIN: this.sarAccessInfoListADMIN, bzqdForm: this.bzqdForm, listInfo: this.listInfo, id: this.id - })) + })); saveTaskFirst(_formData).then(res => { - this.saveLoading = false - this.$message.success('保存成功') + this.saveLoading = false; + this.$message.success("保存成功"); }).catch(e => { - this.saveLoading = false - }) + this.saveLoading = false; + }); }, //提交事件 handleSubmit() { - let json = this.listForm - json.zrUserId = this.$store.getters.userInfo.userId - json.jlUserId = this.$store.getters.userInfo.userId - json.applyUpdUserId = this.$store.getters.userInfo.userId - json.approvalOpinion = '' - json.prcCreateUser = this.$store.getters.userInfo.userId - json.prcCreateUserName = this.$store.getters.userInfo.account - json.standName = this.listForm.listName - json.standId = this.listForm.standId - this.$http.get('lawss/activiti/startProcess' , {type: '4'}, { - _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') - } - }) - } - }) + let json = this.listForm; + json.zrUserId = this.$store.getters.userInfo.userId; + json.jlUserId = this.$store.getters.userInfo.userId; + json.applyUpdUserId = this.$store.getters.userInfo.userId; + json.approvalOpinion = ""; + json.prcCreateUser = this.$store.getters.userInfo.userId; + json.prcCreateUserName = this.$store.getters.userInfo.account; + json.standName = this.listForm.listName; + json.standId = this.listForm.standId; + this.$refs["qdfbForm"].validate((valid) => { + if (valid) { + this.$refs["Form"].validate((valid) => { + if (valid) { + this.$http.get("lawss/activiti/startProcess", { type: "4" }, { + _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"); + } + }); + } + }); + } else { + return this.$message.warning("请完善人员信息"); + } + }); + } else { + return this.$message.warning("请完善基础信息"); + } + }); }, // 删除上传的文件 - delFileInfo (file, fileList) { + delFileInfo(file, fileList) { // this.fileInfoList = fileList }, // 上传文件成功回调 - uploadBackSuccess (res, file, fileList) { + uploadBackSuccess(res, file, fileList) { // if (res.ok) { // this.fileInfoList = fileList // this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id @@ -852,13 +898,41 @@ export default { // } }, //上传之前的钩子 - beforeUpload () { + beforeUpload() { }, - //选择标准取消事件 + //选择清单取消事件 closeDrawer() { this.ListModel = false; }, + //添加标准取消事件 + cancelStand() { + this.standModel = false; + }, + //添加标准确定事件 + okStand() { + let _this = this; + if (this.standList.length < 1) { + _this.$message.warning("请选择需要添加进清单的数据"); + } else { + _this.standList.map(item => { + let newStand = false; + for (let itemKey of _this.dataList) { + if (item.id == itemKey.id) { + newStand = true; + break; + } + } + if (newStand) { + _this.$message.warning("请勿重复添加数据"); + } else { + _this.dataList.push(item); + } + }); + this.standardData = [] + _this.standModel = false; + } + }, //选择清单确定事件 OkDrawer() { if (this.selectedList.length === 1) { @@ -870,27 +944,28 @@ export default { for (let i = 0; i < this.selectedList.length; i++) { bringData.push(deposit.get(this.selectedList[i])); } - this.listForm.standId = bringData[0].id + this.listForm.standId = bringData[0].id; this.listForm.listName = bringData[0].detailedListName; this.listForm.applyRegion = bringData[0].applicationScope; this.listForm.descriptionList = bringData[0].remark; - this.listForm.enclosure = bringData[0].detailedListName; + this.listForm.fileId = bringData[0].fileId; this.ListModel = false; - this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {id: bringData[0].id}, { + this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { id: bringData[0].id }, { _this: this }, res => { - this.dataList = res.data - this.listForm.dataList = res.data - let formId = "" - this.dataList.forEach(item => { - if(this.dataList.length !== 0){ - formId += ',' - formId += item.id - } - }) - this.listForm.inforlist = formId + if(res.data==null){ + res.data=[] + } + this.dataList = res.data; + console.log(res.data); + this.listForm.dataList = res.data; + let formId = [] + this.dataList.map(item => { + formId.push(item.id) + }); + this.listForm.inforlist = formId.join(','); }, e => { - }) + }); } else if (this.selectedList.length > 1) { this.$message.warning("只能选择一条数据进行带入"); } else { @@ -911,34 +986,45 @@ export default { this.selectList.push(data[i].id); } }, - selectThree() { + //添加标准select的改变 + selectThree(data) { + this.standList = data; }, - choiceZRR (type, title, id) { - this.nodeList = [] - this.nodeList.push(id) - this.type = type - this.drawerTitle = title - this.modalshowflag = true + choiceZRR(type, title, id) { + this.nodeList = []; + this.nodeList.push(id); + this.type = type; + this.drawerTitle = title; + this.modalshowflag = true; }, - getTree () { - // this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - // this.treeData = res.data - // }) + getTree() { + this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => { + this.treeData = res.data; + }); }, pageChange(page) { this.page = page; - this.searchData(); + this.selectionList(); }, pageSizeChange(pageSize) { this.pageSize = this.$store.getters.userInfo.configContent; - this.searchData(); - } + this.selectionList(); + }, + pageChangeNo(page){ + this.page = page + this.addList() + }, + pageSizeChangeNo(pageSize){ + this.pageSizeNo = this.$store.getters.userInfo.configContent; + this.addList() + + }, }, computed: {}, mounted() { - this.selectionList() + this.selectionList(); this.selectSign(); - this.getTree() + this.getTree(); for (let i = 0; i < this.dataList.length; i++) { this.standMap.set(this.dataList[i].id, this.dataList[i]); } diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue index 1ed5b4e83..f6de56f6f 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue @@ -53,11 +53,16 @@ clearable > - + + + @@ -352,7 +357,6 @@ export default { */ getFormFieldList (item) { this.$nextTick(() => { - console.log(item); this.listForm = JSON.parse(JSON.stringify(item)) this.listForm.prcNum = this.prcNum this.listForm.prcName = this.prcName diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue index 819a98232..f98995dff 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue @@ -51,9 +51,9 @@ clearable > - + @@ -215,62 +215,75 @@ size="900px" custom-class="demo-drawer" > - +
+
+ - - - - - - - - - - - - - - - - - - - + @selection-change="selectThree" + > + + + + + + + + + + + + + + + + +
+ +
+
+ { this.standardData = res.data.list; + this.totalNo = res.data.pageCount }, e => { }); this.standModel = true; }, + //添加标准select的改变 + selectThree(data) { + this.standList = data; + }, + //添加标准取消事件 + cancelStand() { + this.standModel = false; + }, + //添加标准确定事件 + okStand() { + let _this = this; + if (this.standList.length < 1) { + _this.$message.warning("请选择需要添加进清单的数据"); + } else { + _this.standList.map(item => { + let newStand = false; + for (let itemKey of _this.dataList) { + if (item.id == itemKey.id) { + newStand = true; + break; + } + } + if (newStand) { + _this.$message.warning("请勿重复添加数据"); + } else { + _this.dataList.push(item); + } + }); + this.standardData = [] + _this.standModel = false; + } + }, // 点击批量删除事件 deleteList() { if (this.selectList.length < 1) { @@ -407,18 +457,18 @@ export default { }, // 删除上传的文件 delFileInfo (file, fileList) { - // this.fileInfoList = fileList + this.fileInfoList = fileList }, // 上传文件成功回调 uploadBackSuccess (res, file, fileList) { - // if (res.ok) { - // this.fileInfoList = fileList - // this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id - // this.$message.success('上传成功') - // } else { - // this.$message.error(res.message) - // fileList.pop() - // } + if (res.ok) { + this.fileInfoList = fileList + this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id + this.$message.success('上传成功') + } else { + this.$message.error(res.message) + fileList.pop() + } }, //上传之前的钩子 beforeUpload () { @@ -492,9 +542,6 @@ export default { for (let i = 0; i < data.length; i++) { this.selectList.push(data[i].id); } - }, - selectThree() { - }, pageChange(page) { this.page = page; @@ -503,7 +550,16 @@ export default { pageSizeChange(pageSize) { this.pageSize = this.$store.getters.userInfo.configContent; this.searchData(); - } + }, + pageChangeNo(page){ + this.page = page + this.addList() + }, + pageSizeChangeNo(pageSize){ + this.pageSizeNo = this.$store.getters.userInfo.configContent; + this.addList() + + }, }, computed: { listNoDataText () { diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue index c8d40e32f..559444354 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue @@ -53,11 +53,17 @@ clearable > - + + + diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue new file mode 100644 index 000000000..f7c7bfcd4 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -0,0 +1,694 @@ + + + + + + + diff --git a/src/pages/processCenter/pages/newProcess/index.vue b/src/pages/processCenter/pages/newProcess/index.vue index 8f32c18a9..1d695f7e8 100644 --- a/src/pages/processCenter/pages/newProcess/index.vue +++ b/src/pages/processCenter/pages/newProcess/index.vue @@ -10,6 +10,7 @@
标准需求(翻译)申请流程
标准发放申请流程
标准清单发布/更新流程
+
项目合规评估流程
@@ -84,6 +85,10 @@ export default { }) break case '7': + //项目评估流程 + this.$router.push({ + name:'xmpgStep1' + }) break case '8': break diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index c3ca39306..5be78956f 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -315,6 +315,7 @@ >删除
+ @@ -285,22 +195,6 @@ export default { uploadFileList: [], // 责任部门 zNodesSItem: [], - - - roleForm: { - startUserName: this.$store.getters.userInfo.userName, - startUser: this.$store.getters.userInfo.userId, - }, - roleFormRules: { - }, - nodeList: [], - drawerTitle: '', //drawer标题 - modalshowflag: false, // drawer开关 - treeData: [], // 人员数据 - defaultProps: { - children: 'children', - label: 'name' - }, } }, components: { @@ -341,50 +235,6 @@ export default { // 提交按钮 handleSubmit() {}, - // 获取流程节点数据 - getTree () { - this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - this.treeData = res.data - }) - }, - // 流程阶段负责人选择 - choiceZRR (type, title, id) { - this.nodeList = [] - this.nodeList.push(id) - this.type = type - this.drawerTitle = title - this.modalshowflag = true - }, - drawerCheck (data) { - var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); - if(getlist.length == 1) { - this.roleRow = getlist[0] - }else { - this.$refs.tree.setCheckedKeys([data.id]); - this.roleRow = this.$refs.tree.getCheckedNodes()[0] - } - }, - // 流程节点负责人抽屉保存按钮 - saveUserInfo () { - if (this.type === 'dockUser') { - this.roleForm.dockUser = this.roleRow.id - this.roleForm.dockUserName = this.roleRow.name - } else if (this.type === 'ministerUser') { - this.roleForm.ministerUser = this.roleRow.id - this.roleForm.ministerUserName = this.roleRow.name - } else if (this.type === 'directorUser') { - this.roleForm.directorUser = this.roleRow.id - this.roleForm.directorUserName = this.roleRow.name - } else if (this.type === 'presidentUser') { - this.roleForm.presidentUser = this.roleRow.id - this.roleForm.presidentUserName = this.roleRow.name - } - this.modalshowflag = false - }, - // 流程节点负责人抽屉取消按钮 - cancleUserInfo () { - this.modalshowflag = false - }, //未整改项抽屉中的查询按钮 getTableByPage() { }, @@ -450,19 +300,6 @@ export default { justify-content: space-between; height: calc(~'100% - 103px'); overflow: auto; - .tableTitle { - margin-bottom: 10px; - height: 30px; - line-height: 30px; - position: relative; - font-size: 13px; - font-weight: bold; - .tableButton { - position: absolute; - right: 0; - top: 0; - } - } } } diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue index 6b4411df1..c157cb998 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue @@ -6,7 +6,6 @@
基础信息
-
流程信息
@@ -15,16 +14,20 @@ - + - + @@ -35,6 +38,7 @@ :value="false" >
-
-
- - - - - -

流程发起人

-
- - -
-
-
-
- - - -

标准法规工程师

-
- - - -
-
-
-
- - - -

分发责任人

-
- - -
-
-
-
- - - -

负责人

-
- - -
-
-
-
- - - -

分发责任人

-
- - -
-
-
-
-
-
-
-
- - - - -
@@ -259,34 +169,9 @@ export default { myLoading: false, // 责任部门 zNodesSItem: [], - unqualidiedData: [{ - standId: '', - productName: '', - itemsNum: '', - itemsName: '', - planCloseTime: '', - responsibleUnit: '', - dutyEngineer: '' - }], - selectedList: [], //未整改项的选择框 - roleForm: { - startUserName: this.$store.getters.userInfo.userName, - startUser: this.$store.getters.userInfo.userId, - }, - roleFormRules: { - }, // 驳回弹窗状态 backDialog: false, - - nodeList: [], - drawerTitle: '', //drawer标题 - modalshowflag: false, // drawer开关 - treeData: [], // 人员数据 - defaultProps: { - children: 'children', - label: 'name' - }, } }, components: { @@ -297,80 +182,13 @@ export default { created() { }, methods: { - getList() { - this.myLoading.loadData = true - this.$http.get('sarStandUnqualified/sar-stand-unqualified', { - ...this.nonConformitySearch, - current: this.pageNo, - size: this.$store.getters.userInfo.configContent - }, { - _this: this - }, res => { - this.myLoading.loadData = false - this.nonList = res.data.records - this.total = res.data.total - }, e => { - this.myLoading.loadData = false - }) - }, - // 批准俺妞妞操作 - handleBack() { - this.backDialog = true - }, - handleSuccess() {}, + handleTabs(name) { this.active = name }, - // 保存按钮 - handleSave() {}, // 提交按钮 handleSubmit() {}, - - // 获取流程节点数据 - getTree () { - this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - this.treeData = res.data - }) - }, - // 流程阶段负责人选择 - choiceZRR (type, title, id) { - this.nodeList = [] - this.nodeList.push(id) - this.type = type - this.drawerTitle = title - this.modalshowflag = true - }, - drawerCheck (data) { - var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); - if(getlist.length == 1) { - this.roleRow = getlist[0] - }else { - this.$refs.tree.setCheckedKeys([data.id]); - this.roleRow = this.$refs.tree.getCheckedNodes()[0] - } - }, - // 流程节点负责人抽屉保存按钮 - saveUserInfo () { - if (this.type === 'dockUser') { - this.roleForm.dockUser = this.roleRow.id - this.roleForm.dockUserName = this.roleRow.name - } else if (this.type === 'ministerUser') { - this.roleForm.ministerUser = this.roleRow.id - this.roleForm.ministerUserName = this.roleRow.name - } else if (this.type === 'directorUser') { - this.roleForm.directorUser = this.roleRow.id - this.roleForm.directorUserName = this.roleRow.name - } else if (this.type === 'presidentUser') { - this.roleForm.presidentUser = this.roleRow.id - this.roleForm.presidentUserName = this.roleRow.name - } - this.modalshowflag = false - }, - // 流程节点负责人抽屉取消按钮 - cancleUserInfo () { - this.modalshowflag = false - }, //未整改项抽屉中的查询按钮 getTableByPage() { }, @@ -436,19 +254,6 @@ export default { justify-content: space-between; height: calc(~'100% - 103px'); overflow: auto; - .tableTitle { - margin-bottom: 10px; - height: 30px; - line-height: 30px; - position: relative; - font-size: 13px; - font-weight: bold; - .tableButton { - position: absolute; - right: 0; - top: 0; - } - } } } diff --git a/src/pages/processCenter/pages/creatProcess/zqyj/step1.vue b/src/pages/processCenter/pages/creatProcess/zqyj/step1.vue deleted file mode 100644 index 041e1ceb1..000000000 --- a/src/pages/processCenter/pages/creatProcess/zqyj/step1.vue +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - diff --git a/src/pages/processCenter/pages/newProcess/index.vue b/src/pages/processCenter/pages/newProcess/index.vue index b9d8407a2..1aadf2757 100644 --- a/src/pages/processCenter/pages/newProcess/index.vue +++ b/src/pages/processCenter/pages/newProcess/index.vue @@ -11,7 +11,7 @@
标准发放申请流程
标准清单发布/更新流程
项目合规评估流程
-
未符合项整改流程
+
未符合项整改流程
From 8ce62cf21d4610533c97be634c18592633c51e12 Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Thu, 8 Jul 2021 16:57:02 +0800 Subject: [PATCH 07/15] =?UTF-8?q?=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9?= =?UTF-8?q?=E6=95=B4=E6=94=B9=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index f48a856dd..3dabec601 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -501,15 +501,6 @@ const routes = [ title: '标准调研流程' } }, - { - path: '/zqyjStep1', - name: 'zqyjStep1', - component: () => import('@/pages/processCenter/pages/creatProcess/zqyj/step1.vue'), - meta: { - requireAuth: true, - title: '标准征求意见流程' - } - }, ] }, // 本地工具 From b117f49a638ada811f3aae9ec2ed814b04255795 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, 8 Jul 2021 17:04:20 +0800 Subject: [PATCH 08/15] commit --- .../pages/creatProcess/bzqdfb/step1.vue | 1 + .../pages/creatProcess/xmpg/step1.vue | 64 +++++++++++-------- .../processCenter/pages/newProcess/index.vue | 4 +- .../pages/addEdit.vue | 9 ++- .../enterBSysRevPlanManaLib/index.vue | 2 +- src/router/index.js | 18 +++--- src/sysConfig/index.js | 6 +- 7 files changed, 62 insertions(+), 42 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index d228e91d0..aaf834d54 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -978,6 +978,7 @@ export default { for (let i = 0; i < data.length; i++) { this.selectedList.push(data[i].id); } + console.log(this.selectedList); }, //标准表格选择框改变 selectStandChange(data) { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index 3c007c8d7..0bdf9b2ad 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -76,7 +76,12 @@ - +
@@ -270,12 +275,12 @@ align="center">
@@ -399,32 +404,14 @@ export default { isSubmit: false, saveLoading: false, selectedList: [], //拆分标准的选择框 - dataList:[ - { - id: 1, - productLine: '风景线', - cpxzrr: '李四', - ffzrr: '张三', - }, - { - id: 2, - productLine: '风景线', - cpxzrr: '李四', - ffzrr: '张三', - }, { - id: 3, - productLine: '风景线', - cpxzrr: '李四', - ffzrr: '张三', - }, - - ], + dataList:[], page: 1, total: 0, pageSize: this.$store.getters.userInfo.configContent, pageNo: 1, totalNo: 0, pageSizeNo: this.$store.getters.userInfo.configContent, + product: new Map(), listForm: { standNumber: "", //标准编号 standName: "",//标准名称 @@ -491,7 +478,20 @@ export default { }, //确认添加事件 okStand() { - this.standModel = false + if(this.standList.length >= 1){ + let deposit = new Map(); + this.sarAccessListDatas.forEach(item => { + deposit.set(item.id, item); + }); + let bringData = []; + for (let i = 0; i < this.standList.length; i++) { + bringData.push(deposit.get(this.standList[i])); + } + console.log(bringData); + this.standModel = false + }else{ + this.$message.warning('请选择一条数据进行添加') + } }, //保存事件 handleSave() { @@ -581,7 +581,10 @@ export default { }, //添加产品线select的改变 selectThree(data) { - this.standList = data; + this.standList = []; + for(let i=0;i { + this.productData = res.data + }, e => { + + }) + }, }, computed: {}, mounted() { this.getTree(); + this.getProductData() } }; diff --git a/src/pages/processCenter/pages/newProcess/index.vue b/src/pages/processCenter/pages/newProcess/index.vue index b9d8407a2..b8dc2838e 100644 --- a/src/pages/processCenter/pages/newProcess/index.vue +++ b/src/pages/processCenter/pages/newProcess/index.vue @@ -11,7 +11,7 @@
标准发放申请流程
标准清单发布/更新流程
项目合规评估流程
-
未符合项整改流程
+
未符合项整改流程
@@ -88,7 +88,7 @@ export default { case '7': //项目评估流程 this.$router.push({ - name:'xmpgStep1' + name: 'xmpgStep1' }) break case '8': diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 5be78956f..e839c14a9 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -1015,6 +1015,7 @@ export default { this.sarAccessInfoList.push(item) ) }) + this.selectedAccInfoSearchList = [] this.$refs.entryTable.clearSelection() this.$refs.searchTable.clearSelection() } else { @@ -1119,8 +1120,12 @@ export default { } }, // 清单条目 table select事件 - sarAccessInfoSelect (selectData) { - this.sarAccessInfoListArry = selectData + sarAccessInfoSelect (data) { + let sarAccessInfoListArry = []; + for(let i = 0; i< data.length; i++){ + this.sarAccessInfoListArry.push(data[i].id) + } + console.log(this.sarAccessInfoListArry); }, // 点击取消按钮 返回事件 backCancal () { diff --git a/src/pages/regulatoryRepository/enterBSysRevPlanManaLib/index.vue b/src/pages/regulatoryRepository/enterBSysRevPlanManaLib/index.vue index d134c484c..639a80f58 100644 --- a/src/pages/regulatoryRepository/enterBSysRevPlanManaLib/index.vue +++ b/src/pages/regulatoryRepository/enterBSysRevPlanManaLib/index.vue @@ -3,7 +3,7 @@
- + import('@/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue'), - meta: { - requireAuth: true, - title: '未符合项整改流程' - } - }, { path: '/xmpgStep1', name: 'xmpgStep1', @@ -294,6 +285,15 @@ const routes = [ title: '项目合规评估流程' } }, + { + path: '/wfhxzgStep1', + name: 'wfhxzgStep2', + component: () => import('@/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue'), + meta: { + requireAuth: true, + title: '未符合项整改发布/更新流程' + } + }, { path: '/wfhxzgStep2', name: 'wfhxzgStep2', diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js index ee961b101..39134bcc1 100644 --- a/src/sysConfig/index.js +++ b/src/sysConfig/index.js @@ -6,8 +6,8 @@ // 服务器地址 // const devIp = '39.98.140.126' // const devInterfacePORT = '10005' -const devIp = '192.168.10.248' -const devInterfacePORT = '9999' +const devIp = '192.168.10.121' +const devInterfacePORT = '9988' // 云端端口号 const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const simpleFilePath = 'att/attFile/upload' @@ -51,4 +51,4 @@ module.exports = { enterprise: enterprise, // GQ广汽 SJZX数据中心 theme: theme, // 主题 processInterfaceURL: `http://${serverIP}:${processPort}/bat-wkflow` -} \ No newline at end of file +} From edf0a1ad0383ae1b6e6128f0e5bdf544e46ae0d8 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Thu, 8 Jul 2021 17:31:21 +0800 Subject: [PATCH 09/15] commit --- .../personal/pages/individual-plate/index.vue | 88 ++-- .../pages/creatProcess/bzdy/step1.vue | 8 +- .../pages/creatProcess/bzzqyj/step1.vue | 389 +++++++++++++----- .../pages/creatProcess/bzzqyj/step2.vue | 299 +++++++++++++- .../tabComponents/processCenter/index.vue | 90 ++-- 5 files changed, 681 insertions(+), 193 deletions(-) diff --git a/src/pages/personal/pages/individual-plate/index.vue b/src/pages/personal/pages/individual-plate/index.vue index 5764641f1..2852d1a19 100644 --- a/src/pages/personal/pages/individual-plate/index.vue +++ b/src/pages/personal/pages/individual-plate/index.vue @@ -6,23 +6,19 @@
- - - -
@@ -47,46 +43,36 @@ export default { listStyle: { width: '5rem', height: '8rem' - } + }, + oldData: [] } }, methods: { // 右侧列表元素变化时触发 handleChange (newTargetKeys, direction, moveKeys) { - this.targetKeys = newTargetKeys - this.numData = [] + if (direction === 'left') { + this.oldData.forEach( item => { + moveKeys.forEach( items => { + if (items === item.id) { + item.state = 1 + } + }) + }) + } else if (direction === 'right'){ + this.oldData.forEach( item => { + moveKeys.forEach( items => { + if (items === item.id) { + item.state = 0 + } + }) + }) + } + this.targetKeys = newTargetKeys + this.numData = [] }, selectedChange (sourceSelectedKeys, targetSelectedKeys) { - this.numData = sourceSelectedKeys - this.sourceSelectedKeys = targetSelectedKeys - }, - renderPersonal (item) { - return item.label - }, - // 上移,下移 - reloadMockData (flag) { - if (this.numData.length > 1 || this.numData.length === 0) { - this.$message({ - message: '选择个人板块一条板块进行上移下移操作', - type: 'warning' - }) - } else { - // numData : 选中的值 - let num = this.targetKeys.indexOf(this.numData[0]) - if (flag === 1) { - // 1表示上移 - if (num > 0) { - this.value.splice(num, 1) - this.value.splice(num - 1, 0, this.numData[0]) - } - } else { - // 2表示下移 - this.targetKeys.splice(num, 1) - this.targetKeys.splice(num + 1, 0, this.numData[0]) - // targetKeys 变了 - // this.data = JSON.stringify(this.targetKeys) - } - } + this.numData = sourceSelectedKeys + this.sourceSelectedKeys = targetSelectedKeys }, savePersonal () { if (this.targetKeys.length === 0) { @@ -96,9 +82,10 @@ export default { }) return } - this.$http.post('person/personModuleUser/insertModule', + this.$http.postData('sarPersonalCenter/sar-user-personal-menu/update', { - moduleIds: this.targetKeys + sarUserPersonalMenus: this.oldData, + userId: this.$store.getters.userInfo.userId }, { _this: this }, res => { @@ -113,16 +100,14 @@ export default { }, // 获取模块 selectPersonConf () { - this.$http.get('person/personModule/queryByList', + this.$http.get('/sarPersonalCenter/sar-user-personal-menu/getList', { userId: this.$store.getters.userInfo.userId }, {_this: this}, res => { - res.data.map((item) => { - if (item.moduleName === '首页') { + res.data.records.map((item) => { + if (item.menuName === '首页') { this.selected.push(item) - } else if (item.moduleName === '待办任务') { - this.selected.push(item) - } else if (item.flag === '0') { + } else if (item.state == 0) { this.selected.push(item) } }) @@ -132,16 +117,17 @@ export default { } // 左侧数据会筛选出右侧数据进行显示 var j - for (j = 0; j < res.data.length; j++) { + for (j = 0; j < res.data.records.length; j++) { let moduleLabel = {} - moduleLabel = res.data[j].moduleName + moduleLabel = res.data.records[j].menuName let moduleid = {} - moduleid = res.data[j].id + moduleid = res.data.records[j].id this.data.push({ label: moduleLabel, key: moduleid, - disabled: moduleLabel === '首页' || moduleLabel === '待办任务' + disabled: moduleLabel === '首页' }) + this.oldData = JSON.parse(JSON.stringify(res.data.records)) } this.value = this.targetKeys }, e => { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue index 924069d14..123abce88 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue @@ -260,16 +260,16 @@ export default { }, roleFormRules: { dockUserName: [ - { required: true, message: '请输入调研标题', trigger: 'change' }, + { required: true, message: '请选择责任部门对接人', trigger: 'change' }, ], ministerUserName: [ - { required: true, message: '请输入调研标题', trigger: 'change' }, + { required: true, message: '请选择标准法规部部长', trigger: 'change' }, ], directorUserName: [ - { required: true, message: '请输入调研标题', trigger: 'change' }, + { required: true, message: '请选择技术管理中心主任', trigger: 'change' }, ], presidentUserName: [ - { required: true, message: '请输入调研标题', trigger: 'change' }, + { required: true, message: '请选择工程研究院院长', trigger: 'change' }, ] }, fileUrl: 'api/att/attFile/upload', diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step1.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step1.vue index 224777749..f94edf853 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step1.vue @@ -7,13 +7,14 @@
基础信息
-
流程信息
+
人员信息
-
+
@@ -27,25 +28,29 @@
选择征求意见
- - - - - + - - - - + + disabled + v-model="form.endTime" + type="date" + placeholder="请选择结束日期"> @@ -53,13 +58,27 @@
+ + +
+ + +
+
+
-
+
@@ -67,66 +86,66 @@

流程发起人

- +
- + - -

责任对接人

+ +

责任部门对接人

- + + v-model="roleForm.dockUserListName" + placeholder="选择责任部门对接人" + @click.native="choiceZRRS">
- + - -

责任人

+ +

标准法规部部长

- +
- + - -

标准法规工程师

+ +

技术管理中心主任

- +
- + - -

责任对接人,标准法规部门负责人

+ +

工程研究总院院长

- +
@@ -152,42 +171,43 @@ custom-class="demo-drawer" >
- - -
-
- - - - - - - - - - - - - - - 查询 - 清空 - - -
-
-
+ + +
+
+ + + + + + + + + + + + + + + 查询 + 清空 + + +
+
+
+ + + + + + + + + +
@@ -229,6 +300,7 @@ export default { name: "bzzqyjStep1", data() { return { + commentText: '', textarea: '', // 意见 title: '', // 新增抽屉标题 listModel: false, // 新增抽屉开关 @@ -241,6 +313,17 @@ export default { endTime: '', // 结束日期 cname: '', // 名称 }, + formRules: { + cid: [ + { required: true, message: '请输入标准编号', trigger: 'change' }, + ], + endTime: [ + { required: true, message: '请输入标准结束日期', trigger: 'change' }, + ], + cname: [ + { required: true, message: '请输入标准名称', trigger: 'change' }, + ], + }, // 标准征求意见数据可库 standCommonlySearch: { categorg: '', @@ -259,15 +342,41 @@ export default { roleForm: { startUserName: this.$store.getters.userInfo.userName, startUser: this.$store.getters.userInfo.userId, - dockUser: '', - dockUserName: '', - mainUser: '', - mainUserName: '', - engineerUser: '', - engineerUserName: '', - checkUser: '', - checkUserName: '', - } + dockUserList: '', + dockUserListName: '', + ministerUser: '', + ministerUserName: '', + directorUser: '', + directorUserName: '', + presidentUser: '', + presidentUserName: '', + }, + roleFormRules: { + dockUserList: [ + { required: true, message: '请选择责任部门对接人', trigger: 'change' }, + ], + ministerUser: [ + { required: true, message: '请选择标准法规部部长', trigger: 'change' }, + ], + directorUser: [ + { required: true, message: '请选择技术管理中心主任', trigger: 'change' }, + ], + presidentUser: [ + { required: true, message: '请选择工程研究院院长', trigger: 'change' }, + ] + }, + treeData: [], + nodeList: [], + nodeList2: [], + type: '', + drawerTitle: '', + modalshowflag: false, + modalshowflag2: false, + defaultProps: { + children: 'children', + label: 'name' + }, + roleRow: {}, } }, components: { @@ -276,6 +385,7 @@ export default { ProcessTitle }, mounted () { + this.getTree() this.sarStandCompareHis() this.tableHeight = $('.content').height() - 44 window.onresize = () => { @@ -287,7 +397,6 @@ export default { this.title = '标准征求意见库' this.listModel = true }, - /** 标准征求意见库方法* * **********************************************/ // 清空 @@ -348,7 +457,6 @@ export default { for (let i = 0; i < this.selectedList.length; i++) { bringData.push(deposit.get(this.selectedList[i])); } - console.log(bringData) this.form.cid = bringData[0].cid this.form.cname = bringData[0].cname; this.form.endTime = bringData[0].endTime; @@ -360,18 +468,107 @@ export default { } }, /*** **********************************************/ - /** 流程节点负责人的选择 *****************************/ - choiceZRR() { - // this.choice + choiceZRR (type, title, id) { + this.nodeList = [] + this.nodeList.push(id) + this.type = type + this.drawerTitle = title + this.modalshowflag = true + }, + getTree () { + this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { + this.treeData = res.data + }) + }, + saveUserInfo () { + if (this.type === 'ministerUser') { + this.roleForm.ministerUser = this.roleRow.id + this.roleForm.ministerUserName = this.roleRow.name + } else if (this.type === 'directorUser') { + this.roleForm.directorUser = this.roleRow.id + this.roleForm.directorUserName = this.roleRow.name + } else if (this.type === 'presidentUser') { + this.roleForm.presidentUser = this.roleRow.id + this.roleForm.presidentUserName = this.roleRow.name + } + this.modalshowflag = false + }, + cancleUserInfo () { + this.modalshowflag = false + }, + drawerCheck (data) { + var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); + if(getlist.length == 1) { + this.roleRow = getlist[0] + }else { + this.$refs.tree.setCheckedKeys([data.id]); + this.roleRow = this.$refs.tree.getCheckedNodes()[0] + } + }, + choiceZRRS () { + this.nodeList2 = [] + if ( this.roleForm.dockUserList.length > 0) { + this.nodeList2 = this.roleForm.dockUserList.split(',') + } + this.modalshowflag2 = true + }, + saveUserInfo2 () { + var idList = '' + var nameList = '' + this.$refs.tree2.getCheckedNodes().concat(this.$refs.tree2.getHalfCheckedNodes()).forEach( item => { + if (nameList.length > 0) { + nameList += ',' + idList += ',' + } + idList += item.id + nameList += item.name + }) + this.roleForm.dockUserList = idList + this.roleForm.dockUserListName = nameList + this.modalshowflag2 = false + }, + cancleUserInfo2 () { + this.modalshowflag2 = false }, - handleTabs(name) { this.active = name }, - // 流程也的提交按钮和保存按钮操作 handleSave() {}, - handleSubmit() {} + handleSubmit() { + this.$refs['bzzqyjForm'].validate((valid) => { + if (valid) { + this.$refs['Form'].validate((valid) => { + if (valid) { + this.$http.get('lawss/activiti/startProcess', { + type: '3' + }, {}, res => { + if (res.ok) { + var json = Object.assign(this.form, this.roleForm) + json.commentText = this.commentText + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: res.data, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('流程发起成功') + this.$router.push('/processCenter') + } + }) + } else { + this.$message.warning('流程启动失败') + } + }) + } else { + return this.$message.warning('请完善人员信息') + } + }) + } else { + return this.$message.warning('请完善基础信息') + } + }) + } } } @@ -412,7 +609,7 @@ export default { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); + height: calc(~'100% - 107px'); overflow: auto; } .standardForComments { diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step2.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step2.vue index 6258074e3..b3580f59a 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step2.vue @@ -1,13 +1,300 @@ - diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue index fe474ca29..5557de462 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue @@ -252,6 +252,7 @@ export default { } }) } + break case '2': if (row.taskInfo === '责任对接人选择责任人') { this.$router.push({ @@ -343,43 +344,59 @@ export default { }) } break; + break + case '3': + if (row.taskInfo === '责任对接人选择责任人') { + this.$router.push({ + name: 'bzzqyjStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break //标准清单更新/发布流程 - case'4' : - if (row.taskInfo === '进行会签,填写意见') { - this.$router.push({ - name: 'bzqdfbStep2', - query: { - taskIds: row.taskIds, - prcId: row.prcId, - prcNum: row.prcNum, - prcName: row.prcName, - prcType: row.prcType - } - }) - } else if (row.taskInfo === '根据会签意见修订') { - this.$router.push({ - name: 'bzqdfbStep3', - query: { - taskIds: row.taskIds, - prcId: row.prcId, - prcNum: row.prcNum, - prcName: row.prcName, - prcType: row.prcType - } - }) - }else if (row.taskInfo === '业务经理审批') { - this.$router.push({ - name: 'bzqdfbStep4', - query: { - taskIds: row.taskIds, - prcId: row.prcId, - prcNum: row.prcNum, - prcName: row.prcName, - prcType: row.prcType - } - }) - } - break; + case'4' : + if (row.taskInfo === '进行会签,填写意见') { + this.$router.push({ + name: 'bzqdfbStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '根据会签意见修订') { + this.$router.push({ + name: 'bzqdfbStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '业务经理审批') { + this.$router.push({ + name: 'bzqdfbStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break; + break //项目合规评估流程 case '5' : if(row.taskInfo === ''){ @@ -394,6 +411,7 @@ export default { } }) } + break } }, From 7b9e8bc02b008daeceff7bb94ed98b05e9b8e339 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Thu, 8 Jul 2021 19:09:20 +0800 Subject: [PATCH 10/15] commit --- src/components/navMenu/index.vue | 10 ++--- src/pages/home1/components/navMenu/index.vue | 43 ++++++++++++++----- .../personal/pages/individual-plate/index.vue | 18 +++++--- 3 files changed, 50 insertions(+), 21 deletions(-) diff --git a/src/components/navMenu/index.vue b/src/components/navMenu/index.vue index a11e76a7f..58601b3fd 100644 --- a/src/components/navMenu/index.vue +++ b/src/components/navMenu/index.vue @@ -300,11 +300,11 @@ export default { // path: '/convertDocView', // menuId: '3F52K25546' // }, - { - title: '菜单管理', - path: '/menuManage', - menuId: '82665e94d406c6fc0d1f627e5880230b' - }, + // { + // title: '菜单管理', + // path: '/menuManage', + // menuId: '82665e94d406c6fc0d1f627e5880230b' + // }, // // { // // title: '保密管理', // // path: '/convertDocView' diff --git a/src/pages/home1/components/navMenu/index.vue b/src/pages/home1/components/navMenu/index.vue index 71aa3396f..ef4c34384 100644 --- a/src/pages/home1/components/navMenu/index.vue +++ b/src/pages/home1/components/navMenu/index.vue @@ -3,15 +3,11 @@ @@ -25,12 +21,32 @@ mixins: [], data() { return { + list: [] } }, computed: {}, watch: {}, - mounted() {}, + mounted() { + this.getData() + }, methods: { + getData (){ + this.$http.get('/sarPersonalCenter/sar-user-personal-menu/getList', + { + userId: this.$store.getters.userInfo.userId + }, {_this: this}, res => { + if (res.ok) { + res.data.records.forEach( item => { + if (item.state == 1) { + var json = {} + json.label = item.menuName + json.path = item.menuUrl + this.list.push(json) + } + }) + } + }) + }, toPage() { this.$router.push(this.path) } @@ -42,6 +58,7 @@ .nav-menu { .lattice { .menu-wrap { + height: 324px; display: flex; flex-wrap: wrap; justify-content:space-between; @@ -55,6 +72,12 @@ width: 32%; margin: 0 0 10px 0; } + .wx-card1 { + width: 100%; + } + .wx-card2 { + width: 49%; + } .menu-item { flex: 1; line-height: 88px; diff --git a/src/pages/personal/pages/individual-plate/index.vue b/src/pages/personal/pages/individual-plate/index.vue index 2852d1a19..5cfbe5636 100644 --- a/src/pages/personal/pages/individual-plate/index.vue +++ b/src/pages/personal/pages/individual-plate/index.vue @@ -50,11 +50,14 @@ export default { methods: { // 右侧列表元素变化时触发 handleChange (newTargetKeys, direction, moveKeys) { - if (direction === 'left') { + if (newTargetKeys.length > 9) { + this.$message.warning('个人展示模块最多仅能展示9个') + } + if (direction === 'left') { this.oldData.forEach( item => { moveKeys.forEach( items => { if (items === item.id) { - item.state = 1 + item.state = 0 } }) }) @@ -62,7 +65,7 @@ export default { this.oldData.forEach( item => { moveKeys.forEach( items => { if (items === item.id) { - item.state = 0 + item.state = 1 } }) }) @@ -71,8 +74,8 @@ export default { this.numData = [] }, selectedChange (sourceSelectedKeys, targetSelectedKeys) { - this.numData = sourceSelectedKeys - this.sourceSelectedKeys = targetSelectedKeys + this.numData = sourceSelectedKeys + this.sourceSelectedKeys = targetSelectedKeys }, savePersonal () { if (this.targetKeys.length === 0) { @@ -81,6 +84,9 @@ export default { type: 'warning' }) return + } else if (this.targetKeys.length > 9) { + this.$message.warning('个人展示模块最多仅能展示9个') + return } this.$http.postData('sarPersonalCenter/sar-user-personal-menu/update', { @@ -107,7 +113,7 @@ export default { res.data.records.map((item) => { if (item.menuName === '首页') { this.selected.push(item) - } else if (item.state == 0) { + } else if (item.state == 1) { this.selected.push(item) } }) From 8701bb53f92be9b8299d3843b07d32f3febdd2ec Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Thu, 8 Jul 2021 20:03:50 +0800 Subject: [PATCH 11/15] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/addEdit.vue | 140 ++- .../pages/otherAddEit.vue | 114 +-- .../pages/projectAddEit.vue | 874 +++++------------- 3 files changed, 310 insertions(+), 818 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index e839c14a9..293b9748f 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -189,14 +189,14 @@
清单条目
- 上移 - 下移 删除
+ + +
diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 5f6b2bc7a..deddfb0e7 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -101,11 +101,11 @@ size="mini" @click="deleteStandFromKind(2)" v-btn-permission="'5aedea192a77b14c364f19bdcee3513a'">移除标准 - 模板下载 + + + + + + import('@/pages/config/pages/linkManage/index'), + meta: { + requireAuth: true, + title: '链接管理', + menuId: 'd3ff92078c53a4d9d1f1a94450fee91e' + } + }, { path: '/roleManage', name: 'RoleManage', diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js index 39134bcc1..b0d4f4fed 100644 --- a/src/sysConfig/index.js +++ b/src/sysConfig/index.js @@ -6,8 +6,8 @@ // 服务器地址 // const devIp = '39.98.140.126' // const devInterfacePORT = '10005' -const devIp = '192.168.10.121' -const devInterfacePORT = '9988' +const devIp = '192.168.10.30' +const devInterfacePORT = '9999' // 云端端口号 const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const simpleFilePath = 'att/attFile/upload' @@ -22,11 +22,11 @@ const theme = 'theme-one' // 主题(theme-one浅蓝色,theme-two深蓝色) const processPort = '17210' /***************************************************************** - <<<<<<<<< 主题修改 >>>>>>>>> +<<<<<<<<< 主题修改 >>>>>>>>> - 1. 主题分为theme-one,theme-two两种 - 2. 修改assets/styles/style.less文件,注释theme-one/theme-two - 3. 将上方theme改为theme-one/theme-two +1. 主题分为theme-one,theme-two两种 +2. 修改assets/styles/style.less文件,注释theme-one/theme-two +3. 将上方theme改为theme-one/theme-two *****************************************************************/ // 生产环境配置 From 7c7ef0c56cb5c49913434434626ec65bfa2dfc64 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, 8 Jul 2021 21:08:08 +0800 Subject: [PATCH 15/15] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/xmpg/step1.vue | 141 +++++++----------- .../pages/addEdit.vue | 12 +- src/sysConfig/index.js | 4 +- 3 files changed, 62 insertions(+), 95 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index 0bdf9b2ad..a69694b6d 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -70,15 +70,17 @@ label="产品线"> @@ -173,64 +175,36 @@ align="center"> + prop="code" + fixed="left" + label="标准号"> + - - + prop="issueTime" + label="发布日期"> - + prop="xcxssrq" + label="新车型实施日期"> - + show-overflow-tooltip + prop="zccssrq" + label="在产车实施日期"> - - - + show-overflow-tooltip + prop="textStatus" + label="文本状态">
@@ -355,6 +329,7 @@ export default { }, data() { return { + ffzrr:'', active: "1", standModel: false, sarAccessListDatas: [], @@ -416,13 +391,11 @@ export default { standNumber: "", //标准编号 standName: "",//标准名称 dataList: [{ - code: "", //标准号 - standName: "", //标准名称 - issueTime: "", //发布日期 - xcxssrq: "", //新车型实施日期 - zccssrq: "", //在产车实施日期 - textStatus: "", //文本状态 - id: "" + projectLine: '', //产品线 + projectManager:'',//产品线责任人 + ffzrr: '', //分发责任人 + id: "", + sarStandProjectLibraries: [], }] }, choiceForm: {}, //选择标准清单列表 @@ -479,15 +452,8 @@ export default { //确认添加事件 okStand() { if(this.standList.length >= 1){ - let deposit = new Map(); - this.sarAccessListDatas.forEach(item => { - deposit.set(item.id, item); - }); - let bringData = []; - for (let i = 0; i < this.standList.length; i++) { - bringData.push(deposit.get(this.standList[i])); - } - console.log(bringData); + this.dataList = this.standList + this.listForm.dataList = this.standList this.standModel = false }else{ this.$message.warning('请选择一条数据进行添加') @@ -526,11 +492,7 @@ export default { json.prcCreateUserName = this.$store.getters.userInfo.account; json.standName = this.listForm.listName; json.standId = this.listForm.standId; - this.$refs["qdfbForm"].validate((valid) => { - if (valid) { - this.$refs["Form"].validate((valid) => { - if (valid) { - this.$http.get("lawss/activiti/startProcess", { type: "4" }, { + this.$http.get("lawss/activiti/startProcess", { type: "5" }, { _this: this }, res => { if (res.ok) { @@ -548,14 +510,6 @@ export default { }); } }); - } else { - return this.$message.warning("请完善人员信息"); - } - }); - } else { - return this.$message.warning("请完善基础信息"); - } - }); }, //选择拆分标准取消事件 closeDrawer() { @@ -564,13 +518,19 @@ export default { //选择拆分标准确定事件 OkDrawer() { + if(this.selectedList.length == 1){ + this.listForm.standNumber = this.selectedList[0].standNumber + this.listForm.standName = this.selectedList[0].standName + this.ListModel = false + }else if(this.selectedList.length > 1){ + this.$message.warning('您只能选择一条数据进行带入') + }else{ + this.$message.warning('请选择一条数据带入') + } }, //选择拆分标准选择框改变 selectListChange(data) { - this.selectedList = []; - for (let i = 0; i < data.length; i++) { - this.selectedList.push(data[i].id); - } + this.selectedList = data; }, //标准表格选择框改变 selectStandChange(data) { @@ -581,10 +541,7 @@ export default { }, //添加产品线select的改变 selectThree(data) { - this.standList = []; - for(let i=0;i { this.productData = res.data + // this.totalNo = res.data }, e => { }) }, + //获取标准数据 + getStandData() { + this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage','',{ + _this: this + }, res => { + this. sarAccessListDatas = res.data.list + this.total = res.pageCount + }, e => { + }) + }, }, computed: {}, mounted() { this.getTree(); this.getProductData() + this.getStandData() } }; diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index e839c14a9..5289fa24e 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -1120,12 +1120,12 @@ export default { } }, // 清单条目 table select事件 - sarAccessInfoSelect (data) { - let sarAccessInfoListArry = []; - for(let i = 0; i< data.length; i++){ - this.sarAccessInfoListArry.push(data[i].id) + sarAccessInfoSelect (selectData) { + this.sarAccessInfoListArry = selectData + let sarAccessInfoListArryId = [] + for(let i=0; i{ this.sarAccessInfoSearchList = res.data.list - this.$nextTick(() => { - }) }, e => { }) diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js index 39134bcc1..a15aed4fa 100644 --- a/src/sysConfig/index.js +++ b/src/sysConfig/index.js @@ -6,8 +6,8 @@ // 服务器地址 // const devIp = '39.98.140.126' // const devInterfacePORT = '10005' -const devIp = '192.168.10.121' -const devInterfacePORT = '9988' +const devIp = '192.168.10.248' +const devInterfacePORT = '9999' // 云端端口号 const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const simpleFilePath = 'att/attFile/upload'