tableData.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 { selectObj } from './dataChange'
  17. // 列表页面(大部分相同和复用的)
  18. export const baseTableC = (val: string) => {
  19. return [
  20. ['dateRes', `${val}日期`, 'date'],
  21. ['txt', '申请编号', 'num'],
  22. ['txt', '发起部门', 'deptName'],
  23. ['txt', '发起人', 'creatorName'],
  24. ['txt', '发起日期', 'createTime'],
  25. ['select', '申请状态', 'status', selectObj['订单审批状态']]
  26. ]
  27. }
  28. // 藏品征集-订单页面的线索清单
  29. export const SonClueListTableC = [
  30. ['txt', '线索名称', 'name'],
  31. ['txt', '线索编号', 'num'],
  32. ['text', '线索简介', 'intro', 50],
  33. ['txt', '联系方式', 'phone'],
  34. ['txtC', '初步藏品类别', 'typeDictId'],
  35. ['txtC', '初步藏品年代', 'ageDictId'],
  36. ['select', '完残程度', 'tornLevel', selectObj['完残程度']],
  37. ['text', '备注', 'remark', 50]
  38. ]
  39. // 藏品登记-订单页面的藏品清单 、-----选择藏品-藏品
  40. export const goodsSonTableC = (loc?: boolean) => {
  41. const arr: any = [
  42. ['txt', '藏品登记号', 'num'],
  43. ['img', '封面', 'thumb'],
  44. ['txtCTag', '藏品标签', 'tagDictId'],
  45. ['txt', '藏品名称', 'name'],
  46. ['select', '级别', 'level', selectObj['藏品级别']],
  47. ['txtC', '类别', 'typeDictId'],
  48. ['txtC', '年代', 'ageDictId'],
  49. ['txtC', '质地', 'textureDictId'],
  50. ['select', '完残程度', 'tornLevel', selectObj['完残程度']],
  51. ['ping', '数量', 'pcs', 'pcsUnitDictId']
  52. ]
  53. if (loc) arr.push(['txt', '库房位置', '待完善sg'])
  54. return arr
  55. }
  56. // -----选择藏品-线索
  57. export const goodsSelectCuleC = [
  58. ['txt', '线索编号', 'num'],
  59. ['img', '封面', 'thumb'],
  60. ['txt', '线索名称', 'name'],
  61. ['txtC', '初定类别', 'typeDictId'],
  62. ['txtC', '初定年代', 'ageDictId'],
  63. ['select', '完残程度', 'tornLevel', selectObj['完残程度']]
  64. ]
  65. export const I3tableC = [
  66. ['txt', '编号类型', 'name'],
  67. ['txt', '前缀', 'prefix'],
  68. ['txt', '日期方式', 'dateType'],
  69. ['txt', '起始流水编号', 'length']
  70. ]
  71. export const I4tableC = [
  72. // ['txt', '流程类型', 'typeKey'],
  73. ['txt', '流程名称', 'name'],
  74. ['text', '流程说明', 'remark', 50],
  75. ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
  76. ]
  77. export const I4tableC2 = [
  78. ['index', '序号'],
  79. ['txt', '节点名称', 'name'],
  80. ['txt', '排序值', 'sort'],
  81. ['txtChange', '办理人', 'type', { user: '指定用户', role: '按角色' }]
  82. ]
  83. export const I6tableC = [
  84. ['txt', '角色名称', 'roleName'],
  85. ['text', '角色说明', 'roleDesc', 50],
  86. ['txt', '排序值', 'sort']
  87. ]
  88. export const I7tableC = [
  89. ['txt', '登录账号', 'userName'],
  90. ['txt', '所属部门', 'deptNameRes'],
  91. ['txt', '角色', 'roleName'],
  92. ['txt', '真实姓名', 'realName'],
  93. ['txt', '创建日期', 'createTime']
  94. ]
  95. export const I8tableC = [
  96. ['index', '序号'],
  97. ['txt', '账号', 'userName'],
  98. ['txt', '操作日期', 'createTime'],
  99. ['txt', 'IP记录', 'ip'],
  100. ['txt', '操作模块', 'type'],
  101. ['txt', '操作事件', 'description']
  102. ]
  103. // 故事管理
  104. export const storyTableC = [
  105. ['txt', '故事标题', 'name'],
  106. ['txt', '关联藏品', 'goodName'],
  107. ['txt', '藏品标签', 'tagName'],
  108. ['txt', '录入人', 'creatorName'],
  109. ['txt', '录入日期', 'createTime']
  110. ]
  111. // 故事管理里面的添加藏品
  112. export const storyAndGoodsTableC = [
  113. ['txt', '藏品登记号', 'num'],
  114. ['img', '封面', 'thumb'],
  115. ['txt', '藏品标签', 'tagName'],
  116. ['txt', '藏品名称', 'name']
  117. ]