tableData.ts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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 statusObj = {
  18. 1: '草稿',
  19. 6: '待提交',
  20. 2: '待审批',
  21. 3: '审批不通过',
  22. 4: '已完成',
  23. 5: '待盘点'
  24. }
  25. // 待完善
  26. export const B1TableC = [
  27. ['txt', '线索名称', 'description'],
  28. ['txt', '线索类别', 'description'],
  29. ['txt', '创建人', 'description'],
  30. ['txt', '创建时间', 'description']
  31. ]
  32. export const B3eTableC = [
  33. ['img', '封面图', 'thumb'],
  34. ['txt', '编号类型', 'numName'],
  35. ['txt', '藏品名称', 'name'],
  36. ['txt', '文物级别', 'dictLevel'],
  37. ['txtC', '文物类别', 'dictType'],
  38. ['txtC', '年代', 'dictAge'],
  39. ['txt', '数量', 'pcs'],
  40. ['txtC', '质地', 'dictTexture3'],
  41. ['txtC', '完残程度', 'dictTorn'],
  42. ['txtC', '来源', 'source']
  43. ]
  44. export const B3FtableC = [
  45. ['txt', '节点名称', 'name'],
  46. ['txt', '提交日期', 'updateTime'],
  47. ['txt', '处理人', 'creatorName'],
  48. ['txtChange', '审批结果', 'status', { 1: '同意', 2: '不同意' }]
  49. ]
  50. // 待完善
  51. export const D1GtableC = [
  52. ['img', '封面图', 'thumb'],
  53. ['txt', '编号类型', 'userName'],
  54. ['txt', '藏品名称', 'userName'],
  55. ['txt', '数量', 'userName'],
  56. ['txt', '库存状态', 'userName'],
  57. ['txt', '区域名称', 'userName'],
  58. ['txt', '排架', 'userName'],
  59. ['txt', '层数', 'userName'],
  60. ['txt', '层格', 'userName'],
  61. ['txt', '库位说明', 'description']
  62. ]
  63. // 待完善
  64. export const B3tableC = [
  65. ['txt', '业务单号', 'num'],
  66. ['txt', '申请名称', 'name'],
  67. ['txt', '发起部门', 'deptName'],
  68. ['txt', '发送人', 'creatorName'],
  69. ['txt', '发起日期', 'createTime'],
  70. ['txtChange', '申请状态', 'status', statusObj]
  71. ]
  72. // 待完善
  73. export const C1tableC = [
  74. ['img', '封面图', 'thumb'],
  75. ['txt', '编号类型', 'xxx'],
  76. ['txt', '藏品名称', 'xxx'],
  77. ['txt', '文物级别', 'xxx'],
  78. ['txt', '文物类别', 'xxx'],
  79. ['txt', '年代', 'xxx'],
  80. ['txt', '质地', 'xxx'],
  81. ['txt', '完残程度', 'xxx'],
  82. ['txt', '来源', 'xxx'],
  83. ['txt', '入藏状态', 'xxx'],
  84. ['txt', '库存状态', 'xxx']
  85. ]
  86. // 待完善
  87. export const C2tableC = [
  88. ['txt', '附件类型', 'type'],
  89. ['txt', '用途', 'description'],
  90. ['txt', '藏品名称', 'description'],
  91. ['txt', '总登记号', 'description'],
  92. ['txt', '附件名称', 'description'],
  93. ['txt', '上传日期', 'description'],
  94. ['txt', '上传人', 'description'],
  95. ['txt', '文件大小', 'description']
  96. ]
  97. // 待完善
  98. export const C4tableC = [
  99. ['txt', '导入数据行数', 'hang1'],
  100. ['txt', '合格数据行数', 'hang2'],
  101. ['txt', '异常数据行数', 'hang3']
  102. ]
  103. // 待完善
  104. export const D1tableC = [
  105. ['txt', '区域名称', 'name1'],
  106. ['txt', '排架', 'userName'],
  107. ['txt', '层数', 'userName'],
  108. ['txt', '层格', 'userName'],
  109. ['txt', '库位说明', 'description'],
  110. ['txt', '是否空置', 'userName']
  111. ]
  112. export const D2tableC = [
  113. ['txt', '仓库名称', 'name'],
  114. ['txt', '仓库编码', 'num'],
  115. ['txt', '仓库负责人', 'managerUser'],
  116. ['text', '仓库说明', 'description', 100],
  117. ['txtChange', '仓库状态', 'enable', { 0: '禁用', 1: '启用' }]
  118. ]
  119. export const D2tableCSon = [
  120. ['txt', '区域名称', 'regionName'],
  121. ['txt', '排架', 'layer1'],
  122. ['txt', '层数', 'layer2'],
  123. ['txt', '库位', 'layer3'],
  124. ['text', '库位说明', 'description', 50]
  125. ]
  126. // 待完善
  127. export const D4tableC = [
  128. ['txt', '申请编号', 'regionName'],
  129. ['txt', '业务名称', 'layer1'],
  130. ['txt', '入库库房', 'layer2'],
  131. ['txt', '发起部门', 'layer3'],
  132. ['txt', '发起人', 'layer3'],
  133. ['txt', '发起日期', 'layer3'],
  134. ['txt', '申请状态', 'layer3']
  135. ]
  136. // 待完善
  137. export const D6tableC = [
  138. ['txt', '申请编号', 'regionName'],
  139. ['txt', '业务名称', 'layer1'],
  140. ['txt', '出库库房', 'layer2'],
  141. ['txt', '是否需要归还', 'layer2'],
  142. ['txt', '预计归还日期', 'layer2'],
  143. ['txt', '发起部门', 'layer3'],
  144. ['txt', '发起人', 'layer3'],
  145. ['txt', '发起日期', 'layer3'],
  146. ['txt', '申请状态', 'layer3']
  147. ]
  148. // 待完善
  149. export const D4goodsTableC = [
  150. ['img', '封面图', 'thumb'],
  151. ['txt', '编号类型', 'userName'],
  152. ['txt', '藏品名称', 'userName'],
  153. ['txt', '数量', 'userName'],
  154. ['txt', '库存状态', 'userName']
  155. ]
  156. // 待完善
  157. export const D6goodsTableC = [
  158. ['img', '封面图', 'thumb'],
  159. ['txt', '编号类型', 'userName'],
  160. ['txt', '藏品名称', 'userName'],
  161. ['txt', '数量', 'userName'],
  162. ['txt', '库存状态', 'userName']
  163. ]
  164. // 待完善
  165. export const Y22tableC = [
  166. ['txt', '库存信息', 'xxxx'],
  167. ['txt', '库存详情', 'description']
  168. ]
  169. export const Y33tableC = (type: '详情' | '新增') => {
  170. let arr1 = [
  171. ['txt', '附件类型', 'type'],
  172. ['txt', '用途', 'effect']
  173. ]
  174. const arr2 = [
  175. ['text', '附件名称', 'fileName', 50],
  176. ['txt', '附件大小', 'fileSize'],
  177. ['txt', '上传日期', 'updateTime'],
  178. ['txt', '上传人', 'creatorName']
  179. ]
  180. return type === '详情' ? [...arr1, ...arr2] : arr2
  181. }
  182. // 待完善
  183. export const Y44tableC = [
  184. ['txt', '业务类型', 'xxxx'],
  185. ['txt', '申请编号', 'description'],
  186. ['txt', '业务名称', 'description'],
  187. ['txt', '发起部门', 'description'],
  188. ['txt', '发起人', 'description'],
  189. ['txt', '发起日期', 'description'],
  190. ['txt', '申请状态', 'description']
  191. ]
  192. export const Z2tableC = [
  193. ['txt', '编号类型', 'name'],
  194. ['txt', '前缀', 'prefix'],
  195. ['txt', '日期方式', 'dateType'],
  196. ['txt', '起始流水编号', 'length']
  197. ]
  198. export const Z5tableC = [
  199. ['txt', '角色名称', 'roleName'],
  200. ['text', '角色说明', 'roleDesc', 50],
  201. ['txt', '排序值', 'sort']
  202. ]
  203. export const Z6tableC = [
  204. ['txt', '登录账号', 'userName'],
  205. ['txt', '所属部门', 'deptNameRes'],
  206. ['txt', '角色', 'roleName'],
  207. ['txt', '真实姓名', 'realName'],
  208. ['txt', '创建日期', 'createTime']
  209. ]
  210. export const Z7tableC = [
  211. ['index', '序号'],
  212. ['txt', '账号', 'userName'],
  213. ['txt', '操作日期', 'createTime'],
  214. ['txt', 'IP记录', 'ip'],
  215. ['txt', '操作模块', 'type'],
  216. ['txt', '操作事件', 'description']
  217. ]