/**
 * index:序号
 * txt:正常数据
 * img:图片
 * txtChange:判断显示不同字段
 * text:文字比较多的情况、获取使用其他标签（没有的需要自己配置）
 */
// export const A1tableCFu = (type: "video" | "poster") => {
//   return [
//     ["index", "序号"],
//     ["txt", "标题", "name"]
//     ["img", type === "video" ? "视频封面" : "海报", "thumb"],
//     ["txtChange", "自动播放", "display", { 0: "否", 1: "是" }],
//     ["text", "创建日期",'description', 50,A],
//   ];

import { dictSelect, goodsSelect, statusSelect, storageSelect } from './select'

export const auditTableC = [
  ['txt', '节点名称', 'nodeName'],
  ['txt', '提交日期', 'createTime'],
  ['txt', '处理人', 'handler'],
  ['adiutTxt', '审批结果'],
  ['text', '审批意见', 'rtfOpinion', 100]
]

export const goodsSelectTableC = [
  ['txt', '藏品编号', 'num'],
  ['txt', '藏品标题', 'name'],
  ['img', '封面图', 'thumb'],
  ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')]
]

export const selectGoodsAddTableC = [
  ['txt', '藏品编号', 'num'],
  ['txt', '藏品标题', 'name'],
  ['img', '封面图', 'thumb'],
  ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  ['siteLoc', '所在位置', 'siteLoc'],
  ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')],
  ['txt', '有无说明牌', 'isNote']
]

export const goodsLogTableC = [
  ['txt', '发起人', 'creatorName'],
  ['time', '发起日期', 'createTime'],
  ['select', '申请状态', 'status', statusSelect]
]

export const goodsStorageTableC = [
  ['txt', '申请编号', 'num'],
  ['txt', '发起人', 'creatorName'],
  ['time', '发起日期', 'createTime'],
  ['select', '申请状态', 'status', statusSelect]
]

export const B1tableC = [
  ['txt', '藏品编号', 'num'],
  ['txt', '藏品标题', 'name'],
  ['img', '封面图', 'thumb'],
  ['time', '入馆时间', 'inHouseTime'],
  ['time', '登记时间', 'registerTime'],
  ['time', '入库时间', 'siteDateIn'],
  ['time', '出库时间', 'siteDateOut'],
  ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  ['siteLoc', '当前位置', 'siteLoc'],
  ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')],
  ['txt', '有无说明牌', 'isNote'],
  ['select', '状态', 'status', goodsSelect]
]

export const B2tableC = [
  ['txt', '申请编号', 'num'],
  ['txt', '藏品编号', 'snapNum'],
  ['txt', '藏品名称', 'snapName'],
  ['txt', '发起人', 'creatorName'],
  ['time', '发起日期', 'createTime'],
  ['select', '申请状态', 'status', statusSelect]
]

export const C1tableC = [
  ['siteLoc', '库房位置', 'siteLoc'],
  ['txt', '藏品编号', 'num'],
  ['txt', '藏品名称', 'name'],
  ['img', '封面图', 'thumb'],
  ['select', '库存状态', 'siteStatus', storageSelect],
  ['time', '入库时间', 'siteDateIn'],
  ['time', '出库时间', 'siteDateOut'],
  ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')]
]

export const C2tableCFu = (txt: '入库' | '移库' | '出库') => {
  return [
    ['time', `${txt}日期`, 'date'],
    ['txt', `${txt}单编号`, 'num'],
    ['txt', '发起人', 'creatorName'],
    ['time', '发起日期', 'createTime'],
    ['select', '申请状态', 'status', statusSelect]
  ]
}

export const D2tableC = [
  ['txt', '流程名称', 'name'],
  ['text', '流程说明', 'remark', '100'],
  ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
]
export const D2tableC2 = [
  ['index', '序号'],
  ['txt', '节点名称', 'name'],
  ['txt', '排序值', 'sort'],
  [
    'txtChange',
    '办理人',
    'type',
    { user: '指定用户', role: '按角色', dept: '按部门主管', '/': '/' }
  ]
]

export const D3tableC = [
  ['txt', '角色名称', 'roleName'],
  ['text', '角色说明', 'roleDesc', '100'],
  ['txt', '排序值', 'sort']
]

export const Z1tableC = [
  ['txt', '用户名', 'userName'],
  ['txt', '角色', 'roleName'],
  ['txt', '真实姓名', 'realName'],
  ['txt', '创建日期', 'createTime']
]

export const Z2tableC = [
  ['index', '序号'],
  ['txt', '账号', 'userName'],
  ['txt', '操作日期', 'createTime'],
  ['txt', 'IP记录', 'ip'],
  ['txt', '操作模块', 'type'],
  ['txt', '操作事件', 'description']
]
