From 4e2fd99615fce457faa894b55701276659240aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 26 Oct 2023 11:16:06 +0800 Subject: [PATCH] =?UTF-8?q?form=E7=BB=84=E4=BB=B6=E4=B8=BB=E5=AD=90?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E9=97=AD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 4 ++-- src/views/wms/purchaseclaimRequestMain/index.vue | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 31f199b94..c9055fd1f 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -243,7 +243,7 @@ const open = async (type: string, row?: any) => { } } } -defineExpose({ open , formRef, opensearchTable}) // 提供 open 方法,用于打开弹窗 +defineExpose({ open , formRef, opensearchTable, dialogVisible}) // 提供 open 方法,用于打开弹窗 /** 弹窗按钮 */ const Butttondata = [ @@ -289,7 +289,7 @@ const submitForm = async () => { try { const data = unref(formRef)?.formModel emit('submitForm', formType.value, data ) - dialogVisible.value = false + // dialogVisible.value = false } finally { formLoading.value = false } diff --git a/src/views/wms/purchaseclaimRequestMain/index.vue b/src/views/wms/purchaseclaimRequestMain/index.vue index 25429df70..538666d24 100644 --- a/src/views/wms/purchaseclaimRequestMain/index.vue +++ b/src/views/wms/purchaseclaimRequestMain/index.vue @@ -281,6 +281,8 @@ const submitForm = async (formType, data) => { await PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain(data) message.success(t('common.updateSuccess')) } + formRef.value.dialogVisible = false + // 刷新当前列表 getList() }