云
2 天以前 a241b66efcc41e973290a6722fb7a4d79b833ea1
src/api/mes/qc/indicator/index.ts
@@ -1,4 +1,4 @@
import type { PageParam, PageResult } from '../../../../packages/effects/request/src';
import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
@@ -10,6 +10,11 @@
    name?: string; // 检测项名称
    type?: number; // 检测项类型
    tool?: string; // 检测工具
    itemType?: number; // 条目类型:1=录入项,2=分组项
    parentId?: number; // 父指标编号(0=顶级)
    parentName?: string; // 父指标名称(即所属分组名,顶级时为空)
    formulaText?: string; // 公式展示文本(分组项的「检测要求」)
    sortOrder?: number; // 同级排序号
    resultType?: number; // 结果值类型
    resultSpecification?: string; // 结果值属性
    remark?: string; // 备注
@@ -32,6 +37,13 @@
  );
}
/** 查询分组项精简列表(「所属分组」下拉选项) */
export function getIndicatorGroupList() {
  return requestClient.get<MesQcIndicatorApi.Indicator[]>(
    '/mes/qc/indicator/group-list',
  );
}
/** 新增质检指标 */
export function createIndicator(data: MesQcIndicatorApi.Indicator) {
  return requestClient.post('/mes/qc/indicator/create', data);