Browse Source

修改导出功能,增加高级筛选

master_hella_20240701
TengXF 5 months ago
parent
commit
615a4a373d
  1. 2
      src/api/wms/agvLocationrelation/index.ts
  2. 6
      src/api/wms/barbasic/index.ts
  3. 6
      src/api/wms/barcode/index.ts
  4. 6
      src/api/wms/callmaterials/index.ts
  5. 2
      src/api/wms/customersettleRecordMain/index.ts
  6. 16
      src/api/wms/deliverPlanMain/index.ts
  7. 2
      src/api/wms/deliverRecordMain/index.ts
  8. 4
      src/api/wms/deliverRequestMain/index.ts
  9. 5
      src/api/wms/expectin/index.ts
  10. 5
      src/api/wms/expectout/index.ts
  11. 6
      src/api/wms/locationcapacity/index.ts
  12. 6
      src/api/wms/mesBarCode/index.ts
  13. 2
      src/api/wms/package/index.ts
  14. 2
      src/api/wms/packageunit/index.ts
  15. 5
      src/api/wms/processproductionRecordMain/index.ts
  16. 5
      src/api/wms/processproductionRequestMain/index.ts
  17. 6
      src/api/wms/productionreceiptRecordMain/index.ts
  18. 5
      src/api/wms/productionreturnRecordMain/index.ts
  19. 12
      src/api/wms/productputawayRecordDetail/index.ts
  20. 4
      src/api/wms/productputawayRecordMain/index.ts
  21. 12
      src/api/wms/productputawayRequestMain/index.ts
  22. 6
      src/api/wms/productreceiptJobMain/index.ts
  23. 6
      src/api/wms/productreceiptRecordMain/index.ts
  24. 5
      src/api/wms/productredressRecordMain/index.ts
  25. 5
      src/api/wms/productredressRequestMain/index.ts
  26. 2
      src/api/wms/productrepairRecordMain/index.ts
  27. 6
      src/api/wms/productrepairRequestMain/index.ts
  28. 2
      src/api/wms/productscrapRequestMain/index.ts
  29. 5
      src/api/wms/qadproductionplan/index.ts
  30. 5
      src/api/wms/repleinshRecordMain/index.ts
  31. 6
      src/api/wms/saleMain/index.ts
  32. 6
      src/api/wms/saleShipmentMain/index.ts
  33. 6
      src/api/wms/saleShipmentMainRecord/index.ts
  34. 2
      src/api/wms/transaction/index.ts
  35. 2
      src/api/wms/transferlog/index.ts
  36. 6
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  37. 6
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

2
src/api/wms/agvLocationrelation/index.ts

@ -47,7 +47,7 @@ export const exportAgvLocationrelation = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/agv-locationrelation/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/agv-locationrelation/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/agv-locationrelation/export-excel`, params })
}

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

@ -47,8 +47,14 @@ export const deleteBarbasic = async (id: number) => {
// 导出条码实体基类 Excel
export const exportBarbasic = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/barbasic/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/barbasic/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -50,8 +50,14 @@ export const deleteBarcode = async (id: number) => {
// 导出条码片段 Excel
export const exportBarcode = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/label/barcode/export-excel-senior', data })
} else {
return await request.download({ url: `/label/barcode/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -44,8 +44,14 @@ export const deleteCallmaterials = async (id: number) => {
// 导出叫料标签 Excel
export const exportCallmaterials = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/callmaterials/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/callmaterials/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -61,7 +61,7 @@ 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 })
return await request.downloadPost({ url: '/wms/customersettle-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params })
}

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

@ -51,9 +51,15 @@ export const deleteDeliverPlanMain = async (id: number) => {
export const exportDeliverPlanMain = async (params) => {
params.businessType = 'Deliver'
if (params.isSearch) {
// const cmd = {
// 'column':'businessType',
// 'action':'==',
// 'value':'Deliver'
// }
// params.filters.push(cmd)
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/deliver-plan-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params })
}
@ -63,9 +69,15 @@ export const exportDeliverPlanMain = async (params) => {
export const exportZZBJDeliverPlanMain = async (params) => {
params.businessType = 'ZZBJDeliver'
if (params.isSearch) {
// const cmd = {
// 'column':'businessType',
// 'action':'==',
// 'value':'ZZBJDeliver'
// }
// params.filters.push(cmd)
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/deliver-plan-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params })
}

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

@ -70,7 +70,7 @@ 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 })
return await request.downloadPost({ url: '/wms/deliver-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-record-main/export-excel`, params })
}

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

@ -69,7 +69,7 @@ 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 })
return await request.downloadPost({ url: '/wms/deliver-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-request-main/export-excel`, params })
}
@ -81,7 +81,7 @@ export const exportZZBJDeliverRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/deliver-request-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/deliver-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/deliver-request-main/export-excel`, params })
}

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

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

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

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

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

@ -42,8 +42,14 @@ export const deleteLocationcapacity = async (id: number) => {
// 导出库位容量 Excel
export const exportLocationcapacity = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/locationcapacity/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/locationcapacity/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -56,8 +56,14 @@ export const deleteMesBarCode = async (id: number) => {
// 导出生产条码清单 Excel
export const exportMesBarCode = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/mes-bar-code/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/mes-bar-code/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

2
src/api/wms/package/index.ts

@ -79,7 +79,7 @@ export const deletePackage = async (id: number) => {
export const exportPackage = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.download({ url: `/wms/package/export-excel-senior`, data })
return await request.downloadPost({ url: `/wms/package/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/package/export-excel`, params })
}

2
src/api/wms/packageunit/index.ts

@ -59,7 +59,7 @@ export const exportPackageunit = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/packageunit/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/packageunit/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/packageunit/export-excel`, params })
}

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

@ -48,8 +48,13 @@ export const deleteProcessproductionRecordMain = async (id: number) => {
// 导出工序报产记录主 Excel
export const exportProcessproductionRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/processproduction-record-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/processproduction-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -48,8 +48,13 @@ export const deleteProcessproductionRequestMain = async (id: number) => {
// 导出工序报产申请主 Excel
export const exportProcessproductionRequestMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/processproduction-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/processproduction-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -61,9 +61,15 @@ export const deleteProductionreceiptRecordMain = async (id: number) => {
// 导出生产收料记录主 Excel
export const exportProductionreceiptRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreceipt-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productionreceipt-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productionreceipt-record-main/get-import-template' })

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

@ -60,8 +60,13 @@ export const deleteProductionreturnRecordMain = async (id: number) => {
// 导出生产退料记录主 Excel
export const exportProductionreturnRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productionreturn-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productionreturn-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

12
src/api/wms/productputawayRecordDetail/index.ts

@ -38,6 +38,12 @@ export interface ProductputawayRecordDetailVO {
export const getProductputawayRecordDetailPage = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productputaway-record-detail/senior', data })
@ -50,6 +56,12 @@ export const getProductputawayRecordDetailPage = async (params) => {
export const getProductputawayRecordDetailPageAssemble = async (params) => {
  params.type = 'assemble'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
}
params.filters.push(cmd)
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productputaway-record-detail/senior', data })

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

@ -78,7 +78,7 @@ export const exportProductputawayRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productputaway-record-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/productputaway-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/productputaway-record-main/export-excel`, params })
}
@ -90,7 +90,7 @@ export const exportProductputawayRecordMainAssemble = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productputaway-record-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/productputaway-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/productputaway-record-main/export-excel`, params })
}

12
src/api/wms/productputawayRequestMain/index.ts

@ -74,6 +74,12 @@ export const deleteProductputawayRequestMain = async (id: number) => {
export const exportProductputawayRequestMain = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
const data = {...params}
return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data })
} else {
@ -85,6 +91,12 @@ export const exportProductputawayRequestMain = async (params) => {
export const exportProductputawayRequestMainAssemble = async (params) => {
params.type = 'assemble'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
}
params.filters.push(cmd)
const data = {...params}
return await request.downloadPost({ url: `/wms/productputaway-request-main/export-excel-senior`, data })
} else {

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

@ -103,6 +103,12 @@ export const deleteProductreceiptJobMain = async (id: number) => {
export const exportProductreceiptJobMain = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
const data = {...params}
return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data })
} else {

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

@ -87,6 +87,12 @@ export const deleteProductreceiptRecordMain = async (id: number) => {
export const exportProductreceiptRecordMain = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
params.filters.push(cmd)
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productreceipt-record-main/export-excel-senior', data })

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

@ -61,8 +61,13 @@ export const deleteProductredressRecordMain = async (id: number) => {
// 导出制品回收记录主 Excel
export const exportProductredressRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productredress-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productredress-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -60,8 +60,13 @@ export const deleteProductredressRequestMain = async (id: number) => {
// 导出制品回收申请主 Excel
export const exportProductredressRequestMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/productredress-request-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/productredress-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

2
src/api/wms/productrepairRecordMain/index.ts

@ -61,7 +61,7 @@ export const exportProductrepairRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productrepair-record-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/productrepair-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/productrepair-record-main/export-excel`, params })
}

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

@ -57,8 +57,14 @@ export const deleteProductrepairRequestMain = async (id: number) => {
// 导出制品返修申请主 Excel
export const exportProductrepairRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/productrepair-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/productrepair-request-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

2
src/api/wms/productscrapRequestMain/index.ts

@ -57,7 +57,7 @@ export const exportProductscrapRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/productscrap-request-main/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/productscrap-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/productscrap-request-main/export-excel`, params })
}

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

@ -60,8 +60,13 @@ export const deleteQadProductionPlanMain = async (id: number) => {
// 导出QAD生产计划主 Excel
export const exportQadProductionPlanMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/qad-production-plan-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/qad-production-plan-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -59,8 +59,13 @@ export const deleteRepleinshRecordMain = async (id: number) => {
// 导出补料记录主 Excel
export const exportRepleinshRecordMain = async (params) => {
if (params.isSearch){
const data = {...params}
return await request.downloadPost({ url: `/wms/repleinsh-record-main/export-excel-senior`, data })
}else {
return await request.download({ url: `/wms/repleinsh-record-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -54,8 +54,14 @@ export const deleteSaleMain = async (id: number) => {
// 导出销售订单主 Excel
export const exportSaleMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/sale-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/sale-main/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -55,8 +55,14 @@ export const deleteSaleShipmentMain = async (id: number) => {
// 导出结算出库申请主 Excel
export const exportSaleShipmentMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/sale-shipment-main-request/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/sale-shipment-main-request/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -47,8 +47,14 @@ export const deleteSaleShipmentMainRecord = async (id: number) => {
// 导出结算出库记录主 Excel
export const exportSaleShipmentMainRecord = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/sale-shipment-main-record/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/sale-shipment-main-record/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

2
src/api/wms/transaction/index.ts

@ -65,7 +65,7 @@ export const exportTransaction = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/transaction/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/transaction/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transaction/export-excel`, params })
}

2
src/api/wms/transferlog/index.ts

@ -74,7 +74,7 @@ export const exportTransferlog = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/transferlog/export-excel-senior', data })
return await request.downloadPost({ url: '/wms/transferlog/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transferlog/export-excel`, params })
}

6
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -357,6 +357,12 @@ const handleExport = async () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

6
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/index.vue

@ -292,6 +292,12 @@ const handleExport = async () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'type',
'action':'==',
'value':'predict'
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

Loading…
Cancel
Save