Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
03facd757d
  1. 5
      src/api/wms/balance/index.ts
  2. 6
      src/api/wms/countJobMain/index.ts
  3. 6
      src/api/wms/countPlanMain/index.ts
  4. 6
      src/api/wms/countRecordMain/index.ts
  5. 6
      src/api/wms/countRequestMain/index.ts
  6. 6
      src/api/wms/countadjustRecordMain/index.ts
  7. 6
      src/api/wms/countadjustRequestMain/index.ts
  8. 6
      src/api/wms/demandforecastingMain/index.ts

5
src/api/wms/balance/index.ts

@ -104,8 +104,13 @@ export const deleteBalance = async (id: number) => {
// 导出库存余额 Excel
export const exportBalance = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/balance/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/balance/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -73,8 +73,14 @@ export const deleteCountJobMain = async (id: number) => {
// 导出盘点任务主 Excel
export const exportCountJobMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-job-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-job-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -60,8 +60,14 @@ export const deleteCountPlanMain = async (id: number) => {
// 导出盘点计划主 Excel
export const exportCountPlanMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-plan-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-plan-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

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

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

@ -55,8 +55,14 @@ export const deleteCountRequestMain = async (id: number) => {
// 导出盘点申请主 Excel
export const exportCountRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/count-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/count-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

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

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

@ -54,8 +54,14 @@ export const deleteCountadjustRequestMain = async (id: number) => {
// 导出盘点调整申请主 Excel
export const exportCountadjustRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/countadjust-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -50,8 +50,14 @@ export const deleteDemandforecastingMain = async (id: number) => {
// 导出要货预测主 Excel
export const exportDemandforecastingMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/demandforecasting-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

Loading…
Cancel
Save