Browse Source

导出怎加筛选条件修改

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

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

@ -93,8 +93,13 @@ export const genRecordsSupplierdeliverRequestMain = async (id) => {
} }
// 导出供应商发货申请主 Excel // 导出供应商发货申请主 Excel
export const exportSupplierdeliverRequestMain = async (params) => { export const exportSupplierdeliverRequestMain = async (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}) return await request.download({url: `/wms/supplierdeliver-request-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

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

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

Loading…
Cancel
Save