|
@ -31,6 +31,18 @@ export const getSupplierPage = async (params) => { |
|
|
return await request.get({ url: `/wms/supplier/page`, params }) |
|
|
return await request.get({ url: `/wms/supplier/page`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询供应商列表分页
|
|
|
|
|
|
export const getSupplierPageSCP = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
delete params.isSearch |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return request.post({ url: '/wms/supplier/seniorSCP', data }) |
|
|
|
|
|
} else { |
|
|
|
|
|
return await request.get({ url: `/wms/supplier/pageSCP`, params }) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 查询供应商列表
|
|
|
// 查询供应商列表
|
|
|
export const getSupplierList = async (params) => { |
|
|
export const getSupplierList = async (params) => { |
|
|
return await request.get({ url: `/wms/supplier/list`, params }) |
|
|
return await request.get({ url: `/wms/supplier/list`, params }) |
|
@ -66,6 +78,17 @@ export const exportSupplier = async (params) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导出供应商 Excel
|
|
|
|
|
|
export const exportSupplierSCP = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/wms/supplier/export-excel-senior-SCP`, data }) |
|
|
|
|
|
} else { |
|
|
|
|
|
return await request.download({ url: `/wms/supplier/export-excel-SCP`, params }) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/wms/supplier/get-import-template' }) |
|
|
return request.download({ url: '/wms/supplier/get-import-template' }) |
|
|