From 107bd1a9335b40f8cbaf1e9c7043aaad05419318 Mon Sep 17 00:00:00 2001 From: yangchunlong <292345300@qq.com> Date: Fri, 7 Nov 2025 09:46:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9A=80=20=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/setWarehouse.ts | 27 ++ src/api/modules/shop.ts | 6 +- src/components/DetailsSearch/index.vue | 17 +- src/hooks/useTable.ts | 9 - src/styles/element.scss | 2 +- .../set/shop/constant/list/details.ts | 2 +- .../set/shop/constant/list/table.ts | 12 +- src/views/foundation/set/shop/index.vue | 56 +-- .../set/warehouse/constant/list/details.ts | 41 +- .../set/warehouse/constant/list/search.ts | 18 +- .../set/warehouse/constant/list/table.ts | 7 + src/views/foundation/set/warehouse/index.vue | 136 +++++-- src/views/foundation/subscribe/list/index.vue | 1 + ....timestamp-1762304755718-8c17e0d0abd23.mjs | 367 ++++++++++++++++++ 14 files changed, 604 insertions(+), 97 deletions(-) create mode 100644 src/api/modules/setWarehouse.ts create mode 100644 vite.config.ts.timestamp-1762304755718-8c17e0d0abd23.mjs diff --git a/src/api/modules/setWarehouse.ts b/src/api/modules/setWarehouse.ts new file mode 100644 index 0000000..6332817 --- /dev/null +++ b/src/api/modules/setWarehouse.ts @@ -0,0 +1,27 @@ +import http from "@/api"; + +// +export const getSetWarehouseListApi = (params: any) => { + return http.get(`store`, params); +}; +// getWarehouseUpApi,getWarehouseDetailsApi,getWarehouseUpApi +//删除 +export const getWarehouseDelApi = (params: any) => { + return http.delete(`warehouse/relationship/${params}`); +}; +//新增 /admapi/warehouse/relationship +export const getWarehouseAddApi = (params: any) => { + return http.post(`warehouse/relationship`, params); +}; +//更新 +export const getWarehouseUpApi = (id: any, params: any) => { + return http.post(`warehouse/relationship/${id}`, params); +}; +//详情 +// export const getWarehouseDetailsApi = (id: any) => { +// return http.get(`store/${id}`); +// }; +// //导出 +// export const getShopListExportApi = (params: any) => { +// return http.get(`store/export`, params); +// }; diff --git a/src/api/modules/shop.ts b/src/api/modules/shop.ts index 128248a..6500adf 100644 --- a/src/api/modules/shop.ts +++ b/src/api/modules/shop.ts @@ -1,8 +1,8 @@ import http from "@/api"; //店鋪資料列表 -export const getShopListApi = () => { - return http.get(`store`); +export const getShopListApi = (params: any) => { + return http.get(`store`, params); }; //獲取接入系統列表數據 export const getShopAccessSystemApi = () => { @@ -22,7 +22,7 @@ export const getShopUpApi = (id: any, params: any) => { }; //详情 export const getShopDetailsApi = (id: any) => { - return http.post(`store/${id}`); + return http.get(`store/${id}`); }; //导出 export const getShopListExportApi = (params: any) => { diff --git a/src/components/DetailsSearch/index.vue b/src/components/DetailsSearch/index.vue index cd2e4bd..dc23ece 100644 --- a/src/components/DetailsSearch/index.vue +++ b/src/components/DetailsSearch/index.vue @@ -76,7 +76,22 @@ /> - + -