From 6eaf00241b6008c4f9e9616d26d2dd5ccbb2f947 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 14 May 2024 14:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/item/itemAccounts/index.vue | 6 +++++- src/views/eam/item/itemInLocation/index.vue | 1 + src/views/eam/item/itemOutLocation/index.vue | 1 + src/views/eam/item/transaction/transaction.data.ts | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/eam/item/itemAccounts/index.vue b/src/views/eam/item/itemAccounts/index.vue index 7088a0a..cfdb2f8 100644 --- a/src/views/eam/item/itemAccounts/index.vue +++ b/src/views/eam/item/itemAccounts/index.vue @@ -335,14 +335,18 @@ const formsSuccess = async (formType, data) => { //新到货转账内 await ItemAccountsApi.newTurnIn(data) message.success(t('common.createSuccess')) + basicFormRef1.value.formLoading = false + basicFormRef1.value.dialogVisible = false } else { await ItemAccountsApi.updateItemAccounts(data) message.success(t('common.updateSuccess')) + } + basicFormRef.value.formLoading = false basicFormRef.value.dialogVisible = false getList() - } } finally { basicFormRef.value.formLoading = false + basicFormRef1.value.formLoading = false } } diff --git a/src/views/eam/item/itemInLocation/index.vue b/src/views/eam/item/itemInLocation/index.vue index f1d1d95..56e1930 100644 --- a/src/views/eam/item/itemInLocation/index.vue +++ b/src/views/eam/item/itemInLocation/index.vue @@ -204,6 +204,7 @@ const formsSuccess = async (formType, data) => { await ItemInLocationApi.updateItemInLocation(data) message.success(t('common.updateSuccess')) } + basicFormRef.value.formLoading = false basicFormRef.value.dialogVisible = false getList() } finally { diff --git a/src/views/eam/item/itemOutLocation/index.vue b/src/views/eam/item/itemOutLocation/index.vue index 31c110b..044c19c 100644 --- a/src/views/eam/item/itemOutLocation/index.vue +++ b/src/views/eam/item/itemOutLocation/index.vue @@ -204,6 +204,7 @@ const formsSuccess = async (formType, data) => { await ItemOutLocationApi.updateItemOutLocation(data) message.success(t('common.updateSuccess')) } + basicFormRef.value.formLoading = false basicFormRef.value.dialogVisible = false getList() } finally { diff --git a/src/views/eam/item/transaction/transaction.data.ts b/src/views/eam/item/transaction/transaction.data.ts index 4d3aca3..1878de8 100644 --- a/src/views/eam/item/transaction/transaction.data.ts +++ b/src/views/eam/item/transaction/transaction.data.ts @@ -39,7 +39,7 @@ export const Transaction = useCrudSchemas(reactive([ } }, { - label: '库存动作', + label: '库存类型', field: 'inventoryAction', sort: 'custom', dictType: DICT_TYPE.INVENTORY_ACTION,