From 386d8a950eac5a0d166c556cfc6e8ebcb13240d2 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Mon, 27 May 2024 14:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E4=B8=AA=E8=AE=B0=E5=BD=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/equipmentAccounts/index.ts | 16 +- .../equipmentInspectionRecordDetail/index.ts | 60 +++ .../equipmentInspectionRecordMain/index.ts | 79 +++ .../equipmentMaintenanceRecordDetail/index.ts | 65 +++ .../equipmentMaintenanceRecordMain/index.ts | 74 +++ .../eam/equipmentRepairRecordDetail/index.ts | 59 +++ .../eam/equipmentRepairRecordMain/index.ts | 85 ++++ .../eam/equipmentReportRepairRequest/index.ts | 73 +++ .../equipmentSpotCheckRecordDetail/index.ts | 62 +++ .../eam/equipmentSpotCheckRecordMain/index.ts | 79 +++ src/api/eam/equipmentTransferRecord/index.ts | 65 +++ .../SearchTable/src/SearchTable.vue | 1 - src/views/eam/equipmentAccounts/index.vue | 16 +- .../equipmentInspectionRecordDetail.data.ts | 190 ++++++++ .../equipmentInspectionRecordDetail/index.vue | 244 ++++++++++ .../equipmentInspectionRecordMain.data.ts | 432 +++++++++++++++++ .../equipmentInspectionRecordMain/index.vue | 244 ++++++++++ .../equipmentMaintenanceRecordDetail.data.ts | 233 +++++++++ .../index.vue | 244 ++++++++++ .../equipmentMaintenanceRecordMain.data.ts | 290 +++++++++++ .../equipmentMaintenanceRecordMain/index.vue | 244 ++++++++++ .../equipmentRepairRecordDetail.data.ts | 154 ++++++ .../eam/equipmentRepairRecordDetail/index.vue | 244 ++++++++++ .../equipmentRepairRecordMain.data.ts | 458 ++++++++++++++++++ .../eam/equipmentRepairRecordMain/index.vue | 244 ++++++++++ .../equipmentReportRepairRequest.data.ts | 282 +++++++++++ .../equipmentReportRepairRequest/index.vue | 244 ++++++++++ .../equipmentSpotCheckRecordDetail.data.ts | 199 ++++++++ .../equipmentSpotCheckRecordDetail/index.vue | 244 ++++++++++ .../equipmentSpotCheckRecordMain.data.ts | 428 ++++++++++++++++ .../equipmentSpotCheckRecordMain/index.vue | 244 ++++++++++ .../equipmentTransferRecord.data.ts | 207 ++++++++ .../eam/equipmentTransferRecord/index.vue | 244 ++++++++++ 33 files changed, 6037 insertions(+), 10 deletions(-) create mode 100644 src/api/eam/equipmentInspectionRecordDetail/index.ts create mode 100644 src/api/eam/equipmentInspectionRecordMain/index.ts create mode 100644 src/api/eam/equipmentMaintenanceRecordDetail/index.ts create mode 100644 src/api/eam/equipmentMaintenanceRecordMain/index.ts create mode 100644 src/api/eam/equipmentRepairRecordDetail/index.ts create mode 100644 src/api/eam/equipmentRepairRecordMain/index.ts create mode 100644 src/api/eam/equipmentReportRepairRequest/index.ts create mode 100644 src/api/eam/equipmentSpotCheckRecordDetail/index.ts create mode 100644 src/api/eam/equipmentSpotCheckRecordMain/index.ts create mode 100644 src/api/eam/equipmentTransferRecord/index.ts create mode 100644 src/views/eam/equipmentInspectionRecordDetail/equipmentInspectionRecordDetail.data.ts create mode 100644 src/views/eam/equipmentInspectionRecordDetail/index.vue create mode 100644 src/views/eam/equipmentInspectionRecordMain/equipmentInspectionRecordMain.data.ts create mode 100644 src/views/eam/equipmentInspectionRecordMain/index.vue create mode 100644 src/views/eam/equipmentMaintenanceRecordDetail/equipmentMaintenanceRecordDetail.data.ts create mode 100644 src/views/eam/equipmentMaintenanceRecordDetail/index.vue create mode 100644 src/views/eam/equipmentMaintenanceRecordMain/equipmentMaintenanceRecordMain.data.ts create mode 100644 src/views/eam/equipmentMaintenanceRecordMain/index.vue create mode 100644 src/views/eam/equipmentRepairRecordDetail/equipmentRepairRecordDetail.data.ts create mode 100644 src/views/eam/equipmentRepairRecordDetail/index.vue create mode 100644 src/views/eam/equipmentRepairRecordMain/equipmentRepairRecordMain.data.ts create mode 100644 src/views/eam/equipmentRepairRecordMain/index.vue create mode 100644 src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts create mode 100644 src/views/eam/equipmentReportRepairRequest/index.vue create mode 100644 src/views/eam/equipmentSpotCheckRecordDetail/equipmentSpotCheckRecordDetail.data.ts create mode 100644 src/views/eam/equipmentSpotCheckRecordDetail/index.vue create mode 100644 src/views/eam/equipmentSpotCheckRecordMain/equipmentSpotCheckRecordMain.data.ts create mode 100644 src/views/eam/equipmentSpotCheckRecordMain/index.vue create mode 100644 src/views/eam/equipmentTransferRecord/equipmentTransferRecord.data.ts create mode 100644 src/views/eam/equipmentTransferRecord/index.vue diff --git a/src/api/eam/equipmentAccounts/index.ts b/src/api/eam/equipmentAccounts/index.ts index 02a2fe927..afb035961 100644 --- a/src/api/eam/equipmentAccounts/index.ts +++ b/src/api/eam/equipmentAccounts/index.ts @@ -42,38 +42,38 @@ export const getEquipmentAccountsPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/eam/equipment-accounts/senior', data }) + return await request.post({ url: '/eam/device/equipment-accounts/senior', data }) } else { - return await request.get({ url: `/eam/equipment-accounts/page`, params }) + return await request.get({ url: `/eam/device/equipment-accounts/page`, params }) } } // 查询设备台账详情 export const getEquipmentAccounts = async (id: number) => { - return await request.get({ url: `/eam/equipment-accounts/get?id=` + id }) + return await request.get({ url: `/eam/device/equipment-accounts/get?id=` + id }) } // 新增设备台账 export const createEquipmentAccounts = async (data: EquipmentAccountsVO) => { - return await request.post({ url: `/eam/equipment-accounts/create`, data }) + return await request.post({ url: `/eam/device/equipment-accounts/create`, data }) } // 修改设备台账 export const updateEquipmentAccounts = async (data: EquipmentAccountsVO) => { - return await request.put({ url: `/eam/equipment-accounts/update`, data }) + return await request.put({ url: `/eam/device/equipment-accounts/update`, data }) } // 删除设备台账 export const deleteEquipmentAccounts = async (id: number) => { - return await request.delete({ url: `/eam/equipment-accounts/delete?id=` + id }) + return await request.delete({ url: `/eam/device/equipment-accounts/delete?id=` + id }) } // 导出设备台账 Excel export const exportEquipmentAccounts = async (params) => { - return await request.download({ url: `/eam/equipment-accounts/export-excel`, params }) + return await request.download({ url: `/eam/device/equipment-accounts/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/equipment-accounts/get-import-template' }) + return request.download({ url: '/eam/device/equipment-accounts/get-import-template' }) } \ No newline at end of file diff --git a/src/api/eam/equipmentInspectionRecordDetail/index.ts b/src/api/eam/equipmentInspectionRecordDetail/index.ts new file mode 100644 index 000000000..32f0f5c75 --- /dev/null +++ b/src/api/eam/equipmentInspectionRecordDetail/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface EquipmentInspectionRecordDetailVO { + id: number + number: string + masterId: number + completionTime: Date + uncompletedCause: string + result: string + name: string + content: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询巡检记录子列表 +export const getEquipmentInspectionRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-inspection-record-detail/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-inspection-record-detail/page`, params }) + } +} + +// 查询巡检记录子详情 +export const getEquipmentInspectionRecordDetail = async (id: number) => { + return await request.get({ url: `/eam/equipment-inspection-record-detail/get?id=` + id }) +} + +// 新增巡检记录子 +export const createEquipmentInspectionRecordDetail = async (data: EquipmentInspectionRecordDetailVO) => { + return await request.post({ url: `/eam/equipment-inspection-record-detail/create`, data }) +} + +// 修改巡检记录子 +export const updateEquipmentInspectionRecordDetail = async (data: EquipmentInspectionRecordDetailVO) => { + return await request.put({ url: `/eam/equipment-inspection-record-detail/update`, data }) +} + +// 删除巡检记录子 +export const deleteEquipmentInspectionRecordDetail = async (id: number) => { + return await request.delete({ url: `/eam/equipment-inspection-record-detail/delete?id=` + id }) +} + +// 导出巡检记录子 Excel +export const exportEquipmentInspectionRecordDetail = async (params) => { + return await request.download({ url: `/eam/equipment-inspection-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-inspection-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentInspectionRecordMain/index.ts b/src/api/eam/equipmentInspectionRecordMain/index.ts new file mode 100644 index 000000000..23f4893de --- /dev/null +++ b/src/api/eam/equipmentInspectionRecordMain/index.ts @@ -0,0 +1,79 @@ +import request from '@/config/axios' + +export interface EquipmentInspectionRecordMainVO { + id: number + number: string + describing: string + equipmentCode: string + type: string + isPictures: boolean + planNumber: string + planStartTime: Date + planEndTime: Date + startTime: Date + endTime: Date + classType: string + verifyer: number + verifyContent: string + verifyTime: Date + maintenancer: number + completionTime: Date + maintenanceTime: Date + status: string + autoOrder: string + autoPerform: string + autoVerify: string + directCreateRecord: string + faultType: string + factoryAreaCode: string + workshopCode: string + workshopSectionCode: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询巡检记录主列表 +export const getEquipmentInspectionRecordMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-inspection-record-main/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-inspection-record-main/page`, params }) + } +} + +// 查询巡检记录主详情 +export const getEquipmentInspectionRecordMain = async (id: number) => { + return await request.get({ url: `/eam/equipment-inspection-record-main/get?id=` + id }) +} + +// 新增巡检记录主 +export const createEquipmentInspectionRecordMain = async (data: EquipmentInspectionRecordMainVO) => { + return await request.post({ url: `/eam/equipment-inspection-record-main/create`, data }) +} + +// 修改巡检记录主 +export const updateEquipmentInspectionRecordMain = async (data: EquipmentInspectionRecordMainVO) => { + return await request.put({ url: `/eam/equipment-inspection-record-main/update`, data }) +} + +// 删除巡检记录主 +export const deleteEquipmentInspectionRecordMain = async (id: number) => { + return await request.delete({ url: `/eam/equipment-inspection-record-main/delete?id=` + id }) +} + +// 导出巡检记录主 Excel +export const exportEquipmentInspectionRecordMain = async (params) => { + return await request.download({ url: `/eam/equipment-inspection-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-inspection-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentMaintenanceRecordDetail/index.ts b/src/api/eam/equipmentMaintenanceRecordDetail/index.ts new file mode 100644 index 000000000..2ddc10182 --- /dev/null +++ b/src/api/eam/equipmentMaintenanceRecordDetail/index.ts @@ -0,0 +1,65 @@ +import request from '@/config/axios' + +export interface EquipmentMaintenanceRecordDetailVO { + id: number + number: string + masterId: number + peoples: number + estimatedMinutes: number + actualMinutes: number + chargePeoples: string + completionTime: Date + uncompletedCause: string + result: string + name: string + content: string + equipmentParts: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询保养记录子列表 +export const getEquipmentMaintenanceRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-maintenance-record-detail/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-maintenance-record-detail/page`, params }) + } +} + +// 查询保养记录子详情 +export const getEquipmentMaintenanceRecordDetail = async (id: number) => { + return await request.get({ url: `/eam/equipment-maintenance-record-detail/get?id=` + id }) +} + +// 新增保养记录子 +export const createEquipmentMaintenanceRecordDetail = async (data: EquipmentMaintenanceRecordDetailVO) => { + return await request.post({ url: `/eam/equipment-maintenance-record-detail/create`, data }) +} + +// 修改保养记录子 +export const updateEquipmentMaintenanceRecordDetail = async (data: EquipmentMaintenanceRecordDetailVO) => { + return await request.put({ url: `/eam/equipment-maintenance-record-detail/update`, data }) +} + +// 删除保养记录子 +export const deleteEquipmentMaintenanceRecordDetail = async (id: number) => { + return await request.delete({ url: `/eam/equipment-maintenance-record-detail/delete?id=` + id }) +} + +// 导出保养记录子 Excel +export const exportEquipmentMaintenanceRecordDetail = async (params) => { + return await request.download({ url: `/eam/equipment-maintenance-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-maintenance-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentMaintenanceRecordMain/index.ts b/src/api/eam/equipmentMaintenanceRecordMain/index.ts new file mode 100644 index 000000000..184805d86 --- /dev/null +++ b/src/api/eam/equipmentMaintenanceRecordMain/index.ts @@ -0,0 +1,74 @@ +import request from '@/config/axios' + +export interface EquipmentMaintenanceRecordMainVO { + id: number + number: string + describing: string + equipmentCode: string + category: string + classes: string + planNumber: string + faultType: string + cycle: string + times: string + verifyer2: number + verifyContent2: string + verifyTime2: Date + maintenancer: number + maintenancePhone: string + completeResult: string + completionTime2: Date + maintenanceTime: Date + status: string + factoryAreaCode: string + workshopCode: string + workshopSectionCode: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询设备保养记录主列表 +export const getEquipmentMaintenanceRecordMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-maintenance-record-main/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-maintenance-record-main/page`, params }) + } +} + +// 查询设备保养记录主详情 +export const getEquipmentMaintenanceRecordMain = async (id: number) => { + return await request.get({ url: `/eam/equipment-maintenance-record-main/get?id=` + id }) +} + +// 新增设备保养记录主 +export const createEquipmentMaintenanceRecordMain = async (data: EquipmentMaintenanceRecordMainVO) => { + return await request.post({ url: `/eam/equipment-maintenance-record-main/create`, data }) +} + +// 修改设备保养记录主 +export const updateEquipmentMaintenanceRecordMain = async (data: EquipmentMaintenanceRecordMainVO) => { + return await request.put({ url: `/eam/equipment-maintenance-record-main/update`, data }) +} + +// 删除设备保养记录主 +export const deleteEquipmentMaintenanceRecordMain = async (id: number) => { + return await request.delete({ url: `/eam/equipment-maintenance-record-main/delete?id=` + id }) +} + +// 导出设备保养记录主 Excel +export const exportEquipmentMaintenanceRecordMain = async (params) => { + return await request.download({ url: `/eam/equipment-maintenance-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-maintenance-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentRepairRecordDetail/index.ts b/src/api/eam/equipmentRepairRecordDetail/index.ts new file mode 100644 index 000000000..91b3e73c5 --- /dev/null +++ b/src/api/eam/equipmentRepairRecordDetail/index.ts @@ -0,0 +1,59 @@ +import request from '@/config/axios' + +export interface EquipmentRepairRecordDetailVO { + id: number + number: string + masterId: number + describing: string + faultCause: string + workOut: string + maintenances: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询设备维修记录子列表 +export const getEquipmentRepairRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-repair-record-detail/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-repair-record-detail/page`, params }) + } +} + +// 查询设备维修记录子详情 +export const getEquipmentRepairRecordDetail = async (id: number) => { + return await request.get({ url: `/eam/equipment-repair-record-detail/get?id=` + id }) +} + +// 新增设备维修记录子 +export const createEquipmentRepairRecordDetail = async (data: EquipmentRepairRecordDetailVO) => { + return await request.post({ url: `/eam/equipment-repair-record-detail/create`, data }) +} + +// 修改设备维修记录子 +export const updateEquipmentRepairRecordDetail = async (data: EquipmentRepairRecordDetailVO) => { + return await request.put({ url: `/eam/equipment-repair-record-detail/update`, data }) +} + +// 删除设备维修记录子 +export const deleteEquipmentRepairRecordDetail = async (id: number) => { + return await request.delete({ url: `/eam/equipment-repair-record-detail/delete?id=` + id }) +} + +// 导出设备维修记录子 Excel +export const exportEquipmentRepairRecordDetail = async (params) => { + return await request.download({ url: `/eam/equipment-repair-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-repair-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentRepairRecordMain/index.ts b/src/api/eam/equipmentRepairRecordMain/index.ts new file mode 100644 index 000000000..d10e21d85 --- /dev/null +++ b/src/api/eam/equipmentRepairRecordMain/index.ts @@ -0,0 +1,85 @@ +import request from '@/config/axios' + +export interface EquipmentRepairRecordMainVO { + id: number + number: string + type: string + repairNumber: string + sources: string + maintenanceDesc: string + urgency: string + level: string + equipmentCode: string + shutDown: boolean + startTime: Date + endTime: Date + totalMinutes: number + verifyer: number + verifyContent: string + verifyTime: Date + maintenancer: number + maintenancePhone: string + completeResult: string + completionTime: Date + maintenanceTime: Date + repairTime: Date + repairer: number + faultType: string + status: string + autoOrder: string + autoPerform: string + autoVerify: string + directCreateRecord: string + classType: string + factoryAreaCode: string + workshopCode: string + workshopSectionCode: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询设备维修记录主列表 +export const getEquipmentRepairRecordMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-repair-record-main/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-repair-record-main/page`, params }) + } +} + +// 查询设备维修记录主详情 +export const getEquipmentRepairRecordMain = async (id: number) => { + return await request.get({ url: `/eam/equipment-repair-record-main/get?id=` + id }) +} + +// 新增设备维修记录主 +export const createEquipmentRepairRecordMain = async (data: EquipmentRepairRecordMainVO) => { + return await request.post({ url: `/eam/equipment-repair-record-main/create`, data }) +} + +// 修改设备维修记录主 +export const updateEquipmentRepairRecordMain = async (data: EquipmentRepairRecordMainVO) => { + return await request.put({ url: `/eam/equipment-repair-record-main/update`, data }) +} + +// 删除设备维修记录主 +export const deleteEquipmentRepairRecordMain = async (id: number) => { + return await request.delete({ url: `/eam/equipment-repair-record-main/delete?id=` + id }) +} + +// 导出设备维修记录主 Excel +export const exportEquipmentRepairRecordMain = async (params) => { + return await request.download({ url: `/eam/equipment-repair-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-repair-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentReportRepairRequest/index.ts b/src/api/eam/equipmentReportRepairRequest/index.ts new file mode 100644 index 000000000..f09c4d563 --- /dev/null +++ b/src/api/eam/equipmentReportRepairRequest/index.ts @@ -0,0 +1,73 @@ +import request from '@/config/axios' + +export interface EquipmentReportRepairRequestVO { + id: number + number: string + type: string + equipmentCode: string + urgency: string + faultType: string + describing: string + shutDown: boolean + images: string + factoryAreaCode: string + workshopCode: string + workshopSectionCode: string + repairmaner: number + repairPhone: string + status: string + approver: number + approveContent: string + approveTime: Date + autoExamine: string + autoAgree: string + autoVerify: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询设报修申请列表 +export const getEquipmentReportRepairRequestPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-report-repair-request/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-report-repair-request/page`, params }) + } +} + +// 查询设报修申请详情 +export const getEquipmentReportRepairRequest = async (id: number) => { + return await request.get({ url: `/eam/equipment-report-repair-request/get?id=` + id }) +} + +// 新增设报修申请 +export const createEquipmentReportRepairRequest = async (data: EquipmentReportRepairRequestVO) => { + return await request.post({ url: `/eam/equipment-report-repair-request/create`, data }) +} + +// 修改设报修申请 +export const updateEquipmentReportRepairRequest = async (data: EquipmentReportRepairRequestVO) => { + return await request.put({ url: `/eam/equipment-report-repair-request/update`, data }) +} + +// 删除设报修申请 +export const deleteEquipmentReportRepairRequest = async (id: number) => { + return await request.delete({ url: `/eam/equipment-report-repair-request/delete?id=` + id }) +} + +// 导出设报修申请 Excel +export const exportEquipmentReportRepairRequest = async (params) => { + return await request.download({ url: `/eam/equipment-report-repair-request/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-report-repair-request/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentSpotCheckRecordDetail/index.ts b/src/api/eam/equipmentSpotCheckRecordDetail/index.ts new file mode 100644 index 000000000..952ae13c7 --- /dev/null +++ b/src/api/eam/equipmentSpotCheckRecordDetail/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface EquipmentSpotCheckRecordDetailVO { + id: number + number: string + masterId: number + completionTime: Date + uncompletedCause: string + result: string + name: string + content: string + equipmentParts: string + methods: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询点检记录子列表 +export const getEquipmentSpotCheckRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-spot-check-record-detail/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-spot-check-record-detail/page`, params }) + } +} + +// 查询点检记录子详情 +export const getEquipmentSpotCheckRecordDetail = async (id: number) => { + return await request.get({ url: `/eam/equipment-spot-check-record-detail/get?id=` + id }) +} + +// 新增点检记录子 +export const createEquipmentSpotCheckRecordDetail = async (data: EquipmentSpotCheckRecordDetailVO) => { + return await request.post({ url: `/eam/equipment-spot-check-record-detail/create`, data }) +} + +// 修改点检记录子 +export const updateEquipmentSpotCheckRecordDetail = async (data: EquipmentSpotCheckRecordDetailVO) => { + return await request.put({ url: `/eam/equipment-spot-check-record-detail/update`, data }) +} + +// 删除点检记录子 +export const deleteEquipmentSpotCheckRecordDetail = async (id: number) => { + return await request.delete({ url: `/eam/equipment-spot-check-record-detail/delete?id=` + id }) +} + +// 导出点检记录子 Excel +export const exportEquipmentSpotCheckRecordDetail = async (params) => { + return await request.download({ url: `/eam/equipment-spot-check-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-spot-check-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentSpotCheckRecordMain/index.ts b/src/api/eam/equipmentSpotCheckRecordMain/index.ts new file mode 100644 index 000000000..ca4d8f4f5 --- /dev/null +++ b/src/api/eam/equipmentSpotCheckRecordMain/index.ts @@ -0,0 +1,79 @@ +import request from '@/config/axios' + +export interface EquipmentSpotCheckRecordMainVO { + id: number + number: string + describing: string + equipmentCode: string + type: string + planNumber: string + planStartTime: Date + planEndTime: Date + startTime: Date + endTime: Date + faultType: string + verifyer: number + verifyContent: string + verifyTime: Date + maintenancer: number + completionTime: Date + maintenanceTime: Date + isPictures: boolean + status: string + autoOrder: string + autoPerform: string + autoVerify: string + directCreateRecord: string + classType: string + factoryAreaCode: string + workshopCode: string + workshopSectionCode: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询点检记录主列表 +export const getEquipmentSpotCheckRecordMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-spot-check-record-main/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-spot-check-record-main/page`, params }) + } +} + +// 查询点检记录主详情 +export const getEquipmentSpotCheckRecordMain = async (id: number) => { + return await request.get({ url: `/eam/equipment-spot-check-record-main/get?id=` + id }) +} + +// 新增点检记录主 +export const createEquipmentSpotCheckRecordMain = async (data: EquipmentSpotCheckRecordMainVO) => { + return await request.post({ url: `/eam/equipment-spot-check-record-main/create`, data }) +} + +// 修改点检记录主 +export const updateEquipmentSpotCheckRecordMain = async (data: EquipmentSpotCheckRecordMainVO) => { + return await request.put({ url: `/eam/equipment-spot-check-record-main/update`, data }) +} + +// 删除点检记录主 +export const deleteEquipmentSpotCheckRecordMain = async (id: number) => { + return await request.delete({ url: `/eam/equipment-spot-check-record-main/delete?id=` + id }) +} + +// 导出点检记录主 Excel +export const exportEquipmentSpotCheckRecordMain = async (params) => { + return await request.download({ url: `/eam/equipment-spot-check-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-spot-check-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/equipmentTransferRecord/index.ts b/src/api/eam/equipmentTransferRecord/index.ts new file mode 100644 index 000000000..493a0a785 --- /dev/null +++ b/src/api/eam/equipmentTransferRecord/index.ts @@ -0,0 +1,65 @@ +import request from '@/config/axios' + +export interface EquipmentTransferRecordVO { + id: number + equipmentCode: string + type: string + operationDate: Date + operationer: string + beforeFactoryAreaCode: string + beforeLocation: string + beforeWorkshopCode: string + beforeWorkshopSectionCode: string + nowLocation: string + factoryAreaCode: string + workshopCode: string + workshopSectionCode: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询设备移动记录列表 +export const getEquipmentTransferRecordPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/equipment-transfer-record/senior', data }) + } else { + return await request.get({ url: `/eam/equipment-transfer-record/page`, params }) + } +} + +// 查询设备移动记录详情 +export const getEquipmentTransferRecord = async (id: number) => { + return await request.get({ url: `/eam/equipment-transfer-record/get?id=` + id }) +} + +// 新增设备移动记录 +export const createEquipmentTransferRecord = async (data: EquipmentTransferRecordVO) => { + return await request.post({ url: `/eam/equipment-transfer-record/create`, data }) +} + +// 修改设备移动记录 +export const updateEquipmentTransferRecord = async (data: EquipmentTransferRecordVO) => { + return await request.put({ url: `/eam/equipment-transfer-record/update`, data }) +} + +// 删除设备移动记录 +export const deleteEquipmentTransferRecord = async (id: number) => { + return await request.delete({ url: `/eam/equipment-transfer-record/delete?id=` + id }) +} + +// 导出设备移动记录 Excel +export const exportEquipmentTransferRecord = async (params) => { + return await request.download({ url: `/eam/equipment-transfer-record/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/equipment-transfer-record/get-import-template' }) +} \ No newline at end of file diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index 5e10c4025..e0d7a9e15 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -93,7 +93,6 @@ const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, s HeadButttondata.value = [ defaultButtons.defaultFilterBtn(null), // 筛选 ] -debugger searchDialogVisible.value = true formFieldRef.value = formField searchFieldRef.value = searchField diff --git a/src/views/eam/equipmentAccounts/index.vue b/src/views/eam/equipmentAccounts/index.vue index 0067ba461..1de616619 100644 --- a/src/views/eam/equipmentAccounts/index.vue +++ b/src/views/eam/equipmentAccounts/index.vue @@ -261,6 +261,7 @@ const searchSparePartTableRef = ref() const searchTableSelections = ref([]) const searchTableSparePartSelections = ref([]) const syncData = async (row) => { + searchTableSparePartSelections.value = [] await RelationMainPartApi.getRelationMainPartNoPage({ equipmentCode: row.code }).then(async (res) => { await EquipmentMainPartApi.getEquipmentMainPartNoPage({}).then(response => { searchTableSelections.value = response.filter(element => { @@ -276,7 +277,8 @@ const syncData = async (row) => { }); }; const syncSparePartData = async (row) => { - await EquipmentToolSparePartApi.getEquipmentToolSparePartNoPage({ equipmentCode: row.code }).then(async (res) => { + searchTableSparePartSelections.value = [] + await EquipmentToolSparePartApi.getEquipmentToolSparePartNoPage({ equipmentToolCode: row.code }).then(async (res) => { await SparePartApi.getSparePartNoPage({}).then(response => { searchTableSparePartSelections.value = response.filter(element => { let flag = false; @@ -341,6 +343,18 @@ const submitEquipmentMainPartRelation = (formField, searchField, val, formRef, r }) } +const submitSparePartRelation = (formField, searchField, val, formRef, rowRef) => { + const equipmentToolSparePartRelList = val.map((element) => ({ + sparePartCode: element.code, + equipmentToolCode: rowRef.code, + type: 'DEVICE' + })) + EquipmentToolSparePartApi.createEquipmentToolSparePartBatch(equipmentToolSparePartRelList).then(res => { + message.success(t('common.createSuccess')) + getList() + }) +} + /** 初始化 **/ onMounted(async () => { getList() diff --git a/src/views/eam/equipmentInspectionRecordDetail/equipmentInspectionRecordDetail.data.ts b/src/views/eam/equipmentInspectionRecordDetail/equipmentInspectionRecordDetail.data.ts new file mode 100644 index 000000000..e13466eed --- /dev/null +++ b/src/views/eam/equipmentInspectionRecordDetail/equipmentInspectionRecordDetail.data.ts @@ -0,0 +1,190 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentInspectionRecordDetailRules = reactive({ + number: [required], + masterId: [required], + name: [required], + concurrencyStamp: [required] +}) + +export const EquipmentInspectionRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '巡检工单号', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '主表', + field: 'masterId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '完成时间', + field: 'completionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '未完成原因', + field: 'uncompletedCause', + sort: 'custom', + isSearch: true + }, + { + label: '结果枚举', + field: 'result', + sort: 'custom', + dictType: DICT_TYPE.IS_COMPLETED, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '名称来源于巡检项', + field: 'name', + sort: 'custom', + isSearch: true + }, + { + label: '巡检内容来源于巡检项', + field: 'content', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentInspectionRecordDetail/index.vue b/src/views/eam/equipmentInspectionRecordDetail/index.vue new file mode 100644 index 000000000..e188d70d4 --- /dev/null +++ b/src/views/eam/equipmentInspectionRecordDetail/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentInspectionRecordMain/equipmentInspectionRecordMain.data.ts b/src/views/eam/equipmentInspectionRecordMain/equipmentInspectionRecordMain.data.ts new file mode 100644 index 000000000..dbbd54905 --- /dev/null +++ b/src/views/eam/equipmentInspectionRecordMain/equipmentInspectionRecordMain.data.ts @@ -0,0 +1,432 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentInspectionRecordMainRules = reactive({ + number: [required], + equipmentCode: [required], + planNumber: [required], + planStartTime: [required], + planEndTime: [required], + startTime: [required], + endTime: [required], + concurrencyStamp: [required] +}) + +export const EquipmentInspectionRecordMain = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '巡检工单编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '描述', + field: 'describing', + sort: 'custom', + isSearch: true + }, + { + label: '设备编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '类型设备或工装', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '是否拍照', + field: 'isPictures', + sort: 'custom', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '巡检计划工单号', + field: 'planNumber', + sort: 'custom', + isSearch: true + }, + { + label: '计划开始时间', + field: 'planStartTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '计划结束时间', + field: 'planEndTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '巡检开始时间', + field: 'startTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '巡检结束时间', + field: 'endTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '班组', + field: 'classType', + sort: 'custom', + dictType: DICT_TYPE.BASIC_TEAM_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '验证人', + field: 'verifyer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '验证内容', + field: 'verifyContent', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '验证时间', + field: 'verifyTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '巡检人', + field: 'maintenancer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '完成时间', + field: 'completionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '保养时间', + field: 'maintenanceTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '流程状态枚举0:待派工1:已逾期2:已退单3:待接单4:待执行5:执行中6:待验证7:已完成8:已作废', + field: 'status', + sort: 'custom', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '自动接单', + field: 'autoOrder', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '自动执行', + field: 'autoPerform', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '自动验证', + field: 'autoVerify', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '直接生成记录', + field: 'directCreateRecord', + sort: 'custom', + isSearch: true + }, + { + label: '故障类型枚举', + field: 'faultType', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '所属厂区编号', + field: 'factoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '车间编号', + field: 'workshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '工段编号', + field: 'workshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentInspectionRecordMain/index.vue b/src/views/eam/equipmentInspectionRecordMain/index.vue new file mode 100644 index 000000000..bae32385b --- /dev/null +++ b/src/views/eam/equipmentInspectionRecordMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentMaintenanceRecordDetail/equipmentMaintenanceRecordDetail.data.ts b/src/views/eam/equipmentMaintenanceRecordDetail/equipmentMaintenanceRecordDetail.data.ts new file mode 100644 index 000000000..f648e00bc --- /dev/null +++ b/src/views/eam/equipmentMaintenanceRecordDetail/equipmentMaintenanceRecordDetail.data.ts @@ -0,0 +1,233 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentMaintenanceRecordDetailRules = reactive({ + number: [required], + masterId: [required], + name: [required], + equipmentParts: [required], + concurrencyStamp: [required] +}) + +export const EquipmentMaintenanceRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '保养工单号', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '主表', + field: 'masterId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '人数', + field: 'peoples', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '预计分钟', + field: 'estimatedMinutes', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '实际分钟', + field: 'actualMinutes', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '责任人多选', + field: 'chargePeoples', + sort: 'custom', + isSearch: true + }, + { + label: '完成时间', + field: 'completionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '未完成原因', + field: 'uncompletedCause', + sort: 'custom', + isSearch: true + }, + { + label: '结果枚举', + field: 'result', + sort: 'custom', + dictType: DICT_TYPE.IS_COMPLETED, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '保养名称', + field: 'name', + sort: 'custom', + isSearch: true + }, + { + label: '保养要求', + field: 'content', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '保养部位', + field: 'equipmentParts', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用默认TRUE', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentMaintenanceRecordDetail/index.vue b/src/views/eam/equipmentMaintenanceRecordDetail/index.vue new file mode 100644 index 000000000..87a9e8567 --- /dev/null +++ b/src/views/eam/equipmentMaintenanceRecordDetail/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentMaintenanceRecordMain/equipmentMaintenanceRecordMain.data.ts b/src/views/eam/equipmentMaintenanceRecordMain/equipmentMaintenanceRecordMain.data.ts new file mode 100644 index 000000000..639b44cba --- /dev/null +++ b/src/views/eam/equipmentMaintenanceRecordMain/equipmentMaintenanceRecordMain.data.ts @@ -0,0 +1,290 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentMaintenanceRecordMainRules = reactive({ + number: [required], + equipmentCode: [required], + planNumber: [required], + status: [required], + factoryAreaCode: [required], + concurrencyStamp: [required] +}) + +export const EquipmentMaintenanceRecordMain = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '保养工单编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '描述', + field: 'describing', + sort: 'custom', + isSearch: true + }, + { + label: '设备编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '设备类别', + field: 'category', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '班次枚举', + field: 'classes', + sort: 'custom', + dictType: DICT_TYPE.SHIFT_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '保养计划工单号', + field: 'planNumber', + sort: 'custom', + isSearch: true + }, + { + label: '故障类型枚举', + field: 'faultType', + sort: 'custom', + dictType: DICT_TYPE.FAILURE_REASON, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '保养周期', + field: 'cycle', + sort: 'custom', + dictType: DICT_TYPE.MAINTENANCE_CYCLE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '保养次数', + field: 'times', + sort: 'custom', + isSearch: true + }, + { + label: '验证人', + field: 'verifyer2', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '验证内容', + field: 'verifyContent2', + sort: 'custom', + isSearch: true + }, + { + label: '验证时间', + field: 'verifyTime2', + sort: 'custom', + isSearch: true + }, + { + label: '保养人', + field: 'maintenancer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '保养人联系电话', + field: 'maintenancePhone', + sort: 'custom', + isSearch: true + }, + { + label: '结果枚举临时措施、完成', + field: 'completeResult', + sort: 'custom', + isSearch: true + }, + { + label: '完成时间', + field: 'completionTime2', + sort: 'custom', + isSearch: true + }, + { + label: '保养时间', + field: 'maintenanceTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '流程状态枚举', + field: 'status', + sort: 'custom', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '所属厂区编号', + field: 'factoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '车间编号', + field: 'workshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '工段编号', + field: 'workshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用默认TRUE', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentMaintenanceRecordMain/index.vue b/src/views/eam/equipmentMaintenanceRecordMain/index.vue new file mode 100644 index 000000000..aa2805fa7 --- /dev/null +++ b/src/views/eam/equipmentMaintenanceRecordMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentRepairRecordDetail/equipmentRepairRecordDetail.data.ts b/src/views/eam/equipmentRepairRecordDetail/equipmentRepairRecordDetail.data.ts new file mode 100644 index 000000000..389383011 --- /dev/null +++ b/src/views/eam/equipmentRepairRecordDetail/equipmentRepairRecordDetail.data.ts @@ -0,0 +1,154 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentRepairRecordDetailRules = reactive({ + number: [required], + concurrencyStamp: [required] +}) + +export const EquipmentRepairRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '维修工单号', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '主表', + field: 'masterId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '故障描述', + field: 'describing', + sort: 'custom', + isSearch: true + }, + { + label: '故障真因', + field: 'faultCause', + sort: 'custom', + isSearch: true + }, + { + label: '解决措施', + field: 'workOut', + sort: 'custom', + isSearch: true + }, + { + label: '维修人员字符串多个', + field: 'maintenances', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用默认TRUE', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentRepairRecordDetail/index.vue b/src/views/eam/equipmentRepairRecordDetail/index.vue new file mode 100644 index 000000000..3c55b1ec7 --- /dev/null +++ b/src/views/eam/equipmentRepairRecordDetail/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentRepairRecordMain/equipmentRepairRecordMain.data.ts b/src/views/eam/equipmentRepairRecordMain/equipmentRepairRecordMain.data.ts new file mode 100644 index 000000000..17294d58a --- /dev/null +++ b/src/views/eam/equipmentRepairRecordMain/equipmentRepairRecordMain.data.ts @@ -0,0 +1,458 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentRepairRecordMainRules = reactive({ + number: [required], + type: [required], + sources: [required], + urgency: [required], + level: [required], + equipmentCode: [required], + totalMinutes: [required], + faultType: [required], + concurrencyStamp: [required] +}) + +export const EquipmentRepairRecordMain = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '维修编号', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '设备或工装字典', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '报修工单申请号', + field: 'repairNumber', + sort: 'custom', + isSearch: true + }, + { + label: '来源字典0:报修工单1:临时工单', + field: 'sources', + sort: 'custom', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '维修描述', + field: 'maintenanceDesc', + sort: 'custom', + isSearch: true + }, + { + label: '紧急程度字典0:紧急故障1:重要故障2:一般故障', + field: 'urgency', + sort: 'custom', + dictType: DICT_TYPE.REPAIR_DEGREE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '维修级别0:大修1:中修2:小修', + field: 'level', + sort: 'custom', + dictType: DICT_TYPE.REPAIR_LEVEL, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '设备编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '是否停机1不停机0停机', + field: 'shutDown', + sort: 'custom', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '维修开始时间手输', + field: 'startTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '维修结束时间手输', + field: 'endTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '维修时间自动计算分钟', + field: 'totalMinutes', + sort: 'custom', + isSearch: true + }, + { + label: '验证人', + field: 'verifyer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '验证内容', + field: 'verifyContent', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '验证时间', + field: 'verifyTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '执行人', + field: 'maintenancer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '维修人联系电话', + field: 'maintenancePhone', + sort: 'custom', + isSearch: true + }, + { + label: '结果枚举临时措施、完成', + field: 'completeResult', + sort: 'custom', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '完成时间', + field: 'completionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '执行时间', + field: 'maintenanceTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '报修时间', + field: 'repairTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '报修人', + field: 'repairer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '故障类型关联基础数据', + field: 'faultType', + sort: 'custom', + dictType: DICT_TYPE.FAILURE_REASON, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '流程状态枚举0:待派工1:已逾期2:已退单3:待接单4:待执行5:执行中6:待验证7:已完成8:已作废', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '自动接单', + field: 'autoOrder', + sort: 'custom', + isSearch: true + }, + { + label: '自动执行', + field: 'autoPerform', + sort: 'custom', + isSearch: true + }, + { + label: '自动验证', + field: 'autoVerify', + sort: 'custom', + isSearch: true + }, + { + label: '直接生成记录', + field: 'directCreateRecord', + sort: 'custom', + isSearch: true + }, + { + label: '班组类型', + field: 'classType', + sort: 'custom', + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '所属厂区编号', + field: 'factoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '车间编号', + field: 'workshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '工段编号', + field: 'workshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门id', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点ID', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用默认TRUE', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人id', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentRepairRecordMain/index.vue b/src/views/eam/equipmentRepairRecordMain/index.vue new file mode 100644 index 000000000..d06fdd899 --- /dev/null +++ b/src/views/eam/equipmentRepairRecordMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts b/src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts new file mode 100644 index 000000000..b7bd02756 --- /dev/null +++ b/src/views/eam/equipmentReportRepairRequest/equipmentReportRepairRequest.data.ts @@ -0,0 +1,282 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentReportRepairRequestRules = reactive({ + number: [required], + type: [required], + equipmentCode: [required], + urgency: [required], + repairmaner: [required], + status: [required], + concurrencyStamp: [required] +}) + +export const EquipmentReportRepairRequest = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '编号唯一标识', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '设备或工装字典', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '设备或工装编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '紧急程度字典0:紧急故障1:重要故障2:一般故障', + field: 'urgency', + sort: 'custom', + dictType: DICT_TYPE.FAILURE_DEGREE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '故障类型枚举', + field: 'faultType', + sort: 'custom', + dictType: DICT_TYPE.FAILURE_REASON, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '故障描述', + field: 'describing', + sort: 'custom', + isSearch: true + }, + { + label: '是否停机1不停机0停机', + field: 'shutDown', + sort: 'custom', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '报修图片最多三张', + field: 'images', + sort: 'custom', + isSearch: true + }, + { + label: '所属厂区编号', + field: 'factoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '车间编号', + field: 'workshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '工段编号', + field: 'workshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '报修人', + field: 'repairmaner', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '报修人联系电话', + field: 'repairPhone', + sort: 'custom', + isSearch: true + }, + { + label: '报修状态0:待审核1:已撤回2:审核中3:已通过4:已驳回5:已创建6:已确认', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '审核人', + field: 'approver', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '审核内容', + field: 'approveContent', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '审核时间', + field: 'approveTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '自动审核', + field: 'autoExamine', + sort: 'custom', + isSearch: true + }, + { + label: '自动通过', + field: 'autoAgree', + sort: 'custom', + isSearch: true + }, + { + label: '自动确认', + field: 'autoVerify', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用默认TRUE', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人id', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentReportRepairRequest/index.vue b/src/views/eam/equipmentReportRepairRequest/index.vue new file mode 100644 index 000000000..fa2a2bfd4 --- /dev/null +++ b/src/views/eam/equipmentReportRepairRequest/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentSpotCheckRecordDetail/equipmentSpotCheckRecordDetail.data.ts b/src/views/eam/equipmentSpotCheckRecordDetail/equipmentSpotCheckRecordDetail.data.ts new file mode 100644 index 000000000..0ffa3a064 --- /dev/null +++ b/src/views/eam/equipmentSpotCheckRecordDetail/equipmentSpotCheckRecordDetail.data.ts @@ -0,0 +1,199 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentSpotCheckRecordDetailRules = reactive({ + number: [required], + masterId: [required], + name: [required], + concurrencyStamp: [required] +}) + +export const EquipmentSpotCheckRecordDetail = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '点检工单号', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '主表', + field: 'masterId', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '完成时间', + field: 'completionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '未完成原因', + field: 'uncompletedCause', + sort: 'custom', + isSearch: true + }, + { + label: '结果枚举', + field: 'result', + sort: 'custom', + dictType: DICT_TYPE.IS_COMPLETED, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true + }, + { + label: '名称自动带出', + field: 'name', + sort: 'custom', + isSearch: true + }, + { + label: '点检内容自动带出', + field: 'content', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '点检部位自动带出', + field: 'equipmentParts', + sort: 'custom', + isSearch: true + }, + { + label: '点检方法自动带出', + field: 'methods', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentSpotCheckRecordDetail/index.vue b/src/views/eam/equipmentSpotCheckRecordDetail/index.vue new file mode 100644 index 000000000..3b61dcfc4 --- /dev/null +++ b/src/views/eam/equipmentSpotCheckRecordDetail/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentSpotCheckRecordMain/equipmentSpotCheckRecordMain.data.ts b/src/views/eam/equipmentSpotCheckRecordMain/equipmentSpotCheckRecordMain.data.ts new file mode 100644 index 000000000..ce50ab39f --- /dev/null +++ b/src/views/eam/equipmentSpotCheckRecordMain/equipmentSpotCheckRecordMain.data.ts @@ -0,0 +1,428 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentSpotCheckRecordMainRules = reactive({ + number: [required], + equipmentCode: [required], + planNumber: [required], + planStartTime: [required], + planEndTime: [required], + startTime: [required], + endTime: [required], + concurrencyStamp: [required] +}) + +export const EquipmentSpotCheckRecordMain = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '点检编号', + field: 'number', + sort: 'custom', + isSearch: true + }, + { + label: '描述', + field: 'describing', + sort: 'custom', + isSearch: true + }, + { + label: '设备工装编号', + field: 'equipmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '类型设备或工装', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '计划工单号', + field: 'planNumber', + sort: 'custom', + isSearch: true + }, + { + label: '计划开始时间', + field: 'planStartTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '计划结束时间', + field: 'planEndTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '点检开始时间', + field: 'startTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '点检结束时间', + field: 'endTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '故障类型枚举', + field: 'faultType', + sort: 'custom', + dictType: DICT_TYPE.FAILURE_REASON, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '验证人', + field: 'verifyer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '验证内容', + field: 'verifyContent', + sort: 'custom', + isSearch: true, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + { + label: '验证时间', + field: 'verifyTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '点检人', + field: 'maintenancer', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '完成时间', + field: 'completionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '点检时间', + field: 'maintenanceTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '是否拍照', + field: 'isPictures', + sort: 'custom', + dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '流程状态枚举0:待派工1:已逾期2:已退单3:待接单4:待执行5:执行中6:待验证7:已完成8:已作废', + field: 'status', + sort: 'custom', + dictType: DICT_TYPE.JOB_STATUS, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Radio' + } + }, + { + label: '自动接单', + field: 'autoOrder', + sort: 'custom', + isSearch: true + }, + { + label: '自动执行', + field: 'autoPerform', + sort: 'custom', + isSearch: true + }, + { + label: '自动验证', + field: 'autoVerify', + sort: 'custom', + isSearch: true + }, + { + label: '直接生成记录', + field: 'directCreateRecord', + sort: 'custom', + isSearch: true + }, + { + label: '班组类型', + field: 'classType', + sort: 'custom', + dictType: DICT_TYPE.BASIC_TEAM_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '所属厂区编号', + field: 'factoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '车间编号', + field: 'workshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '工段编号', + field: 'workshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentSpotCheckRecordMain/index.vue b/src/views/eam/equipmentSpotCheckRecordMain/index.vue new file mode 100644 index 000000000..de944c61b --- /dev/null +++ b/src/views/eam/equipmentSpotCheckRecordMain/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/eam/equipmentTransferRecord/equipmentTransferRecord.data.ts b/src/views/eam/equipmentTransferRecord/equipmentTransferRecord.data.ts new file mode 100644 index 000000000..5ba8807c5 --- /dev/null +++ b/src/views/eam/equipmentTransferRecord/equipmentTransferRecord.data.ts @@ -0,0 +1,207 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EquipmentTransferRecordRules = reactive({ + equipmentCode: [required], + concurrencyStamp: [required] +}) + +export const EquipmentTransferRecord = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false + }, + { + label: '设备编码', + field: 'equipmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '设备类型枚举', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'SelectV2' + } + }, + { + label: '操作日期', + field: 'operationDate', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '操作人', + field: 'operationer', + sort: 'custom', + isSearch: true + }, + { + label: '原所属厂区编号', + field: 'beforeFactoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '原地点', + field: 'beforeLocation', + sort: 'custom', + isSearch: true + }, + { + label: '原车间编号', + field: 'beforeWorkshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '原工段编号', + field: 'beforeWorkshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '现地点', + field: 'nowLocation', + sort: 'custom', + isSearch: true + }, + { + label: '所属厂区编号', + field: 'factoryAreaCode', + sort: 'custom', + isSearch: true + }, + { + label: '车间编号', + field: 'workshopCode', + sort: 'custom', + isSearch: true + }, + { + label: '工段编号', + field: 'workshopSectionCode', + sort: 'custom', + isSearch: true + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false + }, + { + label: '部门', + field: 'departmentCode', + sort: 'custom', + isSearch: true + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isSearch: true + }, + { + label: '是否可用默认TRUE', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + } + }, + { + label: '删除人', + field: 'deleterId', + sort: 'custom', + isSearch: true + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/eam/equipmentTransferRecord/index.vue b/src/views/eam/equipmentTransferRecord/index.vue new file mode 100644 index 000000000..f90ae8def --- /dev/null +++ b/src/views/eam/equipmentTransferRecord/index.vue @@ -0,0 +1,244 @@ + + +