import { ActionType } from "@/TsModel/Lc/Entity/Enums/ActionType"; import * as Comm from '@/TsModel/Comm/Comm'; /** 模型数据,用于增删改,前端获取到的结果是 ModelResult 需要转成 DataRoot*/ export interface DataRoot { /** 操作方式 CUD*/ ActionType: ActionType; /** 表示强制删除所有非只读子单据和业务对像字段 ActionType = Delete 时有效*/ ForceDelete: boolean; /** key:即列名, value 即值 CRUD: 设置 this.ActionType 增:行必须有完整信息 删:只需要包含id 改:添加id之后,要改哪列就添加哪列和值 查:如果想获取某行的子模型数据,直接需要 将 this.ActionType 设置为Get,然后在Row 中添加id项即可 子查的CRUD:必须有树型结构,父级行id 必须包含在这里, 且this.ActionType 标识为 Get*/ Row: Comm.Dictionary; /** 记录当前行的id*/ id: string; /** 如果此单据是一个单树型,哪么就是此项有值*/ CurrentChilds?: DataRoot[] | null; /** 如果还有子单据体数据.. 无限递归 key 模型id,Value 行*/ ChildModelData?: Comm.Dictionary | null; }