陈薪名 1 year ago
parent
commit
fa0c7917c7
  1. 7
      src/api/wms/accountcalendar/index.ts
  2. 7
      src/api/wms/currencyexchange/index.ts
  3. 7
      src/api/wms/systemcalendar/index.ts
  4. 2
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  5. 2
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  6. 2
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  7. 2
      src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

7
src/api/wms/accountcalendar/index.ts

@ -46,7 +46,12 @@ export const deleteAccountcalendar = async (id: number) => {
// 导出账期日历 Excel
export const exportAccountcalendar = async (params) => {
return await request.download({ url: `/wms/accountcalendar/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/accountcalendar/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/accountcalendar/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/wms/currencyexchange/index.ts

@ -43,7 +43,12 @@ export const deleteCurrencyexchange = async (id: number) => {
// 导出货币转换 Excel
export const exportCurrencyexchange = async (params) => {
return await request.download({ url: `/wms/currencyexchange/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/currencyexchange/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/currencyexchange/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/wms/systemcalendar/index.ts

@ -43,7 +43,12 @@ export const deleteSystemcalendar = async (id: number) => {
// 导出系统日历 Excel
export const exportSystemcalendar = async (params) => {
return await request.download({ url: `/wms/systemcalendar/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/systemcalendar/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/systemcalendar/export-excel`, params })
}
}
// 下载用户导入模板

2
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -77,7 +77,7 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
table: {
width: 120
} ,
}
},
{
label: '替代计量单位',

2
src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue

@ -195,7 +195,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await AccountcalendarApi.exportAccountcalendar(setSearchParams)
const data = await AccountcalendarApi.exportAccountcalendar(tableObject.params)
download.excel(data, '账期日历.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

@ -196,7 +196,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await CurrencyexchangeApi.exportCurrencyexchange(setSearchParams)
const data = await CurrencyexchangeApi.exportCurrencyexchange(tableObject.params)
download.excel(data, '货币转换.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

@ -195,7 +195,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await SystemcalendarApi.exportSystemcalendar(setSearchParams)
const data = await SystemcalendarApi.exportSystemcalendar(tableObject.params)
download.excel(data, '系统日历.xls')
} catch {
} finally {

Loading…
Cancel
Save