tableData.ts 14 KB

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