40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import http from "@/api";
|
|
|
|
//列表
|
|
export const getSetWarehouseListApi = (params: any) => {
|
|
return http.get<any>(`warehouse/relationship`, params);
|
|
};
|
|
|
|
//删除
|
|
export const getWarehouseDelApi = (params: any) => {
|
|
return http.delete<any>(`warehouse/relationship/${params}`);
|
|
};
|
|
//新增 /admapi/warehouse/relationship
|
|
export const getWarehouseAddApi = (params: any) => {
|
|
return http.post<any>(`warehouse/relationship`, params);
|
|
};
|
|
//更新
|
|
export const getWarehouseUpApi = (id: any, params: any) => {
|
|
return http.post<any>(`warehouse/relationship/${id}`, params);
|
|
};
|
|
//详情
|
|
export const getWarehouseDetailsApi = (id: any) => {
|
|
return http.get<any>(`warehouse/relationship/${id}`);
|
|
};
|
|
|
|
//获取金蝶仓库
|
|
export const getSetWarehouseKingdeeListApi = (params: any) => {
|
|
return http.get<any>(`basicinfo/warehouses/kingdee`, params);
|
|
};
|
|
//获取金蝶子仓库
|
|
export const getSetWarehouseSubwarehousesListApi = (params: any) => {
|
|
return http.get<any>(`basicinfo/subwarehouses/kingdee`, params);
|
|
};
|
|
//获取聚水潭仓库 /admapi/basicinfo/warehouses/jushuitan
|
|
export const getSetWarehouseSubwarehousesJushuitanListApi = (params: any) => {
|
|
return http.get<any>(`basicinfo/warehouses/jushuitan`, params);
|
|
};
|
|
export const getSetWarehouseSubwarehousesLingXingListApi = (params: any) => {
|
|
return http.get<any>(`basicinfo/warehouses/lingxing`, params);
|
|
};
|