审批流优化

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;

View File

@ -26,17 +26,17 @@
<div v-show="activeIndex == index">
<div class="page-bg-wrap">
<div class="top-toolbar" style="display: flex; margin-bottom: 10px">
<div id="adminButtons" v-show="activeIndex == index" style="margin-right: 10px">
<!-- <div id="adminButtons" v-show="activeIndex == index" style="margin-right: 10px">
<a-button @click="handleCancel" v-if="forms.modes[index] == 'edit'">取消</a-button>
<a-button @click="handleSave" v-if="forms.modes[index] == 'edit'" type="primary" style="margin-left: 12px">保存</a-button>
<a-button @click="handleEdit" v-if="forms.modes[index] == 'view'">编辑</a-button>
<a-button @click="handleDelete" type="danger" style="margin-left: 12px">删除</a-button>
</div>
</div> -->
<div id="approveExtendButton"></div>
<div id="approveRightButton"></div>
</div>
<div style="height: 500px;" v-if="customFormConfig.codeList.includes(props.curPageCode)">
<component :id="props.id" :is="componentName" :disabled="props.disabled" />
<component :id="props.id" :is="componentName" :disabled="true" />
</div>
<div v-else>
<SystemForm class="form-box" v-if="item.formType == FormType.SYSTEM" :systemComponent="item.systemComponent" :isViewProcess="props.disabled" :formModel="item.formModel" :workflowConfig="item" :ref="setItemRef" />
@ -534,7 +534,7 @@
}
.top-toolbar {
min-height: 44px;
// min-height: 44px;
margin-bottom: 12px;
border-bottom: 1px solid #eee;
}