tableData.ts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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', '库房位置', 'siteLoc'])
  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. ]
  118. // 库房设置
  119. export const storageSetTableC = [
  120. ['txt', '库房名称', 'storageName'],
  121. [
  122. 'custom',
  123. '仓位编号(排-列-层-格)',
  124. (item: any) =>
  125. [item.layer1, item.layer2, item.layer3, item.layer4].filter(i => Boolean(i)).join('-')
  126. ]
  127. ]
  128. export const warehouseSetTableC = [
  129. ['txt', '库房名称', 'name'],
  130. ['txt', '库房负责人', 'managerUser'],
  131. ['txt', '库房说明', 'description']
  132. ]
  133. //藏品附件
  134. export const goodsFileTableC = [
  135. ['select', '附件类型', 'type', selectObj['附件类型']],
  136. ['txt', '附件名称', 'fileName'],
  137. ['txt', '藏品登记号', 'joinNum'],
  138. ['txt', '藏品名称', 'joinName'],
  139. ['dateRes', '上传日期', 'createTime'],
  140. ['txtC', '上传人', 'creatorName'],
  141. ['sizeNum', '文件大小(mb)', 'fileSize', 1024]
  142. ]
  143. // 藏品入库
  144. export const inStorageTableC = [
  145. ['txt', '入库日期', 'createTime'],
  146. ['txt', '入库库房', 'storageName'],
  147. ['txt', '申请编号', 'num'],
  148. ['txt', '发起部门', 'deptName'],
  149. ['txt', '发起人', 'creatorName'],
  150. ['txt', '发起日期', 'date'],
  151. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  152. ]
  153. // 藏品出库
  154. export const outStorageTableC = [
  155. ['txt', '出库日期', 'createTime'],
  156. ['txt', '出库库房', 'storageName'],
  157. ['txt', '申请编号', 'num'],
  158. ['txt', '发起部门', 'deptName'],
  159. ['txt', '发起人', 'creatorName'],
  160. ['txt', '发起日期', 'date'],
  161. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  162. ]
  163. // 藏品详情----藏品附件
  164. export const GI3tableC = [
  165. ['select', '附件类型', 'type', selectObj['附件类型']],
  166. ['txt', '附件名称', 'fileName'],
  167. ['dateRes', '上传日期', 'createTime'],
  168. ['txtC', '上传人', 'creatorName'],
  169. ['sizeNum', '文件大小(mb)', 'fileSize', 1024]
  170. ]
  171. // 藏品详情----藏品故事
  172. export const GI4tableC = [
  173. ['txt', '故事名称', 'name'],
  174. ['text', '备注', 'remark', 50],
  175. ['txt', '编辑人', 'creatorName']
  176. ]
  177. // 藏品详情----藏品日志 / 工作台
  178. export const GI5tableC = (flag?: boolean) => {
  179. let arr = [
  180. ['dateRes', '业务发生日期', 'date'],
  181. ['txt', '申请编号', 'num'],
  182. ['txt', '发起部门', 'deptName'],
  183. ['txt', '发起人', 'creatorName'],
  184. ['txt', '发起日期', 'date'],
  185. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  186. ]
  187. if (flag) arr.shift()
  188. return arr
  189. }
  190. // 流程中心
  191. export const flowCenterTableC = [
  192. ['txt', '申请编号', 'num'],
  193. ['txt', '发起部门', 'deptName'],
  194. ['txt', '发起人', 'creatorName'],
  195. ['txt', '发起日期', 'date'],
  196. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  197. ]
  198. // 藏品盘点
  199. export const checkTableC = [
  200. ['txt', '盘点日期', 'createTime'],
  201. ['txt', '盘点库房', 'storageName'],
  202. ['txt', '申请编号', 'num'],
  203. ['txt', '发起部门', 'deptName'],
  204. ['txt', '发起人', 'creatorName'],
  205. ['txt', '发起日期', 'date'],
  206. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  207. ]
  208. // 导入藏品数据/图片
  209. export const importDataTableC = [
  210. ['txt', '文件名称', 'name'],
  211. ['txt', '导入数据', 'thumb'],
  212. ['txt', '成功数据', 'joinNum'],
  213. ['txt', '失败数据', 'joinName'],
  214. ['dateRes', '导入日期', 'createTime'],
  215. ['txt', '导入用户', 'creatorName'],
  216. ['txt', '导入结果', 'fileSize']
  217. ]
  218. // 资源使用
  219. export const resourceTableC = [
  220. ['txt', '使用日期', 'createTime'],
  221. ['txt', '申请编号', 'num'],
  222. ['txt', '发起部门', 'deptName'],
  223. ['txt', '发起人', 'creatorName'],
  224. ['txt', '发起日期', 'date'],
  225. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  226. ]