From cdbb5238329f0fa1c3fe4404e9306a8952cf0a0c Mon Sep 17 00:00:00 2001 From: zch Date: Thu, 17 Jul 2025 16:28:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(qcInspectionItemCategory):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=86=E7=B1=BB=E7=9A=84=E7=88=B6=E7=BA=A7ID?= =?UTF-8?q?=E5=92=8C=E7=A5=96=E7=BA=A7=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 QcInspectionItemCategoryVO 接口中添加 parentId 和 ancestors 字段 - 在 QcInspectionItemCategoryForm 接口中添加 parentId 和 ancestors 字段 - 在 QcInspectionItemCategoryQuery 接口中添加 parentId 和 ancestors 字段 - 为 typeName 和 qcInspectionType 字段添加可选标记 - 在 QcInspectionItemCategoryVO 接口中添加 children 字段,用于表示子对象 --- src/api/qms/qcInspectionItemCategory/types.ts | 40 +++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/src/api/qms/qcInspectionItemCategory/types.ts b/src/api/qms/qcInspectionItemCategory/types.ts index ff2a114..501fd68 100644 --- a/src/api/qms/qcInspectionItemCategory/types.ts +++ b/src/api/qms/qcInspectionItemCategory/types.ts @@ -4,6 +4,16 @@ export interface QcInspectionItemCategoryVO { */ categoryId: string | number; + /** + * 父级ID + */ + parentId: string | number; + + /** + * 祖级列表 + */ + ancestors: string; + /** * 检测项类别编码 */ @@ -27,13 +37,17 @@ export interface QcInspectionItemCategoryVO { /** * 检测类型名称 */ - qcInspectionType: string; + qcInspectionType?: string; /** * 检测类型(字典:首检 专检 自检 互检 原材料检 抽检 成品检) */ - typeName: string | number; + typeName?: string | number; + /** + * 子对象 + */ + children: QcInspectionItemCategoryVO[]; } export interface QcInspectionItemCategoryForm extends BaseEntity { @@ -42,6 +56,16 @@ export interface QcInspectionItemCategoryForm extends BaseEntity { */ categoryId?: string | number; + /** + * 父级ID + */ + parentId?: string | number; + + /** + * 祖级列表 + */ + ancestors?: string; + /** * 检测项类别编码 */ @@ -74,13 +98,23 @@ export interface QcInspectionItemCategoryForm extends BaseEntity { } -export interface QcInspectionItemCategoryQuery extends PageQuery { +export interface QcInspectionItemCategoryQuery { /** * 检测项类别主键 */ categoryId?: string | number; + /** + * 父级ID + */ + parentId?: string | number; + + /** + * 祖级列表 + */ + ancestors?: string; + /** * 检测项类别编码 */