diff --git a/src/api/mes/mold.js b/src/api/mes/mold.js index 12a9cf8..bbf6d52 100644 --- a/src/api/mes/mold.js +++ b/src/api/mes/mold.js @@ -80,6 +80,22 @@ export function getBrandList(params = {}) { }) } +export function createPressureNetRecord(data) { + return request({ + url: '/admin-api/erp/mold-pressure-net-record/batch-create', + method: 'post', + data + }) +} + +export function getPressureNetRecordPage(params = {}) { + return request({ + url: '/admin-api/erp/mold-pressure-net-record/page', + method: 'get', + params + }) +} + export function getInTransitMoldAllList() { return request({ url: '/admin-api/erp/mold/getInTransitMoldAllList', diff --git a/src/locales/en-US.js b/src/locales/en-US.js index cc495b4..376e3cb 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -1121,6 +1121,9 @@ export default { selectTemplateError: 'Please select inspection template', noItems: 'Please select inspection template first', noTemplate: 'No templates', + resultListTitle: 'Inspection Results', + editResult: 'Edit', + cancelEdit: 'Cancel Edit', submit: 'Submit Inspection', submitSuccess: 'Inspection submitted successfully', submitFailed: 'Failed to submit inspection', @@ -1181,11 +1184,57 @@ export default { selectTemplateError: 'Please select maintenance template', noItems: 'Please select maintenance template first', noTemplate: 'No templates', + resultListTitle: 'Inspection Results', + editResult: 'Edit', + cancelEdit: 'Cancel Edit', submit: 'Submit Maintenance', submitSuccess: 'Maintenance submitted successfully', submitFailed: 'Failed to submit maintenance', reInspect: 'Re-maintain' }, + moldPressureNet: { + moduleName: 'Replace Pressure Net', + recordTitle: 'Pressure Net Replacement', + recordDesc: 'Select mold group and sub-mold, then confirm replacement time', + history: 'History', + historyTitle: 'Pressure Net History', + moldGroup: 'Mold Group', + selectMoldGroup: 'Select Mold Group', + searchMoldGroup: 'Enter mold group name', + noMoldGroup: 'No mold groups', + moldGroupName: 'Mold Group Name', + moldGroupCode: 'Mold Group Code', + product: 'Product', + subMold: 'Sub-mold', + selectSubMold: 'Select Sub-mold', + reSelectMoldGroup: 'Re-select Mold Group', + reSelectSubMold: 'Re-select Sub-mold', + subMoldCode: 'Sub-mold Code', + subMoldName: 'Sub-mold Name', + searchSubMold: 'Search sub-mold name/code', + noSubMold: 'No sub-molds', + replaceInfo: 'Replacement Info', + replaceTime: 'Replacement Time', + pressureNetTime: 'Pressure Net Time', + selectReplaceTime: 'Select replacement time', + operator: 'Operator', + selectOperator: 'Select operator', + noOperator: 'No operators', + remark: 'Remark', + remarkPlaceholder: 'Enter replacement reason or remark', + confirmReplace: 'Confirm', + selectMoldGroupError: 'Please select a mold group', + selectSubMoldError: 'Please select a sub-mold', + selectedCount: '{count} sub-mold(s) selected', + selectReplaceTimeError: 'Please select replacement time', + submitSuccess: 'Saved successfully', + submitFailed: 'Save failed', + historyMoldIdPlaceholder: 'Enter sub-mold ID, blank for all', + searchBrandName: 'Mold Group Name', + selectDate: 'Select Date', + createTime: 'Create Time', + noHistory: 'No pressure net history' + }, moldRepair: { moduleName: 'Mold Repair', createTitle: 'Create Mold Repair', diff --git a/src/locales/index.js b/src/locales/index.js index 912cd2c..b8b4123 100644 --- a/src/locales/index.js +++ b/src/locales/index.js @@ -130,7 +130,9 @@ const literalMap = { '新增点检': 'moldCheck.addTitle', '模具保养': 'moldMaintain.moduleName', '保养详情': 'moldMaintain.detailTitle', - '新增保养': 'moldMaintain.addTitle' + '新增保养': 'moldMaintain.addTitle', + '更换压网': 'moldPressureNet.moduleName', + '压网历史': 'moldPressureNet.historyTitle' } export function getCurrentLocale() { diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 2c20153..0d41bc8 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -1124,6 +1124,9 @@ export default { selectTemplateError: '请选择点检模板', noItems: '请先选择点检模板', noTemplate: '暂无模板', + resultListTitle: '检验结果', + editResult: '编辑', + cancelEdit: '取消编辑', submit: '提交点检', submitSuccess: '点检提交成功', submitFailed: '点检提交失败', @@ -1184,11 +1187,57 @@ export default { selectTemplateError: '请选择保养模板', noItems: '请先选择保养模板', noTemplate: '暂无模板', + resultListTitle: '检验结果', + editResult: '编辑', + cancelEdit: '取消编辑', submit: '提交保养', submitSuccess: '保养提交成功', submitFailed: '保养提交失败', reInspect: '再次保养' }, + moldPressureNet: { + moduleName: '更换压网', + recordTitle: '压网更换记录', + recordDesc: '请选择模具组和子模,确认更换时间', + history: '历史数据', + historyTitle: '压网历史', + moldGroup: '模具组', + selectMoldGroup: '选择模具组', + searchMoldGroup: '请输入模具组名称', + noMoldGroup: '暂无模具组', + moldGroupName: '模具组名称', + moldGroupCode: '模具组编号', + product: '产品', + subMold: '子模', + selectSubMold: '选择子模', + reSelectMoldGroup: '重新选择模具组', + reSelectSubMold: '重新选择子模', + subMoldCode: '子模编码', + subMoldName: '子模名称', + searchSubMold: '搜索子模名称/编号', + noSubMold: '暂无子模', + replaceInfo: '更换信息', + replaceTime: '更换时间', + pressureNetTime: '压网时间', + selectReplaceTime: '请选择更换时间', + operator: '操作人', + selectOperator: '请选择操作人', + noOperator: '暂无操作人', + remark: '备注', + remarkPlaceholder: '请输入更换原因或备注', + confirmReplace: '确认更换', + selectMoldGroupError: '请选择模具组', + selectSubMoldError: '请选择子模', + selectedCount: '已选{count}个子模', + selectReplaceTimeError: '请选择更换时间', + submitSuccess: '压网更换保存成功', + submitFailed: '压网更换保存失败', + historyMoldIdPlaceholder: '输入子模ID筛选,不填查全部', + searchBrandName: '模具组名称', + selectDate: '选择日期', + createTime: '创建时间', + noHistory: '暂无压网历史记录' + }, moldRepair: { moduleName: '模具维修', createTitle: '新增模具维修', diff --git a/src/pages.json b/src/pages.json index 4baf57e..75e2bdf 100644 --- a/src/pages.json +++ b/src/pages.json @@ -742,6 +742,20 @@ "navigationBarTitleText": "新增保养", "navigationStyle": "custom" } + }, + { + "path": "moldPressureNet/index", + "style": { + "navigationBarTitleText": "更换压网", + "navigationStyle": "custom" + } + }, + { + "path": "moldPressureNet/history", + "style": { + "navigationBarTitleText": "压网历史", + "navigationStyle": "custom" + } } ] } diff --git a/src/pages_function/pages/moldCheck/add.vue b/src/pages_function/pages/moldCheck/add.vue index 0ba8050..8bf2a5f 100644 --- a/src/pages_function/pages/moldCheck/add.vue +++ b/src/pages_function/pages/moldCheck/add.vue @@ -1,10 +1,10 @@ -