Browse Source

修复bug

master
songguoqiang 6 months ago
parent
commit
6eaf00241b
  1. 6
      src/views/eam/item/itemAccounts/index.vue
  2. 1
      src/views/eam/item/itemInLocation/index.vue
  3. 1
      src/views/eam/item/itemOutLocation/index.vue
  4. 2
      src/views/eam/item/transaction/transaction.data.ts

6
src/views/eam/item/itemAccounts/index.vue

@ -335,14 +335,18 @@ const formsSuccess = async (formType, data) => {
// //
await ItemAccountsApi.newTurnIn(data) await ItemAccountsApi.newTurnIn(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
basicFormRef1.value.formLoading = false
basicFormRef1.value.dialogVisible = false
} else { } else {
await ItemAccountsApi.updateItemAccounts(data) await ItemAccountsApi.updateItemAccounts(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
}
} finally { } finally {
basicFormRef.value.formLoading = false basicFormRef.value.formLoading = false
basicFormRef1.value.formLoading = false
} }
} }

1
src/views/eam/item/itemInLocation/index.vue

@ -204,6 +204,7 @@ const formsSuccess = async (formType, data) => {
await ItemInLocationApi.updateItemInLocation(data) await ItemInLocationApi.updateItemInLocation(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
} finally { } finally {

1
src/views/eam/item/itemOutLocation/index.vue

@ -204,6 +204,7 @@ const formsSuccess = async (formType, data) => {
await ItemOutLocationApi.updateItemOutLocation(data) await ItemOutLocationApi.updateItemOutLocation(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
} finally { } finally {

2
src/views/eam/item/transaction/transaction.data.ts

@ -39,7 +39,7 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '库存动作', label: '库存类型',
field: 'inventoryAction', field: 'inventoryAction',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.INVENTORY_ACTION, dictType: DICT_TYPE.INVENTORY_ACTION,

Loading…
Cancel
Save