Browse Source

库存修改导出

master_hella_20240701
zhaoyiran 5 months ago
parent
commit
4862a2c886
  1. 4
      src/api/wms/inventorychangeRecordMain/index.ts
  2. 4
      src/api/wms/inventorychangeRequestMain/index.ts

4
src/api/wms/inventorychangeRecordMain/index.ts

@ -56,7 +56,7 @@ export const exportInventorychangeRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/inventorychange-record-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/inventorychange-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params })
}
@ -65,4 +65,4 @@ export const exportInventorychangeRecordMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/inventorychange-record-main/get-import-template' })
}
}

4
src/api/wms/inventorychangeRequestMain/index.ts

@ -55,7 +55,7 @@ export const exportInventorychangeRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/inventorychange-request-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/inventorychange-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params })
}
@ -94,4 +94,4 @@ export const agree = (id) => {
// 处理
export const handle = (id) => {
return request.put({ url: '/wms/inventorychange-request-main/handle?id=' + id })
}
}

Loading…
Cancel
Save