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

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
@@ -35,7 +35,7 @@
<el-col :span="24">
<el-form-item :prop="!formdisableflag?'approvalOpinion':''" label-width="132px" class="add-form-item">
<template slot="label">审批意见:</template>
<el-input :maxlength='1000'
<el-input :disabled="formdisableflag" :maxlength='1000'
v-model="examineForm.approvalOpinion"
placeholder="请输入审批意见"
:autosize="{ minRows: 2, maxRows: 4}"
+31 -11
View File
@@ -2,7 +2,7 @@
<!-- 此页面主要展示审核和已完成-->
<div class="process">
<div class="process_box">
<process-header :title="'权限审批'" :proceesNum="this.processOld.prcNum"></process-header>
<process-header :title="'权限审批'" :proceesNum="prcNum"></process-header>
<div class="procedure">
<div class="process_content">
<span class="base_title">基础信息</span>
@@ -26,13 +26,13 @@
:disabled="formControl">
<el-row>
<el-col :span="9">
<el-form-item label="申请原因:" prop="name">
<el-input type="textarea" v-model="applicationForm.name" placeholder="请输入申请原因"></el-input>
<el-form-item label="申请原因:" prop="applyReason">
<el-input type="textarea" v-model="applicationForm.applyReason" placeholder="请输入申请原因"></el-input>
</el-form-item>
</el-col>
<el-col :span="9" :offset="6">
<el-form-item label="选择申请权限:" prop="send">
<el-select v-model="applicationForm.send" placeholder="请选择申请权限">
<el-form-item label="选择申请权限:" prop="power">
<el-select v-model="applicationForm.power" placeholder="请选择申请权限">
<el-option
v-for="item in PERMISSION"
:key="item.value"
@@ -48,7 +48,7 @@
</div>
<div class="process_content">
<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>
@@ -67,7 +67,7 @@
<process-choose-tree
dialog-model
:visible.sync="visibleTree"
:maxSelected="100"
:maxSelected="1"
:config="{value: '',valueName:''}"
@confirm="handleDblClick"
></process-choose-tree>
@@ -97,6 +97,15 @@ export default {
},
data () {
return {
applicationFormRule: {
applyReason: [{
max: 1000, message: '申请原因最多填写1000字符'
}],
power: [{
required: true,
message: '请选择申请权限'
}]
},
processFormRule: {
prcName: [{
required: true,
@@ -124,18 +133,29 @@ export default {
pageNo: 1
},
PERMISSION,
submitjson:{}
submitjson:{},
taskId:'',
prcNum:''
}
},
created () {
this.getProcessDetail().then(res=>{
this.taskId=this.$route.query.taskId
this.prcNum=this.$route.query.prcNum
let params={
taskId: this.taskId,
prcType: 1
}
if(this.$route.query.type=='yiban'){
this.disabled=true
}
this.getProcessDetail(params).then(res=>{
this.applicationForm.name = JSON.parse(this.processOld.dataJson).name
this.applicationForm.send = JSON.parse(this.processOld.dataJson).send
this.tableData = JSON.parse(this.processOld.dataJson).dataMsg
this.processForm.prcName = JSON.parse(this.processOld.dataJson).prcName
this.disabled=false
this.formControl= true
if(this.$route.query.yiban){
if(this.$route.query.type=='yiban'){
this.disabled=true
this.submitjson=JSON.parse(this.processOld.submitJson)
}else{
@@ -158,7 +178,7 @@ export default {
},
// 选择转办
handleDblClick (treeNode) {
// taskId: this.$store.getters.getHandleInfo.taskIds, // 任务id
// taskId: this.$store.getters.getHandleInfo.taskId, // 任务id
// assignee: treeNode[0].userId, // 转办人
// userId: this.$store.getters.userInfo.userId, // dangqian人
// pId: this.$store.getters.getHandleInfo.prcId // 流程实例
+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()
}