tableData.ts 6.9 KB

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