审批流程优化
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user