diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index ac24b9540..0e9a838b7 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -2170,7 +2170,7 @@ export default { this.$message.error('水印下载仅支持PDF,pdf格式文件') } else { if (attId != null && attId !== '') { - window.location.href = '/api/att/attFile/downloadFileForSarWaterMark?fileId=' + attId + window.location.href = '/api/att/attFile/downloadFileForSarWaterMark?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId } else { this.$message.error('请选择要下载的文件') } diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index d4b576538..0fff44a57 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -1130,7 +1130,7 @@ import ProcessHeader from '../../components/ProcessHeader' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - import {saveTaskFirst} from "api/process"; + import {saveTaskFirst, queryTaskFirst} from "api/process"; import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; @@ -1444,6 +1444,18 @@ }, }, methods: { + getTaskId () { + queryTaskFirst({ + bpnId: this.$route.query.bpnId + }).then(res => { + this.verifySarStandard = this.$route.query.verifySarStandard + let mes = JSON.parse(res.mes) + mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD')) + this.form = mes.form + this.roleForm = mes.roleForm + this.commentText = mes.commentText + }) + }, // 将文本状态的id与name对应 setMap(data){ data.forEach(item => { @@ -2036,15 +2048,20 @@ // _formData.append('id', this.bpnId) _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('prcType', '1') _formData.append('json', JSON.stringify({ - prcForm: this.prcForm, - sarAccessInfoList: this.sarAccessInfoList, - sarAccessInfoListADMIN: this.sarAccessInfoListADMIN, - bzqdForm: this.bzqdForm, - listInfo: this.listInfo, - id: this.id + // prcForm: this.prcForm, + // sarAccessInfoList: this.sarAccessInfoList, + // sarAccessInfoListADMIN: this.sarAccessInfoListADMIN, + // bzqdForm: this.bzqdForm, + // listInfo: this.listInfo, + // id: this.id + taskInfo: '申请人发起', + form: this.form, + roleForm: this.roleForm, + commentText: this.commentText })) + console.log(_formData, '参数') saveTaskFirst(_formData).then(res => { this.saveLoading = false this.$message.success('保存成功') @@ -2123,6 +2140,7 @@ }, }, mounted () { + this.getTaskId() this.getTree() this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index f1d620249..1a4702620 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -514,25 +514,38 @@ -
- - -
- - - - - - -
-
-
-
+
+ + +
+ + + + + + + + + + + + +
+
+
+
@@ -650,7 +663,7 @@
{ - this.saveLoading = false - this.$message.success('保存成功') - // this.bpnId = res.result - }).catch(e => { - this.saveLoading = false - }) - }, + handleSave() {}, handleSubmit() { - this.isSubmit = true - this.form.commentText = this.commentText - this.form.approvalOpinion = this.approvalOpinion - const json = JSON.stringify(this.form); - this.$http.post('lawss/activiti/completeTask', { - taskIds: this.taskIds, - userId : this.userId, - json: json - }, { - _this: this - }, res => { - console.log(res); - if (res.success) { - if(this.approvalOpinion === '1'){ + this.$refs['formTongGuo'].validate((valid) => { + if (valid) { + this.isSubmit = true + this.form.commentText = this.formTongGuo.commentText + this.form.approvalOpinion = this.formTongGuo.approvalOpinion + const json = JSON.stringify(this.form); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId : this.userId, + json: json + }, { + _this: this + }, res => { + console.log(res); + if (res.success) { + if(this.formTongGuo.approvalOpinion === '1'){ this.$message.warning("驳回成功") this.isSubmit = false - }else{ + // 流程提交之后,应该流转至待办任务页面 + this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + }else{ this.processCreateStand(json) + } } - } - }) + }) + }}) }, /** diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue index fff8e5e9e..254066498 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -643,7 +643,7 @@