From 582f96e7b8b9234d066848acb384ae11b532edd1 Mon Sep 17 00:00:00 2001 From: zch Date: Tue, 25 Mar 2025 14:22:16 +0800 Subject: [PATCH] =?UTF-8?q?add(dms):=20=E7=94=9F=E6=88=90=E7=82=B9?= =?UTF-8?q?=E5=B7=A1=E6=A3=80=E9=A1=B9=E7=9B=AE=E3=80=81=E7=BA=BF=E8=B7=AF?= =?UTF-8?q?=E5=92=8C=E6=A0=87=E5=87=86=EF=BC=8C=E5=81=9C=E6=9C=BA=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=81=E5=8E=9F=E5=9B=A0=E5=92=8C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9B=B8=E5=85=B3y=E9=A1=B5=E9=9D=A2=E5=92=8C=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=9B=E7=82=B9=E5=B7=A1=E6=A3=80=E7=BA=BF=E8=B7=AF?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E3=80=81=E7=82=B9=E5=B7=A1=E6=A3=80=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=85=B3=E8=81=94=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=81=E4=BF=9D=E5=85=BB=E9=83=A8=E4=BD=8D=E5=85=B3=E8=81=94?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BF=A1=E6=81=AF=E3=80=81=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=98=8E=E7=BB=86=E7=AD=89=E8=BF=99=E4=BA=9B?= =?UTF-8?q?=E5=85=B3=E8=81=94=E8=A1=A8=E7=9A=84=E9=80=BB=E8=BE=91=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=90=8E=E6=9C=9F=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dms/DmsRealtimeStatus/index.ts | 77 ++++ src/api/dms/DmsRealtimeStatus/types.ts | 106 +++++ src/api/dms/dmsBaseInspectProject/index.ts | 77 ++++ src/api/dms/dmsBaseInspectProject/types.ts | 161 +++++++ src/api/dms/dmsBaseInspectRoute/index.ts | 77 ++++ src/api/dms/dmsBaseInspectRoute/types.ts | 122 +++++ src/api/dms/dmsBaseInspectStandard/index.ts | 77 ++++ src/api/dms/dmsBaseInspectStandard/types.ts | 146 ++++++ src/api/dms/dmsBaseShutReason/index.ts | 77 ++++ src/api/dms/dmsBaseShutReason/types.ts | 147 ++++++ src/api/dms/dmsBaseShutType/index.ts | 77 ++++ src/api/dms/dmsBaseShutType/types.ts | 86 ++++ src/api/dms/dmsInspectProjectDevice/index.ts | 77 ++++ src/api/dms/dmsInspectProjectDevice/types.ts | 61 +++ src/api/dms/dmsInspectRouteDetail/index.ts | 77 ++++ src/api/dms/dmsInspectRouteDetail/types.ts | 132 ++++++ src/api/dms/dmsRecordShutDown/index.ts | 77 ++++ src/api/dms/dmsRecordShutDown/types.ts | 206 +++++++++ src/views/dms/DmsRealtimeStatus/index.vue | 284 ++++++++++++ src/views/dms/dmsBaseDeviceBom/index.vue | 14 +- src/views/dms/dmsBaseInspectProject/index.vue | 340 ++++++++++++++ src/views/dms/dmsBaseInspectRoute/index.vue | 308 +++++++++++++ .../dms/dmsBaseInspectStandard/index.vue | 319 +++++++++++++ src/views/dms/dmsBaseShutReason/index.vue | 326 ++++++++++++++ src/views/dms/dmsBaseShutType/index.vue | 276 ++++++++++++ .../dms/dmsInspectProjectDevice/index.vue | 241 ++++++++++ src/views/dms/dmsInspectRouteDetail/index.vue | 301 +++++++++++++ src/views/dms/dmsRecordShutDown/index.vue | 422 ++++++++++++++++++ 28 files changed, 4690 insertions(+), 1 deletion(-) create mode 100644 src/api/dms/DmsRealtimeStatus/index.ts create mode 100644 src/api/dms/DmsRealtimeStatus/types.ts create mode 100644 src/api/dms/dmsBaseInspectProject/index.ts create mode 100644 src/api/dms/dmsBaseInspectProject/types.ts create mode 100644 src/api/dms/dmsBaseInspectRoute/index.ts create mode 100644 src/api/dms/dmsBaseInspectRoute/types.ts create mode 100644 src/api/dms/dmsBaseInspectStandard/index.ts create mode 100644 src/api/dms/dmsBaseInspectStandard/types.ts create mode 100644 src/api/dms/dmsBaseShutReason/index.ts create mode 100644 src/api/dms/dmsBaseShutReason/types.ts create mode 100644 src/api/dms/dmsBaseShutType/index.ts create mode 100644 src/api/dms/dmsBaseShutType/types.ts create mode 100644 src/api/dms/dmsInspectProjectDevice/index.ts create mode 100644 src/api/dms/dmsInspectProjectDevice/types.ts create mode 100644 src/api/dms/dmsInspectRouteDetail/index.ts create mode 100644 src/api/dms/dmsInspectRouteDetail/types.ts create mode 100644 src/api/dms/dmsRecordShutDown/index.ts create mode 100644 src/api/dms/dmsRecordShutDown/types.ts create mode 100644 src/views/dms/DmsRealtimeStatus/index.vue create mode 100644 src/views/dms/dmsBaseInspectProject/index.vue create mode 100644 src/views/dms/dmsBaseInspectRoute/index.vue create mode 100644 src/views/dms/dmsBaseInspectStandard/index.vue create mode 100644 src/views/dms/dmsBaseShutReason/index.vue create mode 100644 src/views/dms/dmsBaseShutType/index.vue create mode 100644 src/views/dms/dmsInspectProjectDevice/index.vue create mode 100644 src/views/dms/dmsInspectRouteDetail/index.vue create mode 100644 src/views/dms/dmsRecordShutDown/index.vue diff --git a/src/api/dms/DmsRealtimeStatus/index.ts b/src/api/dms/DmsRealtimeStatus/index.ts new file mode 100644 index 0000000..81f3bd4 --- /dev/null +++ b/src/api/dms/DmsRealtimeStatus/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsRealtimeStatusVO, DmsRealtimeStatusForm, DmsRealtimeStatusQuery } from '@/api/dms/DmsRealtimeStatus/types'; + +/** + * 查询设备实时状态记录列表 + * @param query + * @returns {*} + */ + +export const listDmsRealtimeStatus = (query?: DmsRealtimeStatusQuery): AxiosPromise => { + return request({ + url: '/dms/DmsRealtimeStatus/list', + method: 'get', + params: query + }); +}; + +/** + * 查询设备实时状态记录详细 + * @param statusId + */ +export const getDmsRealtimeStatus = (statusId: string | number): AxiosPromise => { + return request({ + url: '/dms/DmsRealtimeStatus/' + statusId, + method: 'get' + }); +}; + +/** + * 新增设备实时状态记录 + * @param data + */ +export const addDmsRealtimeStatus = (data: DmsRealtimeStatusForm) => { + return request({ + url: '/dms/DmsRealtimeStatus', + method: 'post', + data: data + }); +}; + +/** + * 修改设备实时状态记录 + * @param data + */ +export const updateDmsRealtimeStatus = (data: DmsRealtimeStatusForm) => { + return request({ + url: '/dms/DmsRealtimeStatus', + method: 'put', + data: data + }); +}; + +/** + * 删除设备实时状态记录 + * @param statusId + */ +export const delDmsRealtimeStatus = (statusId: string | number | Array) => { + return request({ + url: '/dms/DmsRealtimeStatus/' + statusId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询设备实时状态记录列表 + * @param query + * @returns {*} + */ +export function getDmsRealtimeStatusList (query) { + return request({ + url: '/dms/DmsRealtimeStatus/getDmsRealtimeStatusList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/DmsRealtimeStatus/types.ts b/src/api/dms/DmsRealtimeStatus/types.ts new file mode 100644 index 0000000..da7ea2c --- /dev/null +++ b/src/api/dms/DmsRealtimeStatus/types.ts @@ -0,0 +1,106 @@ +export interface DmsRealtimeStatusVO { + /** + * 主键标识 + */ + statusId: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId: string | number; + + /** + * 设备状态编号 + */ + statusCode: string; + + /** + * 设备状态名称 + */ + statusName: string; + + /** + * 设备状态值 + */ + statusValue: string; + + /** + * 设备名称 + */ + machineName: string; + +} + +export interface DmsRealtimeStatusForm extends BaseEntity { + /** + * 主键标识 + */ + statusId?: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 设备状态编号 + */ + statusCode?: string; + + /** + * 设备状态名称 + */ + statusName?: string; + + /** + * 设备状态值 + */ + statusValue?: string; + + /** + * 设备名称 + */ + machineName?: string; + +} + +export interface DmsRealtimeStatusQuery extends PageQuery { + + /** + * 主键标识 + */ + statusId?: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 设备状态编号 + */ + statusCode?: string; + + /** + * 设备状态名称 + */ + statusName?: string; + + /** + * 设备状态值 + */ + statusValue?: string; + + /** + * 日期范围参数 + */ + params?: any; + + /** + * 设备名称 + */ + machineName?: string; +} + + + diff --git a/src/api/dms/dmsBaseInspectProject/index.ts b/src/api/dms/dmsBaseInspectProject/index.ts new file mode 100644 index 0000000..a13663f --- /dev/null +++ b/src/api/dms/dmsBaseInspectProject/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseInspectProjectVO, DmsBaseInspectProjectForm, DmsBaseInspectProjectQuery } from '@/api/dms/dmsBaseInspectProject/types'; + +/** + * 查询点巡检项目信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseInspectProject = (query?: DmsBaseInspectProjectQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseInspectProject/list', + method: 'get', + params: query + }); +}; + +/** + * 查询点巡检项目信息详细 + * @param inspectProjectId + */ +export const getDmsBaseInspectProject = (inspectProjectId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseInspectProject/' + inspectProjectId, + method: 'get' + }); +}; + +/** + * 新增点巡检项目信息 + * @param data + */ +export const addDmsBaseInspectProject = (data: DmsBaseInspectProjectForm) => { + return request({ + url: '/dms/dmsBaseInspectProject', + method: 'post', + data: data + }); +}; + +/** + * 修改点巡检项目信息 + * @param data + */ +export const updateDmsBaseInspectProject = (data: DmsBaseInspectProjectForm) => { + return request({ + url: '/dms/dmsBaseInspectProject', + method: 'put', + data: data + }); +}; + +/** + * 删除点巡检项目信息 + * @param inspectProjectId + */ +export const delDmsBaseInspectProject = (inspectProjectId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseInspectProject/' + inspectProjectId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询点巡检项目信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseInspectProjectList (query) { + return request({ + url: '/dms/dmsBaseInspectProject/getDmsBaseInspectProjectList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseInspectProject/types.ts b/src/api/dms/dmsBaseInspectProject/types.ts new file mode 100644 index 0000000..3c113cb --- /dev/null +++ b/src/api/dms/dmsBaseInspectProject/types.ts @@ -0,0 +1,161 @@ +export interface DmsBaseInspectProjectVO { + /** + * 主键标识 + */ + inspectProjectId: string | number; + + /** + * 项目编号 + */ + inspectProjectCode: string; + + /** + * 巡检项目 + */ + inspectProject: string; + + /** + * 检查类型(1巡检 2点检) + */ + inspectType: string; + + /** + * 巡检项目属性(1定性 2定量) + */ + inspectProjectProperty: string; + + /** + * 记录方式 + */ + recordMethod: string; + + /** + * 上限 + */ + upLimit: number; + + /** + * 下限 + */ + lowLimit: number; + + /** + * 默认值 + */ + defValue: number; + + /** + * 备注 + */ + remark: string; + +} + +export interface DmsBaseInspectProjectForm extends BaseEntity { + /** + * 主键标识 + */ + inspectProjectId?: string | number; + + /** + * 项目编号 + */ + inspectProjectCode?: string; + + /** + * 巡检项目 + */ + inspectProject?: string; + + /** + * 检查类型(1巡检 2点检) + */ + inspectType?: string; + + /** + * 巡检项目属性(1定性 2定量) + */ + inspectProjectProperty?: string; + + /** + * 记录方式 + */ + recordMethod?: string; + + /** + * 上限 + */ + upLimit?: number; + + /** + * 下限 + */ + lowLimit?: number; + + /** + * 默认值 + */ + defValue?: number; + + /** + * 备注 + */ + remark?: string; + +} + +export interface DmsBaseInspectProjectQuery extends PageQuery { + + /** + * 主键标识 + */ + inspectProjectId?: string | number; + + /** + * 项目编号 + */ + inspectProjectCode?: string; + + /** + * 巡检项目 + */ + inspectProject?: string; + + /** + * 检查类型(1巡检 2点检) + */ + inspectType?: string; + + /** + * 巡检项目属性(1定性 2定量) + */ + inspectProjectProperty?: string; + + /** + * 记录方式 + */ + recordMethod?: string; + + /** + * 上限 + */ + upLimit?: number; + + /** + * 下限 + */ + lowLimit?: number; + + /** + * 默认值 + */ + defValue?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsBaseInspectRoute/index.ts b/src/api/dms/dmsBaseInspectRoute/index.ts new file mode 100644 index 0000000..6e5dd0f --- /dev/null +++ b/src/api/dms/dmsBaseInspectRoute/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseInspectRouteVO, DmsBaseInspectRouteForm, DmsBaseInspectRouteQuery } from '@/api/dms/dmsBaseInspectRoute/types'; + +/** + * 查询点巡检线路信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseInspectRoute = (query?: DmsBaseInspectRouteQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseInspectRoute/list', + method: 'get', + params: query + }); +}; + +/** + * 查询点巡检线路信息详细 + * @param inspectRouteId + */ +export const getDmsBaseInspectRoute = (inspectRouteId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseInspectRoute/' + inspectRouteId, + method: 'get' + }); +}; + +/** + * 新增点巡检线路信息 + * @param data + */ +export const addDmsBaseInspectRoute = (data: DmsBaseInspectRouteForm) => { + return request({ + url: '/dms/dmsBaseInspectRoute', + method: 'post', + data: data + }); +}; + +/** + * 修改点巡检线路信息 + * @param data + */ +export const updateDmsBaseInspectRoute = (data: DmsBaseInspectRouteForm) => { + return request({ + url: '/dms/dmsBaseInspectRoute', + method: 'put', + data: data + }); +}; + +/** + * 删除点巡检线路信息 + * @param inspectRouteId + */ +export const delDmsBaseInspectRoute = (inspectRouteId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseInspectRoute/' + inspectRouteId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询点巡检线路信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseInspectRouteList (query) { + return request({ + url: '/dms/dmsBaseInspectRoute/getDmsBaseInspectRouteList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseInspectRoute/types.ts b/src/api/dms/dmsBaseInspectRoute/types.ts new file mode 100644 index 0000000..51ddaba --- /dev/null +++ b/src/api/dms/dmsBaseInspectRoute/types.ts @@ -0,0 +1,122 @@ +export interface DmsBaseInspectRouteVO { + /** + * 主键标识 + */ + inspectRouteId: string | number; + + /** + * 线路编号 + */ + routeCode: string; + + /** + * 线路名称 + */ + routeName: string; + + /** + * 线路类型(1巡检 2点检) + */ + inspectType: string; + + /** + * 循环周期 + */ + cyclePeriod: string; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId: string | number; + + /** + * 设备类型名称 + */ + deviceTypeName: string; + +} + +export interface DmsBaseInspectRouteForm extends BaseEntity { + /** + * 主键标识 + */ + inspectRouteId?: string | number; + + /** + * 线路编号 + */ + routeCode?: string; + + /** + * 线路名称 + */ + routeName?: string; + + /** + * 线路类型(1巡检 2点检) + */ + inspectType?: string; + + /** + * 循环周期 + */ + cyclePeriod?: string; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId?: string | number; + + /** + * 设备类型名称 + */ + deviceTypeName?: string; + +} + +export interface DmsBaseInspectRouteQuery extends PageQuery { + + /** + * 主键标识 + */ + inspectRouteId?: string | number; + + /** + * 线路编号 + */ + routeCode?: string; + + /** + * 线路名称 + */ + routeName?: string; + + /** + * 线路类型(1巡检 2点检) + */ + inspectType?: string; + + /** + * 循环周期 + */ + cyclePeriod?: string; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; + + /** + * 设备类型名称 + */ + deviceTypeName?: string; + +} + + + diff --git a/src/api/dms/dmsBaseInspectStandard/index.ts b/src/api/dms/dmsBaseInspectStandard/index.ts new file mode 100644 index 0000000..ab413a9 --- /dev/null +++ b/src/api/dms/dmsBaseInspectStandard/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseInspectStandardVO, DmsBaseInspectStandardForm, DmsBaseInspectStandardQuery } from '@/api/dms/dmsBaseInspectStandard/types'; + +/** + * 查询点巡检标准信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseInspectStandard = (query?: DmsBaseInspectStandardQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseInspectStandard/list', + method: 'get', + params: query + }); +}; + +/** + * 查询点巡检标准信息详细 + * @param inspectStandardId + */ +export const getDmsBaseInspectStandard = (inspectStandardId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseInspectStandard/' + inspectStandardId, + method: 'get' + }); +}; + +/** + * 新增点巡检标准信息 + * @param data + */ +export const addDmsBaseInspectStandard = (data: DmsBaseInspectStandardForm) => { + return request({ + url: '/dms/dmsBaseInspectStandard', + method: 'post', + data: data + }); +}; + +/** + * 修改点巡检标准信息 + * @param data + */ +export const updateDmsBaseInspectStandard = (data: DmsBaseInspectStandardForm) => { + return request({ + url: '/dms/dmsBaseInspectStandard', + method: 'put', + data: data + }); +}; + +/** + * 删除点巡检标准信息 + * @param inspectStandardId + */ +export const delDmsBaseInspectStandard = (inspectStandardId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseInspectStandard/' + inspectStandardId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询点巡检标准信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseInspectStandardList (query) { + return request({ + url: '/dms/dmsBaseInspectStandard/getDmsBaseInspectStandardList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseInspectStandard/types.ts b/src/api/dms/dmsBaseInspectStandard/types.ts new file mode 100644 index 0000000..b463bbd --- /dev/null +++ b/src/api/dms/dmsBaseInspectStandard/types.ts @@ -0,0 +1,146 @@ +export interface DmsBaseInspectStandardVO { + /** + * 主键标识 + */ + inspectStandardId: string | number; + + /** + * 标准编号 + */ + standardCode: string; + + /** + * 标准名称 + */ + standardName: string; + + /** + * 巡检目的 + */ + inspectObjective: string; + + /** + * 巡检项目ID,关联dms_base_inspect_project的inspect_project_id + */ + inspectProjectId: string | number; + + /** + * 检查项总数 + */ + inspectItemCount: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 巡检项目编号 + */ + inspectProjectCode: string; + +} + +export interface DmsBaseInspectStandardForm extends BaseEntity { + /** + * 主键标识 + */ + inspectStandardId?: string | number; + + /** + * 标准编号 + */ + standardCode?: string; + + /** + * 标准名称 + */ + standardName?: string; + + /** + * 巡检目的 + */ + inspectObjective?: string; + + /** + * 巡检项目ID,关联dms_base_inspect_project的inspect_project_id + */ + inspectProjectId?: string | number; + + /** + * 检查项总数 + */ + inspectItemCount?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 巡检项目编号 + */ + inspectProjectCode?: string; + +} + +export interface DmsBaseInspectStandardQuery extends PageQuery { + + /** + * 主键标识 + */ + inspectStandardId?: string | number; + + /** + * 标准编号 + */ + standardCode?: string; + + /** + * 标准名称 + */ + standardName?: string; + + /** + * 巡检目的 + */ + inspectObjective?: string; + + /** + * 巡检项目ID,关联dms_base_inspect_project的inspect_project_id + */ + inspectProjectId?: string | number; + + /** + * 检查项总数 + */ + inspectItemCount?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; + + /** + * 巡检项目编号 + */ + inspectProjectCode?: string; +} + + + diff --git a/src/api/dms/dmsBaseShutReason/index.ts b/src/api/dms/dmsBaseShutReason/index.ts new file mode 100644 index 0000000..8dd6cc5 --- /dev/null +++ b/src/api/dms/dmsBaseShutReason/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseShutReasonVO, DmsBaseShutReasonForm, DmsBaseShutReasonQuery } from '@/api/dms/dmsBaseShutReason/types'; + +/** + * 查询停机原因信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseShutReason = (query?: DmsBaseShutReasonQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseShutReason/list', + method: 'get', + params: query + }); +}; + +/** + * 查询停机原因信息详细 + * @param shutReasonId + */ +export const getDmsBaseShutReason = (shutReasonId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseShutReason/' + shutReasonId, + method: 'get' + }); +}; + +/** + * 新增停机原因信息 + * @param data + */ +export const addDmsBaseShutReason = (data: DmsBaseShutReasonForm) => { + return request({ + url: '/dms/dmsBaseShutReason', + method: 'post', + data: data + }); +}; + +/** + * 修改停机原因信息 + * @param data + */ +export const updateDmsBaseShutReason = (data: DmsBaseShutReasonForm) => { + return request({ + url: '/dms/dmsBaseShutReason', + method: 'put', + data: data + }); +}; + +/** + * 删除停机原因信息 + * @param shutReasonId + */ +export const delDmsBaseShutReason = (shutReasonId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseShutReason/' + shutReasonId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询停机原因信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseShutReasonList (query) { + return request({ + url: '/dms/dmsBaseShutReason/getDmsBaseShutReasonList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseShutReason/types.ts b/src/api/dms/dmsBaseShutReason/types.ts new file mode 100644 index 0000000..919122f --- /dev/null +++ b/src/api/dms/dmsBaseShutReason/types.ts @@ -0,0 +1,147 @@ +export interface DmsBaseShutReasonVO { + /** + * 主键标识 + */ + shutReasonId: string | number; + + /** + * 原因编号 + */ + reasonCode: string; + + /** + * 停机原因 + */ + shutReason: string; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId: string | number; + + /** + * 停机类型,关联dms_base_shut_type的shut_type_id + */ + shutTypeId: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 设备名称 + */ + machineName: string; + + /** + * 停机类型名称 + */ + shutTypeName: string; + +} + +export interface DmsBaseShutReasonForm extends BaseEntity { + /** + * 主键标识 + */ + shutReasonId?: string | number; + + /** + * 原因编号 + */ + reasonCode?: string; + + /** + * 停机原因 + */ + shutReason?: string; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 停机类型,关联dms_base_shut_type的shut_type_id + */ + shutTypeId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 设备名称 + */ + machineName?: string; + + /** + * 停机类型名称 + */ + shutTypeName?: string; + +} + +export interface DmsBaseShutReasonQuery extends PageQuery { + + /** + * 主键标识 + */ + shutReasonId?: string | number; + + /** + * 原因编号 + */ + reasonCode?: string; + + /** + * 停机原因 + */ + shutReason?: string; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 停机类型,关联dms_base_shut_type的shut_type_id + */ + shutTypeId?: string | number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; + + /** + * 设备名称 + */ + machineName?: string; + + /** + * 停机类型名称 + */ + shutTypeName?: string; + +} + + + diff --git a/src/api/dms/dmsBaseShutType/index.ts b/src/api/dms/dmsBaseShutType/index.ts new file mode 100644 index 0000000..dc668d9 --- /dev/null +++ b/src/api/dms/dmsBaseShutType/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseShutTypeVO, DmsBaseShutTypeForm, DmsBaseShutTypeQuery } from '@/api/dms/dmsBaseShutType/types'; + +/** + * 查询停机类型信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseShutType = (query?: DmsBaseShutTypeQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseShutType/list', + method: 'get', + params: query + }); +}; + +/** + * 查询停机类型信息详细 + * @param shutTypeId + */ +export const getDmsBaseShutType = (shutTypeId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseShutType/' + shutTypeId, + method: 'get' + }); +}; + +/** + * 新增停机类型信息 + * @param data + */ +export const addDmsBaseShutType = (data: DmsBaseShutTypeForm) => { + return request({ + url: '/dms/dmsBaseShutType', + method: 'post', + data: data + }); +}; + +/** + * 修改停机类型信息 + * @param data + */ +export const updateDmsBaseShutType = (data: DmsBaseShutTypeForm) => { + return request({ + url: '/dms/dmsBaseShutType', + method: 'put', + data: data + }); +}; + +/** + * 删除停机类型信息 + * @param shutTypeId + */ +export const delDmsBaseShutType = (shutTypeId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseShutType/' + shutTypeId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询停机类型信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseShutTypeList (query) { + return request({ + url: '/dms/dmsBaseShutType/getDmsBaseShutTypeList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseShutType/types.ts b/src/api/dms/dmsBaseShutType/types.ts new file mode 100644 index 0000000..b2e68a6 --- /dev/null +++ b/src/api/dms/dmsBaseShutType/types.ts @@ -0,0 +1,86 @@ +export interface DmsBaseShutTypeVO { + /** + * 主键标识 + */ + shutTypeId: string | number; + + /** + * 停机类型编号 + */ + shutTypeCode: string; + + /** + * 停机类型名称 + */ + shutTypeName: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface DmsBaseShutTypeForm extends BaseEntity { + /** + * 主键标识 + */ + shutTypeId?: string | number; + + /** + * 停机类型编号 + */ + shutTypeCode?: string; + + /** + * 停机类型名称 + */ + shutTypeName?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface DmsBaseShutTypeQuery extends PageQuery { + + /** + * 主键标识 + */ + shutTypeId?: string | number; + + /** + * 停机类型编号 + */ + shutTypeCode?: string; + + /** + * 停机类型名称 + */ + shutTypeName?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsInspectProjectDevice/index.ts b/src/api/dms/dmsInspectProjectDevice/index.ts new file mode 100644 index 0000000..169e0d3 --- /dev/null +++ b/src/api/dms/dmsInspectProjectDevice/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsInspectProjectDeviceVO, DmsInspectProjectDeviceForm, DmsInspectProjectDeviceQuery } from '@/api/dms/dmsInspectProjectDevice/types'; + +/** + * 查询点巡检项目关联物料信息列表 + * @param query + * @returns {*} + */ + +export const listDmsInspectProjectDevice = (query?: DmsInspectProjectDeviceQuery): AxiosPromise => { + return request({ + url: '/dms/dmsInspectProjectDevice/list', + method: 'get', + params: query + }); +}; + +/** + * 查询点巡检项目关联物料信息详细 + * @param inspectProjectId + */ +export const getDmsInspectProjectDevice = (inspectProjectId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsInspectProjectDevice/' + inspectProjectId, + method: 'get' + }); +}; + +/** + * 新增点巡检项目关联物料信息 + * @param data + */ +export const addDmsInspectProjectDevice = (data: DmsInspectProjectDeviceForm) => { + return request({ + url: '/dms/dmsInspectProjectDevice', + method: 'post', + data: data + }); +}; + +/** + * 修改点巡检项目关联物料信息 + * @param data + */ +export const updateDmsInspectProjectDevice = (data: DmsInspectProjectDeviceForm) => { + return request({ + url: '/dms/dmsInspectProjectDevice', + method: 'put', + data: data + }); +}; + +/** + * 删除点巡检项目关联物料信息 + * @param inspectProjectId + */ +export const delDmsInspectProjectDevice = (inspectProjectId: string | number | Array) => { + return request({ + url: '/dms/dmsInspectProjectDevice/' + inspectProjectId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询点巡检项目关联物料信息列表 + * @param query + * @returns {*} + */ +export function getDmsInspectProjectDeviceList (query) { + return request({ + url: '/dms/dmsInspectProjectDevice/getDmsInspectProjectDeviceList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsInspectProjectDevice/types.ts b/src/api/dms/dmsInspectProjectDevice/types.ts new file mode 100644 index 0000000..813dc86 --- /dev/null +++ b/src/api/dms/dmsInspectProjectDevice/types.ts @@ -0,0 +1,61 @@ +export interface DmsInspectProjectDeviceVO { + /** + * 点巡检项目ID + */ + inspectProjectId: string | number; + + /** + * 关联类型(1设备类型) + */ + targetType: string; + + /** + * 关联类型的主键 + */ + targetId: string | number; + +} + +export interface DmsInspectProjectDeviceForm extends BaseEntity { + /** + * 点巡检项目ID + */ + inspectProjectId?: string | number; + + /** + * 关联类型(1设备类型) + */ + targetType?: string; + + /** + * 关联类型的主键 + */ + targetId?: string | number; + +} + +export interface DmsInspectProjectDeviceQuery extends PageQuery { + + /** + * 点巡检项目ID + */ + inspectProjectId?: string | number; + + /** + * 关联类型(1设备类型) + */ + targetType?: string; + + /** + * 关联类型的主键 + */ + targetId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsInspectRouteDetail/index.ts b/src/api/dms/dmsInspectRouteDetail/index.ts new file mode 100644 index 0000000..de00783 --- /dev/null +++ b/src/api/dms/dmsInspectRouteDetail/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsInspectRouteDetailVO, DmsInspectRouteDetailForm, DmsInspectRouteDetailQuery } from '@/api/dms/dmsInspectRouteDetail/types'; + +/** + * 查询点巡检线路明细列表 + * @param query + * @returns {*} + */ + +export const listDmsInspectRouteDetail = (query?: DmsInspectRouteDetailQuery): AxiosPromise => { + return request({ + url: '/dms/dmsInspectRouteDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询点巡检线路明细详细 + * @param routeDetailId + */ +export const getDmsInspectRouteDetail = (routeDetailId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsInspectRouteDetail/' + routeDetailId, + method: 'get' + }); +}; + +/** + * 新增点巡检线路明细 + * @param data + */ +export const addDmsInspectRouteDetail = (data: DmsInspectRouteDetailForm) => { + return request({ + url: '/dms/dmsInspectRouteDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改点巡检线路明细 + * @param data + */ +export const updateDmsInspectRouteDetail = (data: DmsInspectRouteDetailForm) => { + return request({ + url: '/dms/dmsInspectRouteDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除点巡检线路明细 + * @param routeDetailId + */ +export const delDmsInspectRouteDetail = (routeDetailId: string | number | Array) => { + return request({ + url: '/dms/dmsInspectRouteDetail/' + routeDetailId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询点巡检线路明细列表 + * @param query + * @returns {*} + */ +export function getDmsInspectRouteDetailList (query) { + return request({ + url: '/dms/dmsInspectRouteDetail/getDmsInspectRouteDetailList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsInspectRouteDetail/types.ts b/src/api/dms/dmsInspectRouteDetail/types.ts new file mode 100644 index 0000000..b456b73 --- /dev/null +++ b/src/api/dms/dmsInspectRouteDetail/types.ts @@ -0,0 +1,132 @@ +export interface DmsInspectRouteDetailVO { + /** + * 主键标识 + */ + routeDetailId: string | number; + + /** + * 线路ID,关联dms_base_inspect_route的inspect_route_id + */ + inspectRouteId: string | number; + + /** + * 巡检步骤 + */ + lineStep: number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId: string | number; + + /** + * 巡检标准;预留,不需要关联巡检标准,一条巡检线路的巡检标准都相同 + */ + inspectStandard: string; + + /** + * 备注 + */ + remark: string; + + /** + * 线路名称 + */ + routeName: string; + + /** + * 设备名称 + */ + machineName: string; + +} + +export interface DmsInspectRouteDetailForm extends BaseEntity { + /** + * 主键标识 + */ + routeDetailId?: string | number; + + /** + * 线路ID,关联dms_base_inspect_route的inspect_route_id + */ + inspectRouteId?: string | number; + + /** + * 巡检步骤 + */ + lineStep?: number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 巡检标准;预留,不需要关联巡检标准,一条巡检线路的巡检标准都相同 + */ + inspectStandard?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 线路名称 + */ + routeName?: string; + + /** + * 设备名称 + */ + machineName?: string; + +} + +export interface DmsInspectRouteDetailQuery extends PageQuery { + + /** + * 主键标识 + */ + routeDetailId?: string | number; + + /** + * 线路ID,关联dms_base_inspect_route的inspect_route_id + */ + inspectRouteId?: string | number; + + /** + * 巡检步骤 + */ + lineStep?: number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 巡检标准;预留,不需要关联巡检标准,一条巡检线路的巡检标准都相同 + */ + inspectStandard?: string; + + /** + * 日期范围参数 + */ + params?: any + + + /** + * 线路名称 + */ + routeName?: string; + + /** + * 设备名称 + */ + machineName?: string; +} + + + diff --git a/src/api/dms/dmsRecordShutDown/index.ts b/src/api/dms/dmsRecordShutDown/index.ts new file mode 100644 index 0000000..b9f23a3 --- /dev/null +++ b/src/api/dms/dmsRecordShutDown/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsRecordShutDownVO, DmsRecordShutDownForm, DmsRecordShutDownQuery } from '@/api/dms/dmsRecordShutDown/types'; + +/** + * 查询停机记录列表 + * @param query + * @returns {*} + */ + +export const listDmsRecordShutDown = (query?: DmsRecordShutDownQuery): AxiosPromise => { + return request({ + url: '/dms/dmsRecordShutDown/list', + method: 'get', + params: query + }); +}; + +/** + * 查询停机记录详细 + * @param recordShutDownId + */ +export const getDmsRecordShutDown = (recordShutDownId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsRecordShutDown/' + recordShutDownId, + method: 'get' + }); +}; + +/** + * 新增停机记录 + * @param data + */ +export const addDmsRecordShutDown = (data: DmsRecordShutDownForm) => { + return request({ + url: '/dms/dmsRecordShutDown', + method: 'post', + data: data + }); +}; + +/** + * 修改停机记录 + * @param data + */ +export const updateDmsRecordShutDown = (data: DmsRecordShutDownForm) => { + return request({ + url: '/dms/dmsRecordShutDown', + method: 'put', + data: data + }); +}; + +/** + * 删除停机记录 + * @param recordShutDownId + */ +export const delDmsRecordShutDown = (recordShutDownId: string | number | Array) => { + return request({ + url: '/dms/dmsRecordShutDown/' + recordShutDownId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询停机记录列表 + * @param query + * @returns {*} + */ +export function getDmsRecordShutDownList (query) { + return request({ + url: '/dms/dmsRecordShutDown/getDmsRecordShutDownList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsRecordShutDown/types.ts b/src/api/dms/dmsRecordShutDown/types.ts new file mode 100644 index 0000000..e28ddc6 --- /dev/null +++ b/src/api/dms/dmsRecordShutDown/types.ts @@ -0,0 +1,206 @@ +export interface DmsRecordShutDownVO { + /** + * 主键标识;scada上报的记录 + */ + recordShutDownId: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId: string | number; + + /** + * 停机类型ID,关联dm_base_shut_type的shut_type_id + */ + shutTypeId: string | number; + + /** + * 停机原因ID,关联dms_base_shut_reason的shut_reason_id + */ + shutReasonId: string | number; + + /** + * 停机开始时间 + */ + shutBeginTime: string; + + /** + * 停机结束时间 + */ + shutEndTime: string; + + /** + * 停机时长(毫秒) + */ + shutTime: number; + + /** + * 停机标识(0未结束 1已结束) + */ + downtimeFlag: string; + + /** + * 停机原因 + */ + shutReason: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + + /** + * 设备名称 + */ + machineName: string; + + /** + * 停机类型 + */ + shutTypeName: string; + +} + +export interface DmsRecordShutDownForm extends BaseEntity { + /** + * 主键标识;scada上报的记录 + */ + recordShutDownId?: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 停机类型ID,关联dm_base_shut_type的shut_type_id + */ + shutTypeId?: string | number; + + /** + * 停机原因ID,关联dms_base_shut_reason的shut_reason_id + */ + shutReasonId?: string | number; + + /** + * 停机开始时间 + */ + shutBeginTime?: string; + + /** + * 停机结束时间 + */ + shutEndTime?: string; + + /** + * 停机时长(毫秒) + */ + shutTime?: number; + + /** + * 停机标识(0未结束 1已结束) + */ + downtimeFlag?: string; + + /** + * 停机原因 + */ + shutReason?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 设备名称 + */ + machineName?: string; + + /** + * 停机类型 + */ + shutTypeName?: string; + +} + +export interface DmsRecordShutDownQuery extends PageQuery { + + /** + * 主键标识;scada上报的记录 + */ + recordShutDownId?: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 停机类型ID,关联dm_base_shut_type的shut_type_id + */ + shutTypeId?: string | number; + + /** + * 停机原因ID,关联dms_base_shut_reason的shut_reason_id + */ + shutReasonId?: string | number; + + /** + * 停机开始时间 + */ + shutBeginTime?: string; + + /** + * 停机结束时间 + */ + shutEndTime?: string; + + /** + * 停机时长(毫秒) + */ + shutTime?: number; + + /** + * 停机标识(0未结束 1已结束) + */ + downtimeFlag?: string; + + /** + * 停机原因 + */ + shutReason?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; + + /** + * 设备名称 + */ + machineName?: string; + + /** + * 停机类型 + */ + shutTypeName?: string; +} + + + diff --git a/src/views/dms/DmsRealtimeStatus/index.vue b/src/views/dms/DmsRealtimeStatus/index.vue new file mode 100644 index 0000000..7559ddb --- /dev/null +++ b/src/views/dms/DmsRealtimeStatus/index.vue @@ -0,0 +1,284 @@ + + + diff --git a/src/views/dms/dmsBaseDeviceBom/index.vue b/src/views/dms/dmsBaseDeviceBom/index.vue index 8edfe2f..e7f9ec0 100644 --- a/src/views/dms/dmsBaseDeviceBom/index.vue +++ b/src/views/dms/dmsBaseDeviceBom/index.vue @@ -106,7 +106,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/dms/dmsBaseInspectRoute/index.vue b/src/views/dms/dmsBaseInspectRoute/index.vue new file mode 100644 index 0000000..48c0d02 --- /dev/null +++ b/src/views/dms/dmsBaseInspectRoute/index.vue @@ -0,0 +1,308 @@ + + + diff --git a/src/views/dms/dmsBaseInspectStandard/index.vue b/src/views/dms/dmsBaseInspectStandard/index.vue new file mode 100644 index 0000000..2fc897c --- /dev/null +++ b/src/views/dms/dmsBaseInspectStandard/index.vue @@ -0,0 +1,319 @@ + + + diff --git a/src/views/dms/dmsBaseShutReason/index.vue b/src/views/dms/dmsBaseShutReason/index.vue new file mode 100644 index 0000000..0f513b7 --- /dev/null +++ b/src/views/dms/dmsBaseShutReason/index.vue @@ -0,0 +1,326 @@ + + + diff --git a/src/views/dms/dmsBaseShutType/index.vue b/src/views/dms/dmsBaseShutType/index.vue new file mode 100644 index 0000000..977b479 --- /dev/null +++ b/src/views/dms/dmsBaseShutType/index.vue @@ -0,0 +1,276 @@ + + + diff --git a/src/views/dms/dmsInspectProjectDevice/index.vue b/src/views/dms/dmsInspectProjectDevice/index.vue new file mode 100644 index 0000000..a240d45 --- /dev/null +++ b/src/views/dms/dmsInspectProjectDevice/index.vue @@ -0,0 +1,241 @@ + + + diff --git a/src/views/dms/dmsInspectRouteDetail/index.vue b/src/views/dms/dmsInspectRouteDetail/index.vue new file mode 100644 index 0000000..d592428 --- /dev/null +++ b/src/views/dms/dmsInspectRouteDetail/index.vue @@ -0,0 +1,301 @@ + + + diff --git a/src/views/dms/dmsRecordShutDown/index.vue b/src/views/dms/dmsRecordShutDown/index.vue new file mode 100644 index 0000000..be7476e --- /dev/null +++ b/src/views/dms/dmsRecordShutDown/index.vue @@ -0,0 +1,422 @@ + + +