web-core-tcm 0.0.67 → 0.0.71

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 (82) hide show
  1. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +6 -10
  2. package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
  3. package/dist/src/api/authorization/alova/index.d.ts +3 -2
  4. package/dist/src/api/authorization/alova/index.js +16 -13
  5. package/dist/src/api/authorization/authorization.d.ts +1 -1
  6. package/dist/src/api/authorization/index.js +9 -6
  7. package/dist/src/api/check/alova/index.d.ts +1 -2
  8. package/dist/src/api/check/alova/index.js +10 -11
  9. package/dist/src/api/check/check.d.ts +1 -1
  10. package/dist/src/api/check/index.js +9 -10
  11. package/dist/src/api/config/alova/index.js +10 -10
  12. package/dist/src/api/config/index.d.ts +0 -1
  13. package/dist/src/api/config/index.js +9 -15
  14. package/dist/src/api/core/core.d.ts +1 -1
  15. package/dist/src/api/doctor/alova/index.d.ts +1 -2
  16. package/dist/src/api/doctor/alova/index.js +7 -8
  17. package/dist/src/api/doctor/doctor.d.ts +1 -1
  18. package/dist/src/api/doctor/index.js +6 -7
  19. package/dist/src/api/index.d.ts +0 -1
  20. package/dist/src/api/index.js +0 -2
  21. package/dist/src/api/metric/alova/implement/metric.d.ts +1 -1
  22. package/dist/src/api/metric/metric.d.ts +2 -2
  23. package/dist/src/api/oauth/alova/index.d.ts +1 -2
  24. package/dist/src/api/oauth/alova/index.js +11 -12
  25. package/dist/src/api/oauth/index.js +5 -6
  26. package/dist/src/api/outpatient/alova/index.d.ts +1 -2
  27. package/dist/src/api/outpatient/alova/index.js +10 -11
  28. package/dist/src/api/outpatient/index.js +9 -10
  29. package/dist/src/api/outpatient/outpatient.d.ts +1 -1
  30. package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
  31. package/dist/src/api/patient/alova/index.d.ts +1 -2
  32. package/dist/src/api/patient/alova/index.js +10 -11
  33. package/dist/src/api/patient/index.js +26 -27
  34. package/dist/src/api/patient/meta.d.ts +1 -1
  35. package/dist/src/api/patient/patient.d.ts +1 -1
  36. package/dist/src/api/prescription/alova/implement/prescription.d.ts +1 -0
  37. package/dist/src/api/prescription/alova/implement/prescription.js +17 -9
  38. package/dist/src/api/prescription/alova/index.d.ts +1 -2
  39. package/dist/src/api/prescription/alova/index.js +1 -2
  40. package/dist/src/api/prescription/herbal.d.ts +1 -1
  41. package/dist/src/api/prescription/index.js +11 -12
  42. package/dist/src/api/prescription/prescription.d.ts +2 -1
  43. package/dist/src/api/prescription/prescription.js +12 -9
  44. package/dist/src/api/scientist/alova/index.d.ts +1 -2
  45. package/dist/src/api/scientist/alova/index.js +5 -6
  46. package/dist/src/api/scientist/index.js +7 -8
  47. package/dist/src/api/scientist/scientist.d.ts +1 -1
  48. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +3 -14
  49. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
  50. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +129 -117
  51. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +3 -14
  52. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
  53. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +139 -123
  54. package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
  55. package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
  56. package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +54 -51
  57. package/dist/src/index.js +40 -42
  58. package/dist/web-core-tcm.css +1 -1
  59. package/package.json +1 -6
  60. package/dist/src/api/manager/alova/apiDefinitions.d.ts +0 -62
  61. package/dist/src/api/manager/alova/apiDefinitions.js +0 -50
  62. package/dist/src/api/manager/alova/createApis.d.ts +0 -10
  63. package/dist/src/api/manager/alova/createApis.js +0 -49
  64. package/dist/src/api/manager/alova/globals.d.ts +0 -4890
  65. package/dist/src/api/manager/alova/implement/department.d.ts +0 -15
  66. package/dist/src/api/manager/alova/implement/department.js +0 -71
  67. package/dist/src/api/manager/alova/implement/division.d.ts +0 -15
  68. package/dist/src/api/manager/alova/implement/division.js +0 -71
  69. package/dist/src/api/manager/alova/implement/hospital.d.ts +0 -15
  70. package/dist/src/api/manager/alova/implement/hospital.js +0 -72
  71. package/dist/src/api/manager/alova/implement/index.d.ts +0 -3
  72. package/dist/src/api/manager/alova/implement/index.js +0 -8
  73. package/dist/src/api/manager/alova/index.d.ts +0 -7
  74. package/dist/src/api/manager/alova/index.js +0 -20
  75. package/dist/src/api/manager/department.d.ts +0 -23
  76. package/dist/src/api/manager/department.js +0 -49
  77. package/dist/src/api/manager/division.d.ts +0 -23
  78. package/dist/src/api/manager/division.js +0 -44
  79. package/dist/src/api/manager/hospital.d.ts +0 -24
  80. package/dist/src/api/manager/hospital.js +0 -51
  81. package/dist/src/api/manager/index.d.ts +0 -4
  82. package/dist/src/api/manager/index.js +0 -18
@@ -1,18 +1,21 @@
1
1
  import S from "../../../../node_modules/quasar/src/components/linear-progress/QLinearProgress.js";
2
2
  import v from "../../../../node_modules/quasar/src/components/btn/QBtn.js";
3
- import { defineComponent as K, ref as h, onMounted as T, onBeforeUnmount as W, createElementBlock as X, openBlock as r, createElementVNode as Y, createBlock as s, createCommentVNode as k, unref as R } from "vue";
3
+ import { defineComponent as K, ref as k, onMounted as T, onBeforeUnmount as W, createElementBlock as X, openBlock as r, createElementVNode as Y, createBlock as c, createCommentVNode as m, unref as R } from "vue";
4
4
  import { useBluetooth as P } from "../../../../node_modules/@vueuse/core/index.js";
5
5
  import Z from "../../../../node_modules/quasar/src/composables/use-quasar/use-quasar.js";
6
6
  import { buf2hex as ee, hex2int as q, chunk as te } from "../../../util/number.js";
7
7
  import "../../../../node_modules/vue-router/dist/vue-router.js";
8
8
  import { onBeforeRouteLeave as oe } from "../../../../node_modules/vue-router/dist/devtools-BLCumUwL.js";
9
- const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-controls no-wrap flex justify-around q-pa-sm" }, w = "6e400001-b5a3-f393-e0a9-e50e24dcca9e", le = "6e400003-b5a3-f393-e0a9-e50e24dcca9e", pe = /* @__PURE__ */ K({
9
+ const ne = { class: "bottom-action full-width" }, ie = {
10
+ class: "no-wrap flex justify-around q-pa-sm",
11
+ style: { gap: "10px" }
12
+ }, w = "6e400001-b5a3-f393-e0a9-e50e24dcca9e", le = "6e400003-b5a3-f393-e0a9-e50e24dcca9e", pe = /* @__PURE__ */ K({
10
13
  __name: "PulsationCollect",
11
14
  emits: ["collected"],
12
15
  setup(re, { emit: A }) {
13
- const a = Z(), b = ["A", "B", "C", "F", "E", "D"], u = h(0), f = h(0), C = h({}), {
14
- isSupported: p,
15
- isConnected: y,
16
+ const u = Z(), b = ["A", "B", "C", "F", "E", "D"], s = k(0), a = k(0), y = k({}), {
17
+ isSupported: g,
18
+ isConnected: C,
16
19
  device: $,
17
20
  requestDevice: O,
18
21
  server: V
@@ -22,7 +25,7 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
22
25
  optionalServices: [w]
23
26
  }), {
24
27
  isSupported: F,
25
- isConnected: D,
28
+ isConnected: x,
26
29
  device: Q,
27
30
  requestDevice: U,
28
31
  server: j
@@ -32,26 +35,26 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
32
35
  optionalServices: [w]
33
36
  }), I = A;
34
37
  oe((e, t, o) => {
35
- u.value > 0 || f.value > 0 ? a.dialog({
38
+ s.value > 0 || a.value > 0 ? u.dialog({
36
39
  message: "是否退出",
37
40
  cancel: !0
38
41
  }).onOk(() => {
39
42
  o();
40
43
  }) : o();
41
44
  });
42
- const L = (e) => {
43
- (u.value > 0 || f.value > 0) && (e.preventDefault(), e.returnValue = "");
45
+ const D = (e) => {
46
+ (s.value > 0 || a.value > 0) && (e.preventDefault(), e.returnValue = "");
44
47
  };
45
48
  T(() => {
46
- window.addEventListener("beforeunload", L);
49
+ window.addEventListener("beforeunload", D);
47
50
  }), W(() => {
48
- window.removeEventListener("beforeunload", L);
51
+ window.removeEventListener("beforeunload", D);
49
52
  });
50
- function x(e) {
53
+ function L(e) {
51
54
  const n = [];
52
- let i = b.slice(0, 3), l = u, c = p, m = y, g = $, N = V;
53
- if (e == "right" && (i = b.slice(3, 6), l = f, c = F, m = D, g = Q, N = j), c)
54
- m ? g.value ? N.value.getPrimaryService(w).then((B) => {
55
+ let i = b.slice(0, 3), l = s, f = g, p = C, h = $, N = V;
56
+ if (e == "right" && (i = b.slice(3, 6), l = a, f = F, p = x, h = Q, N = j), f)
57
+ p ? h.value ? N.value.getPrimaryService(w).then((B) => {
55
58
  console.log(`Service: ${B.uuid}`), B.getCharacteristic(le).then((d) => {
56
59
  console.log(` Characteristic: ${d.uuid}`), d.startNotifications().then(() => {
57
60
  console.log(" Notifications started"), d.addEventListener("characteristicvaluechanged", () => {
@@ -59,12 +62,12 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
59
62
  const J = d.value.buffer;
60
63
  n.push(ee(J)), l.value = n.length / 4050;
61
64
  }
62
- n.length === 4050 && (a.notify({
65
+ n.length === 4050 && (u.notify({
63
66
  message: "接收完成",
64
67
  color: "positive",
65
68
  position: "bottom-right",
66
69
  timeout: 500
67
- }), _(g, d), M(i, n.slice(0, 4050), 16200));
70
+ }), _(h, d), M(i, n.slice(0, 4050), 16200));
68
71
  });
69
72
  const H = new Uint8Array([49]);
70
73
  d.writeValue(H).then(() => {
@@ -72,17 +75,17 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
72
75
  });
73
76
  });
74
77
  });
75
- }) : a.notify({
78
+ }) : u.notify({
76
79
  message: "未找到设备",
77
80
  color: "negative",
78
81
  icon: "warning"
79
- }) : a.notify({
82
+ }) : u.notify({
80
83
  message: "蓝牙未连接",
81
84
  color: "negative",
82
85
  icon: "warning"
83
86
  });
84
87
  else {
85
- a.dialog({
88
+ u.dialog({
86
89
  title: "该浏览器不支持蓝牙",
87
90
  message: "是否跳转到推荐浏览器下载地址",
88
91
  ok: "跳转",
@@ -102,18 +105,18 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
102
105
  for (let l = 0; l < 20; l++)
103
106
  n.push(i.slice(l * 12, (l + 1) * 12));
104
107
  return n.forEach((l) => {
105
- let c = 0;
106
- t.forEach((m) => {
107
- o[m].push(
108
- (q(l.slice(c, c + 2)) * 256 + q(l.slice(c + 2, c + 4))) / 1e3
109
- ), c += 4;
108
+ let f = 0;
109
+ t.forEach((p) => {
110
+ o[p].push(
111
+ (q(l.slice(f, f + 2)) * 256 + q(l.slice(f + 2, f + 4))) / 1e3
112
+ ), f += 4;
110
113
  });
111
114
  }), o;
112
115
  }
113
116
  function M(e, t, o) {
114
117
  const n = {};
115
118
  e.forEach((i) => n[i] = []), t.forEach((i) => z(i, e, n)), e.forEach((i) => {
116
- C.value[i] = te(n[i], o);
119
+ y.value[i] = te(n[i], o);
117
120
  });
118
121
  }
119
122
  function G(e) {
@@ -125,15 +128,15 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
125
128
  window.location.href = void 0;
126
129
  return;
127
130
  }
128
- if (!p.value) {
129
- a.dialog({
131
+ if (!g.value) {
132
+ u.dialog({
130
133
  title: "该浏览器不支持蓝牙",
131
134
  message: "是否跳转到小程序?",
132
135
  ok: "跳转",
133
136
  cancel: "取消",
134
137
  persistent: !0
135
138
  }).onOk(() => {
136
- a.dialog({
139
+ u.dialog({
137
140
  title: "确认离开",
138
141
  message: "确认要离开吗?",
139
142
  ok: "离开",
@@ -151,8 +154,8 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
151
154
  window.location.href = void 0;
152
155
  return;
153
156
  }
154
- if (!p.value) {
155
- a.dialog({
157
+ if (!g.value) {
158
+ u.dialog({
156
159
  title: "该浏览器不支持蓝牙",
157
160
  message: "是否跳转到小程序",
158
161
  ok: "跳转",
@@ -168,65 +171,65 @@ const ne = { class: "bottom-action full-width" }, ie = { class: "pulsation-contr
168
171
  }
169
172
  return (e, t) => (r(), X("div", ne, [
170
173
  Y("div", ie, [
171
- u.value !== 0 ? (r(), s(S, {
174
+ s.value !== 0 && s.value < 1 ? (r(), c(S, {
172
175
  key: 0,
173
- value: u.value,
174
- color: "blue",
175
- class: "progress-bar left-progress",
176
+ value: s.value,
177
+ color: "green",
178
+ style: { height: "5vh", "margin-top": "2px" },
176
179
  rounded: ""
177
- }, null, 8, ["value"])) : k("", !0),
178
- f.value !== 0 ? (r(), s(S, {
180
+ }, null, 8, ["value"])) : m("", !0),
181
+ a.value !== 0 && a.value < 1 ? (r(), c(S, {
179
182
  key: 1,
180
- value: f.value,
183
+ value: a.value,
181
184
  color: "green",
182
- class: "progress-bar right-progress",
185
+ style: { height: "5vh", "margin-top": "2px" },
183
186
  rounded: ""
184
- }, null, 8, ["value"])) : k("", !0),
185
- R(y) ? u.value === 0 ? (r(), s(v, {
187
+ }, null, 8, ["value"])) : m("", !0),
188
+ R(C) ? s.value === 0 ? (r(), c(v, {
186
189
  key: 3,
187
190
  class: "connect-btn",
188
191
  color: "teal-8",
189
192
  label: "左手开始采集",
190
- onClick: t[1] || (t[1] = () => x("left"))
191
- })) : (r(), s(v, {
193
+ onClick: t[1] || (t[1] = () => L("left"))
194
+ })) : s.value >= 1 ? (r(), c(v, {
192
195
  key: 4,
193
196
  class: "connect-btn",
194
197
  color: "teal-8",
195
198
  disable: "",
196
199
  label: "左手采集完成"
197
- })) : (r(), s(v, {
200
+ })) : m("", !0) : (r(), c(v, {
198
201
  key: 2,
199
202
  class: "connect-btn",
200
203
  color: "teal-8",
201
204
  label: "左手连接设备",
202
205
  onClick: t[0] || (t[0] = (o) => E("left"))
203
206
  })),
204
- R(D) ? f.value === 0 ? (r(), s(v, {
207
+ R(x) ? a.value === 0 ? (r(), c(v, {
205
208
  key: 6,
206
209
  class: "connect-btn",
207
210
  color: "teal-8",
208
211
  label: "右手开始采集",
209
- onClick: t[3] || (t[3] = () => x("right"))
210
- })) : (r(), s(v, {
212
+ onClick: t[3] || (t[3] = () => L("right"))
213
+ })) : a.value >= 1 ? (r(), c(v, {
211
214
  key: 7,
212
215
  class: "connect-btn",
213
216
  color: "teal-8",
214
217
  disable: "",
215
218
  label: "右手采集完成"
216
- })) : (r(), s(v, {
219
+ })) : m("", !0) : (r(), c(v, {
217
220
  key: 5,
218
221
  class: "connect-btn",
219
222
  color: "teal-8",
220
223
  label: "右手连接设备",
221
224
  onClick: t[2] || (t[2] = (o) => E("right"))
222
225
  })),
223
- u.value >= 1 || f.value >= 1 ? (r(), s(v, {
226
+ s.value >= 1 || a.value >= 1 ? (r(), c(v, {
224
227
  key: 8,
225
228
  class: "connect-upload-btn flex justify-center full-width",
226
229
  color: "primary",
227
230
  label: "上传数据",
228
- onClick: t[4] || (t[4] = (o) => G(C.value))
229
- })) : k("", !0)
231
+ onClick: t[4] || (t[4] = (o) => G(y.value))
232
+ })) : m("", !0)
230
233
  ])
231
234
  ]));
232
235
  }
package/dist/src/index.js CHANGED
@@ -11,57 +11,55 @@ import * as f from "./api/oauth/index.js";
11
11
  import * as l from "./api/outpatient/index.js";
12
12
  import * as x from "./api/patient/index.js";
13
13
  import * as d from "./api/prescription/index.js";
14
- import * as n from "./api/scientist/index.js";
15
- import * as c from "./api/device/device.js";
16
- import * as A from "./api/core/index.js";
17
- import * as u from "./api/manager/index.js";
18
- import { WaveMapSchema as g, WaveSchema as h, file_WaveMap as M } from "./proto/types/WaveMap_pb.js";
19
- import { ImageSchema as v, ImagesSchema as P, file_Images as I } from "./proto/types/Images_pb.js";
20
- import { default as D } from "./components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js";
21
- import { default as W } from "./components/tcm/inquirise/ComplaintViewCollected.vue.js";
22
- import { symptomsState as T } from "./components/tcm/inquirise/symptoms.js";
23
- import { default as b } from "./components/tcm/inspections/FaceMetaCollected.vue.js";
24
- import { default as y } from "./components/tcm/inspections/SceneMetaCollected.vue.js";
25
- import { default as F } from "./components/tcm/inspections/TongueMetaCollected.vue.js";
26
- import { default as V } from "./components/tcm/inspections/InspectionDeviceTakeImageCollected.vue.js";
27
- import { default as q } from "./components/tcm/inspections/CheckSceneMetaCollected.vue.js";
28
- import { default as G } from "./components/tcm/inspections/AppendixMetaCollected.vue.js";
29
- import { default as J } from "./components/tcm/lisems/EcgAndPcgCollect.vue.js";
30
- import { default as L } from "./components/tcm/lisems/EPPCollected.vue.js";
31
- import { default as Q } from "./components/tcm/palpations/PulsationCollect.vue.js";
32
- import { default as X } from "./components/tcm/palpations/OnePulsationCollect.vue.js";
14
+ import * as c from "./api/scientist/index.js";
15
+ import * as n from "./api/device/device.js";
16
+ import * as u from "./api/core/index.js";
17
+ import { WaveMapSchema as $, WaveSchema as g, file_WaveMap as h } from "./proto/types/WaveMap_pb.js";
18
+ import { ImageSchema as S, ImagesSchema as v, file_Images as P } from "./proto/types/Images_pb.js";
19
+ import { default as k } from "./components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js";
20
+ import { default as O } from "./components/tcm/inquirise/ComplaintViewCollected.vue.js";
21
+ import { symptomsState as E } from "./components/tcm/inquirise/symptoms.js";
22
+ import { default as _ } from "./components/tcm/inspections/FaceMetaCollected.vue.js";
23
+ import { default as w } from "./components/tcm/inspections/SceneMetaCollected.vue.js";
24
+ import { default as z } from "./components/tcm/inspections/TongueMetaCollected.vue.js";
25
+ import { default as R } from "./components/tcm/inspections/InspectionDeviceTakeImageCollected.vue.js";
26
+ import { default as j } from "./components/tcm/inspections/CheckSceneMetaCollected.vue.js";
27
+ import { default as B } from "./components/tcm/inspections/AppendixMetaCollected.vue.js";
28
+ import { default as H } from "./components/tcm/lisems/EcgAndPcgCollect.vue.js";
29
+ import { default as K } from "./components/tcm/lisems/EPPCollected.vue.js";
30
+ import { default as N } from "./components/tcm/palpations/PulsationCollect.vue.js";
31
+ import { default as U } from "./components/tcm/palpations/OnePulsationCollect.vue.js";
33
32
  export {
34
33
  a as AlgorithmApi,
35
- G as AppendixMetaCollected,
34
+ B as AppendixMetaCollected,
36
35
  r as AuthorizationApi,
37
36
  p as CheckApi,
38
- q as CheckSceneMetaCollected,
39
- W as ComplaintViewCollected,
40
- D as ComplaintsRecognitionCollected,
37
+ j as CheckSceneMetaCollected,
38
+ O as ComplaintViewCollected,
39
+ k as ComplaintsRecognitionCollected,
41
40
  i as ConfigApi,
42
- A as CoreApi,
43
- c as DeviceApi,
41
+ u as CoreApi,
42
+ n as DeviceApi,
44
43
  m as DoctorApi,
45
- J as EcgAndPcgCollect,
46
- L as EppCollected,
47
- b as FaceMetaCollected,
48
- v as ImageSchema,
49
- P as ImagesSchema,
50
- V as InspectionDeviceTakeImageCollected,
51
- u as ManagerApi,
44
+ H as EcgAndPcgCollect,
45
+ K as EppCollected,
46
+ _ as FaceMetaCollected,
47
+ S as ImageSchema,
48
+ v as ImagesSchema,
49
+ R as InspectionDeviceTakeImageCollected,
52
50
  s as MetricApi,
53
51
  f as OAuthApi,
54
- X as OnePulsationCollect,
52
+ U as OnePulsationCollect,
55
53
  l as OutPatientApi,
56
54
  x as PatientApi,
57
55
  d as PrescriptionApi,
58
- Q as PulsationCollect,
59
- y as SceneMetaCollected,
60
- n as ScientistApi,
61
- F as TongueMetaCollected,
62
- g as WaveMapSchema,
63
- h as WaveSchema,
64
- I as file_Images,
65
- M as file_WaveMap,
66
- T as symptomsState
56
+ N as PulsationCollect,
57
+ w as SceneMetaCollected,
58
+ c as ScientistApi,
59
+ z as TongueMetaCollected,
60
+ $ as WaveMapSchema,
61
+ g as WaveSchema,
62
+ P as file_Images,
63
+ h as file_WaveMap,
64
+ E as symptomsState
67
65
  };