import { cascaderObjFu } from '@/utils/history'
import { selectObj } from '@/utils/select'

export type A32treeDataType = {
  name: string
  show: boolean
  key: string
  son: { id: string; name: string }[]
}

export const A32treeData: A32treeDataType[] = [
  {
    name: '馆藏与非馆藏',
    show: true,
    key: 'accountType',
    son: selectObj['入藏去向'].map(v => ({ id: v.value, name: v.label }))
  },
  {
    name: '类别分账',
    show: true,
    key: 'dictType',
    son: cascaderObjFu()['文物类别']
  },
  {
    name: '展品分账',
    show: true,
    key: 'accountIndoor',
    son: [
      { id: '6', name: '馆外' },
      { id: '5', name: '馆内' }
    ]
  }
]
