Browse Source

事务类型导入导出修改

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
7857b2e298
  1. 6
      src/api/wms/transactiontype/index.ts

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

@ -46,8 +46,14 @@ export const deleteTransactiontype = async (id: number) => {
// 导出事务类型 Excel // 导出事务类型 Excel
export const exportTransactiontype = async (params) => { export const exportTransactiontype = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.downloadPost({ url: '/wms/transactiontype/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transactiontype/export-excel`, params }) return await request.download({ url: `/wms/transactiontype/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

Loading…
Cancel
Save