完成水电表列表
This commit is contained in:
@@ -7,7 +7,7 @@ export interface ActivityVO {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
titile: string;
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
@@ -44,7 +44,7 @@ export interface ActivityForm extends BaseEntity {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
titile?: string;
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
@@ -76,7 +76,7 @@ export interface ActivityQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
titile?: string;
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
|
||||
63
src/api/system/InspectionPoint/index.ts
Normal file
63
src/api/system/InspectionPoint/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PointVO, PointForm, PointQuery } from '@/api/system/InspectionPoint/type';
|
||||
|
||||
/**
|
||||
* 查询巡检点列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPoint = (query?: PointQuery): AxiosPromise<PointVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/point/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询巡检点详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPoint = (id: string | number): AxiosPromise<PointVO> => {
|
||||
return request({
|
||||
url: '/inspection/point/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增巡检点
|
||||
* @param data
|
||||
*/
|
||||
export const addPoint = (data: PointForm) => {
|
||||
return request({
|
||||
url: '/inspection/point',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改巡检点
|
||||
* @param data
|
||||
*/
|
||||
export const updatePoint = (data: PointForm) => {
|
||||
return request({
|
||||
url: '/inspection/point',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除巡检点
|
||||
* @param id
|
||||
*/
|
||||
export const delPoint = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/point/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
150
src/api/system/InspectionPoint/type.ts
Normal file
150
src/api/system/InspectionPoint/type.ts
Normal file
@@ -0,0 +1,150 @@
|
||||
export interface PointVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点名称
|
||||
*/
|
||||
pointName: string;
|
||||
|
||||
/**
|
||||
* 巡检项目id
|
||||
*/
|
||||
itemId: string | number;
|
||||
|
||||
/**
|
||||
* 所属路线ID
|
||||
*/
|
||||
routeId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点位置(经纬度),格式:经度,纬度
|
||||
*/
|
||||
location: string;
|
||||
|
||||
/**
|
||||
* 打卡方式:9999定位打卡、9998蓝牙打卡、9997NFC打卡
|
||||
*/
|
||||
checkMode: string;
|
||||
|
||||
/**
|
||||
* 状态:0-开启,1-关闭
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 点位编号
|
||||
*/
|
||||
pointCode: string;
|
||||
|
||||
/**
|
||||
* 是否打卡 0:已打卡 1:未打卡
|
||||
*/
|
||||
isCheck: string;
|
||||
}
|
||||
|
||||
export interface PointForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点名称
|
||||
*/
|
||||
pointName?: string;
|
||||
|
||||
/**
|
||||
* 巡检项目id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属路线ID
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点位置(经纬度),格式:经度,纬度
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 打卡方式:9999定位打卡、9998蓝牙打卡、9997NFC打卡
|
||||
*/
|
||||
checkMode?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-开启,1-关闭
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 点位编号
|
||||
*/
|
||||
pointCode?: string;
|
||||
|
||||
/**
|
||||
* 是否打卡 0:已打卡 1:未打卡
|
||||
*/
|
||||
isCheck?: string;
|
||||
}
|
||||
|
||||
export interface PointQuery extends PageQuery {
|
||||
/**
|
||||
* 巡检点名称
|
||||
*/
|
||||
pointName?: string;
|
||||
|
||||
/**
|
||||
* 巡检项目id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属路线ID
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点位置(经纬度),格式:经度,纬度
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 打卡方式:9999定位打卡、9998蓝牙打卡、9997NFC打卡
|
||||
*/
|
||||
checkMode?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-开启,1-关闭
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 点位编号
|
||||
*/
|
||||
pointCode?: string;
|
||||
|
||||
/**
|
||||
* 是否打卡 0:已打卡 1:未打卡
|
||||
*/
|
||||
isCheck?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
@@ -67,43 +67,18 @@ export interface RecordForm extends BaseEntity {
|
||||
}
|
||||
|
||||
export interface RecordQuery extends PageQuery {
|
||||
/**
|
||||
* 关联巡检任务ID
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 关联巡检计划ID
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检人员ID
|
||||
*/
|
||||
inspectorId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检路线ID
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 任务开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 任务结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 执行状态(字典:inspection_exec_status 0-按时完成 1-超时完成 2-未完成)
|
||||
*/
|
||||
execStatus?: number;
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
taskTime?: string;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName?: string;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface QuestionnaireVO {
|
||||
/**
|
||||
* 问卷题目结构(JSON数组)
|
||||
*/
|
||||
content: QuestionComponentItem[];
|
||||
content: string | QuestionComponentItem[];
|
||||
|
||||
/**
|
||||
* 状态:0-草稿 1-已发布 2-已结束
|
||||
|
||||
63
src/api/system/SdbElectricityDevice/index.ts
Normal file
63
src/api/system/SdbElectricityDevice/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ElectricityDeviceVO, ElectricityDeviceForm, ElectricityDeviceQuery } from './type';
|
||||
|
||||
/**
|
||||
* 查询电设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listElectricityDevice = (query?: ElectricityDeviceQuery): AxiosPromise<ElectricityDeviceVO[]> => {
|
||||
return request({
|
||||
url: '/electricityDevice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询电设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getElectricityDevice = (id: string | number): AxiosPromise<ElectricityDeviceVO> => {
|
||||
return request({
|
||||
url: '/electricityDevice/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增电设备
|
||||
* @param data
|
||||
*/
|
||||
export const addElectricityDevice = (data: ElectricityDeviceForm) => {
|
||||
return request({
|
||||
url: '/electricityDevice',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改电设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateElectricityDevice = (data: ElectricityDeviceForm) => {
|
||||
return request({
|
||||
url: '/electricityDevice',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除电设备
|
||||
* @param id
|
||||
*/
|
||||
export const delElectricityDevice = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/electricityDevice/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
95
src/api/system/SdbElectricityDevice/type.ts
Normal file
95
src/api/system/SdbElectricityDevice/type.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
export interface ElectricityDeviceVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
deviceCode: string;
|
||||
|
||||
/**
|
||||
* 安装地址
|
||||
*/
|
||||
address: string;
|
||||
|
||||
/**
|
||||
* 0.未删除,1.删除
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
url: string;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid: string | number;
|
||||
}
|
||||
|
||||
export interface ElectricityDeviceForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 安装地址
|
||||
*/
|
||||
address?: string;
|
||||
|
||||
/**
|
||||
* 0.未删除,1.删除
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid?: string | number;
|
||||
}
|
||||
|
||||
export interface ElectricityDeviceQuery extends PageQuery {
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 安装地址
|
||||
*/
|
||||
address?: string;
|
||||
|
||||
/**
|
||||
* 0.未删除,1.删除
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/system/SdbTopupRecord/index.ts
Normal file
63
src/api/system/SdbTopupRecord/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TopupRecordVO, TopupRecordForm, TopupRecordQuery } from './type';
|
||||
|
||||
/**
|
||||
* 查询充值记录列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listTopupRecord = (query?: TopupRecordQuery): AxiosPromise<TopupRecordVO[]> => {
|
||||
return request({
|
||||
url: '/topupRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询充值记录详细
|
||||
* @param id
|
||||
*/
|
||||
export const getTopupRecord = (id: string | number): AxiosPromise<TopupRecordVO> => {
|
||||
return request({
|
||||
url: '/topupRecord/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增充值记录
|
||||
* @param data
|
||||
*/
|
||||
export const addTopupRecord = (data: TopupRecordForm) => {
|
||||
return request({
|
||||
url: '/topupRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改充值记录
|
||||
* @param data
|
||||
*/
|
||||
export const updateTopupRecord = (data: TopupRecordForm) => {
|
||||
return request({
|
||||
url: '/topupRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除充值记录
|
||||
* @param id
|
||||
*/
|
||||
export const delTopupRecord = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/topupRecord/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
140
src/api/system/SdbTopupRecord/type.ts
Normal file
140
src/api/system/SdbTopupRecord/type.ts
Normal file
@@ -0,0 +1,140 @@
|
||||
export interface TopupRecordVO {
|
||||
/**
|
||||
* 充值记录ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 充值金额
|
||||
*/
|
||||
rechargeAmount: number;
|
||||
|
||||
/**
|
||||
* 充值时间
|
||||
*/
|
||||
rechargeTime: string;
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
deviceCode: string;
|
||||
|
||||
/**
|
||||
* 订单表
|
||||
*/
|
||||
orderId: string | number;
|
||||
|
||||
/**
|
||||
* 1.电表 2.水表
|
||||
*/
|
||||
type: number;
|
||||
|
||||
/**
|
||||
* 订单状态(0.未支付 1.已支付 2.支付中,3.支付失败 4.退款)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 0.待接收 1.已接收
|
||||
*/
|
||||
getOver: number;
|
||||
}
|
||||
|
||||
export interface TopupRecordForm extends BaseEntity {
|
||||
/**
|
||||
* 充值记录ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 充值金额
|
||||
*/
|
||||
rechargeAmount?: number;
|
||||
|
||||
/**
|
||||
* 充值时间
|
||||
*/
|
||||
rechargeTime?: string;
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 订单表
|
||||
*/
|
||||
orderId?: string | number;
|
||||
|
||||
/**
|
||||
* 1.电表 2.水表
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 订单状态(0.未支付 1.已支付 2.支付中,3.支付失败 4.退款)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 0.待接收 1.已接收
|
||||
*/
|
||||
getOver?: number;
|
||||
}
|
||||
|
||||
export interface TopupRecordQuery extends PageQuery {
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 充值金额
|
||||
*/
|
||||
rechargeAmount?: number;
|
||||
|
||||
/**
|
||||
* 充值时间
|
||||
*/
|
||||
rechargeTime?: string;
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 订单表
|
||||
*/
|
||||
orderId?: string | number;
|
||||
|
||||
/**
|
||||
* 1.电表 2.水表
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 订单状态(0.未支付 1.已支付 2.支付中,3.支付失败 4.退款)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 0.待接收 1.已接收
|
||||
*/
|
||||
getOver?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/system/SdbWaterDevice/index.ts
Normal file
63
src/api/system/SdbWaterDevice/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { WaterDeviceVO, WaterDeviceForm, WaterDeviceQuery } from './type';
|
||||
|
||||
/**
|
||||
* 查询水 设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listWaterDevice = (query?: WaterDeviceQuery): AxiosPromise<WaterDeviceVO[]> => {
|
||||
return request({
|
||||
url: '/waterDevice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询水 设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getWaterDevice = (id: string | number): AxiosPromise<WaterDeviceVO> => {
|
||||
return request({
|
||||
url: '/waterDevice/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增水 设备
|
||||
* @param data
|
||||
*/
|
||||
export const addWaterDevice = (data: WaterDeviceForm) => {
|
||||
return request({
|
||||
url: '/waterDevice',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改水 设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateWaterDevice = (data: WaterDeviceForm) => {
|
||||
return request({
|
||||
url: '/waterDevice',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除水 设备
|
||||
* @param id
|
||||
*/
|
||||
export const delWaterDevice = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/waterDevice/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
95
src/api/system/SdbWaterDevice/type.ts
Normal file
95
src/api/system/SdbWaterDevice/type.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
export interface WaterDeviceVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 水表设备编码
|
||||
*/
|
||||
deviceCode: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
address: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
url: string;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid: string | number;
|
||||
}
|
||||
|
||||
export interface WaterDeviceForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 水表设备编码
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
address?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid?: string | number;
|
||||
}
|
||||
|
||||
export interface WaterDeviceQuery extends PageQuery {
|
||||
/**
|
||||
* 水表设备编码
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
address?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
Reference in New Issue
Block a user