选煤厂生产管理平台前端代码
dongyukun
9 天以前 3a3fa4d07904aaaeb2ca79b6c57359fc1a2da843
提交 | 用户 | 时间
5cc1d9 1 import request from '@/config/axios'
D 2
3 export interface HourVolumeVO {
4   id: string
5   rq: string,
6   bc: string,
7   bcName: string,
8   lsh: string,
9   sj: string,
10   rxl: string,
11   jml: string,
12   hml: number,
13   gsl: number,
14   sxgsl: number,
15   fjbs: number,
16   mnbs: string,
17   bz: string,
18 }
19
20 export interface HourVolumePageReqVO extends PageParam {
21   xt?: string,
22   startDate?: Date,
23   endDate?: Date,
24 }
25
26 // 查询HourVolume列表
27 export const getHourVolumePage = (params: HourVolumePageReqVO) => {
73d750 28   return request.get({ url: '/xmcpms/prod/wash/hourVolume/page', params })
5cc1d9 29 }
D 30
31 // 查询HourVolume列表
32 export const getPointList = (params: HourVolumePageReqVO) => {
73d750 33   return request.get({ url: '/xmcpms/prod/wash/hourVolume/list', params })
5cc1d9 34 }
D 35
36 // 查询HourVolume详情
37 export const getHourVolume = (id: number) => {
3a3fa4 38   return request.get({ url: `/xmcpms/prod/wash/hourVolume/info/${id}`})
5cc1d9 39 }
D 40
41 // 新增HourVolume
42 export const createHourVolume = (data: HourVolumeVO) => {
73d750 43   return request.post({ url: '/xmcpms/prod/wash/hourVolume/create', data })
5cc1d9 44 }
D 45
46 // 修改HourVolume
47 export const updateHourVolume = (data: HourVolumeVO) => {
73d750 48   return request.put({ url: '/xmcpms/prod/wash/hourVolume/update', data })
5cc1d9 49 }
D 50
51 // 删除HourVolume
52 export const deleteHourVolume = (id: number) => {
73d750 53   return request.delete({ url: '/xmcpms/prod/wash/hourVolume/delete?id=' + id })
5cc1d9 54 }
D 55
56 //导出HourVolumeList
57 export const exportHourVolume = (params) => {
73d750 58   return request.download({ url: '/xmcpms/prod/wash/hourVolume/export', params })
5cc1d9 59 }
D 60
61 // 下载用户导入模板
62 export const importPointTemplate = () => {
73d750 63   return request.download({ url: '/xmcpms/prod/wash/hourVolume/get-import-template' })
5cc1d9 64 }