tableData.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. // 待完善
  17. export const D1GtableC = (backFu: (id: number) => void) => {
  18. return [
  19. ['img', '封面图', 'thumb'],
  20. ['text', '编号类型', 'num', 50, 'S', backFu],
  21. ['txt', '藏品编号', 'userName'],
  22. ['txt', '藏品名称', 'userName'],
  23. ['txt', '数量', 'userName'],
  24. ['txt', '库存状态', 'userName'],
  25. ['txt', '区域名称', 'userName'],
  26. ['txt', '排架', 'userName'],
  27. ['txt', '层数', 'userName'],
  28. ['txt', '表格', 'userName'],
  29. ['txt', '库位说明', 'description']
  30. ]
  31. }
  32. // 待完善
  33. export const B3tableC = [
  34. ['txt', '申请编号', 'userName'],
  35. ['txt', '业务名称', 'userName'],
  36. ['txt', '发起部门', 'userName'],
  37. ['txt', '发送人', 'userName'],
  38. ['txt', '发起日期', 'userName'],
  39. ['txt', '申请状态', 'userName']
  40. ]
  41. // 待完善
  42. export const D1tableC = [
  43. ['txt', '区域名称', 'name1'],
  44. ['txt', '排架', 'userName'],
  45. ['txt', '层数', 'userName'],
  46. ['txt', '层格', 'userName'],
  47. ['txt', '库位说明', 'description'],
  48. ['txt', '是否空置', 'userName']
  49. ]
  50. export const D2tableC = [
  51. ['txt', '仓库名称', 'name'],
  52. ['txt', '仓库编码', 'num'],
  53. ['txt', '仓库负责人', 'managerUser'],
  54. ['text', '仓库说明', 'description', 100],
  55. ['txtChange', '仓库状态', 'enable', { 0: '禁用', 1: '启用' }]
  56. ]
  57. export const D2tableCSon = [
  58. ['txt', '区域名称', 'regionName'],
  59. ['txt', '排架', 'layer1'],
  60. ['txt', '层数', 'layer2'],
  61. ['txt', '库位', 'layer3'],
  62. ['text', '库位说明', 'description', 50]
  63. ]
  64. // 待完善
  65. export const Y22tableC = [
  66. ['txt', '库存信息', 'userName'],
  67. ['txt', '库存详情', 'description']
  68. ]
  69. // 待完善
  70. export const Y33tableC = [
  71. ['txt', '附件类型', 'userName'],
  72. ['img', '缩略图', 'thumb'],
  73. ['txt', '附件名称', 'description'],
  74. ['txt', '用途', 'description'],
  75. ['txt', '上传日期', 'description'],
  76. ['txt', '上传人', 'description'],
  77. ['txt', '文件大小', 'description']
  78. ]
  79. // 待完善
  80. export const Y44tableC = [
  81. ['txt', '业务类型', 'userName'],
  82. ['txt', '申请编号', 'description'],
  83. ['txt', '业务名称', 'description'],
  84. ['txt', '发起部门', 'description'],
  85. ['txt', '发起人', 'description'],
  86. ['txt', '发起日期', 'description'],
  87. ['txt', '申请状态', 'description']
  88. ]
  89. export const Z2tableC = [
  90. ['txt', '编号类型', 'name'],
  91. ['txt', '前缀', 'prefix'],
  92. ['txt', '日期方式', 'dateType'],
  93. ['txt', '起始流水编号', 'length']
  94. ]
  95. export const Z5tableC = [
  96. ['txt', '角色名称', 'roleName'],
  97. ['text', '角色说明', 'roleDesc', 50],
  98. ['txt', '排序值', 'sort']
  99. ]
  100. export const Z6tableC = [
  101. ['txt', '登录账号', 'userName'],
  102. ['txt', '所属部门', 'deptNameRes'],
  103. ['txt', '角色', 'roleName'],
  104. ['txt', '真实姓名', 'realName'],
  105. ['txt', '创建日期', 'createTime']
  106. ]
  107. export const Z7tableC = [
  108. ['index', '序号'],
  109. ['txt', '账号', 'userName'],
  110. ['txt', '操作日期', 'createTime'],
  111. ['txt', 'IP记录', 'ip'],
  112. ['txt', '操作模块', 'type'],
  113. ['txt', '操作事件', 'description']
  114. ]