import { selectObj } from '@/utils/select'
import { C21WealthSearchType, IC21WealthParams } from './types'
import { statusStorageObj } from '@/utils/tableData'

export const DEFAULT_C21WEALTH_PARAMS: IC21WealthParams = {
  pageNum: 1,
  pageSize: 10,
  num: ''
}

export const C21WEALTH_PARAM_ROWS: C21WealthSearchType[] = [
  { name: '业务编号', key: 'num', type: '输入框' },
  { name: '展览名称', key: 'num', type: '输入框' },
  { name: '展览类型', key: 'num', type: '下拉框', data: selectObj['业务类型'] },
  { name: '借展类型', key: 'num', type: '下拉框', data: selectObj['业务类型'] },
  { name: '借展单位/部门', key: 'num', type: '输入框' },
  { name: '发起人', key: 'num', type: '输入框' },
  { name: '发起日期范围', key: 'num', type: '日期选择' },
  { name: '申请状态', key: 'num', type: '下拉框', data: selectObj['流程申请状态'] }
]

export const C21WEALTH_TABLE_COLUMNS = [['txt', '业务编号', 'num']]

export const C21WEALTH_COLUMNS = [
  ['img', '封面图', 'thumb'],
  ['txt', '编号类型', 'numName'],
  ['txt', '藏品编号', 'goodsNum'],
  ['txt', '藏品名称', 'goodsName'],
  ['ping', '数量', 'pcs', 'pcsUnit'],
  ['txtChange', '库存状态', 'statusStorage', statusStorageObj],
  [
    'input',
    '放置位置',
    'address',
    {
      maxLength: 20,
      placeholder: '请填写内容，不超过20字'
    }
  ],
  ['datePicker', '借出日期 *', 'startDate'],
  ['datePicker', '预计归还日期 *', 'endDate']
]
