tableData.ts 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. ['img', '封面', 'thumb'],
  31. ['txt', '线索名称', 'name'],
  32. ['txt', '线索编号', 'num'],
  33. ['text', '线索简介', 'intro', 50],
  34. ['txt', '联系方式', 'phone'],
  35. ['txtC', '初步藏品类别', 'typeDictId'],
  36. ['txtC', '初步藏品年代', 'ageDictId'],
  37. ['select', '完残程度', 'tornLevel', selectObj['完残程度']],
  38. ['text', '备注', 'remark', 50]
  39. ]
  40. // 藏品登记-订单页面的藏品清单 、-----选择藏品-藏品
  41. export const goodsSonTableC = (loc?: boolean) => {
  42. const arr: any = [
  43. ['txt', '藏品登记号', 'num'],
  44. ['img', '封面', 'thumb'],
  45. ['txtCTag', '藏品标签', 'tagDictId'],
  46. ['txt', '藏品名称', 'name'],
  47. ['select', '级别', 'level', selectObj['藏品级别']],
  48. ['txtC', '类别', 'typeDictId'],
  49. ['txtC', '年代', 'ageDictId'],
  50. ['txtC', '质地', 'textureDictId'],
  51. ['select', '完残程度', 'tornLevel', selectObj['完残程度']],
  52. ['ping', '数量', 'pcs', 'pcsUnitDictId']
  53. ]
  54. if (loc) arr.push(['txt', '库房位置', 'siteLoc'])
  55. return arr
  56. }
  57. // -----选择藏品-线索
  58. export const goodsSelectCuleC = [
  59. ['txt', '线索编号', 'num'],
  60. ['img', '封面', 'thumb'],
  61. ['txt', '线索名称', 'name'],
  62. ['txtC', '初定类别', 'typeDictId'],
  63. ['txtC', '初定年代', 'ageDictId'],
  64. ['select', '完残程度', 'tornLevel', selectObj['完残程度']]
  65. ]
  66. export const I3tableC = [
  67. ['txt', '编号类型', 'name'],
  68. ['txt', '前缀', 'prefix'],
  69. ['txt', '日期方式', 'dateType'],
  70. ['txt', '起始流水编号', 'length']
  71. ]
  72. export const I4tableC = [
  73. // ['txt', '流程类型', 'typeKey'],
  74. ['txt', '流程名称', 'name'],
  75. ['text', '流程说明', 'remark', 50],
  76. ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
  77. ]
  78. export const I4tableC2 = [
  79. ['index', '序号'],
  80. ['txt', '节点名称', 'name'],
  81. ['txt', '排序值', 'sort'],
  82. ['txtChange', '办理人', 'type', { user: '指定用户', role: '按角色' }]
  83. ]
  84. export const I6tableC = [
  85. ['txt', '角色名称', 'roleName'],
  86. ['text', '角色说明', 'roleDesc', 50],
  87. ['txt', '排序值', 'sort']
  88. ]
  89. export const I7tableC = [
  90. ['txt', '登录账号', 'userName'],
  91. ['txt', '所属部门', 'deptNameRes'],
  92. ['txt', '角色', 'roleName'],
  93. ['txt', '真实姓名', 'realName'],
  94. ['txt', '创建日期', 'createTime']
  95. ]
  96. export const I8tableC = [
  97. ['index', '序号'],
  98. ['txt', '账号', 'userName'],
  99. ['txt', '操作日期', 'createTime'],
  100. ['txt', 'IP记录', 'ip'],
  101. ['txt', '操作模块', 'type'],
  102. ['txt', '操作事件', 'description']
  103. ]
  104. // 故事管理
  105. export const storyTableC = [
  106. ['txt', '故事标题', 'name'],
  107. ['txt', '关联藏品', 'goodName'],
  108. ['txt', '藏品标签', 'tagName'],
  109. ['txt', '录入人', 'creatorName'],
  110. ['txt', '录入日期', 'createTime']
  111. ]
  112. // 故事管理里面的添加藏品
  113. export const storyAndGoodsTableC = [
  114. ['txt', '藏品登记号', 'num'],
  115. ['img', '封面', 'thumb'],
  116. ['txt', '藏品标签', 'tagName'],
  117. ['txt', '藏品名称', 'name']
  118. ]
  119. // 库房设置
  120. export const storageSetTableC = [
  121. ['txt', '库房名称', 'storageName'],
  122. [
  123. 'custom',
  124. '仓位编号(排-列-层-格)',
  125. (item: any) =>
  126. [item.layer1, item.layer2, item.layer3, item.layer4].filter(i => Boolean(i)).join('-')
  127. ]
  128. ]
  129. export const warehouseSetTableC = [
  130. ['txt', '库房名称', 'name'],
  131. ['txt', '库房负责人', 'managerUser'],
  132. ['txt', '库房说明', 'description']
  133. ]
  134. //藏品附件
  135. export const goodsFileTableC = [
  136. ['select', '附件类型', 'type', selectObj['附件类型']],
  137. ['txt', '附件名称', 'fileName'],
  138. ['txt', '藏品登记号', 'joinNum'],
  139. ['txt', '藏品名称', 'joinName'],
  140. ['dateRes', '上传日期', 'createTime'],
  141. ['txt', '上传人', 'creatorName'],
  142. ['sizeNum', '文件大小(mb)', 'fileSize', 1024]
  143. ]
  144. // 藏品入库
  145. export const inStorageTableC = [
  146. ['txt', '入库日期', 'createTime'],
  147. ['txt', '入库库房', 'storageName'],
  148. ['txt', '申请编号', 'num'],
  149. ['txt', '发起部门', 'deptName'],
  150. ['txt', '发起人', 'creatorName'],
  151. ['txt', '发起日期', 'date'],
  152. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  153. ]
  154. // 藏品出库
  155. export const outStorageTableC = [
  156. ['txt', '出库日期', 'createTime'],
  157. ['txt', '出库库房', 'storageName'],
  158. ['txt', '申请编号', 'num'],
  159. ['txt', '发起部门', 'deptName'],
  160. ['txt', '发起人', 'creatorName'],
  161. ['txt', '发起日期', 'date'],
  162. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  163. ]
  164. // 藏品详情----藏品附件
  165. export const GI3tableC = [
  166. ['select', '附件类型', 'type', selectObj['附件类型']],
  167. ['txt', '附件名称', 'fileName'],
  168. ['dateRes', '上传日期', 'createTime'],
  169. ['txtC', '上传人', 'creatorName'],
  170. ['sizeNum', '文件大小(mb)', 'fileSize', 1024]
  171. ]
  172. // 藏品详情----藏品故事
  173. export const GI4tableC = [
  174. ['txt', '故事名称', 'name'],
  175. ['text', '备注', 'remark', 50],
  176. ['txt', '编辑人', 'creatorName']
  177. ]
  178. // 藏品详情----藏品日志 / 工作台
  179. export const GI5tableC = (flag?: boolean) => {
  180. let arr = [
  181. ['dateRes', '业务发生日期', 'date'],
  182. ['txt', '申请编号', 'num'],
  183. ['txt', '发起部门', 'deptName'],
  184. ['txt', '发起人', 'creatorName'],
  185. ['txt', '发起日期', 'date'],
  186. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  187. ]
  188. if (flag) arr.shift()
  189. return arr
  190. }
  191. // 流程中心
  192. export const flowCenterTableC = [
  193. ['txt', '申请编号', 'num'],
  194. ['txt', '发起部门', 'deptName'],
  195. ['txt', '发起人', 'creatorName'],
  196. ['txt', '发起日期', 'date'],
  197. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  198. ]
  199. // 凭证中心
  200. export const voucherCenterTableC = [
  201. ['txt', '凭证名称', 'fileName'],
  202. ['txt', '归档日期', 'createTime'],
  203. ['txt', '归档人', 'creatorName'],
  204. ['txt', '业务编号', 'joinNum']
  205. ]
  206. // 藏品盘点
  207. export const checkTableC = [
  208. ['txt', '盘点日期', 'createTime'],
  209. ['txt', '盘点库房', 'storageName'],
  210. ['txt', '申请编号', 'num'],
  211. ['txt', '发起部门', 'deptName'],
  212. ['txt', '发起人', 'creatorName'],
  213. ['txt', '发起日期', 'date'],
  214. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  215. ]
  216. // 导入藏品数据/图片
  217. export const importDataTableC = [
  218. ['txt', '文件名称', 'fileName'],
  219. ['txt', '导入数据', 'pcsTotal'],
  220. ['txt', '成功数据', 'pcsSuccess'],
  221. ['txt', '失败数据', 'pcsError'],
  222. ['dateRes', '导入日期', 'createTime'],
  223. ['txt', '导入用户', 'creatorName']
  224. ]
  225. // 导入藏品数据校验
  226. export const importDataTableCheckC = [
  227. ['txt', '藏品登记号', 'num'],
  228. ['txt', '藏品名称', 'name'],
  229. ['txtChange', '校验结果', 'importIsTrue', { 0: '失败', 1: '成功' }]
  230. ]
  231. // 导入藏品图片校验
  232. export const importZipDataTableCheckC = [
  233. ['txt', '图片名称', 'fileName'],
  234. ['txtChange', '校验结果', 'isTrue', { 0: '失败', 1: '成功' }]
  235. ]
  236. // 资源使用
  237. export const resourceTableC = [
  238. ['txt', '使用日期', 'createTime'],
  239. ['txt', '申请编号', 'num'],
  240. ['txt', '发起部门', 'deptName'],
  241. ['txt', '发起人', 'creatorName'],
  242. ['txt', '发起日期', 'date'],
  243. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  244. ]
  245. // 藏品移库
  246. export const moveStorageTableC = [
  247. ['txt', '移库日期', 'createTime'],
  248. ['txt', '移库库房', 'extraInfo'],
  249. ['txt', '申请编号', 'num'],
  250. ['txt', '发起部门', 'deptName'],
  251. ['txt', '发起人', 'creatorName'],
  252. ['txt', '发起日期', 'date'],
  253. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  254. ]
  255. // 人员出入库
  256. export const staffTableC = [
  257. ['txt', '出入日期', 'createTime'],
  258. ['txt', '相关库房', 'storageName'],
  259. ['txt', '申请编号', 'num'],
  260. ['txt', '发起部门', 'deptName'],
  261. ['txt', '发起人', 'creatorName'],
  262. ['txt', '发起日期', 'date'],
  263. ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
  264. ]