From 35722562e9e13f0504acc15b740d042ecb810199 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 20 九月 2026 09:06:11 +0800
Subject: [PATCH] feat(mes): 添加质检指标条目类型支持并实现报告生成功能

---
 src/api/mes/qc/indicator/index.ts |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/api/mes/qc/indicator/index.ts b/src/api/mes/qc/indicator/index.ts
index 163f11d..f658676 100644
--- a/src/api/mes/qc/indicator/index.ts
+++ b/src/api/mes/qc/indicator/index.ts
@@ -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);

--
Gitblit v1.9.3