import { selectObj } from '@/utils/select'
import { D3StaffSearchType, ID3StaffParams } from './types'
import { sonTypeNameObj, statusObj } from '@/utils/tableData'

export const D3STAFF_PARAM_ROWS2: D3StaffSearchType[] = [
  { name: '发起人', key: 'userName', type: '输入框' },
  { name: '发起日期范围', key: 'date', type: '日期选择' },
  { name: '申请状态', key: 'status', type: '下拉框', data: selectObj['流程申请状态'] },
  { name: '选择角色', key: 'userType', type: '下拉框', data: selectObj['角色'] }
]

export const D3STAFF_TABLE_COLUMNS = [
  ['txt', '业务编号', 'num'],
  ['dateRes', '入库时间', 'date'],
  ['txtChange', '入库人员', 'sonTypeName', sonTypeNameObj],
  ['txt', '入库事由', 'reason'],
  ['txt', '相关库房', 'storageName'],
  ['txt', '发起部门', 'deptName'],
  ['txt', '发起人', 'creatorName'],
  ['txt', '发起日期', 'createTime'],
  ['txtChange', '申请状态', 'status', statusObj]
]

export const D3STAFF_OUTSIDER_TABLE_COLUMNS = [
  ['txt', '姓名', 'name'],
  ['desensitize', '联系方式', 'phone'],
  // ['txt', '身份证号', 'papers'],
  ['txt', '所在单位', 'remark']
]

export const DEFAULT_D3STAFF_PARAMS: ID3StaffParams = {
  pageNum: 1,
  pageSize: 10,
  num: '',
  userName: '',
  deptName: '',
  status: '',
  userType: ''
}
