选煤厂生产管理平台前端代码
dongyukun
2024-12-12 73d7500457564a3f5b1aae94ef18fd295e9f4f9c
请求路径修改
已修改13个文件
208 ■■■■ 文件已修改
src/api/prod/dailySales.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/dispatchLog.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/hourVolume.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/onDutyInfo.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/powerConsume.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/prodAccident.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/prodVolume.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/productStock.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/rawCoalStock.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/rawCoalToWash.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/rawCoalTransferIn.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/runTime.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/targetConsume.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/prod/dailySales.ts
@@ -19,40 +19,40 @@
// 查询DailySales列表
export const getDailySalesPage = (params: DailySalesPageReqVO) => {
  return request.get({ url: '/xmcpms/sale/volume/page', params })
  return request.get({ url: '/xmcpms/prod/sale/volume/page', params })
}
// 查询DailySales列表
export const getPointList = (params: DailySalesPageReqVO) => {
  return request.get({ url: '/xmcpms/sale/volume/list', params })
  return request.get({ url: '/xmcpms/prod/sale/volume/list', params })
}
// 查询DailySales详情
export const getDailySales = (id: number) => {
  return request.get({ url: `/xmcpms/prod/sale/volume/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/sale/volume/info/${id}`})
}
// 新增DailySales
export const createDailySales = (data: DailySalesVO) => {
  return request.post({ url: '/xmcpms/sale/volume/create', data })
  return request.post({ url: '/xmcpms/prod/sale/volume/create', data })
}
// 修改DailySales
export const updateDailySales = (data: DailySalesVO) => {
  return request.put({ url: '/xmcpms/sale/volume/update', data })
  return request.put({ url: '/xmcpms/prod/sale/volume/update', data })
}
// 删除DailySales
export const deleteDailySales = (id: number) => {
  return request.delete({ url: '/xmcpms/sale/volume/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/sale/volume/delete?id=' + id })
}
//导出DailySalesList
export const exportDailySales = (params) => {
  return request.download({ url: '/xmcpms/sale/volume/export', params })
  return request.download({ url: '/xmcpms/prod/sale/volume/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/sale/volume/get-import-template' })
  return request.download({ url: '/xmcpms/prod/sale/volume/get-import-template' })
}
src/api/prod/dispatchLog.ts
@@ -10,40 +10,40 @@
// 查询DispatchLog列表
export const getDispatchLogPage = (params: DispatchLogPageReqVO) => {
  return request.get({ url: '/xmcpms/work/dispatchLog/page', params })
  return request.get({ url: '/xmcpms/prod/work/dispatchLog/page', params })
}
// 查询DispatchLog列表
export const getPointList = (params: DispatchLogPageReqVO) => {
  return request.get({ url: '/xmcpms/work/dispatchLog/list', params })
  return request.get({ url: '/xmcpms/prod/work/dispatchLog/list', params })
}
// 查询DispatchLog详情
export const getDispatchLog = (id: number) => {
  return request.get({ url: `/xmcpms/prod/work/dispatchLog/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/work/dispatchLog/info/${id}`})
}
// 新增DispatchLog
export const createDispatchLog = (data: DispatchLogVO) => {
  return request.post({ url: '/xmcpms/work/dispatchLog/create', data })
  return request.post({ url: '/xmcpms/prod/work/dispatchLog/create', data })
}
// 修改DispatchLog
export const updateDispatchLog = (data: DispatchLogVO) => {
  return request.put({ url: '/xmcpms/work/dispatchLog/update', data })
  return request.put({ url: '/xmcpms/prod/work/dispatchLog/update', data })
}
// 删除DispatchLog
export const deleteDispatchLog = (id: number) => {
  return request.delete({ url: '/xmcpms/work/dispatchLog/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/work/dispatchLog/delete?id=' + id })
}
//导出DispatchLogList
export const exportDispatchLog = (params) => {
  return request.download({ url: '/xmcpms/work/dispatchLog/export', params })
  return request.download({ url: '/xmcpms/prod/work/dispatchLog/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/work/dispatchLog/get-import-template' })
  return request.download({ url: '/xmcpms/prod/work/dispatchLog/get-import-template' })
}
src/api/prod/hourVolume.ts
@@ -25,40 +25,40 @@
// 查询HourVolume列表
export const getHourVolumePage = (params: HourVolumePageReqVO) => {
  return request.get({ url: '/xmcpms/wash/hourVolume/page', params })
  return request.get({ url: '/xmcpms/prod/wash/hourVolume/page', params })
}
// 查询HourVolume列表
export const getPointList = (params: HourVolumePageReqVO) => {
  return request.get({ url: '/xmcpms/wash/hourVolume/list', params })
  return request.get({ url: '/xmcpms/prod/wash/hourVolume/list', params })
}
// 查询HourVolume详情
export const getHourVolume = (id: number) => {
  return request.get({ url: `/xmcpms/prod/wash/hourVolume/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/wash/hourVolume/info/${id}`})
}
// 新增HourVolume
export const createHourVolume = (data: HourVolumeVO) => {
  return request.post({ url: '/xmcpms/wash/hourVolume/create', data })
  return request.post({ url: '/xmcpms/prod/wash/hourVolume/create', data })
}
// 修改HourVolume
export const updateHourVolume = (data: HourVolumeVO) => {
  return request.put({ url: '/xmcpms/wash/hourVolume/update', data })
  return request.put({ url: '/xmcpms/prod/wash/hourVolume/update', data })
}
// 删除HourVolume
export const deleteHourVolume = (id: number) => {
  return request.delete({ url: '/xmcpms/wash/hourVolume/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/wash/hourVolume/delete?id=' + id })
}
//导出HourVolumeList
export const exportHourVolume = (params) => {
  return request.download({ url: '/xmcpms/wash/hourVolume/export', params })
  return request.download({ url: '/xmcpms/prod/wash/hourVolume/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/wash/hourVolume/get-import-template' })
  return request.download({ url: '/xmcpms/prod/wash/hourVolume/get-import-template' })
}
src/api/prod/onDutyInfo.ts
@@ -10,40 +10,40 @@
// 查询OnDutyInfo列表
export const getOnDutyInfoPage = (params: OnDutyInfoPageReqVO) => {
  return request.get({ url: '/xmcpms/work/onDutyInfo/page', params })
  return request.get({ url: '/xmcpms/prod/work/onDutyInfo/page', params })
}
// 查询OnDutyInfo列表
export const getPointList = (params: OnDutyInfoPageReqVO) => {
  return request.get({ url: '/xmcpms/work/onDutyInfo/list', params })
  return request.get({ url: '/xmcpms/prod/work/onDutyInfo/list', params })
}
// 查询OnDutyInfo详情
export const getOnDutyInfo = (id: number) => {
  return request.get({ url: `/xmcpms/prod/work/onDutyInfo/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/work/onDutyInfo/info/${id}`})
}
// 新增OnDutyInfo
export const createOnDutyInfo = (data: OnDutyInfoVO) => {
  return request.post({ url: '/xmcpms/work/onDutyInfo/create', data })
  return request.post({ url: '/xmcpms/prod/work/onDutyInfo/create', data })
}
// 修改OnDutyInfo
export const updateOnDutyInfo = (data: OnDutyInfoVO) => {
  return request.put({ url: '/xmcpms/work/onDutyInfo/update', data })
  return request.put({ url: '/xmcpms/prod/work/onDutyInfo/update', data })
}
// 删除OnDutyInfo
export const deleteOnDutyInfo = (id: number) => {
  return request.delete({ url: '/xmcpms/work/onDutyInfo/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/work/onDutyInfo/delete?id=' + id })
}
//导出OnDutyInfoList
export const exportOnDutyInfo = (params) => {
  return request.download({ url: '/xmcpms/work/onDutyInfo/export', params })
  return request.download({ url: '/xmcpms/prod/work/onDutyInfo/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/work/onDutyInfo/get-import-template' })
  return request.download({ url: '/xmcpms/prod/work/onDutyInfo/get-import-template' })
}
src/api/prod/powerConsume.ts
@@ -10,40 +10,40 @@
// 查询PowerConsume列表
export const getPowerConsumePage = (params: PowerConsumePageReqVO) => {
  return request.get({ url: '/xmcpms/powerConsume/page', params })
  return request.get({ url: '/xmcpms/prod/powerConsume/page', params })
}
// 查询PowerConsume列表
export const getPointList = (params: PowerConsumePageReqVO) => {
  return request.get({ url: '/xmcpms/powerConsume/list', params })
  return request.get({ url: '/xmcpms/prod/powerConsume/list', params })
}
// 查询PowerConsume详情
export const getPowerConsume = (id: number) => {
  return request.get({ url: `/xmcpms/prod/powerConsume/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/powerConsume/info/${id}`})
}
// 新增PowerConsume
export const createPowerConsume = (data: PowerConsumeVO) => {
  return request.post({ url: '/xmcpms/powerConsume/create', data })
  return request.post({ url: '/xmcpms/prod/powerConsume/create', data })
}
// 修改PowerConsume
export const updatePowerConsume = (data: PowerConsumeVO) => {
  return request.put({ url: '/xmcpms/powerConsume/update', data })
  return request.put({ url: '/xmcpms/prod/powerConsume/update', data })
}
// 删除PowerConsume
export const deletePowerConsume = (id: number) => {
  return request.delete({ url: '/xmcpms/powerConsume/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/powerConsume/delete?id=' + id })
}
//导出PowerConsumeList
export const exportPowerConsume = (params) => {
  return request.download({ url: '/xmcpms/powerConsume/export', params })
  return request.download({ url: '/xmcpms/prod/powerConsume/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/powerConsume/get-import-template' })
  return request.download({ url: '/xmcpms/prod/powerConsume/get-import-template' })
}
src/api/prod/prodAccident.ts
@@ -10,40 +10,40 @@
// 查询ProdAccident列表
export const getProdAccidentPage = (params: ProdAccidentPageReqVO) => {
  return request.get({ url: '/xmcpms/work/prodAccident/page', params })
  return request.get({ url: '/xmcpms/prod/work/prodAccident/page', params })
}
// 查询ProdAccident列表
export const getPointList = (params: ProdAccidentPageReqVO) => {
  return request.get({ url: '/xmcpms/work/prodAccident/list', params })
  return request.get({ url: '/xmcpms/prod/work/prodAccident/list', params })
}
// 查询ProdAccident详情
export const getProdAccident = (id: number) => {
  return request.get({ url: `/xmcpms/prod/work/prodAccident/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/work/prodAccident/info/${id}`})
}
// 新增ProdAccident
export const createProdAccident = (data: ProdAccidentVO) => {
  return request.post({ url: '/xmcpms/work/prodAccident/create', data })
  return request.post({ url: '/xmcpms/prod/work/prodAccident/create', data })
}
// 修改ProdAccident
export const updateProdAccident = (data: ProdAccidentVO) => {
  return request.put({ url: '/xmcpms/work/prodAccident/update', data })
  return request.put({ url: '/xmcpms/prod/work/prodAccident/update', data })
}
// 删除ProdAccident
export const deleteProdAccident = (id: number) => {
  return request.delete({ url: '/xmcpms/work/prodAccident/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/work/prodAccident/delete?id=' + id })
}
//导出ProdAccidentList
export const exportProdAccident = (params) => {
  return request.download({ url: '/xmcpms/work/prodAccident/export', params })
  return request.download({ url: '/xmcpms/prod/work/prodAccident/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/work/prodAccident/get-import-template' })
  return request.download({ url: '/xmcpms/prod/work/prodAccident/get-import-template' })
}
src/api/prod/prodVolume.ts
@@ -10,40 +10,40 @@
// 查询ProdVolume列表
export const getProdVolumePage = (params: ProdVolumePageReqVO) => {
  return request.get({ url: '/xmcpms/wash/prodVolume/page', params })
  return request.get({ url: '/xmcpms/prod/wash/prodVolume/page', params })
}
// 查询ProdVolume列表
export const getPointList = (params: ProdVolumePageReqVO) => {
  return request.get({ url: '/xmcpms/wash/prodVolume/list', params })
  return request.get({ url: '/xmcpms/prod/wash/prodVolume/list', params })
}
// 查询ProdVolume详情
export const getProdVolume = (id: number) => {
  return request.get({ url: `/xmcpms/prod/wash/prodVolume/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/wash/prodVolume/info/${id}`})
}
// 新增ProdVolume
export const createProdVolume = (data: ProdVolumeVO) => {
  return request.post({ url: '/xmcpms/wash/prodVolume/create', data })
  return request.post({ url: '/xmcpms/prod/wash/prodVolume/create', data })
}
// 修改ProdVolume
export const updateProdVolume = (data: ProdVolumeVO) => {
  return request.put({ url: '/xmcpms/wash/prodVolume/update', data })
  return request.put({ url: '/xmcpms/prod/wash/prodVolume/update', data })
}
// 删除ProdVolume
export const deleteProdVolume = (id: number) => {
  return request.delete({ url: '/xmcpms/wash/prodVolume/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/wash/prodVolume/delete?id=' + id })
}
//导出ProdVolumeList
export const exportProdVolume = (params) => {
  return request.download({ url: '/xmcpms/wash/prodVolume/export', params })
  return request.download({ url: '/xmcpms/prod/wash/prodVolume/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/wash/prodVolume/get-import-template' })
  return request.download({ url: '/xmcpms/prod/wash/prodVolume/get-import-template' })
}
src/api/prod/productStock.ts
@@ -10,40 +10,40 @@
// 查询ProductStock列表
export const getProductStockPage = (params: ProductStockPageReqVO) => {
  return request.get({ url: '/xmcpms/productStock/page', params })
  return request.get({ url: '/xmcpms/prod/productStock/page', params })
}
// 查询ProductStock列表
export const getPointList = (params: ProductStockPageReqVO) => {
  return request.get({ url: '/xmcpms/productStock/list', params })
  return request.get({ url: '/xmcpms/prod/productStock/list', params })
}
// 查询ProductStock详情
export const getProductStock = (id: number) => {
  return request.get({ url: `/xmcpms/prod/productStock/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/productStock/info/${id}`})
}
// 新增ProductStock
export const createProductStock = (data: ProductStockVO) => {
  return request.post({ url: '/xmcpms/productStock/create', data })
  return request.post({ url: '/xmcpms/prod/productStock/create', data })
}
// 修改ProductStock
export const updateProductStock = (data: ProductStockVO) => {
  return request.put({ url: '/xmcpms/productStock/update', data })
  return request.put({ url: '/xmcpms/prod/productStock/update', data })
}
// 删除ProductStock
export const deleteProductStock = (id: number) => {
  return request.delete({ url: '/xmcpms/productStock/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/productStock/delete?id=' + id })
}
//导出ProductStockList
export const exportProductStock = (params) => {
  return request.download({ url: '/xmcpms/productStock/export', params })
  return request.download({ url: '/xmcpms/prod/productStock/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/productStock/get-import-template' })
  return request.download({ url: '/xmcpms/prod/productStock/get-import-template' })
}
src/api/prod/rawCoalStock.ts
@@ -10,40 +10,40 @@
// 查询RawCoalStock列表
export const getRawCoalStockPage = (params: RawCoalStockPageReqVO) => {
  return request.get({ url: '/xmcpms/warehouse/item/page', params })
  return request.get({ url: '/xmcpms/prod/warehouse/item/page', params })
}
// 查询RawCoalStock列表
export const getPointList = (params: RawCoalStockPageReqVO) => {
  return request.get({ url: '/xmcpms/warehouse/item/list', params })
  return request.get({ url: '/xmcpms/prod/warehouse/item/list', params })
}
// 查询RawCoalStock详情
export const getRawCoalStock = (id: number) => {
  return request.get({ url: `/xmcpms/prod/warehouse/item/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/warehouse/item/info/${id}`})
}
// 新增RawCoalStock
export const createRawCoalStock = (data: RawCoalStockVO) => {
  return request.post({ url: '/xmcpms/warehouse/item/create', data })
  return request.post({ url: '/xmcpms/prod/warehouse/item/create', data })
}
// 修改RawCoalStock
export const updateRawCoalStock = (data: RawCoalStockVO) => {
  return request.put({ url: '/xmcpms/warehouse/item/update', data })
  return request.put({ url: '/xmcpms/prod/warehouse/item/update', data })
}
// 删除RawCoalStock
export const deleteRawCoalStock = (id: number) => {
  return request.delete({ url: '/xmcpms/warehouse/item/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/warehouse/item/delete?id=' + id })
}
//导出RawCoalStockList
export const exportRawCoalStock = (params) => {
  return request.download({ url: '/xmcpms/warehouse/item/export', params })
  return request.download({ url: '/xmcpms/prod/warehouse/item/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/warehouse/item/get-import-template' })
  return request.download({ url: '/xmcpms/prod/warehouse/item/get-import-template' })
}
src/api/prod/rawCoalToWash.ts
@@ -10,40 +10,40 @@
// 查询RawCoalToWash列表
export const getRawCoalToWashPage = (params: RawCoalToWashPageReqVO) => {
  return request.get({ url: '/xmcpms/wash/toWash/page', params })
  return request.get({ url: '/xmcpms/prod/wash/toWash/page', params })
}
// 查询RawCoalToWash列表
export const getPointList = (params: RawCoalToWashPageReqVO) => {
  return request.get({ url: '/xmcpms/wash/toWash/list', params })
  return request.get({ url: '/xmcpms/prod/wash/toWash/list', params })
}
// 查询RawCoalToWash详情
export const getRawCoalToWash = (id: number) => {
  return request.get({ url: `/xmcpms/prod/wash/toWash/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/wash/toWash/info/${id}`})
}
// 新增RawCoalToWash
export const createRawCoalToWash = (data: RawCoalToWashVO) => {
  return request.post({ url: '/xmcpms/wash/toWash/create', data })
  return request.post({ url: '/xmcpms/prod/wash/toWash/create', data })
}
// 修改RawCoalToWash
export const updateRawCoalToWash = (data: RawCoalToWashVO) => {
  return request.put({ url: '/xmcpms/wash/toWash/update', data })
  return request.put({ url: '/xmcpms/prod/wash/toWash/update', data })
}
// 删除RawCoalToWash
export const deleteRawCoalToWash = (id: number) => {
  return request.delete({ url: '/xmcpms/wash/toWash/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/wash/toWash/delete?id=' + id })
}
//导出RawCoalToWashList
export const exportRawCoalToWash = (params) => {
  return request.download({ url: '/xmcpms/wash/toWash/export', params })
  return request.download({ url: '/xmcpms/prod/wash/toWash/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/wash/toWash/get-import-template' })
  return request.download({ url: '/xmcpms/prod/wash/toWash/get-import-template' })
}
src/api/prod/rawCoalTransferIn.ts
@@ -10,40 +10,40 @@
// 查询RawCoalTransferIn列表
export const getRawCoalTransferInPage = (params: RawCoalTransferInPageReqVO) => {
  return request.get({ url: '/xmcpms/wash/transferIn/page', params })
  return request.get({ url: '/xmcpms/prod/wash/transferIn/page', params })
}
// 查询RawCoalTransferIn列表
export const getPointList = (params: RawCoalTransferInPageReqVO) => {
  return request.get({ url: '/xmcpms/wash/transferIn/list', params })
  return request.get({ url: '/xmcpms/prod/wash/transferIn/list', params })
}
// 查询RawCoalTransferIn详情
export const getRawCoalTransferIn = (id: number) => {
  return request.get({ url: `/xmcpms/prod/wash/transferIn/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/wash/transferIn/info/${id}`})
}
// 新增RawCoalTransferIn
export const createRawCoalTransferIn = (data: RawCoalTransferInVO) => {
  return request.post({ url: '/xmcpms/wash/transferIn/create', data })
  return request.post({ url: '/xmcpms/prod/wash/transferIn/create', data })
}
// 修改RawCoalTransferIn
export const updateRawCoalTransferIn = (data: RawCoalTransferInVO) => {
  return request.put({ url: '/xmcpms/wash/transferIn/update', data })
  return request.put({ url: '/xmcpms/prod/wash/transferIn/update', data })
}
// 删除RawCoalTransferIn
export const deleteRawCoalTransferIn = (id: number) => {
  return request.delete({ url: '/xmcpms/wash/transferIn/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/wash/transferIn/delete?id=' + id })
}
//导出RawCoalTransferInList
export const exportRawCoalTransferIn = (params) => {
  return request.download({ url: '/xmcpms/wash/transferIn/export', params })
  return request.download({ url: '/xmcpms/prod/wash/transferIn/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/wash/transferIn/get-import-template' })
  return request.download({ url: '/xmcpms/prod/wash/transferIn/get-import-template' })
}
src/api/prod/runTime.ts
@@ -18,40 +18,40 @@
// 查询RunTime列表
export const getRunTimePage = (params: RunTimePageReqVO) => {
  return request.get({ url: '/xmcpms/device/runTime/page', params })
  return request.get({ url: '/xmcpms/prod/device/runTime/page', params })
}
// 查询RunTime列表
export const getPointList = (params: RunTimePageReqVO) => {
  return request.get({ url: '/xmcpms/device/runTime/list', params })
  return request.get({ url: '/xmcpms/prod/device/runTime/list', params })
}
// 查询RunTime详情
export const getRunTime = (id: number) => {
  return request.get({ url: `/xmcpms/prod/device/runTime/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/device/runTime/info/${id}`})
}
// 新增RunTime
export const createRunTime = (data: RunTimeVO) => {
  return request.post({ url: '/xmcpms/device/runTime/create', data })
  return request.post({ url: '/xmcpms/prod/device/runTime/create', data })
}
// 修改RunTime
export const updateRunTime = (data: RunTimeVO) => {
  return request.put({ url: '/xmcpms/device/runTime/update', data })
  return request.put({ url: '/xmcpms/prod/device/runTime/update', data })
}
// 删除RunTime
export const deleteRunTime = (id: number) => {
  return request.delete({ url: '/xmcpms/device/runTime/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/device/runTime/delete?id=' + id })
}
//导出RunTimeList
export const exportRunTime = (params) => {
  return request.download({ url: '/xmcpms/device/runTime/export', params })
  return request.download({ url: '/xmcpms/prod/device/runTime/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/device/runTime/get-import-template' })
  return request.download({ url: '/xmcpms/prod/device/runTime/get-import-template' })
}
src/api/prod/targetConsume.ts
@@ -10,40 +10,40 @@
// 查询TargetConsume列表
export const getTargetConsumePage = (params: TargetConsumePageReqVO) => {
  return request.get({ url: '/xmcpms/targetConsume/page', params })
  return request.get({ url: '/xmcpms/prod/targetConsume/page', params })
}
// 查询TargetConsume列表
export const getPointList = (params: TargetConsumePageReqVO) => {
  return request.get({ url: '/xmcpms/targetConsume/list', params })
  return request.get({ url: '/xmcpms/prod/targetConsume/list', params })
}
// 查询TargetConsume详情
export const getTargetConsume = (id: number) => {
  return request.get({ url: `/xmcpms/prod/targetConsume/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/targetConsume/info/${id}`})
}
// 新增TargetConsume
export const createTargetConsume = (data: TargetConsumeVO) => {
  return request.post({ url: '/xmcpms/targetConsume/create', data })
  return request.post({ url: '/xmcpms/prod/targetConsume/create', data })
}
// 修改TargetConsume
export const updateTargetConsume = (data: TargetConsumeVO) => {
  return request.put({ url: '/xmcpms/targetConsume/update', data })
  return request.put({ url: '/xmcpms/prod/targetConsume/update', data })
}
// 删除TargetConsume
export const deleteTargetConsume = (id: number) => {
  return request.delete({ url: '/xmcpms/targetConsume/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/targetConsume/delete?id=' + id })
}
//导出TargetConsumeList
export const exportTargetConsume = (params) => {
  return request.download({ url: '/xmcpms/targetConsume/export', params })
  return request.download({ url: '/xmcpms/prod/targetConsume/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/targetConsume/get-import-template' })
  return request.download({ url: '/xmcpms/prod/targetConsume/get-import-template' })
}