diff --git a/docs/迁移任务列表.md b/docs/迁移任务列表.md index a74ea810..dd19aac5 100644 --- a/docs/迁移任务列表.md +++ b/docs/迁移任务列表.md @@ -3,8 +3,8 @@ > 根据 `后台Webman界面截图对照表.md` 生成。状态以当前 V2 项目中已落地的页面目录为准。 - 总功能数:79 -- 已迁移:25 -- 未迁移:54 +- 已迁移:26 +- 未迁移:53 | 状态 | 一级模块 | 二级模块 | 三级模块 | 功能说明 | V2 目标路径 | |:---:|---|---|---|---|---| @@ -47,7 +47,7 @@ | ✅ | 计划与生产 (Planning & Production) | 生产批次管理 (Batch Management) | 批次托盘 (Tray Tracking) | 托盘跟踪与操作 | `src/views/planning-production/batch-management/tray-tracking/` | | ✅ | 计划与生产 (Planning & Production) | 生产批次管理 (Batch Management) | 生产批次不良报表 (Batch Defect Report) | 不良报表 | `src/views/planning-production/batch-management/batch-defect-report/` | | ✅ | 计划与生产 (Planning & Production) | 预警中心 (Alert Center) | 预警中心 (Alert Center) | 预警中心 | `src/views/planning-production/alert-center/` | -| ⬜ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 物料监控 (Material Monitoring) | 物料监控 | 待确认 | +| ✅ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 物料监控 (Material Monitoring) | 物料监控 | `src/views/planning-production/production-monitoring/material-monitoring/` | | ⬜ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 电池复投管理 (Rework Management) | 返工管理 | 待确认 | | ✅ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 托盘管理 (Tray Management) | 托盘管理 | `src/views/planning-production/production-monitoring/tray-management/` | | ✅ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 托盘登录 (Tray Registration) | 托盘登记 | `src/views/planning-production/production-monitoring/tray-registration/` | diff --git a/src/api/planning-production/material-monitoring.js b/src/api/planning-production/material-monitoring.js new file mode 100644 index 00000000..ed3ebe4d --- /dev/null +++ b/src/api/planning-production/material-monitoring.js @@ -0,0 +1,27 @@ +import { request } from '@/api/_service' + +const BASE = 'planning_production/wip/wip_management/' + +function apiParams (method, data = {}) { + return { + method, + platform: 'background', + ...data + } +} + +export function getWipDataList (data) { + return request({ + url: BASE + 'list', + method: 'get', + params: apiParams('planning_production_wip_wip_management_list', data) + }) +} + +export function createWipData (data) { + return request({ + url: BASE + 'create', + method: 'post', + data: apiParams('planning_production_wip_wip_management_create', data) + }) +} diff --git a/src/locales/en.json b/src/locales/en.json index 4f2ab477..e5c243a2 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1145,6 +1145,40 @@ "operation_success": "Operation successful", "operation_failed": "Operation failed", "format_rule": "Format rule: fixed characters are literal; use * for variable characters, e.g. A** or ******." + }, + "material_monitoring": { + "query": "Search", + "reset": "Reset", + "batch_no": "Batch Number", + "workingsubclass": "Process Unit", + "semi_finished_id": "Semi-finished ID", + "semi_product_code": "Semi-finished Product Code", + "output_quantity": "Output Quantity", + "production_device": "Production Equipment", + "last_status": "Material Status", + "finish_time": "Output Time", + "finished": "Completed", + "status_unused": "Unused", + "input_semi_product_data": "Enter Semi-finished Data", + "select_batch_id": "Please select production batch", + "batch_id": "Production Batch", + "select_workingsubclass": "Please select process unit", + "select_device_code": "Please select equipment code", + "device_code": "Device Code", + "enter_output_quantity": "Please enter output quantity", + "output_date": "Output Date", + "verify_failed": "Validation failed", + "operation_success": "Operation successful", + "confirm_operation": "Are you sure you want to proceed?", + "prompt": "Notice", + "confirm": "Confirm", + "cancel": "Cancel", + "select_process_flow": "Please select process flow", + "edit_batch": "Edit Batch", + "enter_batch_no": "Enter batch number", + "enter_semi_finished_id": "Enter semi-finished ID", + "start_time": "Start Time", + "end_time": "End Time" } }, "alert_center": { diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index fb0347a5..ecb74118 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -1145,6 +1145,40 @@ "operation_success": "操作成功", "operation_failed": "操作失败", "format_rule": "格式规则:固定字符直接填写,可变字符使用 * 代替,例如 A** 或 ******。" + }, + "material_monitoring": { + "query": "查询", + "reset": "重置", + "batch_no": "批次号", + "workingsubclass": "工序单元", + "semi_finished_id": "半成品ID", + "semi_product_code": "半成品编码", + "output_quantity": "产出数量", + "production_device": "生产设备", + "last_status": "物料状态", + "finish_time": "下料时间", + "finished": "已完成", + "status_unused": "未使用", + "input_semi_product_data": "录入半成品数据", + "select_batch_id": "请选择生产批次", + "batch_id": "生产批次", + "select_workingsubclass": "请选择工序单元", + "select_device_code": "请选择生产设备编码", + "device_code": "设备编码", + "enter_output_quantity": "请输入产出数量", + "output_date": "产出日期", + "verify_failed": "校验失败", + "operation_success": "操作成功", + "confirm_operation": "确定要执行该操作吗?", + "prompt": "提示", + "confirm": "确定", + "cancel": "取消", + "select_process_flow": "请选择工艺流程", + "edit_batch": "编辑批次", + "enter_batch_no": "请输入批次号", + "enter_semi_finished_id": "请输入半成品ID", + "start_time": "开始时间", + "end_time": "结束时间" } }, "alert_center": { diff --git a/src/router/modules/planning-production.js b/src/router/modules/planning-production.js index c3505678..528f8a02 100644 --- a/src/router/modules/planning-production.js +++ b/src/router/modules/planning-production.js @@ -32,6 +32,12 @@ export default { meta: { ...meta, cache: true, title: '生产批次不良报表' }, component: _import('planning-production/batch-management/batch-defect-report') }, + { + path: 'wip/wip_management/mock', + name: `${pre}wip-wip_management-mock`, + meta: { ...meta, cache: true, title: '物料监控' }, + component: _import('planning-production/production-monitoring/material-monitoring') + }, { path: 'produce/report/pin_check', name: `${pre}report-pin_check`, diff --git a/src/views/planning-production/production-monitoring/material-monitoring/index.vue b/src/views/planning-production/production-monitoring/material-monitoring/index.vue new file mode 100644 index 00000000..158b026b --- /dev/null +++ b/src/views/planning-production/production-monitoring/material-monitoring/index.vue @@ -0,0 +1,353 @@ + + + + + + + + + + + + + + + + + + + + + + {{ $t(key('query')) }} + + + {{ $t(key('reset')) }} + + + + + + + + + + {{ Number(row.last_status) === 0 ? $t(key('finished')) : $t(key('status_unused')) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t(key('cancel')) }} + + {{ $t(key('confirm')) }} + + + + + + +