admin-vben/apps/web-antd/src/api/mes/qc/rqc/line/index.ts

42 lines
1.4 KiB
TypeScript

import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
export namespace MesQcRqcLineApi {
/** MES 退货检验单行 */
export interface RqcLine {
id?: number; // 编号
rqcId?: number; // 退货检验单 ID
indicatorId?: number; // 检测指标 ID
indicatorCode?: string; // 检测指标编码(关联查询)
indicatorName?: string; // 检测指标名称(关联查询)
indicatorType?: number; // 检测指标类型(关联查询)
tool?: string; // 检测工具
checkMethod?: string; // 检测方法
standardValue?: number; // 标准值
unitMeasureId?: number; // 计量单位 ID
unitMeasureName?: string; // 计量单位名称(关联查询)
maxThreshold?: number; // 误差上限
minThreshold?: number; // 误差下限
criticalQuantity?: number; // 致命缺陷数量
majorQuantity?: number; // 严重缺陷数量
minorQuantity?: number; // 轻微缺陷数量
remark?: string; // 备注
}
}
/** 查询退货检验单行分页 */
export function getRqcLinePage(params: PageParam & { rqcId?: number }) {
return requestClient.get<PageResult<MesQcRqcLineApi.RqcLine>>(
'/mes/qc/rqc/line/page',
{ params },
);
}
/** 查询退货检验单行详情 */
export function getRqcLine(id: number) {
return requestClient.get<MesQcRqcLineApi.RqcLine>(
`/mes/qc/rqc/line/get?id=${id}`,
);
}