添加下一操作人姓名的参数

This commit is contained in:
zhouxy 2026-02-11 14:19:32 +08:00
parent 059f23168d
commit 75c70a7855
1 changed files with 14 additions and 3 deletions

View File

@ -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') {