gaoluyang
2026-06-29 27cd042df9aca0383a49f3514bc21958dd890912
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import type { PageParam, PageResult } from '../../../../../packages/effects/request/src';
 
import { requestClient } from '#/api/request';
 
export namespace MesQcIpqcLineApi {
  /** MES 过程检验单行 */
  export interface IpqcLine {
    id?: number; // 编号
    ipqcId?: number; // 过程检验单 ID
    indicatorId?: number; // 检测指标 ID
    indicatorCode?: string; // 检测指标编码(关联查询)
    indicatorName?: string; // 检测指标名称(关联查询)
    indicatorType?: number; // 检测指标类型(关联查询)
    toolId?: number; // 检测工具 ID
    toolName?: string; // 检测工具名称(关联查询)
    checkMethod?: string; // 检测方法
    standardValue?: number; // 标准值
    unitMeasureId?: number; // 计量单位 ID
    unitMeasureName?: string; // 计量单位名称(关联查询)
    maxThreshold?: number; // 误差上限
    minThreshold?: number; // 误差下限
    criticalQuantity?: number; // 致命缺陷数量
    majorQuantity?: number; // 严重缺陷数量
    minorQuantity?: number; // 轻微缺陷数量
    remark?: string; // 备注
  }
}
 
/** 查询过程检验单行分页 */
export function getIpqcLinePage(params: PageParam & { ipqcId?: number }) {
  return requestClient.get<PageResult<MesQcIpqcLineApi.IpqcLine>>(
    '/mes/qc/ipqc/line/page',
    { params },
  );
}
 
/** 查询过程检验单行详情 */
export function getIpqcLine(id: number) {
  return requestClient.get<MesQcIpqcLineApi.IpqcLine>(
    `/mes/qc/ipqc/line/get?id=${id}`,
  );
}