Browse Source

调拨出库导入导出修改

master_hella_20240701
赵雪冰 1 year ago
parent
commit
590343ba04
  1. 6
      src/api/wms/transferissueJobMain/index.ts
  2. 6
      src/api/wms/transferissueRecordMain/index.ts
  3. 6
      src/api/wms/transferissueRequestMain/index.ts

6
src/api/wms/transferissueJobMain/index.ts

@ -77,8 +77,14 @@ export const deleteTransferissueJobMain = async (id: number) => {
// 导出调拨出库任务主 Excel // 导出调拨出库任务主 Excel
export const exportTransferissueJobMain = async (params) => { export const exportTransferissueJobMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/transferissue-job-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transferissue-job-main/export-excel`, params }) return await request.download({ url: `/wms/transferissue-job-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

6
src/api/wms/transferissueRecordMain/index.ts

@ -63,8 +63,14 @@ export const deleteTransferissueRecordMain = async (id: number) => {
// 导出调拨出库记录主 Excel // 导出调拨出库记录主 Excel
export const exportTransferissueRecordMain = async (params) => { export const exportTransferissueRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/transferissue-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transferissue-record-main/export-excel`, params }) return await request.download({ url: `/wms/transferissue-record-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

6
src/api/wms/transferissueRequestMain/index.ts

@ -61,8 +61,14 @@ export const deleteTransferissueRequestMain = async (id: number) => {
// 导出-调拨出库申请主 Excel // 导出-调拨出库申请主 Excel
export const exportTransferissueRequestMain = async (params) => { export const exportTransferissueRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/transferissue-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transferissue-request-main/export-excel`, params }) return await request.download({ url: `/wms/transferissue-request-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

Loading…
Cancel
Save