From e3230555a02320ebd02ecf30fbdbf555af77b2b0 Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 10 Jun 2026 12:23:18 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=96=B0=E5=A2=9E=E6=A8=A1?= =?UTF-8?q?=E5=85=B7=E4=BF=9D=E5=85=BB=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.js | 60 ++ src/locales/index.js | 5 +- src/locales/zh-CN.js | 60 ++ src/pages.json | 23 +- src/pages_function/pages/moldMaintain/add.vue | 721 ++++++++++++++++++ .../pages/moldMaintain/detail.vue | 424 ++++++++++ .../pages/moldMaintain/index.vue | 560 ++++++++++++++ src/utils/permissionMenu.js | 4 + 8 files changed, 1855 insertions(+), 2 deletions(-) create mode 100644 src/pages_function/pages/moldMaintain/add.vue create mode 100644 src/pages_function/pages/moldMaintain/detail.vue create mode 100644 src/pages_function/pages/moldMaintain/index.vue 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 @@ +