Browse Source

发运结算根据条件导出

master
chenfang 10 months ago
parent
commit
db3e9b03a3
  1. 5
      src/api/wms/customerreceiptRecordMain/index.ts
  2. 5
      src/api/wms/customerreceiptRequestMain/index.ts
  3. 5
      src/api/wms/customerreturnRecordMain/index.ts
  4. 6
      src/api/wms/customersettleRecordMain/index.ts
  5. 6
      src/api/wms/customersettleRequestMain/index.ts
  6. 6
      src/api/wms/deliverPlanMain/index.ts
  7. 6
      src/api/wms/deliverRecordMain/index.ts
  8. 6
      src/api/wms/deliverRequestMain/index.ts
  9. 6
      src/api/wms/inventorychangeRecordMain/index.ts
  10. 8
      src/api/wms/inventorychangeRequestMain/index.ts

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

@ -65,7 +65,12 @@ export const deleteCustomerreceiptRecordMain = async (id: number) => {
// 导出客户收货记录主 Excel // 导出客户收货记录主 Excel
export const exportCustomerreceiptRecordMain = async (params) => { export const exportCustomerreceiptRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customerreceipt-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/customerreceipt-record-main/export-excel`, params }) return await request.download({ url: `/wms/customerreceipt-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -64,7 +64,12 @@ export const deleteCustomerreceiptRequestMain = async (id: number) => {
// 导出客户收货申请主 Excel // 导出客户收货申请主 Excel
export const exportCustomerreceiptRequestMain = async (params) => { export const exportCustomerreceiptRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customerreceipt-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/customerreceipt-request-main/export-excel`, params }) return await request.download({ url: `/wms/customerreceipt-request-main/export-excel`, params })
}
} }
// 关闭 // 关闭

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

@ -67,7 +67,12 @@ export const deleteCustomerreturnRecordMain = async (id: number) => {
// 导出客户退货记录主 Excel // 导出客户退货记录主 Excel
export const exportCustomerreturnRecordMain = async (params) => { export const exportCustomerreturnRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customerreturn-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/customerreturn-record-main/export-excel`, params }) return await request.download({ url: `/wms/customerreturn-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -58,7 +58,13 @@ export const deleteCustomersettleRecordMain = async (id: number) => {
// 导出客户结算记录主 Excel // 导出客户结算记录主 Excel
export const exportCustomersettleRecordMain = async (params) => { export const exportCustomersettleRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/customersettle-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params }) return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -57,7 +57,13 @@ export const deleteCustomersettleRequestMain = async (id: number) => {
// 导出客户结算申请主 Excel // 导出客户结算申请主 Excel
export const exportCustomersettleRequestMain = async (params) => { export const exportCustomersettleRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/customersettle-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/customersettle-request-main/export-excel`, params }) return await request.download({ url: `/wms/customersettle-request-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -49,7 +49,13 @@ export const deleteDeliverPlanMain = async (id: number) => {
// 导出发货计划主 Excel // 导出发货计划主 Excel
export const exportDeliverPlanMain = async (params) => { export const exportDeliverPlanMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -67,7 +67,13 @@ export const deleteDeliverRecordMain = async (id: number) => {
// 导出发货记录主 Excel // 导出发货记录主 Excel
export const exportDeliverRecordMain = async (params) => { export const exportDeliverRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/deliver-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-record-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -65,7 +65,13 @@ export const deleteDeliverRequestMain = async (id: number) => {
// 导出发货申请主 Excel // 导出发货申请主 Excel
export const exportDeliverRequestMain = async (params) => { export const exportDeliverRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) return await request.download({ url: `/wms/deliver-request-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -53,7 +53,13 @@ export const deleteInventorychangeRecordMain = async (id: number) => {
// 导出库存修改记录主 Excel // 导出库存修改记录主 Excel
export const exportInventorychangeRecordMain = async (params) => { 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 })
} else {
return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params }) return await request.download({ url: `/wms/inventorychange-record-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -52,8 +52,14 @@ export const deleteInventorychangeRequestMain = async (id: number) => {
// 导出库存修改申请主 Excel // 导出库存修改申请主 Excel
export const exportInventorychangeRequestMain = async (params) => { 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 })
} else {
return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params }) return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params })
} }
}
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {

Loading…
Cancel
Save