审批保存
This commit is contained in:
@ -679,10 +679,12 @@
|
||||
if (type) {
|
||||
data?.id && (formState.id = data.id)
|
||||
data?.cuCode && (formState.cuCode = data.cuCode)
|
||||
notification.success({
|
||||
message: 'Tip',
|
||||
description: data?.id ? t('新增成功!') : t('修改成功!')
|
||||
}); //提示消息
|
||||
if (!type) {
|
||||
notification.success({
|
||||
message: 'Tip',
|
||||
description: data?.id ? t('新增成功!') : t('修改成功!')
|
||||
}); //提示消息
|
||||
}
|
||||
}
|
||||
// formRef.value.resetFields();
|
||||
return data?.id ? data : formState
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -331,7 +331,7 @@
|
||||
};
|
||||
}
|
||||
async function onSave() {
|
||||
let value = await formInformation.value.handleSubmit(true);
|
||||
let value = await formInformation.value.handleSubmit();
|
||||
}
|
||||
async function saveLaunchNew() {
|
||||
if (!taskId.value && rDraftsId.value != '0') {
|
||||
|
||||
Reference in New Issue
Block a user