@ -82,8 +82,13 @@ export const deleteInspectJobMain = async (id: number) => {
// 导出检验任务主 Excel
export const exportInspectJobMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/inspect-job-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/inspect-job-main/export-excel`, params})
}
// 下载用户导入模板
export const importTemplate = () => {
@ -73,8 +73,13 @@ export const deleteInspectRecordMain = async (id: number) => {
// 导出检验记录主 Excel
export const exportInspectRecordMain = async (params) => {
return await request.downloadPost({ url: `/wms/inspect-record-main/export-excel-senior`, data })
return await request.download({url: `/wms/inspect-record-main/export-excel`, params})
@ -67,8 +67,13 @@ export const deleteInspectRequestMain = async (id: number) => {
// 导出检验申请主 Excel
export const exportInspectRequestMain = async (params) => {
return await request.downloadPost({ url: `/wms/inspect-request-main/export-excel-senior`, data })
return await request.download({url: `/wms/inspect-request-main/export-excel`, params})
@ -81,8 +81,13 @@ export const deletePurchasereturnJobMain = async (id: number) => {
// 导出采购退货任务主 Excel
export const exportPurchasereturnJobMain = async (params) => {
return await request.downloadPost({ url: `/wms/purchasereturn-job-main/export-excel-senior`, data })
return await request.download({ url: `/wms/purchasereturn-job-main/export-excel`, params })
@ -67,8 +67,13 @@ export const deletePurchasereturnRecordMain = async (id: number) => {
// 导出采购退货记录主 Excel
export const exportPurchasereturnRecordMain = async (params) => {
return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior`, data })
return await request.download({url: `/wms/purchasereturn-record-main/export-excel`, params})
@ -74,8 +74,13 @@ export const deletePutawayJobMain = async (id: number) => {
// 导出上架任务主 Excel
export const exportPutawayJobMain = async (params) => {
return await request.downloadPost({ url: `/wms/putaway-job-main/export-excel-senior`, data })
return await request.download({url: `/wms/putaway-job-main/export-excel`, params})
@ -60,8 +60,13 @@ export const deletePutawayRecordMain = async (id: number) => {
// 导出上架记录主 Excel
export const exportPutawayRecordMain = async (params) => {
return await request.downloadPost({ url: `/wms/putaway-record-main/export-excel-senior`, data })
return await request.download({url: `/wms/putaway-record-main/export-excel`, params})
@ -58,8 +58,13 @@ export const deletePutawayRequestMain = async (id: number) => {
// 导出上架申请主 Excel
export const exportPutawayRequestMain = async (params) => {
return await request.downloadPost({ url: `/wms/putaway-request-main/export-excel-senior`, data })
return await request.download({url: `/wms/putaway-request-main/export-excel`, params})
@ -218,7 +218,7 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
const data = await InspectJobMainApi.exportInspectJobMain(setSearchParams)
const data = await InspectJobMainApi.exportInspectJobMain(tableObject.params)
download.excel(data, '检验任务主.xlsx')
} catch {
} finally {
@ -147,7 +147,7 @@ const handleExport = async () => {
const data = await InspectRecordMainApi.exportInspectRecordMain(setSearchParams)
const data = await InspectRecordMainApi.exportInspectRecordMain(tableObject.params)
download.excel(data, '检验记录主.xlsx')
@ -284,7 +284,7 @@
const data = await InspectRequestMainApi.exportInspectRequestMain(setSearchParams)
const data = await InspectRequestMainApi.exportInspectRequestMain(tableObject.params)
download.excel(data, '检验申请主.xlsx')
const data = await PurchasereturnJobMainApi.exportPurchasereturnJobMain(setSearchParams)
const data = await PurchasereturnJobMainApi.exportPurchasereturnJobMain(tableObject.params)
download.excel(data, '采购退货任务主.xlsx')
@ -141,7 +141,7 @@ const handleExport = async () => {
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(setSearchParams)
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
download.excel(data, '采购退货记录主.xlsx')
const data = await PutawayJobMainApi.exportPutawayJobMain(setSearchParams)
const data = await PutawayJobMainApi.exportPutawayJobMain(tableObject.params)
download.excel(data, '上架任务主.xlsx')
const data = await PutawayRecordMainApi.exportPutawayRecordMain(setSearchParams)
const data = await PutawayRecordMainApi.exportPutawayRecordMain(tableObject.params)
download.excel(data, '上架记录主.xlsx')
@ -314,7 +314,7 @@ const handleExport = async () => {
const data = await PutawayRequestMainApi.exportPutawayRequestMain(setSearchParams)
const data = await PutawayRequestMainApi.exportPutawayRequestMain(tableObject.params)
download.excel(data, '上架申请主.xlsx')