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 @@ /> - + -