hrp-ui-base 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/dist/components.cjs +1 -1
  2. package/dist/components.es.js +3595 -1224
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.es.js +100 -67
  5. package/dist/style.css +1 -1
  6. package/package.json +16 -4
  7. package/packages/approval-process/.eslintrc +7 -0
  8. package/packages/approval-process/README.md +130 -0
  9. package/packages/approval-process/index.ts +65 -0
  10. package/packages/approval-process/package.json +17 -0
  11. package/packages/approval-process/packages/components/choose-member/BO/departBo.ts +8 -0
  12. package/packages/approval-process/packages/components/choose-member/BO/memberBo.ts +14 -0
  13. package/packages/approval-process/packages/components/choose-member/BO/role.svg +1 -0
  14. package/packages/approval-process/packages/components/choose-member/BO/roleBo.ts +16 -0
  15. package/packages/approval-process/packages/components/choose-member/index.vue +497 -0
  16. package/packages/approval-process/packages/components/choose-member/styles/common.scss +134 -0
  17. package/packages/approval-process/packages/components/comment/assets/avatar.svg +1 -0
  18. package/packages/approval-process/packages/components/comment/assets/download.svg +4 -0
  19. package/packages/approval-process/packages/components/comment/assets/mp3.svg +11 -0
  20. package/packages/approval-process/packages/components/comment/assets/mp4.svg +11 -0
  21. package/packages/approval-process/packages/components/comment/assets/other.svg +11 -0
  22. package/packages/approval-process/packages/components/comment/assets/pdf.svg +11 -0
  23. package/packages/approval-process/packages/components/comment/assets/ppt.svg +11 -0
  24. package/packages/approval-process/packages/components/comment/assets/preview.svg +4 -0
  25. package/packages/approval-process/packages/components/comment/assets/remove.png +0 -0
  26. package/packages/approval-process/packages/components/comment/assets/word.svg +11 -0
  27. package/packages/approval-process/packages/components/comment/assets/xls.svg +11 -0
  28. package/packages/approval-process/packages/components/comment/index.vue +843 -0
  29. package/packages/approval-process/packages/components/comment/modules/previewMp.vue +54 -0
  30. package/packages/approval-process/packages/components/comment/styles/comment-style.scss +304 -0
  31. package/packages/approval-process/packages/components/image-cropper/index.vue +202 -0
  32. package/packages/approval-process/packages/components/sign/index.vue +766 -0
  33. package/packages/approval-process/packages/components/sign/modules/full-screen-sign.vue +20 -0
  34. package/packages/approval-process/packages/components/urge-dialog/index.vue +121 -0
  35. package/packages/approval-process/packages/components/vue-esign/index.vue +289 -0
  36. package/packages/approval-process/packages/flow/approve-component/approve-success.vue +82 -0
  37. package/packages/approval-process/packages/flow/approve-component/route-params-error.vue +49 -0
  38. package/packages/approval-process/packages/flow/approve-component/submit-success.vue +59 -0
  39. package/packages/approval-process/packages/flow/examine-approve-itr.vue +978 -0
  40. package/packages/approval-process/packages/flow/examine-approve.vue +1065 -0
  41. package/packages/approval-process/packages/flow/form-component/associated-approval-form/README.md +38 -0
  42. package/packages/approval-process/packages/flow/form-component/associated-approval-form/assets/avatar.svg +1 -0
  43. package/packages/approval-process/packages/flow/form-component/associated-approval-form/index.vue +159 -0
  44. package/packages/approval-process/packages/flow/form-component/associated-approval-form/modules/associated-approval-form-mobile.vue +297 -0
  45. package/packages/approval-process/packages/flow/form-component/associated-approval-form/modules/associated-approval-form-pc.vue +314 -0
  46. package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/curd-area-mobile.scss +110 -0
  47. package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/curd-area.scss +96 -0
  48. package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/out-put.scss +48 -0
  49. package/packages/approval-process/packages/flow/form-component/show-sign.vue +27 -0
  50. package/packages/approval-process/packages/flow/styles/common.scss +134 -0
  51. package/packages/approval-process/packages/flow/styles/examine-approve-pc.scss +465 -0
  52. package/packages/approval-process/packages/flow/styles/examine-approve-phone.scss +293 -0
  53. package/packages/approval-process/packages/flow/styles/submit-approve-pc.scss +379 -0
  54. package/packages/approval-process/packages/flow/styles/submit-approve-phone.scss +337 -0
  55. package/packages/approval-process/packages/flow/submit-approve-itr.vue +623 -0
  56. package/packages/approval-process/packages/flow/submit-approve.vue +628 -0
  57. package/packages/approval-process/packages/flow/systemCom/BO/departBo.ts +8 -0
  58. package/packages/approval-process/packages/flow/systemCom/BO/memberBo.ts +14 -0
  59. package/packages/approval-process/packages/flow/systemCom/BO/role.svg +1 -0
  60. package/packages/approval-process/packages/flow/systemCom/BO/roleBo.ts +16 -0
  61. package/packages/approval-process/packages/flow/systemCom/choose-depart.vue +399 -0
  62. package/packages/approval-process/packages/flow/systemCom/choose-member-phone.vue +515 -0
  63. package/packages/approval-process/packages/flow/systemCom/choose-member.vue +565 -0
  64. package/packages/approval-process/packages/flow/systemCom/choose-role.vue +301 -0
  65. package/packages/approval-process/packages/styles/common.scss +134 -0
  66. package/packages/approval-process/packages/styles/flex-common.scss +118 -0
  67. package/packages/approval-process/packages/styles/flexCommon.scss +73 -0
  68. package/packages/approval-process/packages/styles/main.css +216 -0
  69. package/packages/approval-process/packages/styles/router-page.scss +371 -0
  70. package/packages/approval-process/packages/styles/style-set.ts +207 -0
  71. package/packages/approval-process/packages/types.d.ts +4 -0
  72. package/packages/approval-process/packages/utils/base.ts +15 -0
  73. package/packages/approval-process/packages/utils/crypto.ts +67 -0
  74. package/packages/approval-process/packages/utils/ddUtils.ts +56 -0
  75. package/packages/approval-process/packages/utils/debounce.ts +36 -0
  76. package/packages/approval-process/packages/utils/des.js +1107 -0
  77. package/packages/approval-process/packages/utils/download.ts +38 -0
  78. package/packages/approval-process/packages/utils/editor.ts +37 -0
  79. package/packages/approval-process/packages/utils/getEnv.ts +36 -0
  80. package/packages/approval-process/packages/utils/os.ts +20 -0
  81. package/packages/approval-process/packages/utils/path-util.ts +31 -0
  82. package/packages/approval-process/packages/utils/routerUtil.ts +304 -0
  83. package/packages/approval-process/packages/utils/string-utils.ts +13 -0
  84. package/packages/approval-process/packages/utils/throttle.ts +44 -0
  85. package/packages/approval-process/packages/utils/validate.ts +92 -0
  86. package/packages/approval-process/packages/utils/ws.ts +218 -0
  87. package/packages/approval-process/tsconfig.json +72 -0
  88. package/packages/approval-process/vite.config.ts +56 -0
  89. package/src/api/bms/flow/FlowCommentController.ts +50 -0
  90. package/src/api/bms/flow/FlowInstanceController.ts +167 -0
  91. package/src/api/bms/flow/FlowProcessController.ts +55 -0
  92. package/src/api/bms/flow/FlowSheetController.ts +27 -0
  93. package/src/api/bms/flow/FlowSignController.ts +76 -0
  94. package/src/api/bms/flow/bo/AssociatedApprovalBO.ts +15 -0
  95. package/src/api/bms/flow/bo/AssociatedApprovalVO.ts +35 -0
  96. package/src/api/bms/flow/bo/AuditBaseInfo.ts +39 -0
  97. package/src/api/bms/flow/bo/ButtonVo.ts +7 -0
  98. package/src/api/bms/flow/bo/DingCallbackBo.ts +13 -0
  99. package/src/api/bms/flow/bo/FlowCommentBO.ts +12 -0
  100. package/src/api/bms/flow/bo/FlowCommentVO.ts +23 -0
  101. package/src/api/bms/flow/bo/FlowInstanceBO.ts +14 -0
  102. package/src/api/bms/flow/bo/FlowNodeVO.ts +24 -0
  103. package/src/api/bms/flow/bo/FlowNoticeBO.ts +17 -0
  104. package/src/api/bms/flow/bo/FlowProcessBO.ts +13 -0
  105. package/src/api/bms/flow/bo/FlowProcessVO.ts +9 -0
  106. package/src/api/bms/flow/bo/FlowReplyVO.ts +23 -0
  107. package/src/api/bms/flow/bo/FlowSheetVO.ts +16 -0
  108. package/src/api/bms/flow/bo/InstanceBackBO.ts +9 -0
  109. package/src/api/bms/flow/bo/InstanceNodeBO.ts +13 -0
  110. package/src/api/bms/flow/bo/InstanceNodeVO.ts +21 -0
  111. package/src/api/bms/flow/bo/NodeShowVo.ts +19 -0
  112. package/src/api/bms/flow/bo/ReviewBO.ts +11 -0
  113. package/src/api/bms/flow/bo/SheetSearchBO.ts +11 -0
  114. package/src/api/bms/flow/bo/SystemVO.ts +7 -0
  115. package/src/api/bms/flow/bo/TransmitBO.ts +9 -0
  116. package/src/api/bms/flow/bo/UrgeFlowBO.ts +7 -0
  117. package/src/api/bms/flow/bo/UserBaseInfoVo.ts +13 -0
  118. package/src/api/bms/flow/bo/UserInfoVo.ts +44 -0
  119. package/src/api/bms/flow/bo/UserResultVo.ts +17 -0
  120. package/src/api/bms/flow/bo/ValueMapBo.ts +7 -0
  121. package/src/api/bms/home/HomeController.ts +106 -0
  122. package/src/api/bms/home/bo/CollectedMenuBo.ts +9 -0
  123. package/src/api/bms/home/bo/DeptBaseVo.ts +9 -0
  124. package/src/api/bms/home/bo/DomainVO.ts +13 -0
  125. package/src/api/bms/home/bo/FunPermission.ts +17 -0
  126. package/src/api/bms/home/bo/GroupVO.ts +10 -0
  127. package/src/api/bms/home/bo/HomeMenu.ts +22 -0
  128. package/src/api/bms/home/bo/HomeMenuVo.ts +11 -0
  129. package/src/api/bms/home/bo/PersonalizationBo.ts +17 -0
  130. package/src/api/bms/home/bo/PersonalizationVo.ts +19 -0
  131. package/src/api/bms/home/bo/PhoneMenu.ts +14 -0
  132. package/src/api/bms/home/bo/SearchMenuVo.ts +10 -0
  133. package/src/api/bms/home/bo/UserBaseInfoVo.ts +11 -0
  134. package/src/api/hrms/dept/bo/DeptBaseVo.ts +6 -0
  135. package/src/api/hrms/dept/bo/DeptTreeVo.ts +23 -0
  136. package/src/api/hrms/dept/bo/DeptUserVo.ts +9 -0
  137. package/src/api/hrms/dept/bo/DeptUsersVo.ts +10 -0
  138. package/src/api/hrms/dept/bo/DeptVo.ts +19 -0
  139. package/src/api/hrms/dept/bo/UserBaseInfoVo.ts +8 -0
  140. package/src/api/hrms/dept/deptController.ts +100 -0
  141. package/src/api/hrms/role/bo/RoleBaseVo.ts +6 -0
  142. package/src/api/hrms/role/bo/RoleGroupVo.ts +11 -0
  143. package/src/api/hrms/role/bo/RoleVo.ts +22 -0
  144. package/src/api/hrms/role/roleController.ts +19 -0
  145. package/src/api/hrms/user/bo/UserBaseInfoVo.ts +11 -0
  146. package/src/api/hrms/user/bo/UserCardVO.ts +14 -0
  147. package/src/api/hrms/user/bo/UserDeptBO.ts +13 -0
  148. package/src/api/hrms/user/bo/UserRoleBO.ts +11 -0
  149. package/src/api/hrms/user/bo/UserVO.ts +23 -0
  150. package/src/api/hrms/user/userController.ts +86 -0
  151. package/src/api/notice/NoticeController.ts +73 -0
  152. package/src/api/notice/bo/NoticePageBO.ts +24 -0
  153. package/src/api/notice/bo/NoticeVO.ts +31 -0
  154. package/src/api/work-order-pc/flow/Bo/ValueMapBo.ts +7 -0
  155. package/src/api/work-order-pc/flow/ItrFlowProcessController.ts +42 -0
  156. package/src/api/work-order-pc/flow/Vo/FlowNodeVO.ts +24 -0
  157. package/src/api/work-order-pc/flow/Vo/UserInfoVo.ts +44 -0
  158. package/src/assets/layout/avatar-default.svg +6 -0
  159. package/src/assets/layout/collect-active.svg +7 -0
  160. package/src/assets/layout/collect-default.svg +7 -0
  161. package/src/assets/layout/download-active.svg +8 -0
  162. package/src/assets/layout/download-default.svg +8 -0
  163. package/src/assets/layout/export-dark.svg +7 -0
  164. package/src/assets/layout/export-default.svg +7 -0
  165. package/src/assets/layout/font-active.svg +6 -0
  166. package/src/assets/layout/font-default.svg +6 -0
  167. package/src/assets/layout/help-active.svg +10 -0
  168. package/src/assets/layout/help-default.svg +10 -0
  169. package/src/assets/layout/home-active.svg +6 -0
  170. package/src/assets/layout/home.svg +6 -0
  171. package/src/assets/layout/menu-expand.svg +6 -0
  172. package/src/assets/layout/menu-icon.png +0 -0
  173. package/src/assets/layout/menu-position-active.svg +6 -0
  174. package/src/assets/layout/menu-position-default.svg +6 -0
  175. package/src/assets/layout/message-active.svg +9 -0
  176. package/src/assets/layout/message-default.svg +9 -0
  177. package/src/assets/layout/moon.svg +8 -0
  178. package/src/assets/layout/router-all-dark.svg +11 -0
  179. package/src/assets/layout/router-all-default.svg +17 -0
  180. package/src/assets/layout/search-active.svg +20 -0
  181. package/src/assets/layout/search-default.svg +20 -0
  182. package/src/assets/layout/star-active.svg +1 -0
  183. package/src/assets/layout/star-default.svg +3 -0
  184. package/src/assets/layout/sun-active.svg +6 -0
  185. package/src/assets/layout/sun-default.svg +6 -0
  186. package/src/assets/layout/switch-moon.svg +3 -0
  187. package/src/assets/layout/switch-sun.svg +41 -0
  188. package/src/assets/layout/todo-active.svg +12 -0
  189. package/src/assets/layout/todo-default.svg +12 -0
  190. package/src/assets/layout/user-dark.svg +13 -0
  191. package/src/assets/layout/user-default.svg +13 -0
  192. package/src/assets/process/agree.png +0 -0
  193. package/src/assets/process/defaultAvatar.png +0 -0
  194. package/src/assets/process/drawer/departManagerJump.png +0 -0
  195. package/src/assets/process/drawer/manyLevel1close.svg +10 -0
  196. package/src/assets/process/drawer/manyLevel1open.svg +7 -0
  197. package/src/assets/process/drawer/manyLevel2close.svg +7 -0
  198. package/src/assets/process/drawer/manyLevel2open.svg +7 -0
  199. package/src/assets/process/inProcess.png +0 -0
  200. package/src/assets/process/manyPeople.png +0 -0
  201. package/src/assets/process/manyPeople2.png +0 -0
  202. package/src/assets/process/reject.png +0 -0
  203. package/src/assets/process/revoke.png +0 -0
  204. package/src/components/annex-img-upload/index.vue +4 -4
  205. package/src/components/annex-img-upload/modules/previewMp.vue +1 -1
  206. package/src/components/annex-upload/index.vue +4 -4
  207. package/src/components/annex-upload/modules/previewMp.vue +1 -1
  208. package/src/components/annex-upload-weijian/index.vue +4 -4
  209. package/src/components/annex-upload-weijian/modules/previewMp.vue +1 -1
  210. package/src/components/base-layout/index.vue +198 -0
  211. package/src/components/layout/SysHeader.vue +90 -0
  212. package/src/components/layout/SysHeaderLeft.vue +116 -0
  213. package/src/components/layout/SysHeaderRight.vue +112 -0
  214. package/src/components/layout/SysHeaderTabs.vue +289 -0
  215. package/src/components/layout/components/avatar-component.vue +77 -0
  216. package/src/components/layout/components/dark-component.vue +82 -0
  217. package/src/components/layout/components/download-component.vue +49 -0
  218. package/src/components/layout/components/font-size-component.vue +66 -0
  219. package/src/components/layout/components/menu-position-component.vue +97 -0
  220. package/src/components/layout/components/message-component.vue +64 -0
  221. package/src/components/layout/components/todo-component.vue +55 -0
  222. package/src/components/layout/index.ts +24 -0
  223. package/src/components/layout/message/message-dictionary.ts +27 -0
  224. package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245-/350/223/235.svg +8 -0
  225. package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245-/351/273/221.svg +8 -0
  226. package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245.svg +8 -0
  227. package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245-/350/223/235.svg +12 -0
  228. package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245-/351/273/221.svg +12 -0
  229. package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245.svg +12 -0
  230. package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245-/350/223/235.svg +8 -0
  231. package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245-/351/273/221.svg +8 -0
  232. package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245.svg +8 -0
  233. package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245-/350/223/235.svg +13 -0
  234. package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245-/351/273/221.svg +13 -0
  235. package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245.svg +13 -0
  236. package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245-/350/223/235.svg +11 -0
  237. package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245-/351/273/221.svg +11 -0
  238. package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245.svg +11 -0
  239. package/src/components/layout/message/message-icon//347/251/272/347/212/266/346/200/201.svg +17 -0
  240. package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245-/350/223/235.svg +13 -0
  241. package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245-/351/273/221.svg +13 -0
  242. package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245.svg +13 -0
  243. package/src/components/layout/message/message-notification-drawer.vue +529 -0
  244. package/src/components/layout/personalization-guide-dialog.vue +255 -0
  245. package/src/components/layout/sideMenu-global.scss +115 -0
  246. package/src/components/layout/sideMenu.scss +312 -0
  247. package/src/components/layout/sideMenu.vue +542 -0
  248. package/src/components/layout/sideMenuSonList.vue +185 -0
  249. package/src/components/layout/styles/icon.scss +72 -0
  250. package/src/components/layout/types.ts +98 -0
  251. package/src/components/list-search-content/components/search-date-range.vue +1 -1
  252. package/src/components/list-search-content/components/search-date-time-range.vue +1 -1
  253. package/src/components/list-search-content/components/search-date.vue +1 -1
  254. package/src/components/list-search-content/components/search-input-number.vue +1 -1
  255. package/src/components/list-search-content/components/search-input.vue +1 -1
  256. package/src/components/list-search-content/components/search-multiple_select.vue +1 -1
  257. package/src/components/list-search-content/components/search-select.vue +1 -1
  258. package/src/components/list-search-content/index.vue +6 -6
  259. package/src/components/list-search-content/modules/add-views-package-dialog.vue +3 -3
  260. package/src/components/list-search-content/modules/search-condition-area.vue +2 -2
  261. package/src/components/list-search-content/modules/views-package-manage-dialog.vue +5 -5
  262. package/src/components.ts +19 -4
  263. package/src/index.ts +1 -0
  264. package/src/utils/dd-utils.ts +1 -1
  265. package/src/utils/get-dict.ts +2 -2
  266. package/src/utils/permit-utils.ts +2 -2
  267. package/src/api/bms/dict/bo/TotalDictSearchBO.ts +0 -8
  268. package/src/api/bms/file/FileExportController.ts +0 -18
  269. package/src/api/bms/file/bo/FileExportVO.ts +0 -17
@@ -0,0 +1,218 @@
1
+
2
+ export type Callback = (e: Event) => void
3
+ export type MessageCallback<RT> = (e: RT) => void
4
+
5
+ interface Ioptions<RT> {
6
+ url: string | null // 链接的通道的地址
7
+ heartTime?: number // 心跳时间间隔
8
+ heartMsg?: string // 心跳信息,默认为'ping'
9
+ isReconnect?: boolean // 是否自动重连
10
+ isRestory?: boolean // 是否销毁
11
+ reconnectTime?: number // 重连时间间隔
12
+ reconnectCount?: number // 重连次数 -1 则不限制
13
+ openCb?: Callback // 连接成功的回调
14
+ closeCb?: Callback // 关闭的回调
15
+ messageCb?: MessageCallback<RT> // 消息的回调
16
+ errorCb?: Callback // 错误的回调
17
+ }
18
+
19
+ /**
20
+ * 心跳基类
21
+ */
22
+
23
+ export class Heart {
24
+ heartTimeOut!: number // 心跳计时器
25
+ ServerHeartTimeOut!: number // 心跳计时器
26
+ timeout = 5000
27
+ // 重置
28
+ reset(): void {
29
+ clearTimeout(this.heartTimeOut)
30
+ clearTimeout(this.ServerHeartTimeOut)
31
+ }
32
+
33
+ /**
34
+ * 启动心跳
35
+ * @param {Function} cb 回调函数
36
+ */
37
+ start(cb: Callback): void {
38
+ this.heartTimeOut = setTimeout((e: Event) => {
39
+ cb(e)
40
+ this.ServerHeartTimeOut = setTimeout((e: Event) => {
41
+ cb(e)
42
+ // 重新开始检测
43
+ this.reset()
44
+ this.start(cb)
45
+ }, this.timeout)
46
+ }, this.timeout)
47
+ }
48
+ }
49
+
50
+ export default class Socket<T, RT> extends Heart {
51
+ ws!: WebSocket
52
+
53
+ reconnectTimer = 0 // 重连计时器
54
+ reconnectCount = 10 // 变量保存,防止丢失
55
+
56
+ options: Ioptions<RT> = {
57
+ url: null, // 链接的通道的地址
58
+ heartTime: 5000, // 心跳时间间隔
59
+ heartMsg: 'ping', // 心跳信息,默认为'ping'
60
+ isReconnect: true, // 是否自动重连
61
+ isRestory: false, // 是否销毁
62
+ reconnectTime: 5000, // 重连时间间隔
63
+ reconnectCount: 5, // 重连次数 -1 则不限制
64
+ openCb: (e: Event) => {
65
+ console.log('连接成功的默认回调::::', e)
66
+ }, // 连接成功的回调
67
+ closeCb: (e: Event) => {
68
+ console.log('关闭的默认回调::::', e)
69
+ }, // 关闭的回调
70
+ messageCb: (e: RT) => {
71
+ console.log('连接成功的默认回调::::', e)
72
+ }, // 消息的回调
73
+ errorCb: (e: Event) => {
74
+ console.log('错误的默认回调::::', e)
75
+ } // 错误的回调
76
+ }
77
+
78
+ constructor(ops: Ioptions<RT>) {
79
+ super()
80
+ Object.assign(this.options, ops)
81
+ this.create()
82
+ }
83
+
84
+ /**
85
+ * 建立连接
86
+ */
87
+ create(): void {
88
+ if (!('WebSocket' in window)) {
89
+ throw new Error('当前浏览器不支持,无法使用')
90
+ }
91
+ if (!this.options.url) {
92
+ throw new Error('地址不存在,无法建立通道')
93
+ }
94
+ this.ws = new WebSocket(this.options.url)
95
+ this.onopen(this.options.openCb as Callback)
96
+ this.onclose(this.options.closeCb as Callback)
97
+ this.onmessage(this.options.messageCb as MessageCallback<RT>)
98
+ }
99
+
100
+ /**
101
+ * 自定义连接成功事件
102
+ * 如果callback存在,调用callback,不存在调用OPTIONS中的回调
103
+ * @param {Function} callback 回调函数
104
+ */
105
+ onopen(callback: Callback): void {
106
+ this.ws.onopen = event => {
107
+ clearTimeout(this.reconnectTimer) // 清除重连定时器
108
+ this.options.reconnectCount = this.reconnectCount // 计数器重置
109
+ // 建立心跳机制
110
+ super.reset()
111
+ super.start(() => {
112
+ this.send(this.options.heartMsg as string)
113
+ })
114
+ if (typeof callback === 'function') {
115
+ callback(event)
116
+ } else {
117
+ typeof this.options.openCb === 'function' && this.options.openCb(event)
118
+ }
119
+ }
120
+ }
121
+
122
+ /**
123
+ * 自定义关闭事件
124
+ * 如果callback存在,调用callback,不存在调用OPTIONS中的回调
125
+ * @param {Function} callback 回调函数
126
+ */
127
+ onclose(callback: Callback): void {
128
+ this.ws.onclose = event => {
129
+ super.reset()
130
+ !this.options.isRestory && this.onreconnect()
131
+ if (typeof callback === 'function') {
132
+ callback(event)
133
+ } else {
134
+ typeof this.options.closeCb === 'function' && this.options.closeCb(event)
135
+ }
136
+ }
137
+ }
138
+
139
+ /**
140
+ * 自定义错误事件
141
+ * 如果callback存在,调用callback,不存在调用OPTIONS中的回调
142
+ * @param {Function} callback 回调函数
143
+ */
144
+ onerror(callback: Callback): void {
145
+ this.ws.onerror = event => {
146
+ if (typeof callback === 'function') {
147
+ callback(event)
148
+ } else {
149
+ typeof this.options.errorCb === 'function' && this.options.errorCb(event)
150
+ }
151
+ }
152
+ }
153
+
154
+ /**
155
+ * 自定义消息监听事件
156
+ * 如果callback存在,调用callback,不存在调用OPTIONS中的回调
157
+ * @param {Function} callback 回调函数
158
+ */
159
+ onmessage(callback: MessageCallback<RT>): void {
160
+ this.ws.onmessage = (event: MessageEvent<string>) => {
161
+ //使用的时候要重写
162
+ if("ok"==event.data){
163
+ super.reset()
164
+ super.start(() => {
165
+ this.send(this.options.heartMsg as string)
166
+ })
167
+ }else{
168
+ const strMessage = JSON.parse(event.data)
169
+ if (typeof callback === 'function') {
170
+ callback(strMessage)
171
+ } else {
172
+ typeof this.options.messageCb === 'function' && this.options.messageCb(strMessage)
173
+ }
174
+ }
175
+
176
+ }
177
+ }
178
+
179
+ /**
180
+ * 自定义发送消息事件
181
+ * @param {String} data 发送的文本
182
+ */
183
+ send(data: T | string): void {
184
+ if (this.ws.readyState !== this.ws.OPEN) {
185
+ throw new Error('没有连接到服务器,无法推送')
186
+ }
187
+ if (typeof data!=='string'){
188
+ data = JSON.stringify(data)
189
+ }
190
+ this.ws.send(data)
191
+ }
192
+
193
+ /**
194
+ * 连接事件
195
+ */
196
+ onreconnect(): void {
197
+ if ((this.options.reconnectCount as number) > 0 || this.options.reconnectCount === -1) {
198
+ // @ts-ignore
199
+ this.reconnectTimer = setTimeout(() => {
200
+ this.create()
201
+ if (this.options.reconnectCount !== -1) (this.options.reconnectCount as number)--
202
+ }, this.options.reconnectTime)
203
+ } else {
204
+ clearTimeout(this.reconnectTimer)
205
+ this.options.reconnectCount = this.reconnectCount
206
+ }
207
+ }
208
+
209
+ /**
210
+ * 销毁
211
+ */
212
+ destroy(): void {
213
+ super.reset()
214
+ clearTimeout(this.reconnectTimer) // 清除重连定时器
215
+ this.options.isRestory = true
216
+ this.ws.close()
217
+ }
218
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
4
+ "module": "esnext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
5
+ "lib": ["esnext", "dom", "dom.iterable", "scripthost"] /* Specify library files to be included in the compilation. */,
6
+ // "allowJs": true, /* Allow javascript files to be compiled. */
7
+ // "checkJs": true, /* Report errors in .js files. */
8
+ "jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
9
+ "declaration": true /* Generates corresponding '.d.ts' file. */,
10
+ "emitDeclarationOnly":false,
11
+ "outDir": "dist",
12
+ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
13
+ // "sourceMap": true, /* Generates corresponding '.map' file. */
14
+ // "outFile": "./", /* Concatenate and emit output to single file. */
15
+ // "outDir": "./", /* Redirect output structure to the directory. */
16
+ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
17
+ // "composite": true, /* Enable project compilation */
18
+ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
19
+ // "removeComments": true, /* Do not emit comments to output. */
20
+ // "noEmit": true, /* Do not emit outputs. */
21
+ // "importHelpers": true /* Import emit helpers from 'tslib'. */,
22
+ // "downlevelIteration": true /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */,
23
+ "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */,
24
+
25
+ /* Strict Type-Checking Options */
26
+ "strict": true /* Enable all strict type-checking options. */,
27
+ // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28
+ // "strictNullChecks": true, /* Enable strict null checks. */
29
+ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
30
+ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
31
+ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
32
+ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
33
+ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
34
+
35
+ /* Additional Checks */
36
+ // "noUnusedLocals": true, /* Report errors on unused locals. */
37
+ // "noUnusedParameters": true, /* Report errors on unused parameters. */
38
+ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
39
+ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
40
+ // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
41
+
42
+ /* Module Resolution Options */
43
+ "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
44
+ "baseUrl": "." /* Base directory to resolve non-absolute module names. */,
45
+ "paths": {
46
+ "@/*": ["src/*"]
47
+ } /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
48
+ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
49
+ // "typeRoots": [], /* List of folders to include type definitions from. */
50
+ "types": ["vite/client"] /* Type declaration files to be included in compilation. */,
51
+ "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
52
+ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
53
+ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
54
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
55
+ "resolveJsonModule": true,
56
+ /* Source Map Options */
57
+ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
58
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
59
+ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
60
+ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
61
+
62
+ /* Experimental Options */
63
+ "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
64
+ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
65
+
66
+ /* Advanced Options */
67
+ "skipLibCheck": true /* Skip type checking of declaration files. */,
68
+ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
69
+ },
70
+ "include": ["src/**/*.ts", "src/**/*.vue", "src/**/*.tsx", "src/**/*.d.ts","packages/**/*"], // **Represents any directory, and * represents any file. Indicates that all files in the src directory will be compiled
71
+ "exclude": ["node_modules", "dist"] // Indicates the file directory that does not need to be compiled
72
+ }
@@ -0,0 +1,56 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import { resolve } from 'path'
4
+ import dts from "vite-plugin-dts";
5
+ import path from 'path';
6
+ // https://vitejs.dev/config/
7
+ export default defineConfig({
8
+ plugins: [vue(), dts()],
9
+ resolve:{
10
+ alias:{
11
+ '@':path.resolve(__dirname, './')
12
+ }
13
+ },
14
+ build: {
15
+ input: {
16
+ index: resolve(__dirname, 'index.ts'),
17
+ },
18
+ lib: {
19
+ // Could also be a dictionary or array of multiple entry points
20
+ entry: resolve(__dirname, 'index.ts'),
21
+ name: 'approval-process',
22
+ // the proper extensions will be added
23
+ // fileName: 'my-lib',
24
+ fileName(format, entryName) {
25
+ return `${entryName}.${format}.js`
26
+ },
27
+ },
28
+ rollupOptions: {
29
+ // 确保外部化处理那些你不想打包进库的依赖
30
+ external: ['vue','element-plus','vant'],
31
+ output: {
32
+ // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
33
+ globals: {
34
+ vue: 'Vue',
35
+ },
36
+ },
37
+ },
38
+ },
39
+ optimizeDeps: {
40
+ include: ['lodash', 'element-plus', 'vue'], // 将你希望预构建的依赖名称列在这里
41
+ },
42
+ server: {
43
+ port: 5190,
44
+ // port: 5175,
45
+ host: true, // 解决启动后只能127访问的问题
46
+ strictPort: true,
47
+ proxy: {
48
+ "/api": {
49
+ target: "http://172.16.10.184/api",//本地
50
+ changeOrigin: true,
51
+ ws: true,
52
+ rewrite: (path) => path.replace(/^\/api/, ""),
53
+ },
54
+ },
55
+ }
56
+ })
@@ -0,0 +1,50 @@
1
+ import HttpUtil from "../../../utils/HttpUtil";
2
+ import type ResponseBean from "../../common/ResponseBean";
3
+ import type ResponseBeanList from "../../common/ResponseBeanList";
4
+ import FlowCommentVO from "./bo/FlowCommentVO"
5
+ import FlowCommentBO from "./bo/FlowCommentBO"
6
+ /** 审批流评论相关流程接口 */
7
+ export default class FlowInstanceController {
8
+ /** 获取评论列表 */
9
+ static getCommentList(
10
+ businessFormId: string
11
+ ): Promise<ResponseBean<FlowCommentVO[]>> {
12
+ return HttpUtil.get(
13
+ "/bms/work-flow-comment/get-comment-list",
14
+ { businessFormId }
15
+ );
16
+ }
17
+
18
+
19
+ /** 提交评论 */
20
+ static submitComment(
21
+ FlowCommentBO: FlowCommentBO
22
+ ): Promise<ResponseBean<boolean>> {
23
+ return HttpUtil.postJson(
24
+ "/bms/work-flow-comment/submit-comment",
25
+ FlowCommentBO
26
+ );
27
+ }
28
+
29
+
30
+ /** 回复评论 */
31
+ static replyComment(
32
+ FlowCommentBO: FlowCommentBO
33
+ ): Promise<ResponseBean<boolean>> {
34
+ return HttpUtil.postJson(
35
+ "/bms/work-flow-comment/reply-comment",
36
+ FlowCommentBO
37
+ );
38
+ }
39
+
40
+ /** 删除评论 */
41
+ static deleteComment(
42
+ commentId: string
43
+ ): Promise<ResponseBean<boolean>> {
44
+ return HttpUtil.deleted(
45
+ "/bms/work-flow-comment/delete-comment",
46
+ { commentId }
47
+ );
48
+ }
49
+
50
+ }
@@ -0,0 +1,167 @@
1
+ import HttpUtil from "../../../utils/HttpUtil";
2
+ import type ResponseBean from "../../common/ResponseBean";
3
+ import type ResponseBeanList from "../../common/ResponseBeanList";
4
+ import FlowInstanceBO from "../flow/bo/FlowInstanceBO";
5
+ import AuditBaseInfo from "../flow/bo/AuditBaseInfo";
6
+ import NodeShowVo from "../flow/bo/NodeShowVo";
7
+ import InstanceBackBO from "../flow/bo/InstanceBackBO";
8
+ import TransmitBO from "../flow/bo/TransmitBO";
9
+ import ReviewBO from "../flow/bo/ReviewBO";
10
+ import DingCallbackBo from "../flow/bo/DingCallbackBo";
11
+ import InstanceNodeVO from "../flow/bo/InstanceNodeVO";
12
+ import AssociatedApprovalBO from "../flow/bo/AssociatedApprovalBO";
13
+ import AssociatedApprovalVO from "../flow/bo/AssociatedApprovalVO";
14
+ import FlowNoticeBO from "../flow/bo/FlowNoticeBO";
15
+ import UrgeFlowBO from "../flow/bo/UrgeFlowBO";
16
+ import UserBaseInfoVo from "./bo/UserBaseInfoVo"
17
+ /** 工作流表单相关接口 */
18
+ export default class FlowInstanceController {
19
+ /** 保存新的流程实例对象 */
20
+ static saveNewFlowInstance(
21
+ flowInstanceBO: FlowInstanceBO
22
+ ): Promise<ResponseBean<boolean>> {
23
+ return HttpUtil.postJson(
24
+ "/bms/work-flow-instance/saveNewFlowInstance",
25
+ flowInstanceBO
26
+ );
27
+ }
28
+ /** 获得执行中流程实例图 */
29
+ static getWorkFlowByFormId(
30
+ businessFormId: string,
31
+ nodeId: string
32
+ ): Promise<ResponseBean<AuditBaseInfo>> {
33
+ return HttpUtil.get("/bms/work-flow-instance/getWorkFlowByFormId", { businessFormId, nodeId });
34
+ }
35
+ /** 获得已完成流中已完成节点 */
36
+ static getFinishNodeList(
37
+ businessFormId: string
38
+ ): Promise<ResponseBean<NodeShowVo[]>> {
39
+ return HttpUtil.get("/bms/work-flow-instance/getFinishNodeList", {
40
+ businessFormId,
41
+ });
42
+ }
43
+ /** 审批回退 */
44
+ static instanceBack(
45
+ instanceBackBO: InstanceBackBO
46
+ ): Promise<ResponseBean<boolean>> {
47
+ return HttpUtil.postJson(
48
+ "/bms/work-flow-instance/instanceBack",
49
+ instanceBackBO
50
+ );
51
+ }
52
+ /** 保存通知对应钉钉id */
53
+ static saveDingNoticeId(json: string): Promise<ResponseBean<boolean>> {
54
+ return HttpUtil.post("/bms/work-flow-instance/saveDingNoticeId", { json });
55
+ }
56
+
57
+ /** 转交任务节点处理人 */
58
+ static transmittedHandleNode(
59
+ transmitBo: TransmitBO
60
+ ): Promise<ResponseBean<boolean>> {
61
+ return HttpUtil.postJson(
62
+ "/bms/work-flow-instance/transmittedHandleNode",
63
+ transmitBo
64
+ );
65
+ }
66
+ /** 根据实例节点撤销审批 */
67
+ static revokeInstance(nodeId: string): Promise<ResponseBean<boolean>> {
68
+ return HttpUtil.post("/bms/work-flow-instance/revokeInstance", { nodeId });
69
+ }
70
+ /** 根据实例业务表单撤销审批 */
71
+ static revokeInstanceByBusinessFormId(
72
+ businessFormId: string
73
+ ): Promise<ResponseBean<boolean>> {
74
+ return HttpUtil.get(
75
+ "/bms/work-flow-instance/revokeInstanceByBusinessFormId",
76
+ { businessFormId }
77
+ );
78
+ }
79
+ /** 提交审批结果 */
80
+ static submitReview(reviewBo: ReviewBO): Promise<ResponseBean<boolean>> {
81
+ return HttpUtil.postJson("/bms/work-flow-instance/submitReview", reviewBo);
82
+ }
83
+
84
+ /** 钉钉--------卡片回调审批结果 */
85
+ static submitReviewByButton(
86
+ dingCallbackBo: DingCallbackBo
87
+ ): Promise<ResponseBean<boolean>> {
88
+ return HttpUtil.postJson(
89
+ "/bms/work-flow-instance/submitReviewByButton",
90
+ dingCallbackBo
91
+ );
92
+ }
93
+
94
+ /** 根据流程实例id或者业务id获得对应流程实例中最新的流程实例节点id */
95
+ static getMostInstanceNode(formId: string): Promise<ResponseBean<string>> {
96
+ return HttpUtil.get("/bms/work-flow-instance/getMostInstanceNode", {
97
+ formId,
98
+ });
99
+ }
100
+
101
+ /** 下一个审批任务 */
102
+ static getNextInstance(): Promise<ResponseBean<InstanceNodeVO>> {
103
+ return HttpUtil.get("/bms/work-flow-instance/getNextInstance");
104
+ }
105
+
106
+ /** 查询关联审批单列表 */
107
+ static selectAssociatedApprovalFormList(
108
+ associatedApprovalBO: AssociatedApprovalBO
109
+ ): Promise<ResponseBeanList<AssociatedApprovalVO[]>> {
110
+ return HttpUtil.postJson(
111
+ "/bms/work-flow-instance/selectAssociatedApprovalFormList",
112
+ associatedApprovalBO
113
+ );
114
+ }
115
+
116
+ /** 查询已关联审批单列表 */
117
+ static selectLinkAssociatedApprovalFormList(
118
+ formIdList: string[]
119
+ ): Promise<ResponseBean<AssociatedApprovalVO[]>> {
120
+ return HttpUtil.postJson(
121
+ "/bms/work-flow-instance/selectLinkAssociatedApprovalFormList",
122
+ formIdList
123
+ );
124
+ }
125
+
126
+ /** 待我审批/执行任务 */
127
+ static selectNextInstanceNodeList(): Promise<ResponseBean<InstanceNodeVO[]>> {
128
+ return HttpUtil.get("/bms/work-flow-instance/selectNextInstanceNodeList");
129
+ }
130
+
131
+ /** 待我审批/执行任务 */
132
+ static testWebhook(
133
+ flowNoticeBO: FlowNoticeBO
134
+ ): Promise<ResponseBean<boolean>> {
135
+ return HttpUtil.postJson(
136
+ "/bms/work-flow-instance/testWebhook",
137
+ flowNoticeBO
138
+ );
139
+ }
140
+ // /** 获得最新的节点id = 之前的formId换taskId */
141
+ // static getMostNode(formId: string): Promise<ResponseBean<String>> {
142
+ // return HttpUtil.get("/bms/work-flow-instance/getMostNode", { formId });
143
+ // }
144
+ /** 获得实例名称列表 */
145
+ static getInstanceNameList(): Promise<ResponseBean<string[]>> {
146
+ return HttpUtil.get("/bms/work-flow-instance/getInstanceNameList");
147
+ }
148
+
149
+ /** 获得当前待处理的审批 */
150
+ static getWaitProcessInstance(): Promise<ResponseBean<AssociatedApprovalVO[]>> {
151
+ return HttpUtil.get("/bms/work-flow-instance/getWaitProcessInstance");
152
+ }
153
+
154
+ /** 催办 */
155
+ static urgeTodoFlowInstance(urgeFlowBO: UrgeFlowBO): Promise<ResponseBean<boolean>> {
156
+ return HttpUtil.postJson("/bms/work-flow-instance/urge-to-do", urgeFlowBO);
157
+ }
158
+ /** 获得催办人员列表 */
159
+ static urgeTodoUserList(nodeId: string): Promise<ResponseBean<UserBaseInfoVo[]>> {
160
+ return HttpUtil.get("/bms/work-flow-instance/urge-to-do-list", { nodeId });
161
+ }
162
+
163
+ /** 获取推荐回复列表 */
164
+ static getRecommendReplyList(id: string, type: string): Promise<ResponseBean<string[]>> {
165
+ return HttpUtil.get("/bms/work-flow-instance/getRecommendReplies", { id, type });
166
+ }
167
+ }
@@ -0,0 +1,55 @@
1
+ import HttpUtil from "../../../utils/HttpUtil";
2
+ import type ResponseBean from "../../common/ResponseBean";
3
+ import type ResponseBeanList from "../../common/ResponseBeanList";
4
+ import FlowProcessVO from "../flow/bo/FlowProcessVO";
5
+ import FlowProcessBO from "../flow/bo/FlowProcessBO";
6
+ import FlowNodeVO from "../flow/bo/FlowNodeVO";
7
+ import ValueMapBo from "../flow/bo/ValueMapBo";
8
+ /** 工作流表单相关接口 */
9
+ export default class FlowProcessController {
10
+ /** 获得应用的流 */
11
+ static selectFlowProcessBySheetNumber(
12
+ sheetNumber: string
13
+ ): Promise<ResponseBean<FlowProcessVO>> {
14
+ return HttpUtil.get(
15
+ "/bms/work-flow-process/selectFlowProcessBySheetNumber",
16
+ { sheetNumber }
17
+ );
18
+ }
19
+
20
+ /** 创建表单新的流程 */
21
+ static createNewFlowProcess(
22
+ flowProcessBO: FlowProcessBO
23
+ ): Promise<ResponseBean<boolean>> {
24
+ return HttpUtil.postJson(
25
+ "/bms/work-flow-process/createNewFlowProcess",
26
+ flowProcessBO
27
+ );
28
+ }
29
+ /** 获得表达数据对应的实例节点列表 */
30
+ static selectInstanceNodeList(
31
+ map: { [key: string]: ValueMapBo },
32
+ agentUserId: string,
33
+ deptId: string,
34
+ sheetNumber: string
35
+ ): Promise<ResponseBean<FlowNodeVO>> {
36
+ return HttpUtil.postJson(
37
+ "/bms/work-flow-process/selectInstanceNodeList?agentUserId=" +
38
+ agentUserId +
39
+ "&deptId=" +
40
+ deptId +
41
+ "&sheetNumber=" +
42
+ sheetNumber,
43
+ map
44
+ );
45
+ }
46
+ /** 获得流程配置 */
47
+ static selectProcessConfig(
48
+ sheetNumber: string
49
+ ): Promise<ResponseBean<{[key:string]:string}>> {
50
+ return HttpUtil.get(
51
+ "/bms/work-flow-process/selectProcessConfig",
52
+ {sheetNumber}
53
+ );
54
+ }
55
+ }
@@ -0,0 +1,27 @@
1
+ import HttpUtil from "../../../utils/HttpUtil";
2
+ import type ResponseBean from "../../common/ResponseBean";
3
+ import type ResponseBeanList from "../../common/ResponseBeanList";
4
+ import SheetSearchBO from "../flow/bo/SheetSearchBO";
5
+ import FlowSheetVO from "../flow/bo/FlowSheetVO";
6
+ import SystemVO from "../flow/bo/SystemVO";
7
+ /** 工作流表单相关接口 */
8
+ export default class FlowSheetController {
9
+ /** 查询表单列表 */
10
+ static selectFlowSheetPage(
11
+ sheetSearchBO: SheetSearchBO
12
+ ): Promise<ResponseBeanList<FlowSheetVO[]>> {
13
+ return HttpUtil.postJson(
14
+ "/bms/work-flow-sheet/selectFlowSheetPage",
15
+ sheetSearchBO
16
+ );
17
+ }
18
+ /** 查询表单列表 */
19
+ static selectSystemList(): Promise<ResponseBean<SystemVO[]>> {
20
+ return HttpUtil.get("/bms/work-flow-sheet/selectSystemList");
21
+ }
22
+
23
+ /** 查询审批表单列表 */
24
+ static selectFlowSheetList(systemId: string = ""): Promise<ResponseBean<SystemVO[]>> {
25
+ return HttpUtil.get("/bms/work-flow-sheet/selectFlowSheetList");
26
+ }
27
+ }