import { selectObj } from '@/utils/select'
import { A4voucherSearchType, IA4voucherParams } from './types'
import { businessTypeObj } from '@/utils/tableData'

export const DEFAULT_A4VOUCHER_PARAMS: IA4voucherParams = {
  pageNum: 1,
  pageSize: 10,
  type: '',
  fileName: '',
  num: '',
  date: []
}

export const A4VOUCHER_PARAM_ROWS: A4voucherSearchType[] = [
  { name: '凭证名称', key: 'fileName', type: '输入框' },
  { name: '归档日期范围', key: 'date', type: '日期选择' },
  { name: '业务类型', key: 'type', type: '下拉框', data: selectObj['业务类型'] },
  { name: '业务编号', key: 'num', type: '输入框' }
]

export const A4VOUCHER_TABLE_COLUMNS = [
  ['txt', '凭证名称', 'fileName'],
  ['txt', '归档日期', 'updateTime'],
  ['txtChange', '业务类型', 'moduleName', businessTypeObj],
  ['txt', '业务编号', 'goodNum'],
  ['txt', '发起日期', 'createTime']
]
