diff --git a/src/locales/en-US.js b/src/locales/en-US.js
index 89dcbf1..cc495b4 100644
--- a/src/locales/en-US.js
+++ b/src/locales/en-US.js
@@ -1126,6 +1126,66 @@ export default {
submitFailed: 'Failed to submit inspection',
reInspect: 'Re-inspect'
},
+ moldMaintain: {
+ moduleName: 'Mold Maintenance',
+ addTitle: 'Add Maintenance',
+ detailTitle: 'Maintenance Detail',
+ searchPlaceholder: 'Enter maintenance No.',
+ empty: 'No maintenance records',
+ add: 'Add',
+ moldName: 'Mold Name',
+ moldCode: 'Mold Code',
+ product: 'Product',
+ status: 'Status',
+ taskType: 'Task Type',
+ taskTypeInspect: 'Inspection',
+ taskTypeMaintain: 'Maintenance',
+ planNo: 'Maintenance No.',
+ taskTime: 'Task Time',
+ template: 'Template',
+ operator: 'Operator',
+ jobResultOk: 'OK',
+ jobResultNg: 'NG',
+ progressTitle: 'Progress',
+ noResultData: 'No maintenance result data',
+ requiredText: 'Required',
+ inspectionMethod: 'Maintenance Method',
+ judgmentCriteria: 'Judgment Criteria',
+ textInput: 'Input Value',
+ inputPlaceholder: 'Enter value',
+ images: 'Images',
+ remark: 'Remark',
+ resultText: 'Result',
+ inspectionResultPass: 'Pass',
+ inspectionResultFail: 'Fail',
+ inspectionResultPending: 'Pending',
+ maxUploadCount: 'Max 3 images',
+ selectAllDecisionError: 'Please select all maintenance results',
+ currentMoldInfo: 'Mold Info',
+ moldGroupCode: 'Mold Group Code',
+ moldGroupName: 'Mold Group Name',
+ cavityCount: 'Cavity Count',
+ moldSize: 'Mold Size',
+ currentDevice: 'Current Device',
+ selectMold: 'Select Mold',
+ reSelectMold: 'Re-select Mold',
+ selectMoldError: 'Please select a mold',
+ searchMold: 'Enter mold name',
+ noMoldInfo: 'Please select a mold',
+ noMoldData: 'No molds available',
+ taskName: 'Task Name',
+ taskInfo: 'Task Info',
+ placeholderTaskName: 'Enter task name',
+ templateSelection: 'Template/Task Selection',
+ selectTemplate: 'Select Template',
+ selectTemplateError: 'Please select maintenance template',
+ noItems: 'Please select maintenance template first',
+ noTemplate: 'No templates',
+ submit: 'Submit Maintenance',
+ submitSuccess: 'Maintenance submitted successfully',
+ submitFailed: 'Failed to submit maintenance',
+ reInspect: 'Re-maintain'
+ },
moldRepair: {
moduleName: 'Mold Repair',
createTitle: 'Create Mold Repair',
diff --git a/src/locales/index.js b/src/locales/index.js
index 7d2c852..912cd2c 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -127,7 +127,10 @@ const literalMap = {
'模具详情': 'moldLedger.detailTitle',
'模具点检': 'moldCheck.moduleName',
'点检详情': 'moldCheck.detailTitle',
- '新增点检': 'moldCheck.addTitle'
+ '新增点检': 'moldCheck.addTitle',
+ '模具保养': 'moldMaintain.moduleName',
+ '保养详情': 'moldMaintain.detailTitle',
+ '新增保养': 'moldMaintain.addTitle'
}
export function getCurrentLocale() {
diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js
index 55b3315..2c20153 100644
--- a/src/locales/zh-CN.js
+++ b/src/locales/zh-CN.js
@@ -1129,6 +1129,66 @@ export default {
submitFailed: '点检提交失败',
reInspect: '再次点检'
},
+ moldMaintain: {
+ moduleName: '模具保养',
+ addTitle: '新增保养',
+ detailTitle: '保养详情',
+ searchPlaceholder: '请输入保养单号',
+ empty: '暂无保养记录',
+ add: '新增',
+ moldName: '模具名称',
+ moldCode: '模具编号',
+ product: '产品',
+ status: '状态',
+ taskType: '任务类型',
+ taskTypeInspect: '点检',
+ taskTypeMaintain: '保养',
+ planNo: '保养单号',
+ taskTime: '执行时间',
+ template: '配置模板',
+ operator: '操作员',
+ jobResultOk: '通过',
+ jobResultNg: '不通过',
+ progressTitle: '进度',
+ noResultData: '暂无保养结果数据',
+ requiredText: '必检',
+ inspectionMethod: '保养方式',
+ judgmentCriteria: '判定基准',
+ textInput: '输入值',
+ inputPlaceholder: '请输入',
+ images: '图片',
+ remark: '备注',
+ resultText: '结果',
+ inspectionResultPass: '通过',
+ inspectionResultFail: '不通过',
+ inspectionResultPending: '待判定',
+ maxUploadCount: '最多上传3张图片',
+ selectAllDecisionError: '请选择所有保养项的判定结果',
+ currentMoldInfo: '模具信息',
+ moldGroupCode: '模具组编码',
+ moldGroupName: '模具组名称',
+ cavityCount: '模穴数',
+ moldSize: '模具尺寸',
+ currentDevice: '当前设备',
+ selectMold: '选择模具',
+ reSelectMold: '重新选择模具',
+ selectMoldError: '请选择模具',
+ searchMold: '请输入模具名称',
+ noMoldInfo: '请选择模具',
+ noMoldData: '暂无可选模具',
+ taskName: '任务名称',
+ taskInfo: '任务信息',
+ placeholderTaskName: '请输入任务名称',
+ templateSelection: '模板/任务选择',
+ selectTemplate: '请选择模板',
+ selectTemplateError: '请选择保养模板',
+ noItems: '请先选择保养模板',
+ noTemplate: '暂无模板',
+ submit: '提交保养',
+ submitSuccess: '保养提交成功',
+ submitFailed: '保养提交失败',
+ reInspect: '再次保养'
+ },
moldRepair: {
moduleName: '模具维修',
createTitle: '新增模具维修',
diff --git a/src/pages.json b/src/pages.json
index 36ea8fe..4baf57e 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -721,9 +721,30 @@
"navigationBarTitleText": "新增点检",
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "moldMaintain/index",
+ "style": {
+ "navigationBarTitleText": "模具保养",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "moldMaintain/detail",
+ "style": {
+ "navigationBarTitleText": "保养详情",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "moldMaintain/add",
+ "style": {
+ "navigationBarTitleText": "新增保养",
+ "navigationStyle": "custom"
+ }
}
]
}
],
"preloadRule": {}
-}
\ No newline at end of file
+}
diff --git a/src/pages_function/pages/moldMaintain/add.vue b/src/pages_function/pages/moldMaintain/add.vue
new file mode 100644
index 0000000..8c04e89
--- /dev/null
+++ b/src/pages_function/pages/moldMaintain/add.vue
@@ -0,0 +1,721 @@
+
+
+
+
+
+
+
+
+
+
+ {{ t('moldMaintain.selectMold') }}*
+
+
+ {{ moldInfo.id ? (moldInfo.name || moldInfo.code || '-') : t('moldMaintain.selectMold') }}
+ {{ moldInfo.code || t('moldMaintain.reSelectMold') }}
+
+
+
+
+
+
+
+ {{ t('moldMaintain.moldGroupCode') }}
+ {{ moldInfo.code || '-' }}
+
+
+ {{ t('moldMaintain.moldGroupName') }}
+ {{ moldInfo.name || '-' }}
+
+
+ {{ t('moldMaintain.cavityCount') }}
+ {{ moldInfo.moldSize || '-' }}
+
+
+ {{ t('moldMaintain.product') }}
+ {{ moldInfo.productName || '-' }}
+
+
+ {{ t('moldMaintain.status') }}
+ {{ moldInfo.statusLabel || '-' }}
+
+
+ {{ t('moldMaintain.currentDevice') }}
+ {{ moldInfo.currentDevice || '-' }}
+
+
+
+
+
+
+
+
+
+ {{ t('moldMaintain.taskName') }}*
+
+
+
+ {{ t('moldMaintain.templateSelection') }}*
+
+ {{ selectedTemplate?.planName || t('moldMaintain.selectTemplate') }}
+
+
+
+
+
+
+ {{ t('moldMaintain.noItems') }}
+
+
+
+
+
+ {{ t('moldMaintain.inspectionMethod') }}
+ {{ inspectionMethodText(item.inspectionMethod) }}
+
+
+ {{ t('moldMaintain.judgmentCriteria') }}
+ {{ textValue(item.judgmentCriteria) }}
+
+
+ {{ t('moldMaintain.textInput') }}
+
+
+
+
+
+ {{ t('moldMaintain.textInput') }}
+
+
+
+ {{ t('moldMaintain.images') }}
+
+
+
+ 脳
+
+
+ +
+
+
+
+
+ {{ t('moldMaintain.remark') }}
+
+
+
+ {{ t('moldMaintain.resultText') }}
+
+
+ {{ t('moldMaintain.inspectionResultPass') }}
+
+
+ {{ t('moldMaintain.inspectionResultFail') }}
+
+ {{ t('moldMaintain.inspectionResultPending') }}
+
+
+
+
+
+
+
+
+
+ {{ t('dashboard.back') }}
+ {{ t('moldMaintain.submit') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/moldMaintain/detail.vue b/src/pages_function/pages/moldMaintain/detail.vue
new file mode 100644
index 0000000..74dd47b
--- /dev/null
+++ b/src/pages_function/pages/moldMaintain/detail.vue
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
+
+ {{ textValue(detailData.moldName) }}
+
+
+ {{ t('moldMaintain.taskType') }}:
+ {{ planTypeText }}
+
+
+ {{ t('moldMaintain.planNo') }}:
+ {{ textValue(detailData.planNo) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('moldMaintain.noResultData') }}
+
+
+
+
+
+ {{ t('moldMaintain.inspectionMethod') }}
+ {{ inspectionMethodText(item.inspectionMethod) }}
+
+
+ {{ t('moldMaintain.judgmentCriteria') }}
+ {{ textValue(item.judgmentCriteria) }}
+
+
+
+ {{ t('moldMaintain.textInput') }}
+
+
+
+
+
+ {{ t('moldMaintain.textInput') }}
+
+ {{ textInputDisplay(item) }}
+
+
+
+ {{ t('moldMaintain.images') }}
+
+
+
+ 脳
+
+
+ +
+
+
+
+
+
+ {{ t('moldMaintain.remark') }}
+ {{ textValue(item.remark) }}
+
+
+
+ {{ t('moldMaintain.resultText') }}
+
+
+ {{ t('moldMaintain.inspectionResultPass') }}
+
+
+ {{ t('moldMaintain.inspectionResultFail') }}
+
+ {{ t('moldMaintain.inspectionResultPending') }}
+
+
+
+
+
+
+
+
+
+ {{ t('dashboard.back') }}
+ {{ t('functionCommon.save') }}
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/moldMaintain/index.vue b/src/pages_function/pages/moldMaintain/index.vue
new file mode 100644
index 0000000..9d1eea3
--- /dev/null
+++ b/src/pages_function/pages/moldMaintain/index.vue
@@ -0,0 +1,560 @@
+
+
+
+
+
+
+
+
+
+
+ {{ currentJobStatusLabel }}
+
+
+
+ {{ t('functionCommon.reset') }}
+
+
+
+
+
+
+
+
+ {{ t('moldMaintain.moldName') }}
+ {{ textValue(item.moldName) }}
+
+
+ {{ t('moldMaintain.template') }}
+ {{ textValue(item.configName) }}
+
+
+ {{ t('moldMaintain.operator') }}
+ {{ textValue(item.operatorName) }}
+
+
+ {{ t('moldMaintain.taskTime') }}
+ {{ formatDateTime(item.taskTime) }}
+
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('moldMaintain.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMoreData') }}
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
diff --git a/src/utils/permissionMenu.js b/src/utils/permissionMenu.js
index a4e6847..cb7d935 100644
--- a/src/utils/permissionMenu.js
+++ b/src/utils/permissionMenu.js
@@ -30,6 +30,10 @@ const MENU_ROUTE_MAP = {
moldtaskconfig: '/pages_function/pages/moldTaskConfiguration/index',
'点检记录': '/pages_function/pages/moldWorkOrderInquiry/index',
moldworkorderinquiry: '/pages_function/pages/moldWorkOrderInquiry/index',
+ '模具保养': '/pages_function/pages/moldMaintain/index',
+ '保养记录': '/pages_function/pages/moldMaintain/index',
+ moldmaintain: '/pages_function/pages/moldMaintain/index',
+ moldmaintenance: '/pages_function/pages/moldMaintain/index',
'产品物料分类': '/pages_function/pages/materialCategory/index',
materialcategory: '/pages_function/pages/materialCategory/index',
'产品物料信息': '/pages_function/pages/materialInfo/index',