|
@ -67,10 +67,15 @@ export const deletePurchasereturnRecordMain = async (id: number) => { |
|
|
|
|
|
|
|
|
// 导出采购退货记录主 Excel
|
|
|
// 导出采购退货记录主 Excel
|
|
|
export const exportPurchasereturnRecordMain = async (params) => { |
|
|
export const exportPurchasereturnRecordMain = async (params) => { |
|
|
return await request.download({ url: `/wms/purchasereturn-record-main/export-excel`, params }) |
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior`, data }) |
|
|
|
|
|
} else { |
|
|
|
|
|
return await request.download({url: `/wms/purchasereturn-record-main/export-excel`, params}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' }) |
|
|
return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' }) |
|
|
} |
|
|
} |
|
|