parent
f8d40329be
commit
62e90e9b81
@ -1,68 +1,73 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 电价模型月份 VO
|
||||
export interface ElectricityDateVO {
|
||||
// 电网电价月份模型 ID
|
||||
id: number
|
||||
// 电网电价模型id
|
||||
priceId: number
|
||||
// 计费模型名称
|
||||
name: string
|
||||
// 时段数量
|
||||
periodsAmount: number
|
||||
// 序列
|
||||
no: number
|
||||
// 开始日期
|
||||
startDate: string
|
||||
// 结束日期
|
||||
endDate: string
|
||||
// 尖电价
|
||||
theTipPrice: number
|
||||
// 峰电价
|
||||
peakPrice: number
|
||||
// 平电价
|
||||
flatPrice: number
|
||||
// 谷电价
|
||||
theValleyPrice: number
|
||||
// 是否启用:0启用;1禁用
|
||||
status: number
|
||||
// 备注
|
||||
remark: string
|
||||
// 数据来源:0:云平台;1;三方运营商
|
||||
source: number
|
||||
// 唯一编码
|
||||
code: string
|
||||
}
|
||||
|
||||
// 电价模型月份 API
|
||||
export const ElectricityDateApi = {
|
||||
// 查询电价模型月份分页
|
||||
getElectricityDatePage: async (params: any) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/page`, params })
|
||||
},
|
||||
|
||||
// 查询电价模型月份详情
|
||||
getElectricityDate: async (id: number) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电价模型月份
|
||||
createElectricityDate: async (data: ElectricityDateVO) => {
|
||||
return await request.post({ url: `/cloud/electricity-date/create`, data })
|
||||
},
|
||||
|
||||
// 修改电价模型月份
|
||||
updateElectricityDate: async (data: ElectricityDateVO) => {
|
||||
return await request.put({ url: `/cloud/electricity-date/update`, data })
|
||||
},
|
||||
|
||||
// 删除电价模型月份
|
||||
deleteElectricityDate: async (id: number) => {
|
||||
return await request.delete({ url: `/cloud/electricity-date/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电价模型月份 Excel
|
||||
exportElectricityDate: async (params) => {
|
||||
return await request.download({ url: `/cloud/electricity-date/export-excel`, params })
|
||||
},
|
||||
}
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 电价模型月份 VO
|
||||
export interface ElectricityDateVO {
|
||||
// 电网电价月份模型 ID
|
||||
id: number
|
||||
// 电网电价模型id
|
||||
priceId: number
|
||||
// 计费模型名称
|
||||
name: string
|
||||
// 时段数量
|
||||
periodsAmount: number
|
||||
// 序列
|
||||
no: number
|
||||
// 开始日期
|
||||
startDate: string
|
||||
// 结束日期
|
||||
endDate: string
|
||||
// 尖电价
|
||||
theTipPrice: number
|
||||
// 峰电价
|
||||
peakPrice: number
|
||||
// 平电价
|
||||
flatPrice: number
|
||||
// 谷电价
|
||||
theValleyPrice: number
|
||||
// 是否启用:0启用;1禁用
|
||||
status: number
|
||||
// 备注
|
||||
remark: string
|
||||
// 数据来源:0:云平台;1;三方运营商
|
||||
source: number
|
||||
// 唯一编码
|
||||
code: string
|
||||
}
|
||||
|
||||
// 电价模型月份 API
|
||||
export const ElectricityDateApi = {
|
||||
// 查询电价模型月份分页
|
||||
getElectricityDatePage: async (params: any) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/page`, params })
|
||||
},
|
||||
|
||||
// 查询电价模型月份详情
|
||||
getElectricityDate: async (id: number) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/get?id=` + id })
|
||||
},
|
||||
// 获得电价模型月份列表
|
||||
getElectricityList: async (params: any) => {
|
||||
return await request.get({ url: `/cloud/electricity-date/list`, params })
|
||||
},
|
||||
|
||||
|
||||
// 新增电价模型月份
|
||||
createElectricityDate: async (data: ElectricityDateVO) => {
|
||||
return await request.post({ url: `/cloud/electricity-date/create`, data })
|
||||
},
|
||||
|
||||
// 修改电价模型月份
|
||||
updateElectricityDate: async (data: ElectricityDateVO) => {
|
||||
return await request.put({ url: `/cloud/electricity-date/update`, data })
|
||||
},
|
||||
|
||||
// 删除电价模型月份
|
||||
deleteElectricityDate: async (id: number) => {
|
||||
return await request.delete({ url: `/cloud/electricity-date/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电价模型月份 Excel
|
||||
exportElectricityDate: async (params) => {
|
||||
return await request.download({ url: `/cloud/electricity-date/export-excel`, params })
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in new issue