export interface BomAddParamsModel {
  parentId?: string; //父级Id
  code: string; //物料编号
  name: string; //物料名称
  model: string; //规格型号
  typeName: string; //物料类别
  count?: string; //数量
  unitName: string; //单位
  propertyName: string; //物料属性
}

export interface BomInfoModel {
  childList?: BomAddParamsModel[];
}

export interface BomTreeModel {
  id: string; //id
  name: string; //物料名称
  children: BomTreeModel[];
}

export interface BomUpdateParamsModel {
  id: string; //id
  parentId?: string; //父级Id
  code: string; //物料编号
  name: string; //物料名称
  model: string; //规格型号
  typeName: string; //物料类别
  count?: string; //数量
  unitName: string; //单位
  propertyName: string; //物料属性
}

export type BomInfoResultModel = BomAddParamsModel & BomInfoModel;
