Browse Source

供应商发票记录筛选导出

hella_online_20240819
zhang_li 3 months ago
parent
commit
7610d56a9b
  1. 10
      src/api/wms/supplierinvoiceRecordMain/index.ts

10
src/api/wms/supplierinvoiceRecordMain/index.ts

@ -53,8 +53,14 @@ export const deleteSupplierinvoiceRecordMain = async (id: number) => {
}
// 导出供应商发票记录主 Excel
export const exportSupplierinvoiceRecordMain = async (data) => {
return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel`, data })
export const exportSupplierinvoiceRecordMain = async (params) => {
console.log(params)
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/supplierinvoice-record-main/export-excel`, params })
}
}
// 下载用户导入模板

Loading…
Cancel
Save