Browse Source

导出怎加筛选条件修改

master
zhaoxuebing 10 months ago
parent
commit
775125486f
  1. 7
      src/api/wms/supplierdeliverRequestMain/index.ts
  2. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

7
src/api/wms/supplierdeliverRequestMain/index.ts

@ -93,7 +93,12 @@ export const genRecordsSupplierdeliverRequestMain = async (id) => {
}
// 导出供应商发货申请主 Excel
export const exportSupplierdeliverRequestMain = async (params) => {
return await request.download({ url: `/wms/supplierdeliver-request-main/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: '/wms/supplierdeliver-request-main/export-excel-senior', data })
} else {
return await request.download({url: `/wms/supplierdeliver-request-main/export-excel`, params})
}
}
// 下载用户导入模板

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -453,7 +453,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await SupplierdeliverRequestMainApi.exportSupplierdeliverRequestMain(
setSearchParams
tableObject.params
)
download.excel(data, '供应商发货申请主.xlsx')
} catch {

Loading…
Cancel
Save