|
|
@ -28,38 +28,38 @@ export const getSupplierCyclePage = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return await request.post({ url: '/basic/supplier-cycle/senior', data }) |
|
|
|
return await request.post({ url: '/wms/supplier-cycle/senior', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/basic/supplier-cycle/page`, params }) |
|
|
|
return await request.get({ url: `/wms/supplier-cycle/page`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询要货预测周期详情
|
|
|
|
export const getSupplierCycle = async (id: number) => { |
|
|
|
return await request.get({ url: `/basic/supplier-cycle/get?id=` + id }) |
|
|
|
return await request.get({ url: `/wms/supplier-cycle/get?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 新增要货预测周期
|
|
|
|
export const createSupplierCycle = async (data: SupplierCycleVO) => { |
|
|
|
return await request.post({ url: `/basic/supplier-cycle/create`, data }) |
|
|
|
return await request.post({ url: `/wms/supplier-cycle/create`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改要货预测周期
|
|
|
|
export const updateSupplierCycle = async (data: SupplierCycleVO) => { |
|
|
|
return await request.put({ url: `/basic/supplier-cycle/update`, data }) |
|
|
|
return await request.put({ url: `/wms/supplier-cycle/update`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 删除要货预测周期
|
|
|
|
export const deleteSupplierCycle = async (id: number) => { |
|
|
|
return await request.delete({ url: `/basic/supplier-cycle/delete?id=` + id }) |
|
|
|
return await request.delete({ url: `/wms/supplier-cycle/delete?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 导出要货预测周期 Excel
|
|
|
|
export const exportSupplierCycle = async (params) => { |
|
|
|
return await request.download({ url: `/basic/supplier-cycle/export-excel`, params }) |
|
|
|
return await request.download({ url: `/wms/supplier-cycle/export-excel`, params }) |
|
|
|
} |
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|
return request.download({ url: '/basic/supplier-cycle/get-import-template' }) |
|
|
|
return request.download({ url: '/wms/supplier-cycle/get-import-template' }) |
|
|
|
} |