web-core-tcm 0.0.25 → 0.0.27

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 (308) hide show
  1. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +134 -0
  2. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +70 -0
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +14 -0
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +6 -0
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +10 -0
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +136 -0
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +7 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +164 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +6 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +75 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +8 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +35 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +42 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +17 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +156 -0
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +349 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +39 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +72 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +551 -0
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +159 -0
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +58 -0
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +350 -0
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +25 -0
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +145 -0
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +110 -0
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +107 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +24 -0
  28. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +556 -0
  29. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +36 -0
  30. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +26 -0
  31. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +55 -0
  32. package/dist/node_modules/alova/dist/alova.esm.js +414 -0
  33. package/dist/node_modules/alova/dist/clienthook/index.esm.js +89 -0
  34. package/dist/node_modules/builder-pattern/dist/index.js +22 -0
  35. package/dist/node_modules/jwt-decode/build/esm/index.js +52 -0
  36. package/dist/node_modules/pinyin/lib/esm/pinyin.js +242260 -0
  37. package/dist/node_modules/punycode/punycode.es6.js +139 -0
  38. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
  39. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +4 -0
  40. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +4 -0
  41. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +16 -0
  42. package/dist/src/api/algorithm/index.d.ts +10 -0
  43. package/dist/src/api/algorithm/index.js +62 -0
  44. package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +13 -0
  45. package/dist/src/api/algorithm/inquiriesAlgorithm.js +9 -0
  46. package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +2 -0
  47. package/dist/src/api/algorithm/inspectionsAlgorithm.js +10 -0
  48. package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +2 -0
  49. package/dist/src/api/algorithm/lisemsAlgorithm.js +15 -0
  50. package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +4 -0
  51. package/dist/src/api/algorithm/pulsationsAlgorithm.js +8 -0
  52. package/dist/src/api/authorization/alova/apiDefinitions.d.ts +21 -0
  53. package/dist/src/api/authorization/alova/apiDefinitions.js +9 -0
  54. package/dist/src/api/authorization/alova/createApis.d.ts +10 -0
  55. package/dist/src/api/authorization/alova/createApis.js +51 -0
  56. package/dist/src/api/authorization/alova/implement/authorization.d.ts +4 -0
  57. package/dist/src/api/authorization/alova/implement/authorization.js +15 -0
  58. package/dist/src/api/authorization/alova/index.d.ts +5 -0
  59. package/dist/src/api/authorization/alova/index.js +18 -0
  60. package/dist/src/api/authorization/authorization.d.ts +8 -0
  61. package/dist/src/api/authorization/authorization.js +16 -0
  62. package/dist/src/api/authorization/index.js +9 -0
  63. package/dist/src/api/check/alova/apiDefinitions.d.ts +28 -0
  64. package/dist/src/api/check/alova/apiDefinitions.js +16 -0
  65. package/dist/src/api/check/alova/createApis.d.ts +10 -0
  66. package/dist/src/api/check/alova/createApis.js +51 -0
  67. package/dist/src/api/check/alova/implement/check.d.ts +27 -0
  68. package/dist/src/api/check/alova/implement/check.js +119 -0
  69. package/dist/src/api/check/alova/index.d.ts +5 -0
  70. package/dist/src/api/check/alova/index.js +21 -0
  71. package/dist/src/api/check/check.d.ts +54 -0
  72. package/dist/src/api/check/check.js +131 -0
  73. package/dist/src/api/check/index.js +11 -0
  74. package/dist/src/api/config/alova/index.d.ts +5 -0
  75. package/dist/src/api/config/alova/index.js +55 -0
  76. package/dist/src/api/config/index.d.ts +23 -0
  77. package/dist/src/api/config/index.js +106 -0
  78. package/dist/src/api/device/device.d.ts +5 -0
  79. package/dist/src/api/device/device.js +46 -0
  80. package/dist/src/api/doctor/alova/apiDefinitions.d.ts +26 -0
  81. package/dist/src/api/doctor/alova/apiDefinitions.js +14 -0
  82. package/dist/src/api/doctor/alova/createApis.d.ts +10 -0
  83. package/dist/src/api/doctor/alova/createApis.js +51 -0
  84. package/dist/src/api/doctor/alova/implement/doctor.d.ts +7 -0
  85. package/dist/src/api/doctor/alova/implement/doctor.js +42 -0
  86. package/dist/src/api/doctor/alova/index.d.ts +5 -0
  87. package/dist/src/api/doctor/alova/index.js +20 -0
  88. package/dist/src/api/doctor/doctor.d.ts +22 -0
  89. package/dist/src/api/doctor/doctor.js +29 -0
  90. package/dist/src/api/doctor/index.js +9 -0
  91. package/dist/src/api/metric/implement/metric.d.ts +24 -0
  92. package/dist/src/api/metric/implement/metric.js +80 -0
  93. package/dist/src/api/metric/index.js +6 -0
  94. package/dist/src/api/metric/metric.d.ts +28 -0
  95. package/dist/src/api/metric/metric.js +75 -0
  96. package/dist/src/api/oauth/alova/apiDefinitions.d.ts +24 -0
  97. package/dist/src/api/oauth/alova/apiDefinitions.js +12 -0
  98. package/dist/src/api/oauth/alova/createApis.d.ts +10 -0
  99. package/dist/src/api/oauth/alova/createApis.js +51 -0
  100. package/dist/src/api/oauth/alova/implement/oauth.d.ts +4 -0
  101. package/dist/src/api/oauth/alova/implement/oauth.js +15 -0
  102. package/dist/src/api/oauth/alova/index.d.ts +5 -0
  103. package/dist/src/api/oauth/alova/index.js +17 -0
  104. package/dist/src/api/oauth/index.js +9 -0
  105. package/dist/src/api/oauth/oauth.d.ts +7 -0
  106. package/dist/src/api/oauth/oauth.js +16 -0
  107. package/dist/src/api/outpatient/alova/apiDefinitions.d.ts +25 -0
  108. package/dist/src/api/outpatient/alova/apiDefinitions.js +13 -0
  109. package/dist/src/api/outpatient/alova/createApis.d.ts +10 -0
  110. package/dist/src/api/outpatient/alova/createApis.js +51 -0
  111. package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +10 -0
  112. package/dist/src/api/outpatient/alova/implement/outpatient.js +71 -0
  113. package/dist/src/api/outpatient/alova/index.d.ts +5 -0
  114. package/dist/src/api/outpatient/alova/index.js +21 -0
  115. package/dist/src/api/outpatient/index.js +11 -0
  116. package/dist/src/api/outpatient/outpatient.d.ts +39 -0
  117. package/dist/src/api/outpatient/outpatient.js +45 -0
  118. package/dist/src/api/patient/alova/apiDefinitions.d.ts +39 -0
  119. package/dist/src/api/patient/alova/apiDefinitions.js +27 -0
  120. package/dist/src/api/patient/alova/createApis.d.ts +10 -0
  121. package/dist/src/api/patient/alova/createApis.js +51 -0
  122. package/dist/src/api/patient/alova/implement/meta.d.ts +113 -0
  123. package/dist/src/api/patient/alova/implement/meta.js +404 -0
  124. package/dist/src/api/patient/alova/implement/patient.d.ts +22 -0
  125. package/dist/src/api/patient/alova/implement/patient.js +72 -0
  126. package/dist/src/api/patient/alova/index.d.ts +5 -0
  127. package/dist/src/api/patient/alova/index.js +22 -0
  128. package/dist/src/api/patient/core.d.ts +50 -0
  129. package/dist/src/api/patient/core.js +109 -0
  130. package/dist/src/api/patient/index.js +46 -0
  131. package/dist/src/api/patient/meta.d.ts +238 -0
  132. package/dist/src/api/patient/meta.js +454 -0
  133. package/dist/src/api/patient/patient.d.ts +43 -0
  134. package/dist/src/api/patient/patient.js +42 -0
  135. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +27 -0
  136. package/dist/src/api/prescription/alova/apiDefinitions.js +15 -0
  137. package/dist/src/api/prescription/alova/createApis.d.ts +10 -0
  138. package/dist/src/api/prescription/alova/createApis.js +51 -0
  139. package/dist/src/api/prescription/alova/implement/herbal.d.ts +15 -0
  140. package/dist/src/api/prescription/alova/implement/herbal.js +54 -0
  141. package/dist/src/api/prescription/alova/implement/prescription.d.ts +15 -0
  142. package/dist/src/api/prescription/alova/implement/prescription.js +49 -0
  143. package/dist/src/api/prescription/alova/index.d.ts +5 -0
  144. package/dist/src/api/prescription/alova/index.js +20 -0
  145. package/dist/src/api/prescription/herbal.d.ts +19 -0
  146. package/dist/src/api/prescription/herbal.js +34 -0
  147. package/dist/src/api/prescription/index.js +13 -0
  148. package/dist/src/api/prescription/prescription.d.ts +26 -0
  149. package/dist/src/api/prescription/prescription.js +49 -0
  150. package/dist/src/api/scientist/alova/apiDefinitions.d.ts +25 -0
  151. package/dist/src/api/scientist/alova/apiDefinitions.js +13 -0
  152. package/dist/src/api/scientist/alova/createApis.d.ts +10 -0
  153. package/dist/src/api/scientist/alova/createApis.js +51 -0
  154. package/dist/src/api/scientist/alova/implement/scientist.d.ts +6 -0
  155. package/dist/src/api/scientist/alova/implement/scientist.js +35 -0
  156. package/dist/src/api/scientist/alova/index.d.ts +6 -0
  157. package/dist/src/api/scientist/alova/index.js +21 -0
  158. package/dist/src/api/scientist/index.js +9 -0
  159. package/dist/src/api/scientist/scientist.d.ts +20 -0
  160. package/dist/src/api/scientist/scientist.js +37 -0
  161. package/dist/src/components/models.d.ts +7 -0
  162. package/dist/src/index.js +36 -0
  163. package/dist/src/pages/LoginPage.vue.d.ts +2 -0
  164. package/dist/src/proto/types/Images_pb.d.ts +34 -0
  165. package/dist/src/proto/types/Images_pb.js +10 -0
  166. package/dist/src/proto/types/WaveMap_pb.d.ts +48 -0
  167. package/dist/src/proto/types/WaveMap_pb.js +10 -0
  168. package/dist/src/router/index.d.ts +2 -0
  169. package/dist/src/router/routes.d.ts +3 -0
  170. package/dist/src/util/RichTextUtil.d.ts +1 -0
  171. package/dist/src/util/RichTextUtil.js +6 -0
  172. package/dist/src/util/datetime.d.ts +5 -0
  173. package/dist/src/util/export.d.ts +4 -0
  174. package/dist/src/util/helper.d.ts +65 -0
  175. package/dist/src/util/helper.js +46 -0
  176. package/dist/src/util/image.d.ts +2 -0
  177. package/dist/src/util/image.js +17 -0
  178. package/dist/src/util/number.d.ts +12 -0
  179. package/dist/src/util/s256.d.ts +2 -0
  180. package/dist/src/util/secret.d.ts +10 -0
  181. package/dist/src/util/string.d.ts +21 -0
  182. package/dist/src/util/string.js +10 -0
  183. package/package.json +5 -2
  184. package/.editorconfig +0 -7
  185. package/.github/workflows/test.yml +0 -29
  186. package/.prettierrc.json +0 -5
  187. package/.vscode/extensions.json +0 -15
  188. package/.vscode/settings.json +0 -9
  189. package/eslint.config.js +0 -83
  190. package/index.html +0 -24
  191. package/postcss.config.js +0 -29
  192. package/quasar.config.ts +0 -233
  193. package/src/App.vue +0 -7
  194. package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
  195. package/src/api/algorithm/index.ts +0 -50
  196. package/src/api/algorithm/inquiriesAlgorithm.ts +0 -16
  197. package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
  198. package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
  199. package/src/api/algorithm/pulsationsAlgorithm.ts +0 -8
  200. package/src/api/authorization/alova/apiDefinitions.ts +0 -23
  201. package/src/api/authorization/alova/createApis.ts +0 -114
  202. package/src/api/authorization/alova/globals.d.ts +0 -394
  203. package/src/api/authorization/alova/implement/authorization.ts +0 -14
  204. package/src/api/authorization/alova/index.ts +0 -22
  205. package/src/api/authorization/authorization.ts +0 -16
  206. package/src/api/check/alova/apiDefinitions.ts +0 -30
  207. package/src/api/check/alova/createApis.ts +0 -114
  208. package/src/api/check/alova/globals.d.ts +0 -1257
  209. package/src/api/check/alova/implement/check.ts +0 -165
  210. package/src/api/check/alova/index.ts +0 -22
  211. package/src/api/check/check.ts +0 -217
  212. package/src/api/config/alova/index.ts +0 -71
  213. package/src/api/config/index.ts +0 -132
  214. package/src/api/device/device.js +0 -58
  215. package/src/api/doctor/alova/apiDefinitions.ts +0 -28
  216. package/src/api/doctor/alova/createApis.ts +0 -114
  217. package/src/api/doctor/alova/globals.d.ts +0 -559
  218. package/src/api/doctor/alova/implement/doctor.ts +0 -51
  219. package/src/api/doctor/alova/index.ts +0 -23
  220. package/src/api/doctor/doctor.ts +0 -53
  221. package/src/api/metric/implement/metric.ts +0 -108
  222. package/src/api/metric/metric.ts +0 -114
  223. package/src/api/oauth/alova/apiDefinitions.ts +0 -26
  224. package/src/api/oauth/alova/createApis.ts +0 -114
  225. package/src/api/oauth/alova/globals.d.ts +0 -460
  226. package/src/api/oauth/alova/implement/oauth.ts +0 -24
  227. package/src/api/oauth/alova/index.ts +0 -21
  228. package/src/api/oauth/oauth.ts +0 -19
  229. package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
  230. package/src/api/outpatient/alova/createApis.ts +0 -114
  231. package/src/api/outpatient/alova/globals.d.ts +0 -685
  232. package/src/api/outpatient/alova/implement/outpatient.ts +0 -91
  233. package/src/api/outpatient/alova/index.ts +0 -22
  234. package/src/api/outpatient/outpatient.ts +0 -67
  235. package/src/api/patient/alova/apiDefinitions.ts +0 -41
  236. package/src/api/patient/alova/createApis.ts +0 -114
  237. package/src/api/patient/alova/globals.d.ts +0 -1690
  238. package/src/api/patient/alova/implement/meta.ts +0 -517
  239. package/src/api/patient/alova/implement/patient.ts +0 -99
  240. package/src/api/patient/alova/index.ts +0 -22
  241. package/src/api/patient/core.ts +0 -133
  242. package/src/api/patient/meta.ts +0 -570
  243. package/src/api/patient/patient.ts +0 -98
  244. package/src/api/prescription/alova/apiDefinitions.ts +0 -29
  245. package/src/api/prescription/alova/createApis.ts +0 -114
  246. package/src/api/prescription/alova/globals.d.ts +0 -968
  247. package/src/api/prescription/alova/implement/herbal.ts +0 -68
  248. package/src/api/prescription/alova/implement/prescription.ts +0 -62
  249. package/src/api/prescription/alova/index.ts +0 -22
  250. package/src/api/prescription/herbal.ts +0 -51
  251. package/src/api/prescription/prescription.ts +0 -76
  252. package/src/api/scientist/alova/apiDefinitions.ts +0 -27
  253. package/src/api/scientist/alova/createApis.ts +0 -114
  254. package/src/api/scientist/alova/globals.d.ts +0 -447
  255. package/src/api/scientist/alova/implement/scientist.ts +0 -40
  256. package/src/api/scientist/alova/index.ts +0 -24
  257. package/src/api/scientist/scientist.ts +0 -49
  258. package/src/assets/quasar-logo-vertical.svg +0 -15
  259. package/src/boot/.gitkeep +0 -0
  260. package/src/components/ExampleComponent.vue +0 -37
  261. package/src/components/models.ts +0 -8
  262. package/src/css/app.scss +0 -1
  263. package/src/css/quasar.variables.scss +0 -25
  264. package/src/env.d.ts +0 -7
  265. package/src/layouts/UserLayout.vue +0 -108
  266. package/src/pages/LoginPage.vue +0 -29
  267. package/src/proto/Images.proto +0 -7
  268. package/src/proto/WaveMap.proto +0 -10
  269. package/src/proto/types/Images_pb.ts +0 -48
  270. package/src/proto/types/WaveMap_pb.ts +0 -59
  271. package/src/router/index.ts +0 -37
  272. package/src/router/routes.ts +0 -14
  273. package/src/util/RichTextUtil.ts +0 -5
  274. package/src/util/datetime.ts +0 -43
  275. package/src/util/export.ts +0 -46
  276. package/src/util/helper.ts +0 -159
  277. package/src/util/image.ts +0 -28
  278. package/src/util/number.ts +0 -146
  279. package/src/util/s256.js +0 -27
  280. package/src/util/secret.ts +0 -60
  281. package/src/util/string.ts +0 -121
  282. package/tsconfig.json +0 -7
  283. /package/{public → dist}/favicon.ico +0 -0
  284. /package/{public → dist}/icons/favicon-128x128.png +0 -0
  285. /package/{public → dist}/icons/favicon-16x16.png +0 -0
  286. /package/{public → dist}/icons/favicon-32x32.png +0 -0
  287. /package/{public → dist}/icons/favicon-96x96.png +0 -0
  288. /package/{src/api/authorization/alova/implement/index.ts → dist/src/api/authorization/alova/implement/index.d.ts} +0 -0
  289. /package/{src/api/authorization/index.ts → dist/src/api/authorization/index.d.ts} +0 -0
  290. /package/{src/api/check/alova/implement/index.ts → dist/src/api/check/alova/implement/index.d.ts} +0 -0
  291. /package/{src/api/check/index.ts → dist/src/api/check/index.d.ts} +0 -0
  292. /package/{src/api/doctor/alova/implement/index.ts → dist/src/api/doctor/alova/implement/index.d.ts} +0 -0
  293. /package/{src/api/doctor/index.ts → dist/src/api/doctor/index.d.ts} +0 -0
  294. /package/{src/api/index.ts → dist/src/api/index.d.ts} +0 -0
  295. /package/{src/api/metric/implement/index.ts → dist/src/api/metric/implement/index.d.ts} +0 -0
  296. /package/{src/api/metric/index.ts → dist/src/api/metric/index.d.ts} +0 -0
  297. /package/{src/api/oauth/alova/implement/index.ts → dist/src/api/oauth/alova/implement/index.d.ts} +0 -0
  298. /package/{src/api/oauth/index.ts → dist/src/api/oauth/index.d.ts} +0 -0
  299. /package/{src/api/outpatient/alova/implement/index.ts → dist/src/api/outpatient/alova/implement/index.d.ts} +0 -0
  300. /package/{src/api/outpatient/index.ts → dist/src/api/outpatient/index.d.ts} +0 -0
  301. /package/{src/api/patient/alova/implement/index.ts → dist/src/api/patient/alova/implement/index.d.ts} +0 -0
  302. /package/{src/api/patient/index.ts → dist/src/api/patient/index.d.ts} +0 -0
  303. /package/{src/api/prescription/alova/implement/index.ts → dist/src/api/prescription/alova/implement/index.d.ts} +0 -0
  304. /package/{src/api/prescription/index.ts → dist/src/api/prescription/index.d.ts} +0 -0
  305. /package/{src/api/scientist/alova/implement/index.ts → dist/src/api/scientist/alova/implement/index.d.ts} +0 -0
  306. /package/{src/api/scientist/index.ts → dist/src/api/scientist/index.d.ts} +0 -0
  307. /package/{src/index.ts → dist/src/index.d.ts} +0 -0
  308. /package/{src/proto/index.ts → dist/src/proto/index.d.ts} +0 -0
@@ -0,0 +1,27 @@
1
+ import { Check, Payment } from '../../check';
2
+ export declare class AlovaCheck extends Check {
3
+ get(): Promise<this>;
4
+ put(): Promise<this>;
5
+ post(): Promise<this>;
6
+ delete(): Promise<void>;
7
+ static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string): Promise<{
8
+ data: AlovaCheck[];
9
+ total: number;
10
+ page: number;
11
+ pageSize: number;
12
+ pageCount: number;
13
+ isLastPage: boolean;
14
+ }>;
15
+ static queryPayment(page: number, pageSize: number, doctorId?: string, patientId?: string, patientName?: string, patientPhone?: string, prescriptionPaymentStatus?: number, outboundStatus?: number): Promise<{
16
+ data: AlovaPayment[];
17
+ total: number;
18
+ page: number;
19
+ pageSize: number;
20
+ pageCount: number;
21
+ isLastPage: boolean;
22
+ }>;
23
+ }
24
+ export declare class AlovaPayment extends Payment {
25
+ putOutboundStatus(status: number): Promise<this>;
26
+ putPrescriptionPaymentStatus(status: number): Promise<this>;
27
+ }
@@ -0,0 +1,119 @@
1
+ import { Check as d, Payment as m } from "../../check.js";
2
+ class l extends d {
3
+ async get() {
4
+ return this.of(
5
+ await checkApi.checkStateRestful.getCheckState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ async transform(t) {
10
+ return new l().of(t);
11
+ }
12
+ }).send()
13
+ );
14
+ }
15
+ async put() {
16
+ return this.of(
17
+ await checkApi.checkStateRestful.putCheckState({
18
+ pathParams: {
19
+ id: this.id
20
+ },
21
+ data: this.state()
22
+ }).send(!0)
23
+ );
24
+ }
25
+ async post() {
26
+ return this.of(
27
+ await checkApi.checkStateRestful.postCheckState({
28
+ data: this.state()
29
+ }).send(!0)
30
+ );
31
+ }
32
+ delete() {
33
+ return checkApi.checkStateRestful.deleteCheckState({
34
+ pathParams: {
35
+ id: this.id
36
+ }
37
+ }).send(), Promise.resolve();
38
+ }
39
+ static query(t, h, u, s, c, i, r, n, e, o) {
40
+ return checkApi.checkStateRestful.queryCheckState({
41
+ params: {
42
+ ...s && { patientId: s },
43
+ ...c && { doctorId: c },
44
+ ...i && { startTime: i },
45
+ ...r && { endTime: r },
46
+ ...n && { patientName: n },
47
+ ...e && { patientGender: e },
48
+ ...o && { patientPhoneNumber: o },
49
+ pageSize: h,
50
+ page: t,
51
+ sort: u
52
+ },
53
+ async transform(a) {
54
+ return {
55
+ data: await Promise.all(
56
+ a.content.map((p) => new l().of(p))
57
+ ),
58
+ total: a.totalElements,
59
+ page: a.number,
60
+ pageSize: a.size,
61
+ pageCount: a.totalPages,
62
+ isLastPage: a.last
63
+ };
64
+ }
65
+ }).send();
66
+ }
67
+ static queryPayment(t, h, u, s, c, i, r, n) {
68
+ return checkApi.checkStateRestful.queryPaymentState({
69
+ params: {
70
+ ...u && { doctorId: u },
71
+ ...s && { patientId: s },
72
+ ...c && { patientName: c },
73
+ ...i && { patientPhone: i },
74
+ ...r && { prescriptionPaymentStatus: r },
75
+ ...n && { outboundStatus: n },
76
+ pageSize: h,
77
+ page: t
78
+ },
79
+ async transform(e) {
80
+ return {
81
+ data: await Promise.all(
82
+ e.content.map((a) => new k().of(a))
83
+ ),
84
+ total: e.totalElements,
85
+ page: e.number,
86
+ pageSize: e.size,
87
+ pageCount: e.totalPages,
88
+ isLastPage: e.last
89
+ };
90
+ }
91
+ }).send();
92
+ }
93
+ }
94
+ class k extends m {
95
+ async putOutboundStatus(t) {
96
+ return this.outboundStatus = t, await checkApi.checkStateRestful.putCheckState({
97
+ pathParams: {
98
+ id: this.id
99
+ },
100
+ data: {
101
+ outboundStatus: t
102
+ }
103
+ }).send(!0), Promise.resolve(this);
104
+ }
105
+ async putPrescriptionPaymentStatus(t) {
106
+ return this.prescriptionPaymentStatus = t, await checkApi.checkStateRestful.putCheckState({
107
+ pathParams: {
108
+ id: this.id
109
+ },
110
+ data: {
111
+ prescriptionPaymentStatus: t
112
+ }
113
+ }).send(!0), Promise.resolve(this);
114
+ }
115
+ }
116
+ export {
117
+ l as AlovaCheck,
118
+ k as AlovaPayment
119
+ };
@@ -0,0 +1,5 @@
1
+ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
2
+ export declare const $$userConfigMap: {};
3
+ declare const Apis: checkApi;
4
+ export default Apis;
5
+ export * from './implement';
@@ -0,0 +1,21 @@
1
+ import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
+ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
+ import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
4
+ import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
5
+ import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
6
+ import "../../patient/core.js";
7
+ import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
8
+ import "../../prescription/alova/index.js";
9
+ const s = e({
10
+ baseURL: m(n.Check),
11
+ requestAdapter: o(),
12
+ beforeRequest: a(),
13
+ cacheFor: null,
14
+ responded: i
15
+ }), c = p({}), f = r(s, c);
16
+ t(f);
17
+ export {
18
+ c as $$userConfigMap,
19
+ s as alovaInstance,
20
+ f as default
21
+ };
@@ -0,0 +1,54 @@
1
+ import { Patient } from '../patient/patient';
2
+ import { Page, Tag, NetworkObject, Sequence } from '../patient/core';
3
+ import { CheckState, PaymentState } from './alova/globals';
4
+ import { Metas } from '../patient/meta';
5
+ import { Prescription } from '../prescription/prescription';
6
+ import { Doctor } from '../doctor/doctor';
7
+ import { IBuilder } from 'builder-pattern';
8
+ export declare abstract class Check extends NetworkObject {
9
+ static builder(): IBuilder<Check>;
10
+ static default(): typeof Check;
11
+ id: string;
12
+ doctor: Doctor;
13
+ patient: Patient;
14
+ diagnosis: string;
15
+ tags: Tag[];
16
+ prescriptions: Sequence<Prescription>;
17
+ createdTimestamp: string;
18
+ updatedTimestamp: string;
19
+ prescriptionPaymentStatus: number;
20
+ outboundStatus: number;
21
+ paymentType: string;
22
+ outpatientType: string;
23
+ draft: boolean;
24
+ isEditing: boolean;
25
+ metas: Metas;
26
+ constructor();
27
+ of(json: CheckState): Promise<this>;
28
+ state(): CheckState;
29
+ abstract get(): Promise<this>;
30
+ abstract put(): Promise<this>;
31
+ abstract post(): Promise<this>;
32
+ abstract delete(): Promise<void>;
33
+ static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string): Promise<Page<Check>>;
34
+ static queryPayment(page: number, pageSize: number, doctorId?: string, patientId?: string, patientName?: string, patientPhone?: string, prescriptionPaymentStatus?: number, outboundStatus?: number): Promise<Page<Payment>>;
35
+ }
36
+ export declare abstract class Payment extends NetworkObject {
37
+ static builder(): IBuilder<Payment>;
38
+ static default(): typeof Payment;
39
+ id: string;
40
+ prescription: string;
41
+ doctorId: string;
42
+ patientId: string;
43
+ patientName: string;
44
+ patientPhone: string;
45
+ patientGender: string;
46
+ createdTimestamp: number;
47
+ updatedTimestamp: number;
48
+ prescriptionPaymentStatus: number;
49
+ outboundStatus: number;
50
+ of(json: PaymentState): Promise<this>;
51
+ state(): PaymentState;
52
+ abstract putOutboundStatus(status: number): Promise<this>;
53
+ abstract putPrescriptionPaymentStatus(status: number): Promise<this>;
54
+ }
@@ -0,0 +1,131 @@
1
+ import { Patient as S } from "../patient/patient.js";
2
+ import { NetworkObject as h, Sequence as m, Tag as y } from "../patient/core.js";
3
+ import { Metas as n } from "../patient/meta.js";
4
+ import { Prescription as u } from "../prescription/prescription.js";
5
+ import { AlovaPrescription as g } from "../prescription/alova/implement/prescription.js";
6
+ import { extractPlainText as c } from "../../util/RichTextUtil.js";
7
+ import { Doctor as b } from "../doctor/doctor.js";
8
+ import { Herbal as P } from "../prescription/herbal.js";
9
+ import "../prescription/alova/index.js";
10
+ import { Builder as l } from "../../../node_modules/builder-pattern/dist/index.js";
11
+ class o extends h {
12
+ static builder() {
13
+ return l(this._default);
14
+ }
15
+ static default() {
16
+ return this._default;
17
+ }
18
+ id = "";
19
+ doctor = b.builder().build();
20
+ patient = S.builder().build();
21
+ diagnosis = "";
22
+ tags = [];
23
+ prescriptions = new m();
24
+ createdTimestamp = Date.now().toString();
25
+ updatedTimestamp = Date.now().toString();
26
+ prescriptionPaymentStatus = 0;
27
+ outboundStatus = 0;
28
+ //购买类型
29
+ paymentType = "医保";
30
+ //就诊方式
31
+ outpatientType = "预约";
32
+ draft = !1;
33
+ isEditing = !1;
34
+ metas = n.builder().build();
35
+ constructor() {
36
+ super();
37
+ const t = u.builder().build();
38
+ t.herbals.push(P.builder().build()), this.prescriptions.data.push(t);
39
+ }
40
+ async of(t) {
41
+ if (t.tagsState != null && (this.tags = await Promise.all(
42
+ t.tagsState.map((i) => new y().of(i))
43
+ )), t.id != null && (this.id = t.id), t.prescriptionsState != null) {
44
+ this.prescriptions = new m();
45
+ const i = JSON.parse(t.prescriptionsState), e = await Promise.all(
46
+ i.map(async (a) => new g().of(a))
47
+ );
48
+ this.prescriptions.data.push(...e);
49
+ }
50
+ return this.prescriptions.data.length === 0 && this.prescriptions.data.push(u.builder().build()), t.diagnosis != null && (t.diagnosis.indexOf("脉证") !== 0 && t.diagnosis.indexOf(`
51
+ 脉证`) === -1 && (t.diagnosis = t.diagnosis.replaceAll("脉证", `
52
+ 脉证`)), t.diagnosis.indexOf(`
53
+ 方证`) === -1 && (t.diagnosis = t.diagnosis.replaceAll("方证", `
54
+ 方证`)), this.diagnosis = c(t.diagnosis)), t.doctorState != null && (this.doctor = await this.doctor.of(t.doctorState)), t.patientState != null && (this.patient = await this.patient.of(t.patientState)), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.prescriptionPaymentStatus != null && (this.prescriptionPaymentStatus = t.prescriptionPaymentStatus), t.outboundStatus != null && (this.outboundStatus = t.outboundStatus), t.paymentType != null && (this.paymentType = t.paymentType), t.outpatientType != null && (this.outpatientType = t.outpatientType), t.metasState != null && this.metas.addMetas(await Promise.all(t.metasState.map((i) => n.map(i)))), this;
55
+ }
56
+ state() {
57
+ console.log(this);
58
+ const t = {};
59
+ return t.id = this.id, t.doctorState = this.doctor.state(), t.patientState = this.patient.state(), t.outpatientType = this.outpatientType, t.paymentType = this.paymentType, t.diagnosis = c(this.diagnosis.replace("</div>", `
60
+ <div>`)), t.createdTimestamp = this.createdTimestamp, t.diagnosis = this.diagnosis, t.tagsState = this.tags.map((i) => i.state()), t.createdTimestamp = this.createdTimestamp, t.updatedTimestamp = this.updatedTimestamp, t.prescriptionsState = JSON.stringify(this.prescriptions.data.map((i) => i.state())), t.metasState = n.standards().flatMap(
61
+ (i) => this.metas[i].data.map((e) => e.state())
62
+ ), t;
63
+ }
64
+ static query(t, i, e, a, s, p, r, d, f, T) {
65
+ return o.default().query(
66
+ t,
67
+ i,
68
+ e,
69
+ a,
70
+ s,
71
+ p,
72
+ r,
73
+ d,
74
+ f,
75
+ T
76
+ );
77
+ }
78
+ static queryPayment(t, i, e, a, s, p, r, d) {
79
+ return o.default().queryPayment(
80
+ t,
81
+ i,
82
+ e,
83
+ a,
84
+ s,
85
+ p,
86
+ r,
87
+ d
88
+ );
89
+ }
90
+ }
91
+ class J extends h {
92
+ static builder() {
93
+ return l(this._default);
94
+ }
95
+ static default() {
96
+ return this._default;
97
+ }
98
+ id = "";
99
+ prescription = "";
100
+ doctorId = "";
101
+ patientId = "";
102
+ patientName = "";
103
+ patientPhone = "";
104
+ patientGender = "";
105
+ createdTimestamp = 0;
106
+ updatedTimestamp = 0;
107
+ prescriptionPaymentStatus = 0;
108
+ outboundStatus = 0;
109
+ async of(t) {
110
+ return this.id = t.id, this.prescription = t.prescription ? t.prescription : "", this.doctorId = t.doctorId, this.patientId = t.patientId, this.patientName = t.patientName ? t.patientName : "", this.patientPhone = t.patientPhone ? t.patientPhone : "", this.patientGender = t.patientGender ? t.patientGender : "", this.createdTimestamp = t.createdTimestamp ? t.createdTimestamp : 0, this.updatedTimestamp = t.updatedTimestamp ? t.updatedTimestamp : 0, this.prescriptionPaymentStatus = t.prescriptionPaymentStatus ? t.prescriptionPaymentStatus : 0, this.outboundStatus = t.outboundStatus ? t.outboundStatus : 0, Promise.resolve(this);
111
+ }
112
+ state() {
113
+ return {
114
+ id: this.id,
115
+ prescription: this.prescription,
116
+ doctorId: this.doctorId,
117
+ patientId: this.patientId,
118
+ patientName: this.patientName,
119
+ patientPhone: this.patientPhone,
120
+ patientGender: this.patientGender,
121
+ createdTimestamp: this.createdTimestamp,
122
+ updatedTimestamp: this.updatedTimestamp,
123
+ prescriptionPaymentStatus: this.prescriptionPaymentStatus,
124
+ outboundStatus: this.outboundStatus
125
+ };
126
+ }
127
+ }
128
+ export {
129
+ o as Check,
130
+ J as Payment
131
+ };
@@ -0,0 +1,11 @@
1
+ import { Check as a, Payment as r } from "./check.js";
2
+ import { $$userConfigMap as m, alovaInstance as n } from "./alova/index.js";
3
+ import { AlovaCheck as p, AlovaPayment as c } from "./alova/implement/check.js";
4
+ export {
5
+ m as $$userConfigMap,
6
+ p as AlovaCheck,
7
+ c as AlovaPayment,
8
+ a as Check,
9
+ r as Payment,
10
+ n as alovaInstance
11
+ };
@@ -0,0 +1,5 @@
1
+ import { Method } from 'alova';
2
+ export declare const onAuthRequired: import('alova/client').BeforeRequestType<import('alova').StatesHook<any>, import('alova/fetch').FetchRequestAdapter>;
3
+ export declare const responded: {
4
+ onSuccess: (response: Response, method: Method) => Promise<any>;
5
+ };
@@ -0,0 +1,55 @@
1
+ import { createClientTokenAuthentication as n } from "../../../../node_modules/alova/dist/clienthook/index.esm.js";
2
+ import { storageHelper as e } from "../../../util/helper.js";
3
+ import { jwtDecode as i } from "../../../../node_modules/jwt-decode/build/esm/index.js";
4
+ const { onAuthRequired: u } = n({
5
+ assignToken: (t) => {
6
+ e.getItem("token") && (t.config.headers.Authorization = "Bearer " + e.getItem("token"));
7
+ },
8
+ visitorMeta: {
9
+ isVisitor: !0
10
+ },
11
+ login: {
12
+ metaMatches: {
13
+ login: !0
14
+ },
15
+ handler: async (t) => {
16
+ if (t.status != 200) throw new Error("登录失败" + await t.text());
17
+ await t.json().then((r) => {
18
+ e.setItem("token", r.token);
19
+ });
20
+ }
21
+ },
22
+ refreshToken: {
23
+ // 在请求前触发,将接收到method参数,并返回boolean表示token是否过期
24
+ isExpired: () => {
25
+ if (!e.getItem("token")) return !1;
26
+ const t = i(e.getItem("token"));
27
+ if (t.exp === void 0) return !1;
28
+ const r = Date.now() / 1e3;
29
+ return t.exp < r;
30
+ },
31
+ // 当token过期时触发,在此函数中触发刷新token
32
+ handler: async () => (e.removeItem("token"), window.location.href = "登录", await Promise.resolve())
33
+ }
34
+ }), m = {
35
+ onSuccess: async (t, r) => {
36
+ if (t.status == 401) {
37
+ if (r.meta.Login)
38
+ throw new Error(t.status.toString());
39
+ console.log("未登录"), e.removeItem("token"), window.location.href = process.env.APP_URL;
40
+ }
41
+ if (t.headers.get("Content-Type") == "application/octet-stream") return t;
42
+ if (t.status == 200 || t.status == 201 || t.status == 204) {
43
+ const o = await t.text();
44
+ try {
45
+ return JSON.parse(o);
46
+ } catch {
47
+ return o;
48
+ }
49
+ }
50
+ }
51
+ };
52
+ export {
53
+ u as onAuthRequired,
54
+ m as responded
55
+ };
@@ -0,0 +1,23 @@
1
+ export declare enum ServiceType {
2
+ OAuth = "OAuth",
3
+ OAuthRedirect = "OAuthRedirect",
4
+ Doctor = "Doctor",
5
+ Patient = "Patient",
6
+ Scientist = "Scientist",
7
+ Outpatient = "Outpatient",
8
+ Check = "Check",
9
+ Prescription = "Prescription",
10
+ Authorization = "Authorization",
11
+ InspectionsAlgorithm = "InspectionsAlgorithm",
12
+ PulsationsAlgorithm = "PulsationsAlgorithm",
13
+ InquiriesAlgorithm = "InquiriesAlgorithm",
14
+ LisemsAlgorithm = "LisemsAlgorithm",
15
+ ComprehensiveAlgorithm = "ComprehensiveAlgorithm"
16
+ }
17
+ export declare enum EnvironmentType {
18
+ Dev = "Dev",
19
+ Prod = "Prod",
20
+ Local = "Local"
21
+ }
22
+ export declare const getServiceEndpoint: (serviceType: ServiceType, env?: EnvironmentType) => "https://用户.仪联中.中国" | "https://用户.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile" | "https://中医.仪联中.中国" | "https://中医.仪联中.中国/望诊/算法" | "https://中医.仪联中.中国/切诊/算法" | "https://中医.仪联中.中国/问诊/算法" | "https://中医.仪联中.中国/闻诊/算法" | "https://中医.仪联中.中国/四诊合参/算法" | "https://用户测试.仪联中.中国" | "https://用户测试.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile" | "https://中医测试.仪联中.中国" | "https://中医测试.仪联中.中国/望诊/算法" | "https://中医测试.仪联中.中国/切诊/算法" | "https://中医测试.仪联中.中国/问诊/算法" | "https://中医测试.仪联中.中国/闻诊/算法" | "https://中医测试.仪联中.中国/四诊合参/算法" | "http://localhost:8080";
23
+ export * from './alova';
@@ -0,0 +1,106 @@
1
+ import r from "../../../node_modules/punycode/punycode.es6.js";
2
+ import { onAuthRequired as a, responded as u } from "./alova/index.js";
3
+ var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
4
+ const h = (t, s) => {
5
+ if (s == null && (r.toUnicode(window.location.hostname).includes("测试") ? s = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), s = "Prod")), s == "Prod")
6
+ switch (t) {
7
+ case "OAuth":
8
+ return "https://用户.仪联中.中国";
9
+ case "OAuthRedirect":
10
+ return "https://用户.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile";
11
+ case "Doctor":
12
+ return "https://中医.仪联中.中国";
13
+ case "Patient":
14
+ return "https://中医.仪联中.中国";
15
+ case "Scientist":
16
+ return "https://中医.仪联中.中国";
17
+ case "Outpatient":
18
+ return "https://中医.仪联中.中国";
19
+ case "Check":
20
+ return "https://中医.仪联中.中国";
21
+ case "Prescription":
22
+ return "https://中医.仪联中.中国";
23
+ case "Authorization":
24
+ return "https://中医.仪联中.中国";
25
+ case "InspectionsAlgorithm":
26
+ return "https://中医.仪联中.中国/望诊/算法";
27
+ case "PulsationsAlgorithm":
28
+ return "https://中医.仪联中.中国/切诊/算法";
29
+ case "InquiriesAlgorithm":
30
+ return "https://中医.仪联中.中国/问诊/算法";
31
+ case "LisemsAlgorithm":
32
+ return "https://中医.仪联中.中国/闻诊/算法";
33
+ case "ComprehensiveAlgorithm":
34
+ return "https://中医.仪联中.中国/四诊合参/算法";
35
+ }
36
+ else if (s == "Dev")
37
+ switch (t) {
38
+ case "OAuth":
39
+ return "https://用户测试.仪联中.中国";
40
+ case "OAuthRedirect":
41
+ return "https://用户测试.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile";
42
+ case "Doctor":
43
+ return "https://中医测试.仪联中.中国";
44
+ case "Patient":
45
+ return "https://中医测试.仪联中.中国";
46
+ case "Scientist":
47
+ return "https://中医测试.仪联中.中国";
48
+ case "Outpatient":
49
+ return "https://中医测试.仪联中.中国";
50
+ case "Check":
51
+ return "https://中医测试.仪联中.中国";
52
+ case "Prescription":
53
+ return "https://中医测试.仪联中.中国";
54
+ case "Authorization":
55
+ return "https://中医测试.仪联中.中国";
56
+ case "InspectionsAlgorithm":
57
+ return "https://中医测试.仪联中.中国/望诊/算法";
58
+ case "PulsationsAlgorithm":
59
+ return "https://中医测试.仪联中.中国/切诊/算法";
60
+ case "InquiriesAlgorithm":
61
+ return "https://中医测试.仪联中.中国/问诊/算法";
62
+ case "LisemsAlgorithm":
63
+ return "https://中医测试.仪联中.中国/闻诊/算法";
64
+ case "ComprehensiveAlgorithm":
65
+ return "https://中医测试.仪联中.中国/四诊合参/算法";
66
+ }
67
+ else if (s == "Local")
68
+ switch (t) {
69
+ case "OAuth":
70
+ return "http://localhost:8080";
71
+ case "OAuthRedirect":
72
+ return "https://用户.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile";
73
+ case "Doctor":
74
+ return "http://localhost:8080";
75
+ case "Patient":
76
+ return "http://localhost:8080";
77
+ case "Scientist":
78
+ return "http://localhost:8080";
79
+ case "Outpatient":
80
+ return "http://localhost:8080";
81
+ case "Check":
82
+ return "http://localhost:8080";
83
+ case "Prescription":
84
+ return "http://localhost:8080";
85
+ case "Authorization":
86
+ return "http://localhost:8080";
87
+ case "InspectionsAlgorithm":
88
+ return "http://localhost:8080";
89
+ case "PulsationsAlgorithm":
90
+ return "http://localhost:8080";
91
+ case "InquiriesAlgorithm":
92
+ return "http://localhost:8080";
93
+ case "LisemsAlgorithm":
94
+ return "http://localhost:8080";
95
+ case "ComprehensiveAlgorithm":
96
+ return "http://localhost:8080";
97
+ }
98
+ throw new Error("环境错误");
99
+ };
100
+ export {
101
+ o as EnvironmentType,
102
+ e as ServiceType,
103
+ h as getServiceEndpoint,
104
+ a as onAuthRequired,
105
+ u as responded
106
+ };
@@ -0,0 +1,5 @@
1
+ export function connectToSerialPort(): Promise<boolean>;
2
+ export function getPortInfo(): any;
3
+ export function disconnectToSerialPort(): Promise<void>;
4
+ export function sendText(text: any): Promise<void>;
5
+ export const port: import('vue').Ref<any, any>;
@@ -0,0 +1,46 @@
1
+ import a from "../../../node_modules/quasar/src/composables/use-quasar/use-quasar.js";
2
+ import { ref as n } from "../../../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
3
+ const r = a(), e = n();
4
+ async function s() {
5
+ try {
6
+ const o = {
7
+ baudRate: 115200,
8
+ dataBits: 8,
9
+ stopBits: 1,
10
+ bufferSize: 1024
11
+ };
12
+ return e.value = await navigator.serial.requestPort(), e.value ? (await e.value.open(o), console.log("port", e.value.getInfo()), !0) : (r.dialog({
13
+ title: "错误",
14
+ message: "未选择串口"
15
+ }), !1);
16
+ } catch (o) {
17
+ return console.error("Error connecting to serial port:", o), r.dialog({
18
+ title: "错误",
19
+ message: "连接串口失败"
20
+ }), !1;
21
+ }
22
+ }
23
+ function c() {
24
+ return e.value?.getInfo();
25
+ }
26
+ async function u() {
27
+ if (!e.value) {
28
+ console.error("Serial port not available");
29
+ return;
30
+ }
31
+ await e.value.close(), e.value = null, console.log("Serial port disconnected");
32
+ }
33
+ async function f(o) {
34
+ if (e.value) {
35
+ const t = e.value.writable.getWriter();
36
+ console.log("text", o), await t.write(new TextEncoder().encode(o)), await t.close();
37
+ } else
38
+ console.error("Serial port not available");
39
+ }
40
+ export {
41
+ s as connectToSerialPort,
42
+ u as disconnectToSerialPort,
43
+ c as getPortInfo,
44
+ e as port,
45
+ f as sendText
46
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * OpenAPI definition - version v0
3
+ *
4
+ *
5
+ *
6
+ * OpenAPI version: 3.1.0
7
+ *
8
+ *
9
+ * NOTE: This file is auto generated by the alova's vscode plugin.
10
+ *
11
+ * https://alova.js.org/devtools/vscode
12
+ *
13
+ * **Do not edit the file manually.**
14
+ */
15
+ declare const _default: {
16
+ 'doctorStateRestful.getDoctorState': string[];
17
+ 'doctorStateRestful.putDoctorState': string[];
18
+ 'doctorStateRestful.deleteDoctorState': string[];
19
+ 'doctorStateRestful.queryDoctorState': string[];
20
+ 'doctorStateRestful.postDoctorState': string[];
21
+ 'doctorStateRestful.queryDoctorStateByExactMatch': string[];
22
+ 'doctorStateRestful.datesOfDoctor': string[];
23
+ 'doctorStateRestful.totalOfDoctor': string[];
24
+ 'doctorStateRestful.totalOfDoctorByToday': string[];
25
+ };
26
+ export default _default;
@@ -0,0 +1,14 @@
1
+ const t = {
2
+ "doctorStateRestful.getDoctorState": ["GET", "/医生/服务/{id}"],
3
+ "doctorStateRestful.putDoctorState": ["PUT", "/医生/服务/{id}"],
4
+ "doctorStateRestful.deleteDoctorState": ["DELETE", "/医生/服务/{id}"],
5
+ "doctorStateRestful.queryDoctorState": ["GET", "/医生/服务"],
6
+ "doctorStateRestful.postDoctorState": ["POST", "/医生/服务"],
7
+ "doctorStateRestful.queryDoctorStateByExactMatch": ["POST", "/医生/服务/精确匹配"],
8
+ "doctorStateRestful.datesOfDoctor": ["GET", "/医生/服务/统计/医生/日期"],
9
+ "doctorStateRestful.totalOfDoctor": ["GET", "/医生/服务/统计/医生/总数"],
10
+ "doctorStateRestful.totalOfDoctorByToday": ["GET", "/医生/服务/统计/医生/今日"]
11
+ };
12
+ export {
13
+ t as default
14
+ };