Browse Source

工厂建模导出

master
zhang_li 1 year ago
parent
commit
11d9b43881
  1. 5
      src/api/wms/areabasic/index.ts
  2. 5
      src/api/wms/dock/index.ts
  3. 5
      src/api/wms/enterprise/index.ts
  4. 6
      src/api/wms/location/index.ts
  5. 5
      src/api/wms/locationgroup/index.ts
  6. 5
      src/api/wms/process/index.ts
  7. 5
      src/api/wms/productionline/index.ts
  8. 5
      src/api/wms/warehouse/index.ts
  9. 5
      src/api/wms/workshop/index.ts
  10. 5
      src/api/wms/workstation/index.ts
  11. 2
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  12. 2
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  13. 2
      src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue
  14. 2
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  15. 2
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  16. 2
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  17. 2
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  18. 2
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  19. 2
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  20. 2
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

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

@ -49,8 +49,13 @@ export const deleteArea = async (id: number) => {
// 导出库区 Excel
export const exportArea = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/areabasic/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/areabasic/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -53,8 +53,13 @@ export const deleteDock = async (id: number) => {
// 导出月台 Excel
export const exportDock = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/dock/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/dock/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -50,8 +50,13 @@ export const deleteEnterprise = async (id: number) => {
// 导出企业 Excel
export const exportEnterprise = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/enterprise/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/enterprise/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -61,9 +61,15 @@ export const deleteLocation = async (id: number) => {
// 导出库位 Excel
export const exportLocation = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/location/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/location/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/location/get-import-template' })

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

@ -49,8 +49,13 @@ export const deleteLocationgroup = async (id: number) => {
// 导出库位组 Excel
export const exportLocationgroup = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/locationgroup/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/locationgroup/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -46,8 +46,13 @@ export const deleteProcess = async (id: number) => {
// 导出工序 Excel
export const exportProcess = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/process/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/process/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -47,8 +47,13 @@ export const deleteProductionline = async (id: number) => {
// 导出生产线 Excel
export const exportProductionline = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/productionline/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/productionline/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

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

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

@ -44,8 +44,13 @@ export const deleteWorkshop = async (id: number) => {
// 导出车间 Excel
export const exportWorkshop = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/workshop/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/workshop/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -48,8 +48,13 @@ export const deleteWorkstation = async (id: number) => {
// 导出工位 Excel
export const exportWorkstation = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/workstation/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/workstation/export-excel`, params })
}
}
// 下载用户导入模板
export const importWorkstationTemplate = () => {

2
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await AreaApi.exportArea(setSearchParams)
const data = await AreaApi.exportArea(tableObject.params)
download.excel(data, '库区.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await DockApi.exportDock(setSearchParams)
const data = await DockApi.exportDock(tableObject.params)
download.excel(data, '月台.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue

@ -175,7 +175,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await EnterpriseApi.exportEnterprise(setSearchParams)
const data = await EnterpriseApi.exportEnterprise(tableObject.params)
download.excel(data, '企业.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/location/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await LocationApi.exportLocation(setSearchParams)
const data = await LocationApi.exportLocation(tableObject.params)
download.excel(data, '库位.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await LocationgroupApi.exportLocationgroup(setSearchParams)
const data = await LocationgroupApi.exportLocationgroup(tableObject.params)
download.excel(data, '库位组.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/process/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ProcessApi.exportProcess(setSearchParams)
const data = await ProcessApi.exportProcess(tableObject.params)
download.excel(data, '工序.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await ProductionlineApi.exportProductionline(setSearchParams)
const data = await ProductionlineApi.exportProductionline(tableObject.params)
download.excel(data, '生产线.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue

@ -195,7 +195,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await WarehouseApi.exportWarehouse(setSearchParams)
const data = await WarehouseApi.exportWarehouse(tableObject.params)
download.excel(data, '仓库.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/workshop/index.vue

@ -195,7 +195,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await WorkshopApi.exportWorkshop(setSearchParams)
const data = await WorkshopApi.exportWorkshop(tableObject.params)
download.excel(data, '车间.xls')
} catch {
} finally {

2
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -205,7 +205,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await WorkstationApi.exportWorkstation(setSearchParams)
const data = await WorkstationApi.exportWorkstation(tableObject.params)
download.excel(data, '工位.xls')
} catch {
} finally {

Loading…
Cancel
Save