审批流程优化

This commit is contained in:
‘huanghaiixia’
2025-12-29 17:59:07 +08:00
parent b4b883af02
commit 8fd18b347b
9 changed files with 31 additions and 16 deletions

View File

@ -445,10 +445,15 @@
async function onDisagreeClick() {
try {
openSpinning();
await submit();
if (!validateSuccess.value) {
if (!customFormConfig.codeList.includes(curPageCode.value)) {
await submit();
if (!validateSuccess.value) {
closeSpinning();
return;
}
} else {
await formInformation.value.handleSubmit(true);
validateSuccess.value = true
}
const params = await getApproveParams();
const nextNodes = await postGetNextTaskMaybeArrival(params);
@ -569,6 +574,15 @@
index: 1
});
}
// 如果审批已完成,且没有保存按钮
if (rQuery.status=='COMPLETED' && btnConfigs.findIndex(v=>v.buttonCode =='draft') < 0) {
btnConfigs.unshift({
buttonName: t('保存'),
buttonCode: 'draft',
approveType: ApproveType.DRAFT,
buttonType: 0
});
}
btnConfigs.forEach((btn) => {
const index = btn.index;
const buttonGroup = btn?.buttonGroup;