| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import request from '@/config/axios/service2'
- // 计量器具台账 VO
- export interface IotMeasureBookVO {
- id: number // 主键id
- measureCode: string // 计量器具编码
- measureName: string // 计量器具名称
- classify: string // 分类
- dutyPerson: string // 责任人
- buyDate: string // 采购日期
- brand: string // 品牌
- modelName: string // 规格型号
- validity: Date // 有效期
- lastTime: string // 上次检验/校准日期
- measureUnit: string // 单位
- measurePrice: number // 价格
- measurePic: string // 图片
- remark: string // 备注
- deptId: number // 部门id
- }
- // 计量器具台账 API
- export const IotMeasureBookApi = {
- // 查询计量器具台账分页
- getIotMeasureBookPage: async (params: any) => {
- return await request.get({ url: `/rq/iot-measure-book/page`, params })
- },
- // 查询计量器具台账详情
- getIotMeasureBook: async (id: number) => {
- return await request.get({ url: `/rq/iot-measure-book/get?id=` + id })
- },
- // 新增计量器具台账
- createIotMeasureBook: async (data: IotMeasureBookVO) => {
- return await request.post({ url: `/rq/iot-measure-book/create`, data })
- },
- // 修改计量器具台账
- updateIotMeasureBook: async (data: IotMeasureBookVO) => {
- return await request.put({ url: `/rq/iot-measure-book/update`, data })
- },
- // 删除计量器具台账
- deleteIotMeasureBook: async (id: number) => {
- return await request.delete({ url: `/rq/iot-measure-book/delete?id=` + id })
- },
- // 导出计量器具台账 Excel
- exportIotMeasureBook: async (params) => {
- return await request.download({ url: `/rq/iot-measure-book/export-excel`, params })
- },
- }
|