审批流优化

This commit is contained in:
‘huanghaiixia’
2025-11-28 14:44:37 +08:00
parent 9b3d1f0c8e
commit e9f08e4100
5 changed files with 77 additions and 31 deletions

View File

@ -227,7 +227,12 @@
id.value = res?.formInfos[0]?.formData?.id
initProcessData(res);
if (res.buttonConfigs) {
approvalData.buttonConfigs = res.buttonConfigs;
approvalData.buttonConfigs = res.buttonConfigs || [];
// 不显示保存按钮
let idx = approvalData.buttonConfigs.findIndex(v => v.buttonCode == 'draft')
if (idx >-1) {
approvalData.buttonConfigs.splice(idx, 1)
}
}
if (res.relationTasks) {
data.predecessorTasks = res.relationTasks;