添加下一操作人姓名的参数
This commit is contained in:
parent
059f23168d
commit
75c70a7855
|
|
@ -269,11 +269,11 @@
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="punishInfo.linkType === '0'">
|
<template v-else-if="punishInfo.linkType === '0'">
|
||||||
<el-radio label="approveRemPunish">提交至审批人</el-radio>
|
<el-radio label="approveRemPunish">提交至审批人</el-radio>
|
||||||
<el-radio label="returnRemPunish">回退上一步</el-radio>
|
<el-radio label="returnRemPunish">回退至上一操作人</el-radio>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="punishInfo.linkType === '2'">
|
<template v-else-if="punishInfo.linkType === '2'">
|
||||||
<el-radio label="endRemPunish">业务结束</el-radio>
|
<el-radio label="endRemPunish">业务结束</el-radio>
|
||||||
<el-radio label="returnRemPunish">回退上一步</el-radio>
|
<el-radio label="returnRemPunish">回退至上一操作人</el-radio>
|
||||||
</template>
|
</template>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -298,6 +298,7 @@
|
||||||
filterable
|
filterable
|
||||||
class="custom"
|
class="custom"
|
||||||
style="width:40%"
|
style="width:40%"
|
||||||
|
@change="handlePerformerChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in reviewer"
|
v-for="item in reviewer"
|
||||||
|
|
@ -414,7 +415,8 @@ export default {
|
||||||
isAgreeRepair: '',
|
isAgreeRepair: '',
|
||||||
formData: {
|
formData: {
|
||||||
opinion: '',
|
opinion: '',
|
||||||
nextPerformerids: ''
|
nextPerformerids: '',
|
||||||
|
nextPerformerName: ''
|
||||||
},
|
},
|
||||||
reviewer: []
|
reviewer: []
|
||||||
}
|
}
|
||||||
|
|
@ -461,6 +463,15 @@ export default {
|
||||||
this.loadReviewer()
|
this.loadReviewer()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handlePerformerChange(selectedValue) {
|
||||||
|
// 找到对应的 reviewer 并设置 nextPerformerName
|
||||||
|
const selectedReviewer = this.reviewer.find(item => item.primaryKey === selectedValue);
|
||||||
|
if (selectedReviewer) {
|
||||||
|
this.punishInfo.nextPerformerName = selectedReviewer.name;
|
||||||
|
} else {
|
||||||
|
this.punishInfo.nextPerformerName = ''; // 如果没有找到,清空
|
||||||
|
}
|
||||||
|
},
|
||||||
// 动态获取下一步操作人的 label
|
// 动态获取下一步操作人的 label
|
||||||
getOperatorLabel() {
|
getOperatorLabel() {
|
||||||
if (this.punishInfo.linkType === '1') {
|
if (this.punishInfo.linkType === '1') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue