tableData.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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. // 申请状态
  39. export const statusObj = {
  40. 1: '草稿',
  41. 6: '待提交',
  42. 2: '待审批',
  43. 3: '审批不通过',
  44. 4: '已完成',
  45. 5: '待盘点'
  46. }
  47. // 藏品征集
  48. export const B1TableC = [
  49. ['txt', '业务单号', 'num'],
  50. ['txt', '征集日期', 'date'],
  51. ['txt', '发起部门', 'deptName'],
  52. ['txt', '发起人', 'creatorName'],
  53. ['txt', '发起日期', 'createTime'],
  54. ['txtChange', '申请状态', 'status', statusObj]
  55. ]
  56. // 藏品征集里面的藏品清单
  57. export const B1TableC2 = [
  58. ['img', '封面图', 'thumb'],
  59. ['txt', '名称', 'name'],
  60. ['txtC', '初定年代', 'dictAgeFirst'],
  61. ['txtC', '年代', 'dictAge'],
  62. ['txtC', '品种', 'dictType'],
  63. ['size', '尺寸', 'sizeUnit'],
  64. ['ping', '重量', 'quality', 'qualityUnit'],
  65. ['text', '介绍', 'intro', 50],
  66. ['txt', '报价(万元)', 'offer'],
  67. ['txt', '原持有人', 'holder'],
  68. ['txtC', '征集方式', 'source']
  69. ]
  70. // 藏品鉴定里面的藏品清单
  71. export const B2TableC2 = [
  72. ['txt', '登记号类型', 'numName'],
  73. ['img', '封面图', 'thumb'],
  74. ['txt', '分类号', 'numType'],
  75. ['txt', '文物名称', 'name'],
  76. ['ping', '数量', 'pcs', 'pcsUnit'],
  77. ['txtC', '质地', 'dictTexture3'],
  78. ['txtC', '年代', 'dictAge'],
  79. ['size', '尺寸', 'sizeUnit'],
  80. ['ping', '重量', 'quality', 'qualityUnit'],
  81. ['txtC', '现状', 'dictTorn'],
  82. ['txt', '文物级别', 'dictLevel'],
  83. ['text', '备注', 'intro', 50]
  84. ]
  85. // 藏品入馆、入藏
  86. export const B34TableC = (type: '入馆' | '入藏') => {
  87. return [
  88. ['txt', `${type}日期`, 'date'],
  89. ['txt', `${type}凭证号`, 'num'],
  90. ['txt', '发起部门', 'deptName'],
  91. ['txt', '发起人', 'creatorName'],
  92. ['txt', '发起日期', 'createTime'],
  93. ['txtChange', '申请状态', 'status', statusObj]
  94. ]
  95. }
  96. // 藏品入馆、入藏里面的表单
  97. export const B34TableC2 = [
  98. ['txt', '登记号类型', 'numName'],
  99. ['img', '封面图', 'thumb'],
  100. ['txt', '名称', 'name'],
  101. ['ping', '数量/单位', 'pcs', 'pcsUnit'],
  102. ['txtC', '时代', 'dictAge'],
  103. ['txtC', '质地', 'dictTexture3'],
  104. ['txtC', '完残情况', 'dictTorn'],
  105. ['txtC', '来源', 'source'],
  106. ['txt', '处理情况', 'accountType'],
  107. ['text', '备注', 'intro', 50]
  108. ]
  109. export const B3eTableC = [
  110. ['img', '封面图', 'thumb'],
  111. ['txt', '编号类型', 'numName'],
  112. ['txt', '藏品名称', 'name'],
  113. ['txt', '文物级别', 'dictLevel'],
  114. ['txtC', '文物类别', 'dictType'],
  115. ['txtC', '年代', 'dictAge'],
  116. ['ping', '数量', 'pcs', 'pcsUnit'],
  117. ['txtC', '质地', 'dictTexture3'],
  118. ['txtC', '完残程度', 'dictTorn'],
  119. ['txtC', '来源', 'source']
  120. ]
  121. export const B3FtableC = [
  122. ['txt', '节点名称', 'name'],
  123. ['txt', '提交日期', 'updateTime'],
  124. ['txt', '处理人', 'creatorName']
  125. ]
  126. export const D1GtableC = [
  127. ['txt', '编号类型', 'numName'],
  128. ['txt', '库位号', 'siteNum'],
  129. // ['img', '封面图', 'thumb'],
  130. ['txt', '藏品名称', 'name'],
  131. ['ping', '数量', 'pcs', 'pcsUnit'],
  132. ['txtChange', '库存状态', 'statusStorage', statusStorageObj]
  133. // ['txt', '区域名称', 'regionName'],
  134. // ['txt', '排架', 'layer1'],
  135. // ['txt', '层数', 'layer2'],
  136. // ['txt', '层格', 'layer3'],
  137. // ['txt', '库位说明', 'description']
  138. ]
  139. export const B3tableC = [
  140. ['txt', '业务单号', 'num'],
  141. ['txt', '申请名称', 'name'],
  142. ['txt', '发起部门', 'deptName'],
  143. ['txt', '发送人', 'creatorName'],
  144. ['txt', '发起日期', 'createTime'],
  145. ['txtChange', '申请状态', 'status', statusObj]
  146. ]
  147. export const C1tableC = [
  148. ['img', '封面图', 'thumb'],
  149. ['txt', '编号类型', 'numName'],
  150. ['txt', '藏品名称', 'name'],
  151. ['txt', '文物级别', 'dictLevel'],
  152. ['txtC', '文物类别', 'dictType'],
  153. ['txtC', '年代', 'dictAge'],
  154. ['txtC', '质地', 'dictTexture3'],
  155. ['txtC', '完残程度', 'dictTorn'],
  156. ['txtC', '来源', 'source'],
  157. ['txtChange', '入藏状态', 'statusCollect', statusCollectObj],
  158. ['txtChange', '库存状态', 'statusStorage', statusStorageObj]
  159. ]
  160. // 藏品附件 的藏品编号可以不用点击
  161. export const C2tableC = [
  162. ['txt', '藏品名称', 'goodName'],
  163. ['txt', '编号类型', 'goodNumName'],
  164. ['txt', '藏品编号', 'goodNum'],
  165. ['txt', '附件名称', 'fileName'],
  166. ['txt', '上传日期', 'updateTime'],
  167. ['txt', '上传人', 'creatorName'],
  168. ['txt', '附件大小', 'fileSize']
  169. ]
  170. // 待完善
  171. export const C4tableC = [
  172. ['txt', '数据类型', 'type'],
  173. ['txt', '导入数据行数', 'hang1'],
  174. ['txt', '合格数据行数', 'hang2'],
  175. ['txt', '异常数据行数', 'hang3']
  176. ]
  177. // V1.1.1藏品编辑
  178. export const C6tableC = [
  179. ['txt', '藏品名称', 'goodsName'],
  180. ['txt', '业务单号', 'num'],
  181. ['txt', '编辑类型', 'typeName'],
  182. ['txt', '发起部门', 'deptName'],
  183. ['txt', '发送人', 'creatorName'],
  184. ['txt', '发起日期', 'createTime'],
  185. ['txtChange', '申请状态', 'status', statusObj]
  186. ]
  187. export const D1tableC = [
  188. ['txt', '区域名称', 'regionName'],
  189. ['txt', '排架', 'layer1'],
  190. ['txt', '层数', 'layer2'],
  191. ['txt', '层格', 'layer3'],
  192. ['txt', '库位说明', 'description']
  193. ]
  194. export const D2tableC = [
  195. ['txt', '仓库名称', 'name'],
  196. ['txt', '分库缩写', 'num'],
  197. ['txt', '仓库负责人', 'managerUser'],
  198. ['text', '仓库说明', 'description', 100],
  199. ['txtChange', '仓库状态', 'enable', { 0: '禁用', 1: '启用' }]
  200. ]
  201. export const D2tableCSon = [
  202. ['txt', '区域名称', 'regionName'],
  203. ['txt', '排架', 'layer1'],
  204. ['txt', '层数', 'layer2'],
  205. ['txt', '库位', 'layer3'],
  206. ['text', '库位说明', 'description', 50]
  207. ]
  208. export const D4tableC = [
  209. ['txt', '入库日期', 'date'],
  210. ['txt', '入库单编号', 'num'],
  211. ['txt', '分库缩写', 'sonNum'],
  212. ['txt', '发起部门', 'deptName'],
  213. ['txt', '发送人', 'creatorName'],
  214. ['txt', '发起日期', 'createTime'],
  215. ['txtChange', '申请状态', 'status', statusObj]
  216. ]
  217. export const D6tableC = [
  218. ['txt', '业务单号', 'num'],
  219. ['txt', '申请名称', 'name'],
  220. ['txt', '出库库房', 'storageName'],
  221. ['txtChange', '是否需要归还', 'isReturn', { 1: '是', 0: '否' }],
  222. ['txt', '预计归还日期', 'returnDate'],
  223. ['txt', '发起部门', 'deptName'],
  224. ['txt', '发送人', 'creatorName'],
  225. ['txt', '发起日期', 'createTime'],
  226. ['txtChange', '申请状态', 'status', statusObj]
  227. ]
  228. // 旧版的入库里面的表单 -太多地方用了 不改了
  229. export const D4goodsTableC = [
  230. ['img', '封面图', 'thumb'],
  231. ['txt', '编号类型', 'numName'],
  232. ['txt', '藏品名称', 'name'],
  233. ['ping', '数量', 'pcs', 'pcsUnit'],
  234. ['txtChange', '库存状态', 'statusStorage', statusStorageObj]
  235. ]
  236. // 新版的入库里面的表单
  237. export const D4tableCgoods = [
  238. ['txt', '名称', 'name'],
  239. ['txtC', '年代', 'dictAge'],
  240. ['ping', '数量', 'pcs', 'pcsUnit'],
  241. ['size', '尺寸', 'sizeUnit'],
  242. ['ping', '重量', 'quality', 'qualityUnit'],
  243. ['txtC', '完残情况', 'dictTorn']
  244. ]
  245. export const D8tableC = [
  246. ['txt', '业务单号', 'num'],
  247. ['txt', '发起部门', 'deptName'],
  248. ['txt', '发送人', 'creatorName'],
  249. ['txt', '发起日期', 'createTime'],
  250. ['txtChange', '申请状态', 'status', statusObj]
  251. ]
  252. export const D8tableCgoods = [
  253. ['txt', '编号类型', 'numName'],
  254. ['txt', '藏品分类号', 'numType'],
  255. ['txt', '藏品名称', 'name'],
  256. ['txtC', '年代', 'dictAge'],
  257. ['ping', '数量', 'pcs', 'pcsUnit'],
  258. ['size', '尺寸', 'sizeUnit'],
  259. ['ping', '重量', 'quality', 'qualityUnit'],
  260. ['txtC', '完残情况', 'dictTorn']
  261. ]
  262. export const E1tableC = [
  263. ['txt', '编号类型', 'numName'],
  264. ['txt', '申请编号', 'num'],
  265. ['txt', '事故时间', 'date'],
  266. ['txt', '事故责任', 'sonTypeName'],
  267. ['txt', '藏品名称', 'goodsName'],
  268. ['txt', '鉴定人', 'authUser'],
  269. ['txt', '发起人', 'creatorName'],
  270. ['txt', '发送日期', 'createTime'],
  271. ['txtChange', '申请状态', 'status', statusObj]
  272. ]
  273. export const E2tableC = [
  274. ['txt', '业务单号', 'num'],
  275. ['txt', '申请名称', 'name'],
  276. ['txt', '关联库房', 'storageName'], //待完善
  277. ['txt', '发起部门', 'deptName'],
  278. ['txt', '发送人', 'creatorName'],
  279. ['txt', '发起日期', 'createTime'],
  280. ['txtChange', '申请状态', 'status', statusObj],
  281. ['txt', '相关盘点', '待完善']
  282. ]
  283. //
  284. export const E4tableC = [
  285. ['txt', '申请编号', 'num'],
  286. ['txt', '交修日期', 'dateStart'],
  287. ['txt', '交修部门', 'authUnit'],
  288. ['txt', '发起人', 'creatorName'],
  289. ['txt', '发送日期', 'createTime'],
  290. ['txtChange', '申请状态', 'status', statusObj]
  291. ]
  292. export const E4tableCgoods = [
  293. ['img', '封面图', 'thumb'],
  294. ['txt', '编号类型', 'numName'],
  295. ['txt', '藏品名称', 'name'],
  296. ['txt', '等级', 'dictLevel'],
  297. ['ping', '数量', 'pcs', 'pcsUnit']
  298. ]
  299. export const Y33tableC = [
  300. ['text', '附件名称', 'fileName', 50],
  301. ['txt', '附件大小', 'fileSize'],
  302. ['txt', '上传日期', 'updateTime'],
  303. ['txt', '上传人', 'creatorName']
  304. ]
  305. // 待完善
  306. export const Y44tableC = [
  307. ['txt', '业务类型', 'xxxx'],
  308. ['txt', '申请编号', 'description'],
  309. ['txt', '业务名称', 'description'],
  310. ['txt', '发起部门', 'description'],
  311. ['txt', '发起人', 'description'],
  312. ['txt', '发起日期', 'description'],
  313. ['txt', '申请状态', 'description']
  314. ]
  315. export const Z2tableC = [
  316. ['txt', '编号类型', 'name'],
  317. ['txt', '前缀', 'prefix'],
  318. ['txt', '日期方式', 'dateType'],
  319. ['txt', '起始流水编号', 'length']
  320. ]
  321. export const Z3tableC = [
  322. ['txt', '流程类型', 'typeKey'],
  323. ['txt', '流程名称', 'name'],
  324. ['text', '流程说明', 'remark', 50],
  325. ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
  326. ]
  327. export const Z3tableC2 = [
  328. ['index', '序号'],
  329. ['txt', '节点名称', 'name'],
  330. ['txt', '排序值', 'sort'],
  331. [
  332. 'txtChange',
  333. '办理人',
  334. 'type',
  335. { user: '指定用户', role: '按角色', dept: '按部门主管', '/': '/' }
  336. ]
  337. ]
  338. export const Z5tableC = [
  339. ['txt', '角色名称', 'roleName'],
  340. ['text', '角色说明', 'roleDesc', 50],
  341. ['txt', '排序值', 'sort']
  342. ]
  343. export const Z6tableC = [
  344. ['txt', '登录账号', 'userName'],
  345. ['txt', '所属部门', 'deptNameRes'],
  346. ['txt', '角色', 'roleName'],
  347. ['txt', '真实姓名', 'realName'],
  348. ['txt', '创建日期', 'createTime']
  349. ]
  350. export const Z7tableC = [
  351. ['index', '序号'],
  352. ['txt', '账号', 'userName'],
  353. ['txt', '操作日期', 'createTime'],
  354. ['txt', 'IP记录', 'ip'],
  355. ['txt', '操作模块', 'type'],
  356. ['txt', '操作事件', 'description']
  357. ]