【修改】修改流程传参 修改名称样式

This commit is contained in:
zhoulingpo
2023-04-24 21:11:53 +08:00
parent 95b35ed77a
commit 21f68b0bd8
12 changed files with 106 additions and 65 deletions
+13 -8
View File
@@ -2,7 +2,7 @@
<div class="process">
<div class="process_box">
<process-header v-if="initShow" :title="'发起流程'"></process-header>
<process-header v-else :title="'发起人修改'" :proceesNum="this.processOld.prcNum"></process-header>
<process-header v-else :title="'发起人修改'" :proceesNum="prcNum"></process-header>
<div class="procedure">
<div class="process_content">
<span class="base_title">基础信息</span>
@@ -48,7 +48,7 @@
</div>
<div class="process_content" v-if="initShow">
<span class="base_title">审批历史</span>
<process-approval-history></process-approval-history>
<process-approval-history :prcNum="prcNum"></process-approval-history>
</div>
<div class="process_content">
<span class="base_title">指派信息</span>
@@ -196,7 +196,8 @@ export default {
max: 1000, message: '说明最多填写1000字符'
}]
},
taskIds:''
taskId:'',
prcNum:''
}
},
created () {
@@ -208,10 +209,14 @@ export default {
this.handleReset()
}
if(this.$route.query.taskDefinitionKey == 'aid4'){
this.taskIds=this.$route.query.taskIds
this.taskId=this.$route.query.taskId
this.prcNum=this.$route.query.prcNum
this.initShow = true
this.formControlname=true
this.getProcessDetail().then(res =>{
this.getProcessDetail({
taskId: this.taskId,
prcType: 1
}).then(res =>{
//基础信息
this.applicationForm.applyReason = JSON.parse(this.processOld.dataJson).applyReason
this.applicationForm.power = JSON.parse(this.processOld.dataJson).power
@@ -221,8 +226,8 @@ export default {
this.assignForm=JSON.parse(this.processOld.submitJson)
})
}
if(this.$route.query.yiban){
this.taskIds=this.$route.query.taskIds
if(this.$route.query.type=='yiban'){
this.taskId=this.$route.query.taskId
this.getProcessDetail().then(()=>{
this.applicationForm.applyReason = JSON.parse(this.processOld.dataJson).applyReason
this.applicationForm.power = JSON.parse(this.processOld.dataJson).power
@@ -325,7 +330,7 @@ export default {
if(this.initShow){
let dataJson=JSON.stringify({...this.applicationForm,...this.processForm,dataMsg:this.tableData})
let submitJson=JSON.stringify(this.assignForm)
this.completeProcess({dataJson,submitJson,taskId:this.taskIds,userId:form.userId})
this.completeProcess({dataJson,submitJson,taskId:this.taskId,userId:form.userId})
}else{
this.startProcess()
}