From b72840d40ff46c486cb08395a2f5b2ebac95b58c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com>
Date: Wed, 27 Mar 2024 18:38:14 +0800
Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/eam/basic/location/index.vue | 20 +-
src/views/eam/basic/locationArea/index.vue | 21 +-
src/views/eam/basic/supplier/index.vue | 344 +++++++++---------
.../item/itemApplyMain/itemApplyMain.data.ts | 42 +--
4 files changed, 210 insertions(+), 217 deletions(-)
diff --git a/src/views/eam/basic/location/index.vue b/src/views/eam/basic/location/index.vue
index 37b70d9..74180a6 100644
--- a/src/views/eam/basic/location/index.vue
+++ b/src/views/eam/basic/location/index.vue
@@ -151,15 +151,19 @@
}
if (data.activeTime == 0) data.activeTime = null;
if (data.expireTime == 0) data.expireTime = null;
- if (formType === 'create') {
- await LocationApi.createLocation(data)
- message.success(t('common.createSuccess'))
- } else {
- await LocationApi.updateLocation(data)
- message.success(t('common.updateSuccess'))
+ try {
+ if (formType === 'create') {
+ await LocationApi.createLocation(data)
+ message.success(t('common.createSuccess'))
+ } else {
+ await LocationApi.updateLocation(data)
+ message.success(t('common.updateSuccess'))
+ }
+ basicFormRef.value.dialogVisible = false
+ getList()
+ } finally {
+ basicFormRef.value.formLoading = false
}
- basicFormRef.value.dialogVisible = false
- getList()
}
/** 详情操作 */
diff --git a/src/views/eam/basic/locationArea/index.vue b/src/views/eam/basic/locationArea/index.vue
index 45cf784..5dc03e0 100644
--- a/src/views/eam/basic/locationArea/index.vue
+++ b/src/views/eam/basic/locationArea/index.vue
@@ -143,15 +143,20 @@
}
if (data.activeTime == 0) data.activeTime = null;
if (data.expireTime == 0) data.expireTime = null;
- if (formType === 'create') {
- await LocationAreaApi.createLocationArea(data)
- message.success(t('common.createSuccess'))
- } else {
- await LocationAreaApi.updateLocationArea(data)
- message.success(t('common.updateSuccess'))
+ try {
+ if (formType === 'create') {
+ await LocationAreaApi.createLocationArea(data)
+ message.success(t('common.createSuccess'))
+ } else {
+ await LocationAreaApi.updateLocationArea(data)
+ message.success(t('common.updateSuccess'))
+ }
+ basicFormRef.value.dialogVisible = false
+ getList()
+ } finally {
+ basicFormRef.value.formLoading = false
}
- basicFormRef.value.dialogVisible = false
- getList()
+
}
// 查询页面返回
diff --git a/src/views/eam/basic/supplier/index.vue b/src/views/eam/basic/supplier/index.vue
index 39206d0..d8940c4 100644
--- a/src/views/eam/basic/supplier/index.vue
+++ b/src/views/eam/basic/supplier/index.vue
@@ -4,29 +4,16 @@
-
-
+
+
-
+ }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
+ v-model:sort="tableObject.sort">
{{ row.code }}
@@ -39,187 +26,184 @@
-
+
-
+
diff --git a/src/views/eam/item/itemApplyMain/itemApplyMain.data.ts b/src/views/eam/item/itemApplyMain/itemApplyMain.data.ts
index d053746..4a9d03d 100644
--- a/src/views/eam/item/itemApplyMain/itemApplyMain.data.ts
+++ b/src/views/eam/item/itemApplyMain/itemApplyMain.data.ts
@@ -258,27 +258,27 @@ export const ItemApplyDetail = useCrudSchemas(reactive([
precision: 2
}
},
- {
- label: '是否账内库',
- field: 'isInAccount',
- sort: 'custom',
- dictType: DICT_TYPE.TRUE_FALSE,
- dictClass: 'string',
- isSearch: true,
- isTable: true,
- table: {
- width: 150
- },
- tableForm: {
- type: 'Select',
- disabled: true
- },
- form: {
- componentProps: {
- disabled: true,
- }
- },
- },
+ // {
+ // label: '是否账内库',
+ // field: 'isInAccount',
+ // sort: 'custom',
+ // dictType: DICT_TYPE.TRUE_FALSE,
+ // dictClass: 'string',
+ // isSearch: true,
+ // isTable: true,
+ // table: {
+ // width: 150
+ // },
+ // tableForm: {
+ // type: 'Select',
+ // disabled: true
+ // },
+ // form: {
+ // componentProps: {
+ // disabled: true,
+ // }
+ // },
+ // },
{
label: '是否可用',
field: 'available',