diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue index 401babe87..e1c72c47a 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue @@ -1273,6 +1273,15 @@ export default { res.data = []; } this.dataList = res.data; + this.dataList.forEach(item => { + if (item.xcxssrqgj === null){ + this.$set(item, "XCXSSRQ", ''); + this.$set(item, "ZCCSSRQ", ''); + }else{ + this.$set(item, "XCXSSRQ", item.xcxssrqgj); + this.$set(item, "ZCCSSRQ", item.zccssrqgj); + } + }) this.listForm.dataList = res.data; let formId = []; this.dataList.map(item => { diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 576ce6803..09c935c54 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -125,6 +125,9 @@ prop="issueTime" align="center" label="发布日期"> + - - - - + - - - { + if (item.xcxssrqgj === null){ + this.$set(item, "XCXSSRQ", ''); + this.$set(item, "ZCCSSRQ", ''); + }else{ + this.$set(item, "XCXSSRQ", item.xcxssrqgj); + this.$set(item, "ZCCSSRQ", item.zccssrqgj); + } + }) this.listForm.dataList = res.data; let formId = []; this.dataList.map(item => { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index c1c65b777..40db856ba 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -93,20 +93,19 @@ - - - - - - - - - - + + + + + + + + @@ -409,8 +408,8 @@ export default { label: "name" }, roleForm: { - startUserName: this.$store.getters.userInfo.userName, - startUser: this.$store.getters.userInfo.id, + prcCreateUserName: this.$store.getters.userInfo.userName, + prcCreateUser: this.$store.getters.userInfo.userId, qualityEngineer: "", certifiedEngineer: "", qualityEngineerName: "", @@ -521,10 +520,11 @@ export default { this.listForm.certifiedEngineer = data[0].id; this.listForm.certifiedEngineerName = data[0].name; } else if (this.type === "distributePerson") { - // this.dataList.distributePerson = data[0].id; - // this.dataList.distributePersonName = data[0].name; + this.dataList.distributePersonId = data[0].id; + this.dataList.distributePerson = data[0].name; this.listForm.dataList[this.dsadadadsada].distributePersonId = data[0].id; this.listForm.dataList[this.dsadadadsada].distributePerson = data[0].name; + console.log(this.dataList) this.showColumn = false; this.$nextTick(() => { this.showColumn = true; @@ -652,6 +652,7 @@ export default { this.$message.warning("请选择分发责任人"); } else { var json = Object.assign(this.listForm, this.roleForm); + console.log(json); this.$refs["listForm"].validate((valid) => { if (valid) { this.$refs["roleForm"].validate((valid) => { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue index 123463a43..2d7414f24 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step2.vue @@ -328,33 +328,36 @@ export default { //驳回事件 beforeBack () { - this.listForm.passFlag = '1' - this.handleSubmit() + if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ + this.$message.warning('请填写审批意见') + }else{ + this.listForm.passFlag = '1' + this.handleSubmit() + } }, //提交事件 handleSubmit() { - this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; - this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId; - this.listForm.prcCreateUserName = this.$store.getters.userInfo.account; - this.listForm.zrUserId = this.$store.getters.userInfo.userId ; - this.listForm.commentText = this.commentText; - this.listForm.standId = this.listForm.standId; - this.listForm.breakdownList = this.listForm.breakdownList - const json = JSON.stringify(this.listForm); - this.$http.post('lawss/activiti/completeTask', { - taskIds: this.taskIds, - userId: this.userId, - json: json, - }, { - _this: this - }, res => { - if (res.success) { - this.$message.success(res.message) - this.$router.push('/processCenter') - } - }, e => { + if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ + this.$message.warning('请填写审批意见') + }else{ + this.listForm.commentText = this.commentText + const json = JSON.stringify(this.listForm); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId: this.userId, + json: json, + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + this.$router.push('/processCenter') + } + }, e => { + + }); + } - }); }, //标准表格选择框改变 selectStandChange(data) { diff --git a/src/pages/processCenter/pages/processDetail/index.vue b/src/pages/processCenter/pages/processDetail/index.vue index 152f4d24b..ff4dd93eb 100644 --- a/src/pages/processCenter/pages/processDetail/index.vue +++ b/src/pages/processCenter/pages/processDetail/index.vue @@ -205,10 +205,18 @@ export default { this.toProcessDetail('bzqdfbStep4',row) }else if (prcType === '5'){ //标准项目合规评估 标准维度 - this.toProcessDetail('xmpgStep7',row) + if(row.taskInfo === '标准法规部部长审批'){ + this.toProcessDetail('xmpgStep7',row) + }else{ + this.toProcessDetail('xmpgStep2',row) + } }else if(prcType === '6'){ //标准项目合规评估 项目维度 - this.toProcessDetail('xmpg2Step12',row) + if(row.taskInfo === '标准法规部领导审核'){ + this.toProcessDetail('xmpg2Step12',row) + }else{ + this.toProcessDetail('xmpg2Step2',row) + } } } else { this.$message.warning('当前流程未全部办理完成,无法查看')