|
|
@ -22,6 +22,17 @@ export const getPurchasepricePage = async (params) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询采购价格单列表
|
|
|
|
export const getPurchasepricePageSCP = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return request.post({ url: '/wms/purchaseprice/seniorSCP', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/wms/purchaseprice/pageSCP`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询采购价格单详情
|
|
|
|
export const getPurchaseprice = async (id: number) => { |
|
|
|
return await request.get({ url: `/wms/purchaseprice/get?id=` + id }) |
|
|
@ -52,6 +63,16 @@ export const exportPurchaseprice = async (params) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 导出采购价格单 Excel
|
|
|
|
export const exportPurchasepriceSCP = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
const data = {...params} |
|
|
|
return await request.downloadPost({ url: `/wms/purchaseprice/export-excel-senior-SCP`, data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/purchaseprice/export-excel-SCP`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|
return request.download({ url: '/wms/purchaseprice/get-import-template' }) |
|
|
|