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,7 +49,12 @@ export const deleteArea = async (id: number) => {
// 导出库区 Excel // 导出库区 Excel
export const exportArea = async (params) => { 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 }) return await request.download({ url: `/wms/areabasic/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -53,7 +53,12 @@ export const deleteDock = async (id: number) => {
// 导出月台 Excel // 导出月台 Excel
export const exportDock = async (params) => { 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 }) return await request.download({ url: `/wms/dock/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -50,7 +50,12 @@ export const deleteEnterprise = async (id: number) => {
// 导出企业 Excel // 导出企业 Excel
export const exportEnterprise = async (params) => { 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 }) return await request.download({ url: `/wms/enterprise/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -61,7 +61,13 @@ export const deleteLocation = async (id: number) => {
// 导出库位 Excel // 导出库位 Excel
export const exportLocation = async (params) => { 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 }) return await request.download({ url: `/wms/location/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -49,7 +49,12 @@ export const deleteLocationgroup = async (id: number) => {
// 导出库位组 Excel // 导出库位组 Excel
export const exportLocationgroup = async (params) => { 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 }) return await request.download({ url: `/wms/locationgroup/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -46,7 +46,12 @@ export const deleteProcess = async (id: number) => {
// 导出工序 Excel // 导出工序 Excel
export const exportProcess = async (params) => { 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 }) return await request.download({ url: `/wms/process/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -47,7 +47,12 @@ export const deleteProductionline = async (id: number) => {
// 导出生产线 Excel // 导出生产线 Excel
export const exportProductionline = async (params) => { 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 }) return await request.download({ url: `/wms/productionline/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -47,7 +47,12 @@ export const deleteWarehouse = async (id: number) => {
// 导出仓库 Excel // 导出仓库 Excel
export const exportWarehouse = async (params) => { 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 }) return await request.download({ url: `/wms/warehouse/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -44,7 +44,12 @@ export const deleteWorkshop = async (id: number) => {
// 导出车间 Excel // 导出车间 Excel
export const exportWorkshop = async (params) => { 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 }) return await request.download({ url: `/wms/workshop/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

@ -48,7 +48,12 @@ export const deleteWorkstation = async (id: number) => {
// 导出工位 Excel // 导出工位 Excel
export const exportWorkstation = async (params) => { 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 }) return await request.download({ url: `/wms/workstation/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save