tableData.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /**
  2. * index:序号
  3. * txt:正常数据
  4. * img:图片
  5. * txtChange:判断显示不同字段
  6. * text:文字比较多的情况、获取使用其他标签(没有的需要自己配置)
  7. */
  8. // export const A1tableCFu = (type: "video" | "poster") => {
  9. // return [
  10. // ["index", "序号"],
  11. // ["txt", "标题", "name"]
  12. // ["img", type === "video" ? "视频封面" : "海报", "thumb"],
  13. // ["txtChange", "自动播放", "display", { 0: "否", 1: "是" }],
  14. // ["text", "创建日期",'description', 50,A],
  15. // ];
  16. import { dictSelect, goodsSelect, statusSelect, storageSelect } from './select'
  17. export const auditTableC = [
  18. ['txt', '节点名称', 'nodeName'],
  19. ['txt', '提交日期', 'createTime'],
  20. ['txt', '处理人', 'handler'],
  21. ['adiutTxt', '审批结果'],
  22. ['text', '审批意见', 'rtfOpinion', 100]
  23. ]
  24. export const goodsSelectTableC = [
  25. ['txt', '藏品编号', 'num'],
  26. ['txt', '藏品标题', 'name'],
  27. ['img', '封面图', 'thumb'],
  28. ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  29. ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  30. ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')]
  31. ]
  32. export const selectGoodsAddTableC = [
  33. ['txt', '藏品编号', 'num'],
  34. ['txt', '藏品标题', 'name'],
  35. ['img', '封面图', 'thumb'],
  36. ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  37. ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  38. ['siteLoc', '所在位置', 'siteLoc'],
  39. ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')],
  40. ['txt', '有无说明牌', 'isNote']
  41. ]
  42. export const goodsLogTableC = [
  43. ['txt', '发起人', 'creatorName'],
  44. ['time', '发起日期', 'createTime'],
  45. ['select', '申请状态', 'status', statusSelect]
  46. ]
  47. export const goodsStorageTableC = [
  48. ['txt', '申请编号', 'num'],
  49. ['txt', '发起人', 'creatorName'],
  50. ['time', '发起日期', 'createTime'],
  51. ['select', '申请状态', 'status', statusSelect]
  52. ]
  53. export const A1tableC = [
  54. ['txt', '业务编号', 'num'],
  55. ['time', '发起日期', 'createTime'],
  56. ['select', '申请状态', 'status', statusSelect]
  57. ]
  58. export const B1tableC = [
  59. ['txt', '藏品编号', 'num'],
  60. ['txt', '藏品标题', 'name'],
  61. ['img', '封面图', 'thumb'],
  62. ['time', '入馆时间', 'inHouseTime'],
  63. ['time', '登记时间', 'registerTime'],
  64. ['time', '入库时间', 'siteDateIn'],
  65. ['time', '出库时间', 'siteDateOut'],
  66. ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  67. ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  68. ['siteLoc', '当前位置', 'siteLoc'],
  69. ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')],
  70. ['txt', '有无说明牌', 'isNote'],
  71. ['select', '状态', 'status', goodsSelect]
  72. ]
  73. export const B2tableC = [
  74. ['txt', '申请编号', 'num'],
  75. ['txt', '藏品编号', 'snapNum'],
  76. ['txt', '藏品名称', 'snapName'],
  77. ['txt', '发起人', 'creatorName'],
  78. ['time', '发起日期', 'createTime'],
  79. ['select', '申请状态', 'status', statusSelect]
  80. ]
  81. export const C1tableC = [
  82. ['siteLoc', '库房位置', 'siteLoc'],
  83. ['txt', '藏品编号', 'num'],
  84. ['txt', '藏品名称', 'name'],
  85. ['img', '封面图', 'thumb'],
  86. ['select', '库存状态', 'siteStatus', storageSelect],
  87. ['time', '入库时间', 'siteDateIn'],
  88. ['time', '出库时间', 'siteDateOut'],
  89. ['select', '类型', 'typeDictId', dictSelect('藏品类型')],
  90. ['select', '材质', 'textureDictId', dictSelect('藏品材质')],
  91. ['ping', '数量', 'pcs', 'pcsUnitDictId', dictSelect('数量单位')]
  92. ]
  93. export const C2tableCFu = (txt: '入库' | '移库' | '出库') => {
  94. return [
  95. ['time', `${txt}日期`, 'date'],
  96. ['txt', `${txt}单编号`, 'num'],
  97. ['txt', '发起人', 'creatorName'],
  98. ['time', '发起日期', 'createTime'],
  99. ['select', '申请状态', 'status', statusSelect]
  100. ]
  101. }
  102. export const D2tableC = [
  103. ['txt', '流程名称', 'name'],
  104. ['text', '流程说明', 'remark', '100'],
  105. ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
  106. ]
  107. export const D2tableC2 = [
  108. ['index', '序号'],
  109. ['txt', '节点名称', 'name'],
  110. ['txt', '排序值', 'sort'],
  111. [
  112. 'txtChange',
  113. '办理人',
  114. 'type',
  115. { user: '指定用户', role: '按角色', dept: '按部门主管', '/': '/' }
  116. ]
  117. ]
  118. export const D3tableC = [
  119. ['txt', '角色名称', 'roleName'],
  120. ['text', '角色说明', 'roleDesc', '100'],
  121. ['txt', '排序值', 'sort']
  122. ]
  123. export const Z1tableC = [
  124. ['txt', '用户名', 'userName'],
  125. ['txt', '角色', 'roleName'],
  126. ['txt', '真实姓名', 'realName'],
  127. ['txt', '创建日期', 'createTime']
  128. ]
  129. export const Z2tableC = [
  130. ['index', '序号'],
  131. ['txt', '账号', 'userName'],
  132. ['txt', '操作日期', 'createTime'],
  133. ['txt', 'IP记录', 'ip'],
  134. ['txt', '操作模块', 'type'],
  135. ['txt', '操作事件', 'description']
  136. ]