tableData.ts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. // 附件归档
  18. export const ZypFileTable = [
  19. ['txt', '附件名称', 'fileName'],
  20. ['txt', '归档人', 'creatorName'],
  21. ['txt', '归档时间', 'createTime']
  22. ]
  23. // 库存状态obj
  24. export const statusStorageObj: any = {}
  25. selectObj['库存状态'].forEach(v => {
  26. statusStorageObj[v.value] = v.label
  27. })
  28. // 入藏状态obj
  29. export const statusCollectObj: any = {}
  30. selectObj['入藏状态'].forEach(v => {
  31. statusCollectObj[v.value] = v.label
  32. })
  33. // 业务类型obj
  34. export const businessTypeObj: any = {}
  35. selectObj['业务类型'].forEach(v => {
  36. businessTypeObj[v.value] = v.label
  37. })
  38. export const B1TableC = [
  39. ['txt', '业务单号', 'num'],
  40. ['txt', '征集日期', 'type'],
  41. ['txt', '发起部门', 'creatorName'],
  42. ['txt', '发起人', 'createTime'],
  43. ['txt', '发起日期', 'createTime'],
  44. ['txt', '申请状态', 'createTime']
  45. ]
  46. // 藏品征集里面的藏品清单 待完善
  47. export const B1TableC2 = [
  48. ['txt', '名称', 'num'],
  49. ['txt', '初定年代', 'type'],
  50. ['txt', '年代', 'creatorName'],
  51. ['txt', '品种', 'createTime'],
  52. ['txt', '尺寸', 'createTime'],
  53. ['txt', '重量', 'createTime'],
  54. ['txt', '介绍', 'createTime'],
  55. ['txt', '图片', 'createTime'],
  56. ['txt', '报价(万元)', 'createTime'],
  57. ['txt', '原持有人', 'createTime'],
  58. ['txt', '征集方式', 'createTime'],
  59. ['txt', '附件数量', 'createTime']
  60. ]
  61. export const B3eTableC = [
  62. ['img', '封面图', 'thumb'],
  63. ['txt', '编号类型', 'numName'],
  64. ['txt', '藏品名称', 'name'],
  65. ['txt', '文物级别', 'dictLevel'],
  66. ['txtC', '文物类别', 'dictType'],
  67. ['txtC', '年代', 'dictAge'],
  68. ['ping', '数量', 'pcs', 'pcsUnit'],
  69. ['txtC', '质地', 'dictTexture3'],
  70. ['txtC', '完残程度', 'dictTorn'],
  71. ['txtC', '来源', 'source']
  72. ]
  73. export const B3FtableC = [
  74. ['txt', '节点名称', 'name'],
  75. ['txt', '提交日期', 'updateTime'],
  76. ['txt', '处理人', 'creatorName']
  77. ]
  78. export const D1GtableC = [
  79. ['img', '封面图', 'thumb'],
  80. ['txt', '编号类型', 'numName'],
  81. ['txt', '藏品名称', 'name'],
  82. ['ping', '数量', 'pcs', 'pcsUnit'],
  83. ['txtChange', '库存状态', 'statusStorage', statusStorageObj],
  84. ['txt', '区域名称', 'regionName'],
  85. ['txt', '排架', 'layer1'],
  86. ['txt', '层数', 'layer2'],
  87. ['txt', '层格', 'layer3'],
  88. ['txt', '库位说明', 'description']
  89. ]
  90. // 申请状态
  91. export const statusObj = {
  92. 1: '草稿',
  93. 6: '待提交',
  94. 2: '待审批',
  95. 3: '审批不通过',
  96. 4: '已完成',
  97. 5: '待盘点'
  98. }
  99. export const B3tableC = [
  100. ['txt', '业务单号', 'num'],
  101. ['txt', '申请名称', 'name'],
  102. ['txt', '发起部门', 'deptName'],
  103. ['txt', '发送人', 'creatorName'],
  104. ['txt', '发起日期', 'createTime'],
  105. ['txtChange', '申请状态', 'status', statusObj]
  106. ]
  107. export const C1tableC = [
  108. ['img', '封面图', 'thumb'],
  109. ['txt', '编号类型', 'numName'],
  110. ['txt', '藏品名称', 'name'],
  111. ['txt', '文物级别', 'dictLevel'],
  112. ['txtC', '文物类别', 'dictType'],
  113. ['txtC', '年代', 'dictAge'],
  114. ['txtC', '质地', 'dictTexture3'],
  115. ['txtC', '完残程度', 'dictTorn'],
  116. ['txtC', '来源', 'source'],
  117. ['txtChange', '入藏状态', 'statusCollect', statusCollectObj],
  118. ['txtChange', '库存状态', 'statusStorage', statusStorageObj]
  119. ]
  120. export const C2tableC = [
  121. ['txt', '藏品名称', 'goodName'],
  122. ['txt', '编号类型', 'goodNumName'],
  123. ['txt', '藏品编号', 'goodNum'],
  124. ['txt', '附件名称', 'fileName'],
  125. ['txt', '上传日期', 'updateTime'],
  126. ['txt', '上传人', 'creatorName'],
  127. ['txt', '附件大小', 'fileSize']
  128. ]
  129. // 待完善
  130. export const C4tableC = [
  131. ['txt', '数据类型', 'type'],
  132. ['txt', '导入数据行数', 'hang1'],
  133. ['txt', '合格数据行数', 'hang2'],
  134. ['txt', '异常数据行数', 'hang3']
  135. ]
  136. export const D1tableC = [
  137. ['txt', '区域名称', 'regionName'],
  138. ['txt', '排架', 'layer1'],
  139. ['txt', '层数', 'layer2'],
  140. ['txt', '层格', 'layer3'],
  141. ['txt', '库位说明', 'description']
  142. ]
  143. export const D2tableC = [
  144. ['txt', '仓库名称', 'name'],
  145. ['txt', '仓库编码', 'num'],
  146. ['txt', '仓库负责人', 'managerUser'],
  147. ['text', '仓库说明', 'description', 100],
  148. ['txtChange', '仓库状态', 'enable', { 0: '禁用', 1: '启用' }]
  149. ]
  150. export const D2tableCSon = [
  151. ['txt', '区域名称', 'regionName'],
  152. ['txt', '排架', 'layer1'],
  153. ['txt', '层数', 'layer2'],
  154. ['txt', '库位', 'layer3'],
  155. ['text', '库位说明', 'description', 50]
  156. ]
  157. export const D4tableC = [
  158. ['txt', '业务单号', 'num'],
  159. ['txt', '申请名称', 'name'],
  160. ['txt', '入库库房', 'storageName'],
  161. ['txt', '发起部门', 'deptName'],
  162. ['txt', '发送人', 'creatorName'],
  163. ['txt', '发起日期', 'createTime'],
  164. ['txtChange', '申请状态', 'status', statusObj]
  165. ]
  166. export const D6tableC = [
  167. ['txt', '业务单号', 'num'],
  168. ['txt', '申请名称', 'name'],
  169. ['txt', '出库库房', 'storageName'],
  170. ['txtChange', '是否需要归还', 'isReturn', { 1: '是', 0: '否' }],
  171. ['txt', '预计归还日期', 'returnDate'],
  172. ['txt', '发起部门', 'deptName'],
  173. ['txt', '发送人', 'creatorName'],
  174. ['txt', '发起日期', 'createTime'],
  175. ['txtChange', '申请状态', 'status', statusObj]
  176. ]
  177. export const D4goodsTableC = [
  178. ['img', '封面图', 'thumb'],
  179. ['txt', '编号类型', 'numName'],
  180. ['txt', '藏品名称', 'name'],
  181. ['ping', '数量', 'pcs', 'pcsUnit'],
  182. ['txtChange', '库存状态', 'statusStorage', statusStorageObj]
  183. ]
  184. export const E1tableC = [
  185. ['txt', '申请编号', 'num'],
  186. ['txt', '事故时间', 'date'],
  187. ['txt', '事故责任', 'sonTypeName'],
  188. ['txt', '编号类型', 'numName'],
  189. ['txt', '藏品编号', 'goodsNum'],
  190. ['txt', '藏品名称', 'goodsName'],
  191. ['txt', '鉴定人', 'authUser'],
  192. ['txt', '发起人', 'creatorName'],
  193. ['txt', '发送日期', 'createTime'],
  194. ['txtChange', '申请状态', 'status', statusObj]
  195. ]
  196. export const E2tableC = [
  197. ['txt', '业务单号', 'num'],
  198. ['txt', '申请名称', 'name'],
  199. ['txt', '关联库房', 'storageName'], //待完善
  200. ['txt', '发起部门', 'deptName'],
  201. ['txt', '发送人', 'creatorName'],
  202. ['txt', '发起日期', 'createTime'],
  203. ['txtChange', '申请状态', 'status', statusObj],
  204. ['txt', '相关盘点', '待完善']
  205. ]
  206. //
  207. export const E4tableC = [
  208. ['txt', '申请编号', 'num'],
  209. ['txt', '交修日期', 'dateStart'],
  210. ['txt', '交修部门', 'authUnit'],
  211. ['txt', '发起人', 'creatorName'],
  212. ['txt', '发送日期', 'createTime'],
  213. ['txtChange', '申请状态', 'status', statusObj]
  214. ]
  215. export const E4tableCgoods = [
  216. ['img', '封面图', 'thumb'],
  217. ['txt', '编号类型', 'numName'],
  218. ['txt', '藏品名称', 'name'],
  219. ['txt', '等级', 'dictLevel'],
  220. ['ping', '数量', 'pcs', 'pcsUnit']
  221. ]
  222. export const Y33tableC = [
  223. ['text', '附件名称', 'fileName', 50],
  224. ['txt', '附件大小', 'fileSize'],
  225. ['txt', '上传日期', 'updateTime'],
  226. ['txt', '上传人', 'creatorName']
  227. ]
  228. // 待完善
  229. export const Y44tableC = [
  230. ['txt', '业务类型', 'xxxx'],
  231. ['txt', '申请编号', 'description'],
  232. ['txt', '业务名称', 'description'],
  233. ['txt', '发起部门', 'description'],
  234. ['txt', '发起人', 'description'],
  235. ['txt', '发起日期', 'description'],
  236. ['txt', '申请状态', 'description']
  237. ]
  238. export const Z2tableC = [
  239. ['txt', '编号类型', 'name'],
  240. ['txt', '前缀', 'prefix'],
  241. ['txt', '日期方式', 'dateType'],
  242. ['txt', '起始流水编号', 'length']
  243. ]
  244. export const Z3tableC = [
  245. ['txt', '流程类型', 'typeKey'],
  246. ['txt', '流程名称', 'name'],
  247. ['text', '流程说明', 'remark', 50],
  248. ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
  249. ]
  250. export const Z3tableC2 = [
  251. ['index', '序号'],
  252. ['txt', '节点名称', 'name'],
  253. ['txt', '排序值', 'sort'],
  254. [
  255. 'txtChange',
  256. '办理人',
  257. 'type',
  258. { user: '指定用户', role: '按角色', dept: '按部门主管', '/': '/' }
  259. ]
  260. ]
  261. export const Z5tableC = [
  262. ['txt', '角色名称', 'roleName'],
  263. ['text', '角色说明', 'roleDesc', 50],
  264. ['txt', '排序值', 'sort']
  265. ]
  266. export const Z6tableC = [
  267. ['txt', '登录账号', 'userName'],
  268. ['txt', '所属部门', 'deptNameRes'],
  269. ['txt', '角色', 'roleName'],
  270. ['txt', '真实姓名', 'realName'],
  271. ['txt', '创建日期', 'createTime']
  272. ]
  273. export const Z7tableC = [
  274. ['index', '序号'],
  275. ['txt', '账号', 'userName'],
  276. ['txt', '操作日期', 'createTime'],
  277. ['txt', 'IP记录', 'ip'],
  278. ['txt', '操作模块', 'type'],
  279. ['txt', '操作事件', 'description']
  280. ]