diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index f9bb2931d..e0e75c8b5 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -2757,8 +2757,8 @@ export default { this.resolveListForm = editItem this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' - this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.split(',') - this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.split(',') + this.resolveListForm.xccssrq = this.resolveListForm.xccssrq?this.resolveListForm.xccssrq.split(','):'' + this.resolveListForm.zccssrq = this.resolveListForm.zccssrq?this.resolveListForm.zccssrq.split(','):'' }else { this.$message.warning('请选择一条数据') } diff --git a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue index 1aa12e4be..6950b24f7 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step1.vue @@ -244,7 +244,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="commentText"> + v-model="commentInfo"> @@ -538,7 +538,7 @@ export default { isSubmit: false, saveLoading: false, - commentText: '', + commentInfo: '', bpnId: '' } }, @@ -585,6 +585,7 @@ export default { }).then(res => { let mes = JSON.parse(res.mes) this.rh_pageData = mes.rh_pageData + this.commentInfo = mes.commentInfo this.roleForm = mes.roleForm }); }, @@ -804,7 +805,7 @@ export default { _formData.append('json', JSON.stringify({ roleForm: this.roleForm, rh_pageData: this.rh_pageData, - commentText: this.commentText + commentInfo: this.commentInfo })) saveTaskFirst(_formData).then(res => { this.saveLoading = false @@ -821,7 +822,8 @@ export default { prcCreateUserName: this.$store.getters.userInfo.userName, roleList: this.roleForm, rh_pageData: this.rh_pageData, - commentText: this.commentText, + commentText: this.commentInfo, + roleForm: this.roleForm, directorList: this.roleForm.dockUser, } this.$refs['rh_pageData'].validate((valid) => { @@ -830,15 +832,11 @@ export default { if (valid) { this.isSubmit = true let paramsInfo = new FormData() - paramsInfo.append('id', this.bpnId || '') + // paramsInfo.append('id', this.bpnId || '') paramsInfo.append('createUser', this.$store.getters.userInfo.userId) paramsInfo.append('createUserName', this.$store.getters.userInfo.userName) paramsInfo.append('type', '20') - paramsInfo.append('json', JSON.stringify({ - roleForm: this.roleForm, - rh_pageData: this.rh_pageData, - commentText: this.commentText - })) + paramsInfo.append('json', JSON.stringify({json})) processBack(paramsInfo).then(res => { this.taskID = res.data const params = new FormData(); diff --git a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step3.vue b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step3.vue index 995e2cb6d..1ef79891d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step3.vue @@ -219,7 +219,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="commentText"> + v-model="commentStep3"> @@ -379,7 +379,7 @@ export default { taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, - commentText: '', + commentStep3: '', infoSourcesLength: '', /** 上传相关 */ @@ -435,6 +435,7 @@ export default { if (this.rh_pageData.fillFile !== undefined) { this.fillFileList = this.rh_pageData.fillFile } + this.commentStep3 = JSON.parse(JSON.stringify(item)).commentStep3 this.rh_pageData.fillPeopleId = this.$store.getters.userInfo.userId this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.infoSourcesLength = this.rh_pageData.infoSources.length @@ -471,6 +472,7 @@ export default { selfUser: this.$store.getters.userInfo.userId, charge: this.rh_pageData.fillLeaderId, rh_pageData: this.rh_pageData, + commentStep3: this.commentStep3 })) saveTaskForPub(_formData).then(res => { this.saveLoading = false @@ -486,7 +488,7 @@ export default { roleList: this.roleForm, selfUser: this.$store.getters.userInfo.userId, charge: this.rh_pageData.fillLeaderId, - commentText: this.commentText, + commentText: this.commentStep3, rh_pageData: this.rh_pageData, } this.$refs['rh_pageData'].validate((valid) => { diff --git a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step5.vue b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step5.vue index 35749dc51..5ccfc4e93 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHd-rh/step5.vue @@ -221,7 +221,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="commentText"> + v-model="commentStep5"> @@ -458,7 +458,7 @@ export default { deleteDataList: [], infoSourcesLength: '', - commentText: '', + commentStep5: '', editFlag: false, editForm: { @@ -522,6 +522,7 @@ export default { this.$nextTick(() => { this.rh_pageData = JSON.parse(JSON.stringify(item)).rh_pageData this.roleForm = JSON.parse(JSON.stringify(item)).roleList + this.commentStep5 = JSON.parse(JSON.stringify(item)).commentStep5 this.infoSourcesLength = this.rh_pageData.infoSources.length // this.rh_pageData.comityFileNum = this.fileTextList }) @@ -702,7 +703,7 @@ export default { _formData.append('json', JSON.stringify({ rh_pageData: this.rh_pageData, roleList: this.roleForm, - commentText: this.commentText + commentStep5: this.commentStep5 })) saveTaskForPub(_formData).then(res => { this.saveLoading = false @@ -718,7 +719,7 @@ export default { leader: this.roleForm.leaderUserId, rh_pageData: this.rh_pageData, roleList: this.roleForm, - commentText: this.commentText + commentText: this.commentStep5 } this.$refs['rh_pageData'].validate((valid) => { if (valid) { diff --git a/src/pages/processCenter/pages/creatProcess/bzhHh-hh/step1.vue b/src/pages/processCenter/pages/creatProcess/bzhHh-hh/step1.vue index 617fc8efe..a4061068a 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHh-hh/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHh-hh/step1.vue @@ -242,7 +242,7 @@ import ProcessHeader from '../../components/ProcessHeader' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' -import { saveTaskFirst, completeTask, inboundLiaisonDetail,upFile} from '@/api/process.js' +import { saveTaskForPub, completeTask, inboundLiaisonDetail,upFile,taskDel} from '@/api/process.js' export default { components: { @@ -652,15 +652,16 @@ export default { handleSave() { this.saveLoading = true let _formData = new FormData() - _formData.append('id', this.bpnId || '') - _formData.append('createUser', this.$store.getters.userInfo.userId) - _formData.append('createUserName', this.$store.getters.userInfo.userName) - _formData.append('prcType', '22') + // _formData.append('id', this.bpnId || '') + // _formData.append('createUser', this.$store.getters.userInfo.userId) + // _formData.append('createUserName', this.$store.getters.userInfo.userName) + // _formData.append('prcType', '22') + _formData.append('taskIds', this.taskIds) _formData.append('json', JSON.stringify({ roleForm: this.roleForm, - hh_pageData: this.hh_pageData + hh_pageData: this.hh_pageData, })) - saveTaskFirst(_formData).then(res => { + saveTaskForPub(_formData).then(res => { this.saveLoading = false this.$message.success('保存成功') this.bpnId = res.result diff --git a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue index 77a5e0115..31875535c 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step1.vue @@ -175,7 +175,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="commentText"> + v-model="commentStep1"> @@ -452,7 +452,7 @@ export default { roleShowflagOne: false, isSubmit: false, saveLoading: false, - commentText: '', + commentInfo: '', bpnId: '' } }, @@ -513,7 +513,7 @@ export default { }).then(res => { let mes = JSON.parse(res.mes) this.ch_pageData = mes.ch_pageData - this.commentText = mes.commentText + this.commentInfo = mes.commentInfo this.roleForm = mes.roleForm }); }, @@ -709,7 +709,7 @@ export default { _formData.append('json', JSON.stringify({ roleForm: this.roleForm, ch_pageData: this.ch_pageData, - commentText: this.commentText + commentInfo: this.commentInfo })) saveTaskFirst(_formData).then(res => { @@ -727,8 +727,9 @@ export default { prcCreateUserName: this.$store.getters.userInfo.userName, roleList: this.roleForm, ch_pageData: this.ch_pageData, - commentText: this.commentText, + commentText: this.commentInfo, directorList: this.roleForm.dockUser, + roleForm: this.roleForm, } this.$refs['ch_pageData'].validate((valid) => { if (valid) { @@ -736,16 +737,11 @@ export default { if (valid) { this.isSubmit = true let paramsInfo = new FormData() - paramsInfo.append('id', this.bpnId || '') + // paramsInfo.append('id', this.bpnId || '') paramsInfo.append('createUser', this.$store.getters.userInfo.userId) paramsInfo.append('createUserName', this.$store.getters.userInfo.userName) paramsInfo.append('type', '21') - paramsInfo.append('json', JSON.stringify({ - roleForm: this.roleForm, - ch_pageData: this.ch_pageData, - commentText: this.commentText - - })) + paramsInfo.append('json', JSON.stringify({json})) processBack(paramsInfo).then(res => { this.taskID = res.data const params = new FormData(); diff --git a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step3.vue b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step3.vue index b7503a739..3fe8cfa32 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step3.vue @@ -181,7 +181,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="commentText"> + v-model="commentStep3"> @@ -323,7 +323,7 @@ export default { pId: this.$route.query.prcId, uploadFileLength: '', - commentText: '' + commentStep3: '' } }, computed: { @@ -374,6 +374,7 @@ export default { this.ch_pageData.fillPeopleId = this.$store.getters.userInfo.userId this.ch_pageData.fillPeople = this.$store.getters.userInfo.userName + '(' + this.$store.getters.userInfo.userId + ')' this.roleForm = JSON.parse(JSON.stringify(item)).roleList + this.commentStep3 = JSON.parse(JSON.stringify(item)).commentStep3 // this.rh_pageData.comityFileNum = this.fileTextList }) }, @@ -400,7 +401,7 @@ export default { _formData.append('taskIds', this.taskIds) _formData.append('json', JSON.stringify({ roleList: this.roleForm, - commentText: this.commentText, + commentStep3: this.commentStep3, selfUser: this.$store.getters.userInfo.userId, charge: this.ch_pageData.fillLeaderId, ch_pageData: this.ch_pageData, @@ -418,7 +419,7 @@ export default { let json = { roleList: this.roleForm, selfUser: this.$store.getters.userInfo.userId, - commentText: this.commentText, + commentText: this.commentStep3, charge: this.ch_pageData.fillLeaderId, ch_pageData: this.ch_pageData, } diff --git a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step5.vue b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step5.vue index fce417416..f1a972017 100644 --- a/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzhHy-ch/step5.vue @@ -183,7 +183,7 @@ :rows="3" resize="none" placeholder="请输入意见" - v-model="commentText"> + v-model="commentStep5"> @@ -345,7 +345,7 @@ export default { pId: this.$route.query.prcId, uploadFileLength: '', - commentText: '', + commentStep5: '', roleShowflag: false, nodeList: [], // 人员编辑 @@ -402,6 +402,7 @@ export default { this.ch_pageData = JSON.parse(JSON.stringify(item)).ch_pageData this.uploadFileLength = this.ch_pageData.fileTextList.length this.roleForm = JSON.parse(JSON.stringify(item)).roleList + this.commentStep5 = JSON.parse(JSON.stringify(item)).commentStep5 // this.ch_pageData.comityFileNum = this.fileTextList }) }, @@ -491,7 +492,7 @@ export default { _formData.append('json', JSON.stringify({ ch_pageData: this.ch_pageData, roleList: this.roleForm, - commentText: this.commentText + commentStep5: this.commentStep5 })) saveTaskForPub(_formData).then(res => { this.saveLoading = false @@ -506,7 +507,7 @@ export default { let json = { leader: this.roleForm.leaderUserId, ch_pageData: this.ch_pageData, - commentText: this.commentText, + commentText: this.commentStep5, roleList: this.roleForm, } this.$refs['ch_pageData'].validate((valid) => { diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue index 3d6f1cccd..2c79ed7ac 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-1.vue @@ -1134,7 +1134,6 @@ export default { if (valid) { this.isSubmit = true this.$http.post("lawss/activiti/startProcessRollBack", { - id: this.bpnId || '', createUser: this.$store.getters.userInfo.userId, createUserName: this.$store.getters.userInfo.userName, type: '4', @@ -1157,6 +1156,14 @@ export default { }, res => { if (res.success) { this.$message.success(res.message); + if (this.bpnId !== '') { + let taskId = { + id: this.bpnId + } + taskDel(taskId).then(res=>{ + return res + }) + } this.$router.push("/processCenter"); } this.isSubmit = false diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 412e435de..3707f0182 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -690,7 +690,7 @@ import ProcessHeader from "../../components/ProcessHeader"; import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; -import {saveTaskFirst} from "api/process"; +import { saveTaskFirst, taskDel } from "api/process"; import seeDatalis from "@/pages/localTool/standContrast/pages/seeDatalis"; export default { @@ -1064,7 +1064,6 @@ export default { if (valid) { this.isSubmit = true this.$http.post("lawss/activiti/startProcessRollBack", { - id: this.bpnId || '', createUser: this.$store.getters.userInfo.userId, createUserName: this.$store.getters.userInfo.userName, type: '4', @@ -1087,6 +1086,14 @@ export default { }, res => { if (res.success) { this.$message.success(res.message); + if (this.bpnId !== '') { + let taskId = { + id: this.bpnId + } + taskDel(taskId).then(res=>{ + return res + }) + } this.$router.push("/processCenter"); } this.isSubmit = false diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index a5b345fb9..a4475fb17 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -2929,7 +2929,7 @@ export default { this.saveLoading = true let _formData = new FormData() - // _formData.append('id', this.bpnId) + _formData.append('id', this.bpnId || '') _formData.append('createUser', this.$store.getters.userInfo.userId) _formData.append('createUserName', this.$store.getters.userInfo.uName) _formData.append('prcType', '1') diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index cea06b1d8..9367084a2 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -740,7 +740,7 @@ sortable="custom" align="center"> - - - - + + + + + + @@ -633,7 +635,7 @@ sortable="custom" align="center"> - + + @click.native="choiceZRRS(scope.row, scope.$index)" readonly/>