Browse Source

HL-6245 修复隔离收货任务导出数据错误

hella_online_20241017
chenfang 1 month ago
parent
commit
d03fc3ac33
  1. 11
      src/api/wms/productreceiptJobMain/index.ts
  2. 2
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

11
src/api/wms/productreceiptJobMain/index.ts

@ -128,6 +128,17 @@ export const exportProductreceiptJobMainAssemble = async (params) => {
} }
} }
// 导出装配收货任务主 Excel
export const exportProductreceiptJobMainScrap = async (params) => {
params.type = 'scrap'
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productreceipt-job-main/export-excel`, params })
}
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/productreceipt-job-main/get-import-template' }) return request.download({ url: '/wms/productreceipt-job-main/get-import-template' })

2
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

@ -289,7 +289,7 @@ const handleExport = async () => {
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await ProductreceiptJobMainApi.exportProductreceiptJobMain(tableObject.params) const data = await ProductreceiptJobMainApi.exportProductreceiptJobMainScrap(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save