From 2506d02e95dae626864d33320dc5b5a6a5e2ae2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com>
Date: Tue, 2 Dec 2025 17:55:03 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E4=BF=9D=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sales/Customer/components/createForm.vue | 10 ++++++----
src/views/secondDev/approveFlowPage.vue | 11 ++++++++++-
src/views/secondDev/createFlow.vue | 2 +-
3 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/src/views/sales/Customer/components/createForm.vue b/src/views/sales/Customer/components/createForm.vue
index 0f4c0c6..a77ad52 100644
--- a/src/views/sales/Customer/components/createForm.vue
+++ b/src/views/sales/Customer/components/createForm.vue
@@ -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
diff --git a/src/views/secondDev/approveFlowPage.vue b/src/views/secondDev/approveFlowPage.vue
index 0d5bc0d..dac87e7 100644
--- a/src/views/secondDev/approveFlowPage.vue
+++ b/src/views/secondDev/approveFlowPage.vue
@@ -38,7 +38,7 @@
-
+
{
+ 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();
diff --git a/src/views/secondDev/createFlow.vue b/src/views/secondDev/createFlow.vue
index 8a39d25..f009f65 100644
--- a/src/views/secondDev/createFlow.vue
+++ b/src/views/secondDev/createFlow.vue
@@ -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') {