Browse Source

导出修改

master
zhaoxuebing 11 months ago
parent
commit
aa4e1942ae
  1. 5
      src/api/wms/purchasereturnRequestMain/index.ts
  2. 2
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

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

@ -65,8 +65,13 @@ export const deletePurchasereturnRequestMain = async (id: number) => {
// 导出采购退货申请主 Excel // 导出采购退货申请主 Excel
export const exportPurchasereturnRequestMain = async (params) => { export const exportPurchasereturnRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereturn-request-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/purchasereturn-request-main/export-excel`, params}) return await request.download({url: `/wms/purchasereturn-request-main/export-excel`, params})
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

2
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -445,7 +445,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain(setSearchParams) const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain(tableObject.params)
download.excel(data, '采购退货申请主.xlsx') download.excel(data, '采购退货申请主.xlsx')
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save