import { selectObj } from '@/utils/select'
import { C1DomArrType, TYpeC1Form, TYpeC1Form1, TYpeC1Form2 } from './type'
import { cascaderObjFu } from '@/utils/history'

export const C1baseFormData1: TYpeC1Form1 = {
  numName: '',
  num: '',
  name: '',
  dictLevel: '',
  dictType: '',
  dictAge: '',
  dictTexture3: '',
  dictTorn: '',
  source: '',
  statusCollect: '',
  statusStorage: '',
  accountType: '',
  accountIndoor: ''
}

export const C1baseFormData2: TYpeC1Form2 = {
  numType: '',
  userName: '',
  qualityDictScope: '',
  inDictDateScope: '',
  sourcePass: '',
  sourcePreface: '',
  sourceStamp: '',
  historyWork: '',
  historyUndergo: ''
}

export const C1baseFormData: TYpeC1Form = {
  pageNum: 1,
  pageSize: 10,

  ...C1baseFormData1,

  ...C1baseFormData2
}

export const C1InputKeyArr1: C1DomArrType = [
  { name: '编号类型', key: 'numName', type: '下拉框', data: selectObj['藏品编号类型'] },
  { name: '藏品编号', key: 'num', type: '输入框' },
  { name: '藏品名称', key: 'name', type: '输入框' },
  { name: '文物级别', key: 'dictLevel', type: '下拉框', data: selectObj['文物级别'] },
  { name: '文物类别', key: 'dictType', type: '级联', data: cascaderObjFu()['文物类别'] },
  { name: '年代', key: 'dictAge', type: '级联', data: cascaderObjFu()['年代'] },
  { name: '质地', key: 'dictTexture3', type: '级联', data: cascaderObjFu()['单一质地'] },
  { name: '完残程度', key: 'dictTorn', type: '级联', data: cascaderObjFu()['完残程度'] },
  { name: '来源', key: 'source', type: '级联', data: cascaderObjFu()['来源'] },
  { name: '入藏状态', key: 'statusCollect', type: '下拉框', data: selectObj['入藏状态'] },
  { name: '库存状态', key: 'statusStorage', type: '下拉框', data: selectObj['库存状态'] }
]

export const C1InputKeyArr2: C1DomArrType = [
  { name: '分类号', key: 'numType', type: '输入框' },
  { name: '制档人', key: 'userName', type: '输入框' },
  { name: '质量范围', key: 'qualityDictScope', type: '级联', data: cascaderObjFu()['质量范围'] },
  {
    name: '入藏日期范围',
    key: 'inDictDateScope',
    type: '级联',
    data: cascaderObjFu()['入藏日期范围']
  },
  { name: '征集经过', key: 'sourcePass', type: '输入框' },
  { name: '铭记题跋', key: 'sourcePreface', type: '输入框' },
  { name: '鉴藏印记', key: 'sourceStamp', type: '输入框' },
  { name: '著作书目', key: 'historyWork', type: '输入框' },
  { name: '流转经历', key: 'historyUndergo', type: '输入框' },
  { name: '入藏去向', key: 'accountType', type: '下拉框', data: selectObj['入藏去向'] },
  { name: '展览状态', key: 'accountIndoor', type: '下拉框', data: selectObj['展览状态'] }
]
