From 1e2945d4a3020bd77b1227637c496e1b7708d0de Mon Sep 17 00:00:00 2001 From: sheng <905537351@qq.com> Date: Mon, 22 Jun 2026 19:24:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E8=B4=A8=E9=87=8F=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A6=96=E5=B7=A1=E6=A3=80=E9=A1=B9=E7=9B=AE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/质量管理功能测试任务列表.md | 10 + docs/迁移任务列表.md | 6 +- .../first-article-inspection-configuration.js | 39 +++ src/locales/en.json | 62 ++++ src/locales/zh-chs.json | 62 ++++ src/router/modules/quality-management.js | 6 + .../index.vue | 302 ++++++++++++++++++ 7 files changed, 484 insertions(+), 3 deletions(-) create mode 100644 src/api/quality-management/first-article-inspection-configuration.js create mode 100644 src/views/quality-management/process-control/first-article-inspection-configuration/index.vue diff --git a/docs/质量管理功能测试任务列表.md b/docs/质量管理功能测试任务列表.md index e06a2f19..3feb2c7a 100644 --- a/docs/质量管理功能测试任务列表.md +++ b/docs/质量管理功能测试任务列表.md @@ -10,3 +10,13 @@ - [ ] 编辑刚新增的数据,确认回显、保存和刷新后的字段值正确。 - [ ] 删除测试数据,确认二次确认弹窗、删除请求和列表刷新正常。 +## 首巡检项目配置 (First Article Inspection Configuration) + +- [ ] 通过菜单或地址 /quality_control/first_inspection/setting 打开页面,确认页面标题、查询区和列表区域正常显示。 +- [ ] 输入主要查询条件后点击查询,确认请求参数和列表刷新符合旧系统字段。 +- [ ] 点击重置,确认查询条件清空并回到第一页。 +- [ ] 切换分页大小和页码,确认列表数据、总数和加载状态正常。 +- [ ] 新增一条测试数据,确认必填校验、提交成功提示和列表刷新正常。 +- [ ] 编辑刚新增的数据,确认回显、保存和刷新后的字段值正确。 +- [ ] 删除测试数据,确认二次确认弹窗、删除请求和列表刷新正常。 + diff --git a/docs/迁移任务列表.md b/docs/迁移任务列表.md index 3bdd95ab..d033d3bb 100644 --- a/docs/迁移任务列表.md +++ b/docs/迁移任务列表.md @@ -3,8 +3,8 @@ > 根据 `后台Webman界面截图对照表.md` 生成。状态以当前 V2 项目中已落地的页面目录为准。 - 总功能数:79 -- 已迁移:49 -- 未迁移:30 +- 已迁移:50 +- 未迁移:29 | 状态 | 一级模块 | 二级模块 | 三级模块 | 功能说明 | V2 目标路径 | |:---:|---|---|---|---|---| @@ -54,7 +54,7 @@ | ✅ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 设备监控 (Equipment Monitoring) | 设备监控 | `src/views/planning-production/production-monitoring/equipment-monitoring/` | | ✅ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 电池工序管理 (Process Execution) | 工序管理 | `src/views/planning-production/production-monitoring/process-execution/` | | ✅ | 质量管理 (Quality Management) | 过程控制 (Process Control) | 检验类别管理 (Inspection Type Management) | | `src/views/quality-management/process-control/inspection-type-management/` | -| ⬜ | 质量管理 (Quality Management) | 过程控制 (Process Control) | 首巡检项目配置 (First Article Inspection Configuration) | | 待确认 | +| ✅ | 质量管理 (Quality Management) | 过程控制 (Process Control) | 首巡检项目配置 (First Article Inspection Configuration) | | `src/views/quality-management/process-control/first-article-inspection-configuration/` | | ⬜ | 质量管理 (Quality Management) | 过程控制 (Process Control) | 首巡检录入 (First Article Inspection Records) | | 待确认 | | ⬜ | 质量管理 (Quality Management) | 过程控制 (Process Control) | 首巡检报表 (First Article Inspection Reports) | | 待确认 | | ⬜ | 质量管理 (Quality Management) | 检验控制 (Inspection Management) | 检验单管理 (Inspection Orders) | | 待确认 | diff --git a/src/api/quality-management/first-article-inspection-configuration.js b/src/api/quality-management/first-article-inspection-configuration.js new file mode 100644 index 00000000..d529aa79 --- /dev/null +++ b/src/api/quality-management/first-article-inspection-configuration.js @@ -0,0 +1,39 @@ +import { request } from '@/api/_service' + +const BASE = 'quality_control/first_inspection/first_inspection/' + +function apiParams (data = {}, method = 'get.setting.list', platform = 'api') { + return { method, platform, ...data } +} +export function fetchFirstArticleInspectionConfigurationList (data = {}) { + return request({ + url: BASE + 'list', + method: 'post', + data: apiParams(data, 'get.setting.list', 'api') + }) +} + +export function createFirstArticleInspectionConfiguration (data = {}) { + return request({ + url: BASE + 'add', + method: 'post', + data: apiParams(data, 'add.setting', 'admin') + }) +} + +export function editFirstArticleInspectionConfiguration (data = {}) { + return request({ + url: BASE + 'update', + method: 'post', + data: apiParams(data, 'set.setting', 'admin') + }) +} + +export function deleteFirstArticleInspectionConfiguration (data = {}) { + return request({ + url: BASE + 'delete', + method: 'post', + data: apiParams(data, 'del.setting.list', 'admin') + }) +} + diff --git a/src/locales/en.json b/src/locales/en.json index dd3d1542..e598dd69 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -2955,6 +2955,68 @@ "subgroup_id": "Subgroup", "sampling_time": "Sampling Time", "sample_value": "Sample Value" + }, + "first_article_inspection_configuration": { + "search": "Search", + "reset": "Reset", + "operation_success": "Operation succeeded", + "code": "Code", + "name": "Name", + "remark": "Remark", + "note": "Remark", + "operation": "Actions", + "add": "Add", + "edit": "Edit", + "delete": "Delete", + "add_title": "Add First Article Inspection Configuration", + "edit_title": "Edit First Article Inspection Configuration", + "cancel": "Cancel", + "confirm": "Confirm", + "tip": "Tip", + "confirm_delete": "Are you sure to delete?", + "required": "Required", + "please_enter": "Please enter", + "create_time": "Created At", + "created_at": "Created At", + "updated_at": "Updated At", + "nickname": "Creator", + "batch_no": "Batch No.", + "product_no": "Product Code", + "inspection_item": "Inspection Item", + "inspection_result": "Inspection Result", + "inspector": "Inspector", + "category_name": "Inspection Type", + "category": "Category", + "category_id": "Inspection Type", + "inspection_order_no": "Inspection Order No.", + "material_code": "Material Code", + "material_name": "Material Name", + "inspection_status": "Inspection Status", + "result": "Result", + "inspection_type": "Inspection Type", + "standard_value": "Standard Value", + "aql_value": "AQL Value", + "sampling_plan_name": "Sampling Plan", + "sampling_plan": "Sampling Plan", + "sampling_plan_id": "Sampling Plan", + "supplier": "Supplier", + "inspection_category_name": "Inspection Type", + "inspection_category": "Inspection Type", + "inspection_category_id": "Inspection Type", + "inspection_attribute": "Inspection Attribute", + "inspection_unit": "Inspection Unit", + "scheme_code": "Scheme Code", + "scheme_name": "Scheme Name", + "sample_size": "Sample Size", + "acceptance_number": "Acceptance No.", + "rejection_number": "Rejection No.", + "node_data_name": "Node Data Name", + "node_data_code": "Node Data Code", + "working_subclass": "Shift", + "project_name": "Project Name", + "subgroup_id": "Subgroup", + "sampling_time": "Sampling Time", + "sample_value": "Sample Value" } } }, diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index df3aeb27..0c0e3013 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -2955,6 +2955,68 @@ "subgroup_id": "子组", "sampling_time": "采样时间", "sample_value": "样本值" + }, + "first_article_inspection_configuration": { + "search": "查询", + "reset": "重置", + "operation_success": "操作成功", + "code": "编码", + "name": "名称", + "remark": "备注", + "note": "备注", + "operation": "操作", + "add": "新增", + "edit": "编辑", + "delete": "删除", + "add_title": "新增首巡检项目配置", + "edit_title": "编辑首巡检项目配置", + "cancel": "取消", + "confirm": "确定", + "tip": "提示", + "confirm_delete": "确定要执行该操作吗?", + "required": "必填项", + "please_enter": "请输入", + "create_time": "创建时间", + "created_at": "创建时间", + "updated_at": "更新时间", + "nickname": "创建人", + "batch_no": "批次号", + "product_no": "产品编码", + "inspection_item": "检验项目", + "inspection_result": "检验结果", + "inspector": "检验员", + "category_name": "检验类别", + "category": "类别", + "category_id": "检验类别", + "inspection_order_no": "检验单号", + "material_code": "物料编码", + "material_name": "物料名称", + "inspection_status": "检验状态", + "result": "结果", + "inspection_type": "检验类型", + "standard_value": "标准值", + "aql_value": "AQL值", + "sampling_plan_name": "抽样方案", + "sampling_plan": "抽样方案", + "sampling_plan_id": "抽样方案", + "supplier": "供应商", + "inspection_category_name": "检验类别", + "inspection_category": "检验类别", + "inspection_category_id": "检验类别", + "inspection_attribute": "检验属性", + "inspection_unit": "检验单位", + "scheme_code": "方案编码", + "scheme_name": "方案名称", + "sample_size": "样本数", + "acceptance_number": "接收数", + "rejection_number": "拒收数", + "node_data_name": "节点数据名称", + "node_data_code": "节点数据编码", + "working_subclass": "班次", + "project_name": "项目名称", + "subgroup_id": "子组", + "sampling_time": "采样时间", + "sample_value": "样本值" } } }, diff --git a/src/router/modules/quality-management.js b/src/router/modules/quality-management.js index fe2d7ff5..143783f5 100644 --- a/src/router/modules/quality-management.js +++ b/src/router/modules/quality-management.js @@ -19,6 +19,12 @@ export default { name: `${pre}process-control-inspection-type-management`, meta: { ...meta, cache: true, title: '检验类别管理' }, component: _import('quality-management/process-control/inspection-type-management') + }, + { + path: 'first_inspection/setting', + name: `${pre}process-control-first-article-inspection-configuration`, + meta: { ...meta, cache: true, title: '首巡检项目配置' }, + component: _import('quality-management/process-control/first-article-inspection-configuration') } ])('quality_control-') } diff --git a/src/views/quality-management/process-control/first-article-inspection-configuration/index.vue b/src/views/quality-management/process-control/first-article-inspection-configuration/index.vue new file mode 100644 index 00000000..f456d03c --- /dev/null +++ b/src/views/quality-management/process-control/first-article-inspection-configuration/index.vue @@ -0,0 +1,302 @@ + + + + +