审批保存
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
</template>
|
||||
</a-space>
|
||||
</div>
|
||||
<component v-if="customFormConfig.codeList.includes(curPageCode)" :is="componentName" ref="formInformation" :disabled="true" />
|
||||
<component v-if="customFormConfig.codeList.includes(curPageCode)" :is="componentName" ref="formInformation" :disabled="readonly" />
|
||||
<FormInformation
|
||||
v-else
|
||||
:key="renderKey"
|
||||
@ -251,6 +251,10 @@
|
||||
message: t('撤回'),
|
||||
description: t('撤回成功')
|
||||
});
|
||||
setTimeout(() => {
|
||||
bus.emit(FLOW_PROCESSED);
|
||||
close();
|
||||
}, 500);
|
||||
} else {
|
||||
notification.open({
|
||||
type: 'error',
|
||||
@ -335,6 +339,10 @@
|
||||
}
|
||||
}
|
||||
async function saveDraft() {
|
||||
if (customFormConfig.codeList.includes(curPageCode.value)) {
|
||||
await formInformation.value.handleSubmit();
|
||||
return
|
||||
}
|
||||
try {
|
||||
spinning.value = true;
|
||||
let formModels = await formInformation.value.saveDraftData();
|
||||
@ -402,6 +410,7 @@
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
await formInformation.value.handleSubmit(true);
|
||||
validateSuccess.value = true
|
||||
}
|
||||
const params = await getApproveParams();
|
||||
|
||||
Reference in New Issue
Block a user