From 1131f1972687ea85086319607577e2738c0915bb Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" Date: Tue, 25 Mar 2025 10:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E8=B5=84=E6=96=99=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/business/base/address/address-api.ts | 69 +++ .../business/base/address/address-const.ts | 11 + .../src/constants/support/table-id-const.ts | 1 + .../business/base/address/address-form.vue | 128 ++++++ .../business/base/address/address-list.vue | 422 ++++++++++++++++++ .../business/base/address/address-select.vue | 89 ++++ ...code-generator-table-config-form-basic.vue | 32 +- 7 files changed, 736 insertions(+), 16 deletions(-) create mode 100644 smart-admin-web-typescript/src/api/business/base/address/address-api.ts create mode 100644 smart-admin-web-typescript/src/api/business/base/address/address-const.ts create mode 100644 smart-admin-web-typescript/src/views/business/base/address/address-form.vue create mode 100644 smart-admin-web-typescript/src/views/business/base/address/address-list.vue create mode 100644 smart-admin-web-typescript/src/views/business/base/address/address-select.vue diff --git a/smart-admin-web-typescript/src/api/business/base/address/address-api.ts b/smart-admin-web-typescript/src/api/business/base/address/address-api.ts new file mode 100644 index 0000000..e1ab240 --- /dev/null +++ b/smart-admin-web-typescript/src/api/business/base/address/address-api.ts @@ -0,0 +1,69 @@ +/** + * 收货地址 api 封装 + * + * @Author: hj + * @Date: 2024-12-26 15:35:23 + * @Copyright 友仓 + */ +import {postRequest, getRequest,getDownload} from '/@/lib/axios'; + +export const addressApi = { + + /** + * 分页查询 @author hj + */ + queryPage: (param) => { + return postRequest('/address/queryPage', param); + }, + + /** + * 增加 @author hj + */ + add: (param) => { + return postRequest('/address/add', param); + }, + + /** + * 修改 @author hj + */ + update: (param) => { + return postRequest('/address/update', param); + }, + + + /** + * 删除 @author hj + */ + delete: (addressId: number) => { + return getRequest('/address/delete', {addressId}); + }, + + /** + * 批量删除 @author hj + */ + batchDelete: (idList: number[]) => { + return postRequest('/address/batchDelete', idList); + }, + + /** + * 下拉查询 @author hj + */ + queryAddress: (param: object) => { + return postRequest('/address/queryAddress', param); + }, + + /** + * 导入 @author hj + */ + importAddress: (file: object) => { + return postRequest('/address/importAddress', file); + }, + + /** + * 导出 @author hj + */ + exportAddress: () => { + return getDownload('/address/exportAddress',{}); + } + +}; diff --git a/smart-admin-web-typescript/src/api/business/base/address/address-const.ts b/smart-admin-web-typescript/src/api/business/base/address/address-const.ts new file mode 100644 index 0000000..d9ae09e --- /dev/null +++ b/smart-admin-web-typescript/src/api/business/base/address/address-const.ts @@ -0,0 +1,11 @@ +/** + * 收货地址 枚举 + * + * @Author: hj + * @Date: 2024-12-26 15:35:23 + * @Copyright 友仓 + */ + + +export default { +}; \ No newline at end of file diff --git a/smart-admin-web-typescript/src/constants/support/table-id-const.ts b/smart-admin-web-typescript/src/constants/support/table-id-const.ts index 2344c68..956f77e 100644 --- a/smart-admin-web-typescript/src/constants/support/table-id-const.ts +++ b/smart-admin-web-typescript/src/constants/support/table-id-const.ts @@ -39,6 +39,7 @@ export const TABLE_ID_CONST = { LOCATION:businessBASEInitTableId+2,//库位 ITEM:businessBASEInitTableId+3,//商品 STOCK:businessBASEInitTableId+4,//容器 + ADDRESS:businessBASEInitTableId+5,//地址 } }, diff --git a/smart-admin-web-typescript/src/views/business/base/address/address-form.vue b/smart-admin-web-typescript/src/views/business/base/address/address-form.vue new file mode 100644 index 0000000..4229c8b --- /dev/null +++ b/smart-admin-web-typescript/src/views/business/base/address/address-form.vue @@ -0,0 +1,128 @@ + + + diff --git a/smart-admin-web-typescript/src/views/business/base/address/address-list.vue b/smart-admin-web-typescript/src/views/business/base/address/address-list.vue new file mode 100644 index 0000000..be1e9af --- /dev/null +++ b/smart-admin-web-typescript/src/views/business/base/address/address-list.vue @@ -0,0 +1,422 @@ + + + diff --git a/smart-admin-web-typescript/src/views/business/base/address/address-select.vue b/smart-admin-web-typescript/src/views/business/base/address/address-select.vue new file mode 100644 index 0000000..9d9907a --- /dev/null +++ b/smart-admin-web-typescript/src/views/business/base/address/address-select.vue @@ -0,0 +1,89 @@ + + + + diff --git a/smart-admin-web-typescript/src/views/support/code-generator/components/form/code-generator-table-config-form-basic.vue b/smart-admin-web-typescript/src/views/support/code-generator/components/form/code-generator-table-config-form-basic.vue index 6f73b0e..46361d4 100644 --- a/smart-admin-web-typescript/src/views/support/code-generator/components/form/code-generator-table-config-form-basic.vue +++ b/smart-admin-web-typescript/src/views/support/code-generator/components/form/code-generator-table-config-form-basic.vue @@ -1,11 +1,11 @@