| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- import request from '@/config/axios'
- // 计量器具-证书管理 VO
- export interface IotMeasureCertVO {
- id: number // 主键id
- type: string // 证书类型
- classify: string // 证书类别
- certBelong: string // 证书所属公司/个人
- certOrg: string // 证书颁发机构
- certStandard: string // 证书标准
- certIssue: Date // 证书颁发时间
- certExpire: Date // 证书有效期
- noticeBefore: number // 到期前提醒
- certPic: string // 证书图片上传
- remark: string // 备注
- deptId: number // 部门id
- }
- // 计量器具-证书管理 API
- export const IotMeasureCertApi = {
- // 查询计量器具-证书管理分页
- getIotMeasureCertPage: async (params: any) => {
- return await request.get({ url: `/rq/iot-measure-cert/page`, params })
- },
- // 查询计量器具-证书管理详情
- getIotMeasureCert: async (id: number) => {
- return await request.get({ url: `/rq/iot-measure-cert/get?id=` + id })
- },
- // 新增计量器具-证书管理
- createIotMeasureCert: async (data: IotMeasureCertVO) => {
- return await request.post({ url: `/rq/iot-measure-cert/create`, data })
- },
- // 修改计量器具-证书管理
- updateIotMeasureCert: async (data: IotMeasureCertVO) => {
- return await request.put({ url: `/rq/iot-measure-cert/update`, data })
- },
- // 删除计量器具-证书管理
- deleteIotMeasureCert: async (id: number) => {
- return await request.delete({ url: `/rq/iot-measure-cert/delete?id=` + id })
- },
- // 导出计量器具-证书管理 Excel
- exportIotMeasureCert: async (params) => {
- return await request.download({ url: `/rq/iot-measure-cert/export-excel`, params })
- }
- }
- // 计量器具台账 VO
- export const IotInstrumentApi = {
- // 获得计量器具台账分页
- getInstrumentList: async (params) => {
- return await request.get({ url: `rq/iot-measure-book/page`, params })
- },
- // 删除计量器具台账
- deleteInstrument: async (id) => {
- return await request.delete({ url: `/rq/iot-measure-book/delete?id=` + id })
- },
- // 更新计量器具台账
- updateInstrument: async (data) => {
- return await request.put({ url: `/rq/iot-measure-book/update`, data })
- },
- // 新增计量器具台账
- createInstrument: async (data) => {
- return await request.post({ url: `/rq/iot-measure-book/create`, data })
- },
- // 导出计量器具台账 Excel
- exportInstrument: async (params) => {
- return await request.download({ url: `/rq/iot-measure-book/export-excel`, params })
- }
- }
- // 计量器具-检测校准明细 VO
- export interface IotMeasureDetectVO {
- id: number // 主键id
- measureId: number // 计量器具id
- detectDate: string // 检测/校准日期
- detectOrg: string // 检测/校准机构
- detectContent: string // 检测/校准内容
- validityPeriod: Date // 检测/校准有效期
- detectAmount: number // 校准金额
- deptId: number // 部门id
- }
- // 计量器具-检测校准明细 API
- export const IotMeasureDetectApi = {
- // 查询计量器具-检测校准明细分页
- getIotMeasureDetectPage: async (params: any) => {
- return await request.get({ url: `/rq/iot-measure-detect/page`, params })
- },
- // 查询计量器具-检测校准明细详情
- getIotMeasureDetect: async (id: number) => {
- return await request.get({ url: `/rq/iot-measure-detect/get?id=` + id })
- },
- // 新增计量器具-检测校准明细
- createIotMeasureDetect: async (data: IotMeasureDetectVO) => {
- return await request.post({ url: `/rq/iot-measure-detect/create`, data })
- },
- // 修改计量器具-检测校准明细
- updateIotMeasureDetect: async (data: IotMeasureDetectVO) => {
- return await request.put({ url: `/rq/iot-measure-detect/update`, data })
- },
- // 删除计量器具-检测校准明细
- deleteIotMeasureDetect: async (id: number) => {
- return await request.delete({ url: `/rq/iot-measure-detect/delete?id=` + id })
- },
- // 导出计量器具-检测校准明细 Excel
- exportIotMeasureDetect: async (params) => {
- return await request.download({ url: `/rq/iot-measure-detect/export-excel`, params })
- }
- }
- // 计量器具-使用记录 VO
- export interface IotMeasureRecordVO {
- id: number // 主键id
- measureId: number // 计量器具id
- useDate: string // 使用日期
- useReason: string // 使用原因
- measureProject: string // 计量项目
- usePerson: string // 使用人
- userId: number // 使用人id
- deptId: number // 部门id
- }
- // 计量器具-使用记录 API
- export const IotMeasureRecordApi = {
- // 查询计量器具-使用记录分页
- getIotMeasureRecordPage: async (params: any) => {
- return await request.get({ url: `/rq/iot-measure-record/page`, params })
- },
- // 查询计量器具-使用记录详情
- getIotMeasureRecord: async (id: number) => {
- return await request.get({ url: `/rq/iot-measure-record/get?id=` + id })
- },
- // 新增计量器具-使用记录
- createIotMeasureRecord: async (data: IotMeasureRecordVO) => {
- return await request.post({ url: `/rq/iot-measure-record/create`, data })
- },
- // 修改计量器具-使用记录
- updateIotMeasureRecord: async (data: IotMeasureRecordVO) => {
- return await request.put({ url: `/rq/iot-measure-record/update`, data })
- },
- // 删除计量器具-使用记录
- deleteIotMeasureRecord: async (id: number) => {
- return await request.delete({ url: `/rq/iot-measure-record/delete?id=` + id })
- },
- // 导出计量器具-使用记录 Excel
- exportIotMeasureRecord: async (params) => {
- return await request.download({ url: `/rq/iot-measure-record/export-excel`, params })
- }
- }
- // 危险源管理
- export const IotDangerApi = {
- // 获得危险源分页
- getDangerList: async (params) => {
- return await request.get({ url: `/rq/iot-danger-source/page`, params })
- },
- // 删除危险源
- deleteDanger: async (id) => {
- return await request.delete({ url: `/rq/iot-danger-source/delete?id=` + id })
- },
- // 添加危险源
- createDanger: async (data) => {
- return await request.post({ url: `/rq/iot-danger-source/create`, data })
- },
- // 修改危险源
- updateDanger: async (data) => {
- return await request.put({ url: `/rq/iot-danger-source/update`, data })
- },
- // 导出危险源 Excel
- exportDanger: async (params) => {
- return await request.download({ url: `/rq/iot-danger-source/export-excel`, params })
- }
- }
|