编辑 | blame | 历史 | 原始文档

质检指标结果(检测结果)物料 SN 字段移除 - 前端联调方案

背景

检验指标结果(检测结果)中的「物资SN」字段不再需要,前后端一并移除。数据库列 mes_qc_indicator_result.sn 保留(不再读写),避免历史数据丢失,后续如需可再启用。

涉及页面

  • 质检管理 → 检验结果(检测结果)列表页
  • 质检管理 → 检验结果新增/编辑/详情弹窗

API

接口未新增/删除,仅请求与响应结构移除 sn 字段。

方法 路径 说明
POST /mes/qc/indicator-result/create 新增检验结果
PUT /mes/qc/indicator-result/update 修改检验结果
DELETE /mes/qc/indicator-result/delete 删除检验结果
GET /mes/qc/indicator-result/get-detail 查询检验结果明细
GET /mes/qc/indicator-result/page 检验结果分页查询

字段变更

字段 位置 变更前 变更后
sn 请求体(create/update) 物资SN,字符串 已移除,前端不再提交
sn 响应体(get-detail/page) 物资SN,字符串 已移除,后端不再返回

响应示例(get-detail):

{
  "code": 0,
  "data": {
    "id": 1,
    "code": "SPL-001",
    "qcId": 1,
    "qcType": 1,
    "remark": "无",
    "items": [
      { "indicatorId": 1, "value": "3.14", "remark": "无" }
    ]
  }
}

前端修改点

文件 位置 说明
src/views/mes/qc/indicatorresult/components/data.ts 表单 schema 移除「物资 SN」表单项
src/views/mes/qc/indicatorresult/components/data.ts 表格列定义 移除「物资SN」列
src/views/mes/qc/indicatorresult/components/form.vue 详情回填 移除 sn 回填赋值
src/api/mes/qc/indicatorresult/index.ts 接口类型 移除 sn 字段声明

上述前端改动已同步完成。

注意事项

  • 数据库列 mes_qc_indicator_result.sn 保留,后端 DO/VO 已不再映射该列,历史数据不受影响。
  • 前端如有其它页面引用该字段(如导出、打印模板),需一并清理。
  • 后端 AI 辅助判定(MesQcAiServiceImpl)已同步移除 SN 入参,AI 判定逻辑不受影响。