diff --git a/src/api/mes/taskManagement.js b/src/api/mes/taskManagement.js
new file mode 100644
index 0000000..94b4d89
--- /dev/null
+++ b/src/api/mes/taskManagement.js
@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+export function getTaskManagementPage(params = {}) {
+ return request({
+ url: '/admin-api/mes/task-management/page',
+ method: 'get',
+ params
+ })
+}
+
+export function createTaskManagementTicket(id) {
+ return request({
+ url: '/admin-api/mes/task-management/createTicket',
+ method: 'post',
+ params: { id }
+ })
+}
diff --git a/src/locales/en-US.js b/src/locales/en-US.js
index aec4c29..6fa0784 100644
--- a/src/locales/en-US.js
+++ b/src/locales/en-US.js
@@ -451,6 +451,29 @@ export default {
planSelectTitle: 'Select Inspection Plans',
userSelectTitle: 'Select Operable Users'
},
+ equipmentInspectionTasks: {
+ moduleName: 'Equipment Inspection Tasks',
+ subTitle: 'Work order management for equipment inspection tasks',
+ detailTitle: 'Equipment Inspection Task Detail',
+ basicInfo: 'Basic Info',
+ name: 'Task Name',
+ taskType: 'Task Type',
+ taskTypeInspect: 'Inspection',
+ taskTypeMaintain: 'Maintenance',
+ deviceList: 'Device List',
+ projectFormName: 'Project Form',
+ dateRange: 'Valid Date Range',
+ cronExpression: 'Cron Expression',
+ operableUsers: 'Operable Users',
+ enabled: 'Enabled',
+ creatorName: 'Creator',
+ createTime: 'Created At',
+ updateTime: 'Updated At',
+ searchPlaceholder: 'Enter task name',
+ empty: 'No equipment inspection tasks',
+ createTicketSuccess: 'Work order created successfully',
+ createTicketFail: 'Work order creation failed'
+ },
moldWorkOrder: {
moduleName: 'Inspection Records',
subTitle: 'Mold management inspection records',
diff --git a/src/locales/index.js b/src/locales/index.js
index ecc3a94..f814f5a 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -113,6 +113,8 @@ const literalMap = {
'点检模板详情': 'moldInspectionPlan.detailTitle',
'点检任务': 'moldTaskConfig.moduleName',
'点检任务详情': 'moldTaskConfig.detailTitle',
+ '设备点检任务': 'equipmentInspectionTasks.moduleName',
+ '设备点检任务详情': 'equipmentInspectionTasks.detailTitle',
'点检记录': 'moldWorkOrder.moduleName',
'点检记录详情': 'moldWorkOrder.detailTitle'
}
diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js
index 81627d0..7c3896a 100644
--- a/src/locales/zh-CN.js
+++ b/src/locales/zh-CN.js
@@ -451,6 +451,29 @@ export default {
planSelectTitle: '选择点检模板',
userSelectTitle: '选择可操作用户'
},
+ equipmentInspectionTasks: {
+ moduleName: '设备点检任务',
+ subTitle: '设备点检任务工单管理',
+ detailTitle: '设备点检任务详情',
+ basicInfo: '基础信息',
+ name: '任务名称',
+ taskType: '任务类型',
+ taskTypeInspect: '点检',
+ taskTypeMaintain: '保养',
+ deviceList: '设备列表',
+ projectFormName: '项目方案',
+ dateRange: '有效日期',
+ cronExpression: 'Cron表达式',
+ operableUsers: '可操作用户',
+ enabled: '是否启用',
+ creatorName: '创建人',
+ createTime: '创建时间',
+ updateTime: '更新时间',
+ searchPlaceholder: '请输入任务名称',
+ empty: '暂无设备点检任务数据',
+ createTicketSuccess: '工单创建成功',
+ createTicketFail: '工单创建失败'
+ },
moldWorkOrder: {
moduleName: '点检记录',
subTitle: '模具管理点检记录查询',
diff --git a/src/pages.json b/src/pages.json
index cc2d1a0..239de0b 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -645,6 +645,20 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "equipmentInspectionTasks/index",
+ "style": {
+ "navigationBarTitleText": "设备点检任务",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "equipmentInspectionTasks/detail",
+ "style": {
+ "navigationBarTitleText": "设备点检任务详情",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "planList/index",
"style": {
diff --git a/src/pages_function/pages/equipmentInspectionTasks/detail.vue b/src/pages_function/pages/equipmentInspectionTasks/detail.vue
new file mode 100644
index 0000000..dd4292c
--- /dev/null
+++ b/src/pages_function/pages/equipmentInspectionTasks/detail.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+ {{ t('equipmentInspectionTasks.basicInfo') }}
+
+ {{ t('equipmentInspectionTasks.name') }}
+ {{ textValue(detailData.name) }}
+
+
+ {{ t('equipmentInspectionTasks.taskType') }}
+ {{ taskTypeText }}
+
+
+ {{ t('equipmentInspectionTasks.deviceList') }}
+ {{ deviceListText }}
+
+
+ {{ t('equipmentInspectionTasks.projectFormName') }}
+ {{ textValue(detailData.projectFormName) }}
+
+
+ {{ t('equipmentInspectionTasks.dateRange') }}
+ {{ formatDate(detailData.startDate) }} ~ {{ formatDate(detailData.endDate) }}
+
+
+ {{ t('equipmentInspectionTasks.cronExpression') }}
+ {{ textValue(detailData.cronExpression) }}
+
+
+ {{ t('equipmentInspectionTasks.operableUsers') }}
+ {{ textValue(detailData.operableUsers) }}
+
+
+ {{ t('equipmentInspectionTasks.enabled') }}
+ {{ enabledText(detailData.enabled) }}
+
+
+ {{ t('equipmentInspectionTasks.creatorName') }}
+ {{ textValue(detailData.creatorName) }}
+
+
+ {{ t('equipmentInspectionTasks.createTime') }}
+ {{ formatDateTime(detailData.createTime) }}
+
+
+ {{ t('equipmentInspectionTasks.updateTime') }}
+ {{ formatDateTime(detailData.updateTime) }}
+
+
+
+
+
+
+
+ {{ t('equipmentInspectionTasks.createTicket') }}
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/equipmentInspectionTasks/index.vue b/src/pages_function/pages/equipmentInspectionTasks/index.vue
new file mode 100644
index 0000000..eb296e7
--- /dev/null
+++ b/src/pages_function/pages/equipmentInspectionTasks/index.vue
@@ -0,0 +1,324 @@
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
+
+
+
+ {{ currentTaskTypeLabel }}
+
+ {{ t('functionCommon.reset') }}
+
+
+
+
+
+
+
+
+
+ {{ t('equipmentInspectionTasks.deviceList') }}
+ {{ getDeviceNames(item.deviceList) }}
+
+
+ {{ t('equipmentInspectionTasks.projectFormName') }}
+ {{ textValue(item.projectFormName) }}
+
+
+ {{ t('equipmentInspectionTasks.dateRange') }}
+ {{ formatDate(item.startDate) }} ~ {{ formatDate(item.endDate) }}
+
+
+ {{ t('equipmentInspectionTasks.enabled') }}
+ {{ enabledText(item.enabled) }}
+
+
+ {{ t('equipmentInspectionTasks.creatorName') }}
+ {{ textValue(item.creatorName) }}
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('equipmentInspectionTasks.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMoreData') }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/utils/permissionMenu.js b/src/utils/permissionMenu.js
index 9bf0596..d6daa94 100644
--- a/src/utils/permissionMenu.js
+++ b/src/utils/permissionMenu.js
@@ -43,6 +43,9 @@ const MENU_ROUTE_MAP = {
'设备维修': '/pages_function/pages/equipmentMaintenance/index',
equipmentmaintenance: '/pages_function/pages/equipmentMaintenance/index',
dvrepair: '/pages_function/pages/equipmentMaintenance/index',
+ '设备点检任务': '/pages_function/pages/equipmentInspectionTasks/index',
+ equipmentinspectiontasks: '/pages_function/pages/equipmentInspectionTasks/index',
+ taskmanagement: '/pages_function/pages/equipmentInspectionTasks/index',
'设备关键件': '/pages_function/pages/criticalComponent/index',
criticalcomponent: '/pages_function/pages/criticalComponent/index',
equipmentkeypart: '/pages_function/pages/equipmentKeypart/index',