data.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. import { selectObj } from '@/utils/select'
  2. import { A3flowSearchType, IA3flowListParams } from './types'
  3. import { businessTypeObj, statusObj } from '@/utils/tableData'
  4. import { D4_APIdel } from '@/store/action/D4impStor'
  5. import { B1_APIdel } from '@/store/action/B1collect'
  6. import { B2_APIdel } from '@/store/action/B2identify'
  7. import { FourAPI_del } from '@/store/action/FourAll'
  8. import { C6_APIdel } from '@/store/action/C6edit'
  9. import { D2_APIdel } from '@/store/action/D2storSet'
  10. import { D8_APIdel } from '@/store/action/D8cancel'
  11. import { E1_APIdel } from '@/store/action/E1accident'
  12. import { E2_APIdel } from '@/store/action/E2damaged'
  13. import { E3_APIdel } from '@/store/action/E3actuality'
  14. import { E4_APIdel } from '@/store/action/E4repair'
  15. export const DEFAULT_A3FLOW_PARAMS: IA3flowListParams = {
  16. pageNum: 1,
  17. pageSize: 10,
  18. num: '',
  19. type: '',
  20. name: '',
  21. deptName: '',
  22. userName: '',
  23. date: '',
  24. status: '',
  25. userType: ''
  26. }
  27. export const A3FLOW_PARAM_ROWS: A3flowSearchType[] = [
  28. { name: '业务类型', key: 'type', type: '下拉框', data: selectObj['业务类型'] },
  29. { name: '业务编号', key: 'num', type: '输入框' },
  30. { name: '申请名称', key: 'name', type: '输入框' },
  31. { name: '发起部门', key: 'deptName', type: '输入框' },
  32. { name: '发起人', key: 'userName', type: '输入框' },
  33. { name: '发起日期范围', key: 'date', type: '日期选择' },
  34. { name: '申请状态', key: 'status', type: '下拉框', data: selectObj['流程申请状态'] },
  35. { name: '选择角色', key: 'userType', type: '下拉框', data: selectObj['角色'] }
  36. ]
  37. export const A3FLOW_TABLE_COLUMNS = [
  38. ['txtChange', '业务类型', 'type', businessTypeObj],
  39. ['txt', '业务编号', 'num'],
  40. ['txt', '申请名称', 'name'],
  41. ['txt', '发起部门', 'deptName'],
  42. ['txt', '发起人', 'creatorName'],
  43. ['txt', '发起日期', 'createTime'],
  44. ['txtChange', '申请状态', 'status', statusObj]
  45. ]
  46. // TOFIX: 待完善
  47. // 业务类型详情映射
  48. export const BUSINESS_DETAIL_PATH_MAP: Record<string, string> = {
  49. // 藏品征集
  50. ZJ: 'collect_edit',
  51. // 藏品鉴定
  52. JD: 'identify_edit',
  53. // 藏品入馆
  54. RG: 'entering_edit',
  55. // 藏品入藏
  56. RC: 'enterTibet_edit',
  57. // 藏品登记
  58. DJ: 'register_edit',
  59. // 藏品编辑
  60. BJ: 'goodEdit_edit',
  61. // 藏品删除
  62. SC: '',
  63. // 藏品入库
  64. RK: 'impStor_edit',
  65. // 藏品移库
  66. YK: 'moveStor_edit',
  67. // 藏品出库
  68. CK: 'putsStor_edit',
  69. // 藏品注销
  70. ZX: 'cancel_edit',
  71. // 藏品盘点
  72. PD: 'check_edit',
  73. // 人员出入库
  74. CR: 'staff_edit',
  75. // 事故登记
  76. SG: 'accident_edit',
  77. // 残损登记
  78. CS: 'damaged_edit',
  79. // 现状登记
  80. XZ: 'actuality_edit',
  81. // 文物修复
  82. XF: 'repair_edit',
  83. // 借展管理
  84. ZL: 'exhibition_edit',
  85. // 藏品总登记号
  86. ZDJ: ''
  87. }
  88. // TOFIX: 待完善
  89. // 业务类型删除接口映射
  90. export const BUSINESS_DELETE_API_MAP: Record<string, Function> = {
  91. // 藏品征集
  92. ZJ: B1_APIdel,
  93. // 藏品鉴定
  94. JD: B2_APIdel,
  95. // 藏品入馆
  96. RG: (id: number) => FourAPI_del('1', id),
  97. // 藏品入藏
  98. RC: (id: number) => FourAPI_del('2', id),
  99. // 藏品登记
  100. DJ: (id: number) => FourAPI_del('3', id),
  101. // 藏品编辑
  102. BJ: C6_APIdel,
  103. // 藏品删除
  104. SC: (id: number) => FourAPI_del('4', id),
  105. // 藏品入库
  106. RK: D4_APIdel,
  107. // 藏品移库
  108. // YK: ,
  109. // 藏品出库
  110. CK: D2_APIdel,
  111. // 藏品注销
  112. ZX: D8_APIdel,
  113. // 藏品盘点
  114. // PD: ,
  115. // 人员出入库
  116. // CR: ,
  117. // 事故登记
  118. SG: E1_APIdel,
  119. // 残损登记
  120. CS: E2_APIdel,
  121. // 现状登记
  122. XZ: E3_APIdel,
  123. // 文物修复
  124. XF: E4_APIdel
  125. // 展览申请
  126. // ZL: ,
  127. // 藏品总登记号
  128. // ZDJ:
  129. }