export type B1fromDataType = {
  searchKey: string
  typeDictId: null | number
  textureDictId: null | number
  pageNum: number
  pageSize: number
}

export const B1fromDataBase: B1fromDataType = {
  searchKey: '',
  typeDictId: null,
  textureDictId: null,
  pageNum: 1,
  pageSize: 10
}

// 藏品附件
export type GoodsFileType = {
  createTime: string
  creatorId: number
  creatorName: string
  fileName: string
  filePath: string
  fileSize: string
  id: number
  moduleId?: any
  moduleName: string
  parentId?: any
  thumb: string
  type: string
  updateTime?: any
}

// 藏品所有参数
export type B1listType = {
  ageDictId: number
  createTime: string
  creatorId: number
  creatorName?: any
  file: GoodsFileType[]
  fileIds: string
  formerNum: string
  id: number
  inHouseTime: string
  intro: string
  isNote: string
  level: string
  name: string
  num: string
  pcs: number
  pcsUnitDictId: number
  quality: number
  qualityUnit: string
  registerTime: string
  remark: string
  siteDateIn?: any
  siteDateOut?: any
  siteLoc?: any
  siteStatus?: any
  sizeH: number
  sizeL: number
  sizeUnit: string
  sizeW: number
  sourceDictId: number
  sourceInfo: string
  status: number
  textureDictId: number
  thumb: string
  thumbPc: string
  torn: string
  typeDictId: number
  updateTime: string

  goodIds: string
  audits: GoodsAduitsType[]

  currentAuditUserIds?: string

  oldGoods: string

  type: string

  // 入库
  reason: string
  date: string
  id2?: number
  siteIn: string

  // 出库
  siteOut: string
}

export type GoodsAduitsType = {
  createTime: string
  handler: string
  id: number
  isAuto: number
  isUse: number
  moduleIds?: any
  nodeName: string
  orderId: number
  rtfOpinion?: any
  status?: any
  type?: any
}
