From 1c3970716636a2304fa1cc7640ba7bb67b6d4509 Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 24 Mar 2025 09:44:09 +0800 Subject: [PATCH] =?UTF-8?q?add(dms):=20=E7=94=9F=E6=88=90=E4=BF=9D?= =?UTF-8?q?=E5=85=BB=E9=A1=B9=E7=9B=AE=E3=80=81=E4=BF=9D=E5=85=BB=E6=A0=87?= =?UTF-8?q?=E5=87=86=E3=80=81=E4=BF=9D=E5=85=BB=E9=83=A8=E4=BD=8D=E3=80=81?= =?UTF-8?q?=E4=BF=9D=E5=85=BB=E8=AE=A1=E5=88=92=E3=80=81=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=98=8E=E7=BB=86=E4=B8=8E=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E9=83=A8=E4=BD=8D=E5=85=B3=E8=81=94=E9=A1=B9=E7=9B=AE=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=AE=8C=E5=96=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增相关页面(没有保养部位关联项目)和接口 - 实现了新增、编辑、删除、查询等功能 - 集成了字典数据和设备类型下拉框 --- src/api/dms/dmsBaseMaintProject/index.ts | 77 ++++ src/api/dms/dmsBaseMaintProject/types.ts | 86 ++++ src/api/dms/dmsBaseMaintStandard/index.ts | 77 ++++ src/api/dms/dmsBaseMaintStandard/types.ts | 122 ++++++ src/api/dms/dmsBaseMaintStation/index.ts | 77 ++++ src/api/dms/dmsBaseMaintStation/types.ts | 116 +++++ src/api/dms/dmsBaseStationProject/index.ts | 77 ++++ src/api/dms/dmsBaseStationProject/types.ts | 46 ++ src/api/dms/dmsPlanMaint/index.ts | 77 ++++ src/api/dms/dmsPlanMaint/types.ts | 206 +++++++++ src/api/dms/dmsPlanMaintDetail/index.ts | 77 ++++ src/api/dms/dmsPlanMaintDetail/types.ts | 182 ++++++++ src/views/dms/dmsBaseMaintProject/index.vue | 272 ++++++++++++ src/views/dms/dmsBaseMaintStandard/index.vue | 309 ++++++++++++++ src/views/dms/dmsBaseMaintStation/index.vue | 323 ++++++++++++++ src/views/dms/dmsBaseStationProject/index.vue | 227 ++++++++++ src/views/dms/dmsPlanMaint/index.vue | 397 ++++++++++++++++++ src/views/dms/dmsPlanMaintDetail/index.vue | 344 +++++++++++++++ 18 files changed, 3092 insertions(+) create mode 100644 src/api/dms/dmsBaseMaintProject/index.ts create mode 100644 src/api/dms/dmsBaseMaintProject/types.ts create mode 100644 src/api/dms/dmsBaseMaintStandard/index.ts create mode 100644 src/api/dms/dmsBaseMaintStandard/types.ts create mode 100644 src/api/dms/dmsBaseMaintStation/index.ts create mode 100644 src/api/dms/dmsBaseMaintStation/types.ts create mode 100644 src/api/dms/dmsBaseStationProject/index.ts create mode 100644 src/api/dms/dmsBaseStationProject/types.ts create mode 100644 src/api/dms/dmsPlanMaint/index.ts create mode 100644 src/api/dms/dmsPlanMaint/types.ts create mode 100644 src/api/dms/dmsPlanMaintDetail/index.ts create mode 100644 src/api/dms/dmsPlanMaintDetail/types.ts create mode 100644 src/views/dms/dmsBaseMaintProject/index.vue create mode 100644 src/views/dms/dmsBaseMaintStandard/index.vue create mode 100644 src/views/dms/dmsBaseMaintStation/index.vue create mode 100644 src/views/dms/dmsBaseStationProject/index.vue create mode 100644 src/views/dms/dmsPlanMaint/index.vue create mode 100644 src/views/dms/dmsPlanMaintDetail/index.vue diff --git a/src/api/dms/dmsBaseMaintProject/index.ts b/src/api/dms/dmsBaseMaintProject/index.ts new file mode 100644 index 0000000..23de641 --- /dev/null +++ b/src/api/dms/dmsBaseMaintProject/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseMaintProjectVO, DmsBaseMaintProjectForm, DmsBaseMaintProjectQuery } from '@/api/dms/dmsBaseMaintProject/types'; + +/** + * 查询保养项目信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseMaintProject = (query?: DmsBaseMaintProjectQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseMaintProject/list', + method: 'get', + params: query + }); +}; + +/** + * 查询保养项目信息详细 + * @param maintProjectId + */ +export const getDmsBaseMaintProject = (maintProjectId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseMaintProject/' + maintProjectId, + method: 'get' + }); +}; + +/** + * 新增保养项目信息 + * @param data + */ +export const addDmsBaseMaintProject = (data: DmsBaseMaintProjectForm) => { + return request({ + url: '/dms/dmsBaseMaintProject', + method: 'post', + data: data + }); +}; + +/** + * 修改保养项目信息 + * @param data + */ +export const updateDmsBaseMaintProject = (data: DmsBaseMaintProjectForm) => { + return request({ + url: '/dms/dmsBaseMaintProject', + method: 'put', + data: data + }); +}; + +/** + * 删除保养项目信息 + * @param maintProjectId + */ +export const delDmsBaseMaintProject = (maintProjectId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseMaintProject/' + maintProjectId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询保养项目信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseMaintProjectList (query) { + return request({ + url: '/dms/dmsBaseMaintProject/getDmsBaseMaintProjectList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseMaintProject/types.ts b/src/api/dms/dmsBaseMaintProject/types.ts new file mode 100644 index 0000000..019dd40 --- /dev/null +++ b/src/api/dms/dmsBaseMaintProject/types.ts @@ -0,0 +1,86 @@ +export interface DmsBaseMaintProjectVO { + /** + * 主键标识 + */ + maintProjectId: string | number; + + /** + * 项目名称 + */ + maintProjectName: string; + + /** + * 项目描述 + */ + maintProjectDesc: string; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + +} + +export interface DmsBaseMaintProjectForm extends BaseEntity { + /** + * 主键标识 + */ + maintProjectId?: string | number; + + /** + * 项目名称 + */ + maintProjectName?: string; + + /** + * 项目描述 + */ + maintProjectDesc?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface DmsBaseMaintProjectQuery extends PageQuery { + + /** + * 主键标识 + */ + maintProjectId?: string | number; + + /** + * 项目名称 + */ + maintProjectName?: string; + + /** + * 项目描述 + */ + maintProjectDesc?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsBaseMaintStandard/index.ts b/src/api/dms/dmsBaseMaintStandard/index.ts new file mode 100644 index 0000000..f59b851 --- /dev/null +++ b/src/api/dms/dmsBaseMaintStandard/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseMaintStandardVO, DmsBaseMaintStandardForm, DmsBaseMaintStandardQuery } from '@/api/dms/dmsBaseMaintStandard/types'; + +/** + * 查询保养标准信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseMaintStandard = (query?: DmsBaseMaintStandardQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseMaintStandard/list', + method: 'get', + params: query + }); +}; + +/** + * 查询保养标准信息详细 + * @param maintStandardId + */ +export const getDmsBaseMaintStandard = (maintStandardId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseMaintStandard/' + maintStandardId, + method: 'get' + }); +}; + +/** + * 新增保养标准信息 + * @param data + */ +export const addDmsBaseMaintStandard = (data: DmsBaseMaintStandardForm) => { + return request({ + url: '/dms/dmsBaseMaintStandard', + method: 'post', + data: data + }); +}; + +/** + * 修改保养标准信息 + * @param data + */ +export const updateDmsBaseMaintStandard = (data: DmsBaseMaintStandardForm) => { + return request({ + url: '/dms/dmsBaseMaintStandard', + method: 'put', + data: data + }); +}; + +/** + * 删除保养标准信息 + * @param maintStandardId + */ +export const delDmsBaseMaintStandard = (maintStandardId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseMaintStandard/' + maintStandardId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询保养标准信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseMaintStandardList (query) { + return request({ + url: '/dms/dmsBaseMaintStandard/getDmsBaseMaintStandardList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseMaintStandard/types.ts b/src/api/dms/dmsBaseMaintStandard/types.ts new file mode 100644 index 0000000..bb1e428 --- /dev/null +++ b/src/api/dms/dmsBaseMaintStandard/types.ts @@ -0,0 +1,122 @@ +export interface DmsBaseMaintStandardVO { + /** + * 主键标识 + */ + maintStandardId: string | number; + + /** + * 标准编号 + */ + maintStandardCode: string; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId: string | number; + + /** + * 保养标准 + */ + maintProtocol: string; + + /** + * 操作描述 + */ + operationDescription: string; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + deviceTypeName: string;//JOIN + +} + +export interface DmsBaseMaintStandardForm extends BaseEntity { + /** + * 主键标识 + */ + maintStandardId?: string | number; + + /** + * 标准编号 + */ + maintStandardCode?: string; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId?: string | number; + + /** + * 保养标准 + */ + maintProtocol?: string; + + /** + * 操作描述 + */ + operationDescription?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + deviceTypeName?: string;//JOIN + +} + +export interface DmsBaseMaintStandardQuery extends PageQuery { + + /** + * 主键标识 + */ + maintStandardId?: string | number; + + /** + * 标准编号 + */ + maintStandardCode?: string; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId?: string | number; + + /** + * 保养标准 + */ + maintProtocol?: string; + + /** + * 操作描述 + */ + operationDescription?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; + + deviceTypeName?: string;//JOIN +} + + + diff --git a/src/api/dms/dmsBaseMaintStation/index.ts b/src/api/dms/dmsBaseMaintStation/index.ts new file mode 100644 index 0000000..776d94c --- /dev/null +++ b/src/api/dms/dmsBaseMaintStation/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseMaintStationVO, DmsBaseMaintStationForm, DmsBaseMaintStationQuery } from '@/api/dms/dmsBaseMaintStation/types'; + +/** + * 查询保养部位信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseMaintStation = (query?: DmsBaseMaintStationQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseMaintStation/list', + method: 'get', + params: query + }); +}; + +/** + * 查询保养部位信息详细 + * @param maintStationId + */ +export const getDmsBaseMaintStation = (maintStationId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseMaintStation/' + maintStationId, + method: 'get' + }); +}; + +/** + * 新增保养部位信息 + * @param data + */ +export const addDmsBaseMaintStation = (data: DmsBaseMaintStationForm) => { + return request({ + url: '/dms/dmsBaseMaintStation', + method: 'post', + data: data + }); +}; + +/** + * 修改保养部位信息 + * @param data + */ +export const updateDmsBaseMaintStation = (data: DmsBaseMaintStationForm) => { + return request({ + url: '/dms/dmsBaseMaintStation', + method: 'put', + data: data + }); +}; + +/** + * 删除保养部位信息 + * @param maintStationId + */ +export const delDmsBaseMaintStation = (maintStationId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseMaintStation/' + maintStationId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询保养部位信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseMaintStationList (query) { + return request({ + url: '/dms/dmsBaseMaintStation/getDmsBaseMaintStationList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseMaintStation/types.ts b/src/api/dms/dmsBaseMaintStation/types.ts new file mode 100644 index 0000000..ae0bc16 --- /dev/null +++ b/src/api/dms/dmsBaseMaintStation/types.ts @@ -0,0 +1,116 @@ +export interface DmsBaseMaintStationVO { + /** + * 主键标识 + */ + maintStationId: string | number; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId: string | number; + + /** + * 保养标准ID + */ + maintStandardId: string | number; + + /** + * 部位编号 + */ + maintStationCode: string; + + /** + * 部位名称 + */ + maintStationName: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface DmsBaseMaintStationForm extends BaseEntity { + /** + * 主键标识 + */ + maintStationId?: string | number; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId?: string | number; + + /** + * 保养标准ID + */ + maintStandardId?: string | number; + + /** + * 部位编号 + */ + maintStationCode?: string; + + /** + * 部位名称 + */ + maintStationName?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface DmsBaseMaintStationQuery extends PageQuery { + + /** + * 主键标识 + */ + maintStationId?: string | number; + + /** + * 设备类型ID,关联base_device_type的device_type_id + */ + deviceTypeId?: string | number; + + /** + * 保养标准ID + */ + maintStandardId?: string | number; + + /** + * 部位编号 + */ + maintStationCode?: string; + + /** + * 部位名称 + */ + maintStationName?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsBaseStationProject/index.ts b/src/api/dms/dmsBaseStationProject/index.ts new file mode 100644 index 0000000..9891957 --- /dev/null +++ b/src/api/dms/dmsBaseStationProject/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsBaseStationProjectVO, DmsBaseStationProjectForm, DmsBaseStationProjectQuery } from '@/api/dms/dmsBaseStationProject/types'; + +/** + * 查询保养部位关联项目信息列表 + * @param query + * @returns {*} + */ + +export const listDmsBaseStationProject = (query?: DmsBaseStationProjectQuery): AxiosPromise => { + return request({ + url: '/dms/dmsBaseStationProject/list', + method: 'get', + params: query + }); +}; + +/** + * 查询保养部位关联项目信息详细 + * @param maintStationId + */ +export const getDmsBaseStationProject = (maintStationId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsBaseStationProject/' + maintStationId, + method: 'get' + }); +}; + +/** + * 新增保养部位关联项目信息 + * @param data + */ +export const addDmsBaseStationProject = (data: DmsBaseStationProjectForm) => { + return request({ + url: '/dms/dmsBaseStationProject', + method: 'post', + data: data + }); +}; + +/** + * 修改保养部位关联项目信息 + * @param data + */ +export const updateDmsBaseStationProject = (data: DmsBaseStationProjectForm) => { + return request({ + url: '/dms/dmsBaseStationProject', + method: 'put', + data: data + }); +}; + +/** + * 删除保养部位关联项目信息 + * @param maintStationId + */ +export const delDmsBaseStationProject = (maintStationId: string | number | Array) => { + return request({ + url: '/dms/dmsBaseStationProject/' + maintStationId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询保养部位关联项目信息列表 + * @param query + * @returns {*} + */ +export function getDmsBaseStationProjectList (query) { + return request({ + url: '/dms/dmsBaseStationProject/getDmsBaseStationProjectList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsBaseStationProject/types.ts b/src/api/dms/dmsBaseStationProject/types.ts new file mode 100644 index 0000000..ef94a0f --- /dev/null +++ b/src/api/dms/dmsBaseStationProject/types.ts @@ -0,0 +1,46 @@ +export interface DmsBaseStationProjectVO { + /** + * 保养部位ID + */ + maintStationId: string | number; + + /** + * 保养项目ID + */ + maintProjectId: string | number; + +} + +export interface DmsBaseStationProjectForm extends BaseEntity { + /** + * 保养部位ID + */ + maintStationId?: string | number; + + /** + * 保养项目ID + */ + maintProjectId?: string | number; + +} + +export interface DmsBaseStationProjectQuery extends PageQuery { + + /** + * 保养部位ID + */ + maintStationId?: string | number; + + /** + * 保养项目ID + */ + maintProjectId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsPlanMaint/index.ts b/src/api/dms/dmsPlanMaint/index.ts new file mode 100644 index 0000000..4460daa --- /dev/null +++ b/src/api/dms/dmsPlanMaint/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsPlanMaintVO, DmsPlanMaintForm, DmsPlanMaintQuery } from '@/api/dms/dmsPlanMaint/types'; + +/** + * 查询保养计划信息列表 + * @param query + * @returns {*} + */ + +export const listDmsPlanMaint = (query?: DmsPlanMaintQuery): AxiosPromise => { + return request({ + url: '/dms/dmsPlanMaint/list', + method: 'get', + params: query + }); +}; + +/** + * 查询保养计划信息详细 + * @param planMaintId + */ +export const getDmsPlanMaint = (planMaintId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsPlanMaint/' + planMaintId, + method: 'get' + }); +}; + +/** + * 新增保养计划信息 + * @param data + */ +export const addDmsPlanMaint = (data: DmsPlanMaintForm) => { + return request({ + url: '/dms/dmsPlanMaint', + method: 'post', + data: data + }); +}; + +/** + * 修改保养计划信息 + * @param data + */ +export const updateDmsPlanMaint = (data: DmsPlanMaintForm) => { + return request({ + url: '/dms/dmsPlanMaint', + method: 'put', + data: data + }); +}; + +/** + * 删除保养计划信息 + * @param planMaintId + */ +export const delDmsPlanMaint = (planMaintId: string | number | Array) => { + return request({ + url: '/dms/dmsPlanMaint/' + planMaintId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询保养计划信息列表 + * @param query + * @returns {*} + */ +export function getDmsPlanMaintList (query) { + return request({ + url: '/dms/dmsPlanMaint/getDmsPlanMaintList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsPlanMaint/types.ts b/src/api/dms/dmsPlanMaint/types.ts new file mode 100644 index 0000000..bd51001 --- /dev/null +++ b/src/api/dms/dmsPlanMaint/types.ts @@ -0,0 +1,206 @@ +export interface DmsPlanMaintVO { + /** + * 主键标识 + */ + planMaintId: string | number; + + /** + * 计划编号 + */ + planMaintCode: string; + + /** + * 保养级别(1日常保养 2月度保养 3年度保养) + */ + maintLevel: string; + + /** + * 保养组别 + */ + maintGroup: string; + + /** + * 保养负责人 + */ + maintSupervisor: string; + + /** + * 本次保养时间 + */ + maintTime: string; + + /** + * 关联sj_job主键id + */ + jobId: string | number; + + /** + * 时限(秒);对于超期的报警 + */ + timeLimit: number; + + /** + * 循环周期 + */ + cyclePeriod: number; + + /** + * 保养状态(1待保养 2保养中 3已完成) + */ + maintStatus: number; + + /** + * 创建方式(1人工创建 2自动创建) + */ + createMethod: number; + + /** + * 备注 + */ + remark: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + +} + +export interface DmsPlanMaintForm extends BaseEntity { + /** + * 主键标识 + */ + planMaintId?: string | number; + + /** + * 计划编号 + */ + planMaintCode?: string; + + /** + * 保养级别(1日常保养 2月度保养 3年度保养) + */ + maintLevel?: string; + + /** + * 保养组别 + */ + maintGroup?: string; + + /** + * 保养负责人 + */ + maintSupervisor?: string; + + /** + * 本次保养时间 + */ + maintTime?: string; + + /** + * 关联sj_job主键id + */ + jobId?: string | number; + + /** + * 时限(秒);对于超期的报警 + */ + timeLimit?: number; + + /** + * 循环周期 + */ + cyclePeriod?: number; + + /** + * 保养状态(1待保养 2保养中 3已完成) + */ + maintStatus?: number; + + /** + * 创建方式(1人工创建 2自动创建) + */ + createMethod?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface DmsPlanMaintQuery extends PageQuery { + + /** + * 主键标识 + */ + planMaintId?: string | number; + + /** + * 计划编号 + */ + planMaintCode?: string; + + /** + * 保养级别(1日常保养 2月度保养 3年度保养) + */ + maintLevel?: string; + + /** + * 保养组别 + */ + maintGroup?: string; + + /** + * 保养负责人 + */ + maintSupervisor?: string; + + /** + * 本次保养时间 + */ + maintTime?: string; + + /** + * 关联sj_job主键id + */ + jobId?: string | number; + + /** + * 时限(秒);对于超期的报警 + */ + timeLimit?: number; + + /** + * 循环周期 + */ + cyclePeriod?: number; + + /** + * 保养状态(1待保养 2保养中 3已完成) + */ + maintStatus?: number; + + /** + * 创建方式(1人工创建 2自动创建) + */ + createMethod?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/dms/dmsPlanMaintDetail/index.ts b/src/api/dms/dmsPlanMaintDetail/index.ts new file mode 100644 index 0000000..80e71e8 --- /dev/null +++ b/src/api/dms/dmsPlanMaintDetail/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DmsPlanMaintDetailVO, DmsPlanMaintDetailForm, DmsPlanMaintDetailQuery } from '@/api/dms/dmsPlanMaintDetail/types'; + +/** + * 查询保养计划明细列表 + * @param query + * @returns {*} + */ + +export const listDmsPlanMaintDetail = (query?: DmsPlanMaintDetailQuery): AxiosPromise => { + return request({ + url: '/dms/dmsPlanMaintDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询保养计划明细详细 + * @param planMaintDetailId + */ +export const getDmsPlanMaintDetail = (planMaintDetailId: string | number): AxiosPromise => { + return request({ + url: '/dms/dmsPlanMaintDetail/' + planMaintDetailId, + method: 'get' + }); +}; + +/** + * 新增保养计划明细 + * @param data + */ +export const addDmsPlanMaintDetail = (data: DmsPlanMaintDetailForm) => { + return request({ + url: '/dms/dmsPlanMaintDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改保养计划明细 + * @param data + */ +export const updateDmsPlanMaintDetail = (data: DmsPlanMaintDetailForm) => { + return request({ + url: '/dms/dmsPlanMaintDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除保养计划明细 + * @param planMaintDetailId + */ +export const delDmsPlanMaintDetail = (planMaintDetailId: string | number | Array) => { + return request({ + url: '/dms/dmsPlanMaintDetail/' + planMaintDetailId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询保养计划明细列表 + * @param query + * @returns {*} + */ +export function getDmsPlanMaintDetailList (query) { + return request({ + url: '/dms/dmsPlanMaintDetail/getDmsPlanMaintDetailList', + method: 'get', + params: query + }); +}; diff --git a/src/api/dms/dmsPlanMaintDetail/types.ts b/src/api/dms/dmsPlanMaintDetail/types.ts new file mode 100644 index 0000000..0597cdd --- /dev/null +++ b/src/api/dms/dmsPlanMaintDetail/types.ts @@ -0,0 +1,182 @@ +export interface DmsPlanMaintDetailVO { + /** + * 主键标识 + */ + planMaintDetailId: string | number; + + /** + * 计划ID,关联dms_plan_maint的plan_maint_id + */ + planMaintId: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId: string | number; + + /** + * 保养部位,关联dms_base_maint_station的maint_station_id + */ + maintStationId: string | number; + + /** + * 保养标准ID,关联保养标准主键 + */ + maintStandardId: string | number; + + /** + * 操作描述 + */ + operationDescription: string; + + /** + * 备注 + */ + remark: string; + + /** + * 标准编号 + * + */ + maintStandardCode: string; + + /** + * 计划编号 + */ + planMaintCode: string; + + /** + * 设备名称 + */ + machineName: string; + + /** + * 保养部位 + */ + maintStationName: string; + + +} + +export interface DmsPlanMaintDetailForm extends BaseEntity { + /** + * 主键标识 + */ + planMaintDetailId?: string | number; + + /** + * 计划ID,关联dms_plan_maint的plan_maint_id + */ + planMaintId?: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 保养部位,关联dms_base_maint_station的maint_station_id + */ + maintStationId?: string | number; + + /** + * 保养标准ID,关联保养标准主键 + */ + maintStandardId?: string | number; + + /** + * 操作描述 + */ + operationDescription?: string; + + /** + * 备注 + */ + remark?: string; + + /** + * 标准编号 + * + */ + maintStandardCode?: string; + + /** + * 计划编号 + */ + planMaintCode?: string; + + /** + * 设备名称 + */ + machineName?: string; + + /** + * 保养部位 + */ + maintStationName?: string; + +} + +export interface DmsPlanMaintDetailQuery extends PageQuery { + + /** + * 主键标识 + */ + planMaintDetailId?: string | number; + + /** + * 计划ID,关联dms_plan_maint的plan_maint_id + */ + planMaintId?: string | number; + + /** + * 设备ID,关联prod_base_machine_info的machine_id + */ + machineId?: string | number; + + /** + * 保养部位,关联dms_base_maint_station的maint_station_id + */ + maintStationId?: string | number; + + /** + * 保养标准ID,关联保养标准主键 + */ + maintStandardId?: string | number; + + /** + * 操作描述 + */ + operationDescription?: string; + + /** + * 日期范围参数 + */ + params?: any; + + + /** + * 标准编号 + * + */ + maintStandardCode?: string; + + /** + * 计划编号 + */ + planMaintCode?: string; + + /** + * 设备名称 + */ + machineName?: string; + + /** + * 保养部位 + */ + maintStationName?: string; + +} + + + diff --git a/src/views/dms/dmsBaseMaintProject/index.vue b/src/views/dms/dmsBaseMaintProject/index.vue new file mode 100644 index 0000000..0758494 --- /dev/null +++ b/src/views/dms/dmsBaseMaintProject/index.vue @@ -0,0 +1,272 @@ + + + diff --git a/src/views/dms/dmsBaseMaintStandard/index.vue b/src/views/dms/dmsBaseMaintStandard/index.vue new file mode 100644 index 0000000..4f1ddf6 --- /dev/null +++ b/src/views/dms/dmsBaseMaintStandard/index.vue @@ -0,0 +1,309 @@ + + + diff --git a/src/views/dms/dmsBaseMaintStation/index.vue b/src/views/dms/dmsBaseMaintStation/index.vue new file mode 100644 index 0000000..1b09eab --- /dev/null +++ b/src/views/dms/dmsBaseMaintStation/index.vue @@ -0,0 +1,323 @@ + + + diff --git a/src/views/dms/dmsBaseStationProject/index.vue b/src/views/dms/dmsBaseStationProject/index.vue new file mode 100644 index 0000000..12ec4f1 --- /dev/null +++ b/src/views/dms/dmsBaseStationProject/index.vue @@ -0,0 +1,227 @@ + + + diff --git a/src/views/dms/dmsPlanMaint/index.vue b/src/views/dms/dmsPlanMaint/index.vue new file mode 100644 index 0000000..3c972ad --- /dev/null +++ b/src/views/dms/dmsPlanMaint/index.vue @@ -0,0 +1,397 @@ + + + diff --git a/src/views/dms/dmsPlanMaintDetail/index.vue b/src/views/dms/dmsPlanMaintDetail/index.vue new file mode 100644 index 0000000..4a727c7 --- /dev/null +++ b/src/views/dms/dmsPlanMaintDetail/index.vue @@ -0,0 +1,344 @@ + + +