@lm_fe/pages 0.1.201

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 (149) hide show
  1. package/README.md +31 -0
  2. package/dist/a_chunks/.root.js +245 -0
  3. package/dist/a_chunks/.root.js.map +1 -0
  4. package/dist/a_chunks/.root10.js +474 -0
  5. package/dist/a_chunks/.root10.js.map +1 -0
  6. package/dist/a_chunks/.root11.js +170 -0
  7. package/dist/a_chunks/.root11.js.map +1 -0
  8. package/dist/a_chunks/.root12.js +200 -0
  9. package/dist/a_chunks/.root12.js.map +1 -0
  10. package/dist/a_chunks/.root13.js +113 -0
  11. package/dist/a_chunks/.root13.js.map +1 -0
  12. package/dist/a_chunks/.root14.js +735 -0
  13. package/dist/a_chunks/.root14.js.map +1 -0
  14. package/dist/a_chunks/.root15.js +58 -0
  15. package/dist/a_chunks/.root15.js.map +1 -0
  16. package/dist/a_chunks/.root16.js +172 -0
  17. package/dist/a_chunks/.root16.js.map +1 -0
  18. package/dist/a_chunks/.root17.js +258 -0
  19. package/dist/a_chunks/.root17.js.map +1 -0
  20. package/dist/a_chunks/.root18.js +416 -0
  21. package/dist/a_chunks/.root18.js.map +1 -0
  22. package/dist/a_chunks/.root19.js +427 -0
  23. package/dist/a_chunks/.root19.js.map +1 -0
  24. package/dist/a_chunks/.root2.js +76 -0
  25. package/dist/a_chunks/.root2.js.map +1 -0
  26. package/dist/a_chunks/.root20.js +958 -0
  27. package/dist/a_chunks/.root20.js.map +1 -0
  28. package/dist/a_chunks/.root21.js +235 -0
  29. package/dist/a_chunks/.root21.js.map +1 -0
  30. package/dist/a_chunks/.root22.js +158 -0
  31. package/dist/a_chunks/.root22.js.map +1 -0
  32. package/dist/a_chunks/.root23.js +959 -0
  33. package/dist/a_chunks/.root23.js.map +1 -0
  34. package/dist/a_chunks/.root24.js +759 -0
  35. package/dist/a_chunks/.root24.js.map +1 -0
  36. package/dist/a_chunks/.root25.js +281 -0
  37. package/dist/a_chunks/.root25.js.map +1 -0
  38. package/dist/a_chunks/.root3.js +1054 -0
  39. package/dist/a_chunks/.root3.js.map +1 -0
  40. package/dist/a_chunks/.root4.js +629 -0
  41. package/dist/a_chunks/.root4.js.map +1 -0
  42. package/dist/a_chunks/.root5.js +1440 -0
  43. package/dist/a_chunks/.root5.js.map +1 -0
  44. package/dist/a_chunks/.root6.js +164 -0
  45. package/dist/a_chunks/.root6.js.map +1 -0
  46. package/dist/a_chunks/.root7.js +123 -0
  47. package/dist/a_chunks/.root7.js.map +1 -0
  48. package/dist/a_chunks/.root8.js +544 -0
  49. package/dist/a_chunks/.root8.js.map +1 -0
  50. package/dist/a_chunks/.root9.js +69 -0
  51. package/dist/a_chunks/.root9.js.map +1 -0
  52. package/dist/a_chunks/extends.js +11 -0
  53. package/dist/a_chunks/extends.js.map +1 -0
  54. package/dist/a_chunks/index.js +1492 -0
  55. package/dist/a_chunks/index.js.map +1 -0
  56. package/dist/block/index.d.ts +1 -0
  57. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +9 -0
  58. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/form_config.d.ts +3 -0
  59. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/index.d.ts +3 -0
  60. package/dist/components/BF_Form/Wrap.d.ts +9 -0
  61. package/dist/components/BF_Form/index.d.ts +14 -0
  62. package/dist/components/BF_Form/use_table_config copy.d.ts +13 -0
  63. package/dist/components/BF_Form/use_table_config.d.ts +13 -0
  64. package/dist/components/BF_Form/utils.d.ts +2 -0
  65. package/dist/components/Base_List/Helper.d.ts +13 -0
  66. package/dist/components/Base_List/_MyBaseList.d.ts +9 -0
  67. package/dist/components/Base_List/index.d.ts +3 -0
  68. package/dist/components/Base_List/types.d.ts +129 -0
  69. package/dist/components/HighRiskTableEntry/index.d.ts +8 -0
  70. package/dist/components/HighRiskTableEntry/utils.d.ts +23 -0
  71. package/dist/components/IdNOButton/index copy.d.ts +6 -0
  72. package/dist/components/IdNOButton/index.d.ts +12 -0
  73. package/dist/components/Layout_Sider/Inner.d.ts +17 -0
  74. package/dist/components/Layout_Sider/index.d.ts +4 -0
  75. package/dist/components/Layout_Sider/utils.d.ts +1 -0
  76. package/dist/components/Layout_TabButton/Inner.d.ts +11 -0
  77. package/dist/components/Layout_TabButton/index.d.ts +8 -0
  78. package/dist/components/Login/Inner.d.ts +8 -0
  79. package/dist/components/Login/index.d.ts +1 -0
  80. package/dist/components/QuickDocButton/form_config.d.ts +4 -0
  81. package/dist/components/QuickDocButton/index.d.ts +6 -0
  82. package/dist/components/doctor_end/ExemplaryCase/Inner.d.ts +33 -0
  83. package/dist/components/doctor_end/ExemplaryCase/config.d.ts +27 -0
  84. package/dist/components/doctor_end/ExemplaryCase/index.d.ts +3 -0
  85. package/dist/components/doctor_end/ExemplaryCase/request.d.ts +2 -0
  86. package/dist/components/doctor_end/HeaderInfo/Inner.d.ts +3 -0
  87. package/dist/components/doctor_end/HeaderInfo/index.d.ts +4 -0
  88. package/dist/components/doctor_end/HeaderInfo/types.d.ts +10 -0
  89. package/dist/components/doctor_end/HeaderInfo/utils.d.ts +20 -0
  90. package/dist/components/doctor_end/HeaderInfoLayout/index.d.ts +3 -0
  91. package/dist/components/doctor_end/index.d.ts +3 -0
  92. package/dist/components/exception/403.d.ts +4 -0
  93. package/dist/components/exception/404.d.ts +4 -0
  94. package/dist/components/exception/500.d.ts +6 -0
  95. package/dist/components/exception/ErrorBoundary.d.ts +11 -0
  96. package/dist/components/exception/ErrorBoundarySmall.d.ts +16 -0
  97. package/dist/components/exception/SelectTip.d.ts +2 -0
  98. package/dist/components/exception/index.d.ts +1 -0
  99. package/dist/components/index.d.ts +10 -0
  100. package/dist/form_config/config_table.d.ts +2 -0
  101. package/dist/form_config/index.d.ts +1 -0
  102. package/dist/index.d.ts +6 -0
  103. package/dist/index.js +36 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/modals/entries/BF_Form/index.d.ts +4 -0
  106. package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +2 -0
  107. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +16 -0
  109. package/dist/modals/entries/modal_form/index.d.ts +29 -0
  110. package/dist/modals/entries/modal_page/index.d.ts +12 -0
  111. package/dist/modals/entries/print_modal/index.d.ts +3 -0
  112. package/dist/modals/entries/template_modal3/EditModal.d.ts +2 -0
  113. package/dist/modals/entries/template_modal3/common.d.ts +4 -0
  114. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +1 -0
  115. package/dist/modals/entries/template_modal3/index copy 2.d.ts +19 -0
  116. package/dist/modals/entries/template_modal3/index copy.d.ts +22 -0
  117. package/dist/modals/entries/template_modal3/index.d.ts +17 -0
  118. package/dist/modals/entries/template_modal3/methods/index.d.ts +15 -0
  119. package/dist/modals/entries/template_modal3/types.d.ts +27 -0
  120. package/dist/modals/entries/test/index.d.ts +6 -0
  121. package/dist/modals/entries/text_search/index.d.ts +8 -0
  122. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +8 -0
  123. package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/index.d.ts +9 -0
  124. package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +8 -0
  125. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +9 -0
  126. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/components.d.ts +7 -0
  127. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +28 -0
  128. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/utils.d.ts +9 -0
  129. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +8 -0
  130. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +3 -0
  131. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +5 -0
  132. package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +7 -0
  133. package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +8 -0
  134. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +12 -0
  135. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/index.d.ts +20 -0
  136. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/util.d.ts +60 -0
  137. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +13 -0
  138. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +9 -0
  139. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +12 -0
  140. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +13 -0
  141. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +2 -0
  142. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/index.d.ts +8 -0
  143. package/dist/modals/index.d.ts +22 -0
  144. package/dist/modals/meta.d.ts +21 -0
  145. package/dist/pages/doc_record/Right.d.ts +6 -0
  146. package/dist/pages/doc_record/index.d.ts +7 -0
  147. package/dist/pages/index.d.ts +1 -0
  148. package/dist/utils/index.d.ts +2 -0
  149. package/package.json +46 -0
@@ -0,0 +1,1492 @@
1
+ import 'antd/es/row/style';
2
+ import _Row from 'antd/es/row';
3
+ import 'antd/es/col/style';
4
+ import _Col from 'antd/es/col';
5
+ import 'antd/es/list/style';
6
+ import _List from 'antd/es/list';
7
+ import 'antd/es/tooltip/style';
8
+ import _Tooltip from 'antd/es/tooltip';
9
+ import _get from 'lodash/get';
10
+ import { PrinterOutlined, InfoCircleOutlined, BuildOutlined, UserAddOutlined, DownOutlined, ScanOutlined, DisconnectOutlined, UploadOutlined, TableOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
11
+ import classnames from 'classnames';
12
+ import React, { lazy, useState, useEffect, useRef, useMemo } from 'react';
13
+ import 'antd/es/button/style';
14
+ import _Button from 'antd/es/button';
15
+ import 'antd/es/spin/style';
16
+ import _Spin from 'antd/es/spin';
17
+ import { PDFPreview_View, LazyAntd, LoadingPlaceholder, MyLazyComponent, OkButton, FormSectionForm } from '@lm_fe/components_m';
18
+ import { request, getSearchParamsValue, genHappyPath, copyText, expect_array, confirm_operation, getSearchParamsAll, set } from '@lm_fe/utils';
19
+ import { GlobalModal, MountGlobalModal, MyMonaco, MyLazyComponent as MyLazyComponent$1, LazyAntd as LazyAntd$1, useMchcDriverStatus } from '@lm_fe/components';
20
+ import 'antd/es/form/style';
21
+ import _Form from 'antd/es/form';
22
+ import 'antd/es/result/style';
23
+ import _Result from 'antd/es/result';
24
+ import 'antd/es/menu/style';
25
+ import _Menu from 'antd/es/menu';
26
+ import { SLocal_History, SMchc_TableConfig, SLocal_State, SLocal_Calculator, mchcEnums } from '@lm_fe/service';
27
+ import 'antd/es/message/style';
28
+ import _message from 'antd/es/message';
29
+ import 'antd/es/space/style';
30
+ import _Space from 'antd/es/space';
31
+ import { mchcEvent, mchcLogger, mchcEnv, mchcDriver } from '@lm_fe/env';
32
+ import _keys from 'lodash/keys';
33
+ import 'antd/es/divider/style';
34
+ import _Divider from 'antd/es/divider';
35
+
36
+ /******************************************************************************
37
+ Copyright (c) Microsoft Corporation.
38
+
39
+ Permission to use, copy, modify, and/or distribute this software for any
40
+ purpose with or without fee is hereby granted.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
44
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
+ PERFORMANCE OF THIS SOFTWARE.
49
+ ***************************************************************************** */
50
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
51
+
52
+ var _extendStatics = function extendStatics(d, b) {
53
+ _extendStatics = Object.setPrototypeOf || {
54
+ __proto__: []
55
+ } instanceof Array && function (d, b) {
56
+ d.__proto__ = b;
57
+ } || function (d, b) {
58
+ for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
59
+ };
60
+ return _extendStatics(d, b);
61
+ };
62
+ function __extends(d, b) {
63
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
64
+ _extendStatics(d, b);
65
+ function __() {
66
+ this.constructor = d;
67
+ }
68
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
69
+ }
70
+ var _assign = function __assign() {
71
+ _assign = Object.assign || function __assign(t) {
72
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
73
+ s = arguments[i];
74
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
75
+ }
76
+ return t;
77
+ };
78
+ return _assign.apply(this, arguments);
79
+ };
80
+ function __rest(s, e) {
81
+ var t = {};
82
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
83
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
84
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
85
+ }
86
+ return t;
87
+ }
88
+ function __awaiter(thisArg, _arguments, P, generator) {
89
+ function adopt(value) {
90
+ return value instanceof P ? value : new P(function (resolve) {
91
+ resolve(value);
92
+ });
93
+ }
94
+ return new (P || (P = Promise))(function (resolve, reject) {
95
+ function fulfilled(value) {
96
+ try {
97
+ step(generator.next(value));
98
+ } catch (e) {
99
+ reject(e);
100
+ }
101
+ }
102
+ function rejected(value) {
103
+ try {
104
+ step(generator["throw"](value));
105
+ } catch (e) {
106
+ reject(e);
107
+ }
108
+ }
109
+ function step(result) {
110
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
111
+ }
112
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
113
+ });
114
+ }
115
+ function __generator(thisArg, body) {
116
+ var _ = {
117
+ label: 0,
118
+ sent: function sent() {
119
+ if (t[0] & 1) throw t[1];
120
+ return t[1];
121
+ },
122
+ trys: [],
123
+ ops: []
124
+ },
125
+ f,
126
+ y,
127
+ t,
128
+ g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
129
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
130
+ return this;
131
+ }), g;
132
+ function verb(n) {
133
+ return function (v) {
134
+ return step([n, v]);
135
+ };
136
+ }
137
+ function step(op) {
138
+ if (f) throw new TypeError("Generator is already executing.");
139
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
140
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
141
+ if (y = 0, t) op = [op[0] & 2, t.value];
142
+ switch (op[0]) {
143
+ case 0:
144
+ case 1:
145
+ t = op;
146
+ break;
147
+ case 4:
148
+ _.label++;
149
+ return {
150
+ value: op[1],
151
+ done: false
152
+ };
153
+ case 5:
154
+ _.label++;
155
+ y = op[1];
156
+ op = [0];
157
+ continue;
158
+ case 7:
159
+ op = _.ops.pop();
160
+ _.trys.pop();
161
+ continue;
162
+ default:
163
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
164
+ _ = 0;
165
+ continue;
166
+ }
167
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
168
+ _.label = op[1];
169
+ break;
170
+ }
171
+ if (op[0] === 6 && _.label < t[1]) {
172
+ _.label = t[1];
173
+ t = op;
174
+ break;
175
+ }
176
+ if (t && _.label < t[2]) {
177
+ _.label = t[2];
178
+ _.ops.push(op);
179
+ break;
180
+ }
181
+ if (t[2]) _.ops.pop();
182
+ _.trys.pop();
183
+ continue;
184
+ }
185
+ op = body.call(thisArg, _);
186
+ } catch (e) {
187
+ op = [6, e];
188
+ y = 0;
189
+ } finally {
190
+ f = t = 0;
191
+ }
192
+ if (op[0] & 5) throw op[1];
193
+ return {
194
+ value: op[0] ? op[1] : void 0,
195
+ done: true
196
+ };
197
+ }
198
+ }
199
+ function __spreadArray(to, from, pack) {
200
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
201
+ if (ar || !(i in from)) {
202
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
203
+ ar[i] = from[i];
204
+ }
205
+ }
206
+ return to.concat(ar || Array.prototype.slice.call(from));
207
+ }
208
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
209
+ var e = new Error(message);
210
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
211
+ };
212
+ function styleInject(css, ref) {
213
+ if (ref === void 0) ref = {};
214
+ var insertAt = ref.insertAt;
215
+ if (!css || typeof document === 'undefined') {
216
+ return;
217
+ }
218
+ var head = document.head || document.getElementsByTagName('head')[0];
219
+ var style = document.createElement('style');
220
+ style.type = 'text/css';
221
+ if (insertAt === 'top') {
222
+ if (head.firstChild) {
223
+ head.insertBefore(style, head.firstChild);
224
+ } else {
225
+ head.appendChild(style);
226
+ }
227
+ } else {
228
+ head.appendChild(style);
229
+ }
230
+ if (style.styleSheet) {
231
+ style.styleSheet.cssText = css;
232
+ } else {
233
+ style.appendChild(document.createTextNode(css));
234
+ }
235
+ }
236
+ var css_248z$3 = ".nuser-record {\n border-bottom: 1px solid #ccc;\n}\n.nuser-record .ant-menu-submenu-title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px !important;\n}\n.nuser-record .menu-btn-span {\n display: inline-block;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.doctor-desk-first-visit-sider-list__item-title {\n width: 180px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.nur-form-container .ant-input[disabled] {\n color: rgba(0, 0, 0, 0.85);\n}\n.nur-form-container .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n color: rgba(0, 0, 0, 0.85);\n}\n";
237
+ styleInject(css_248z$3);
238
+ var routesData = {
239
+ "bf_form": /*#__PURE__*/lazy(function () {
240
+ return import('./.root9.js');
241
+ }),
242
+ "stupidtemplatemodal2": /*#__PURE__*/lazy(function () {
243
+ return import('./.root10.js');
244
+ }),
245
+ "modal_form": /*#__PURE__*/lazy(function () {
246
+ return import('./.root11.js');
247
+ }),
248
+ "modal_page": /*#__PURE__*/lazy(function () {
249
+ return import('./.root12.js');
250
+ }),
251
+ "print_modal": /*#__PURE__*/lazy(function () {
252
+ return import('./.root13.js');
253
+ }),
254
+ "template_modal3": /*#__PURE__*/lazy(function () {
255
+ return import('./.root14.js');
256
+ }),
257
+ "test": /*#__PURE__*/lazy(function () {
258
+ return import('./.root15.js');
259
+ }),
260
+ "text_search": /*#__PURE__*/lazy(function () {
261
+ return import('./.root16.js');
262
+ }),
263
+ "乙肝管理": /*#__PURE__*/lazy(function () {
264
+ return import('./.root17.js');
265
+ }),
266
+ "子痫前期风险评估表": /*#__PURE__*/lazy(function () {
267
+ return import('./.root18.js');
268
+ }),
269
+ "梅毒管理": /*#__PURE__*/lazy(function () {
270
+ return import('./.root19.js');
271
+ }),
272
+ "深静脉血栓高危因素孕期用药筛查表": /*#__PURE__*/lazy(function () {
273
+ return import('./.root20.js');
274
+ }),
275
+ "瘢痕子宫阴道试产表": /*#__PURE__*/lazy(function () {
276
+ return import('./.root21.js');
277
+ }),
278
+ "诊断历史": /*#__PURE__*/lazy(function () {
279
+ return import('./.root22.js');
280
+ }),
281
+ "预警提醒_高危快讯": /*#__PURE__*/lazy(function () {
282
+ return import('./.root23.js');
283
+ }),
284
+ "高危因素管理": /*#__PURE__*/lazy(function () {
285
+ return import('./.root24.js');
286
+ }),
287
+ "高危随访": /*#__PURE__*/lazy(function () {
288
+ return import('./.root25.js');
289
+ })
290
+ };
291
+ var mchcModal__ = new GlobalModal();
292
+ function MountMchcModal() {
293
+ return /*#__PURE__*/React.createElement(MountGlobalModal, {
294
+ meta: routesData,
295
+ globalModal: mchcModal__
296
+ });
297
+ }
298
+ function Right(props) {
299
+ var activeItem = props.activeItem,
300
+ id = props.id;
301
+ var _a = useState(),
302
+ pdfUrl = _a[0],
303
+ setPdfUrl = _a[1];
304
+ var _b = useState(false),
305
+ loading = _b[0],
306
+ setLoading = _b[1];
307
+ useEffect(function () {
308
+ getData();
309
+ setPdfUrl('');
310
+ }, [activeItem]);
311
+ function getData() {
312
+ return __awaiter(this, void 0, void 0, function () {
313
+ var requestData, pdfdata, pdfurl;
314
+ return __generator(this, function (_a) {
315
+ switch (_a.label) {
316
+ case 0:
317
+ requestData = {
318
+ id: id,
319
+ note: '',
320
+ vmName: activeItem.code,
321
+ version: ''
322
+ };
323
+ setLoading(true);
324
+ return [4, request.post('/api/Informed-consent-form/export-pdf', requestData, {})];
325
+ case 1:
326
+ pdfdata = _a.sent().data.pdfdata;
327
+ pdfurl = base64TopdfUrl(pdfdata);
328
+ setLoading(false);
329
+ setPdfUrl(pdfurl);
330
+ return [2];
331
+ }
332
+ });
333
+ });
334
+ }
335
+ function base64TopdfUrl(code) {
336
+ code = code.replace(/[\n\r]/g, '');
337
+ var raw = window.atob(code);
338
+ var rawLength = raw.length;
339
+ var uInt8Array = new Uint8Array(rawLength);
340
+ for (var i = 0; i < rawLength; ++i) {
341
+ uInt8Array[i] = raw.charCodeAt(i);
342
+ }
343
+ var blob = new Blob([uInt8Array], {
344
+ type: 'application/pdf'
345
+ });
346
+ var blobURL = window.URL.createObjectURL(blob);
347
+ return blobURL;
348
+ }
349
+ return /*#__PURE__*/React.createElement("div", {
350
+ style: {
351
+ height: '90%'
352
+ }
353
+ }, loading ? /*#__PURE__*/React.createElement(_Spin, {
354
+ className: "spin",
355
+ style: {
356
+ marginTop: 64
357
+ },
358
+ tip: "\u8D44\u6E90\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u7B49..."
359
+ }) : /*#__PURE__*/React.createElement(PDFPreview_View, {
360
+ file: pdfUrl
361
+ }), /*#__PURE__*/React.createElement("div", {
362
+ className: "right-bottom-btns"
363
+ }, /*#__PURE__*/React.createElement(_Button, {
364
+ type: "primary",
365
+ size: "large",
366
+ icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
367
+ onClick: function onClick() {
368
+ mchcModal__.open('print_modal', {
369
+ modal_data: {
370
+ requestData: {
371
+ url: '/api/Informed-consent-form/export-pdf',
372
+ id: props.id,
373
+ vmName: activeItem.code
374
+ }
375
+ }
376
+ });
377
+ }
378
+ }, "\u6253\u5370.")));
379
+ }
380
+ function Page_DocRecord(props) {
381
+ var _a = props.type,
382
+ type = _a === void 0 ? '住院' : _a,
383
+ id = props.id;
384
+ var _id = id || getSearchParamsValue('id');
385
+ var _b = useState([]),
386
+ siderPanels = _b[0],
387
+ set_siderPanels = _b[1];
388
+ var _c = useState({}),
389
+ activeItem = _c[0],
390
+ set_activeItem = _c[1];
391
+ useEffect(function () {
392
+ handleInit();
393
+ return function () {};
394
+ }, []);
395
+ function handleClickListItem(item) {
396
+ return function () {
397
+ set_activeItem(item);
398
+ };
399
+ }
400
+ function handleInit() {
401
+ return __awaiter(this, void 0, void 0, function () {
402
+ var siderPanels;
403
+ return __generator(this, function (_a) {
404
+ switch (_a.label) {
405
+ case 0:
406
+ return [4, request.get("/api/listInformedConsentForm", {
407
+ params: {
408
+ type: type === '住院' ? 2 : 1
409
+ }
410
+ })];
411
+ case 1:
412
+ siderPanels = _a.sent().data;
413
+ set_siderPanels(siderPanels);
414
+ return [2];
415
+ }
416
+ });
417
+ });
418
+ }
419
+ function renderSider() {
420
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_List, {
421
+ size: "small",
422
+ dataSource: siderPanels,
423
+ renderItem: function renderItem(item) {
424
+ return /*#__PURE__*/React.createElement(_List.Item, {
425
+ className: classnames('doctor-desk-first-visit-sider-list__item', {
426
+ 'doctor-desk-first-visit-sider-list__item_active': _get(activeItem, 'code') === _get(item, 'code')
427
+ }),
428
+ style: _get(activeItem, 'code') === _get(item, 'code') ? {
429
+ background: '#eaf4fd'
430
+ } : {
431
+ background: 'none'
432
+ },
433
+ onClick: handleClickListItem(item),
434
+ key: item.code
435
+ }, /*#__PURE__*/React.createElement(_Tooltip, {
436
+ title: item.name,
437
+ placement: "left"
438
+ }, /*#__PURE__*/React.createElement("span", {
439
+ className: "doctor-desk-first-visit-sider-list__item-title"
440
+ }, item.code ? '' : /*#__PURE__*/React.createElement(InfoCircleOutlined, {
441
+ style: {
442
+ marginRight: 4
443
+ }
444
+ }), item.name)));
445
+ }
446
+ }));
447
+ }
448
+ function renderContent() {
449
+ return /*#__PURE__*/React.createElement(Right, {
450
+ id: _id,
451
+ activeItem: activeItem
452
+ });
453
+ }
454
+ return /*#__PURE__*/React.createElement(_Row, {
455
+ style: {
456
+ height: '100%'
457
+ },
458
+ className: "nuser-record"
459
+ }, /*#__PURE__*/React.createElement(_Col, {
460
+ style: {
461
+ height: '100%',
462
+ width: 300,
463
+ overflow: 'scroll'
464
+ }
465
+ }, renderSider()), /*#__PURE__*/React.createElement(_Col, {
466
+ style: {
467
+ height: '100%',
468
+ width: 'calc(100% - 300px)',
469
+ overflow: 'scroll'
470
+ },
471
+ className: "nur-form-container"
472
+ }, renderContent()));
473
+ }
474
+ var collapsedWidth = 50;
475
+ var width = 232;
476
+ var Layout_Sider = /*#__PURE__*/lazy(function () {
477
+ return import('./.root.js');
478
+ });
479
+ var Layout_TabButton = /*#__PURE__*/lazy(function () {
480
+ return import('./.root2.js');
481
+ });
482
+ var MyBaseList = /*#__PURE__*/lazy(function () {
483
+ return import('./.root3.js');
484
+ });
485
+ var css_248z$2 = ".error-boundary {\n height: calc(100vh - 108px);\n}\n.error-boundary .react-codemirror2:nth-of-type(2) {\n height: calc(100% - 300px);\n}\n.error-boundary .react-codemirror2:nth-of-type(2) .CodeMirror {\n height: 100%;\n}\n.error-boundary .CodeMirror-scroll {\n padding-bottom: 0;\n}\n.select-tip {\n width: 100%;\n height: 100%;\n background: #ffffff;\n}\n.select-tip img {\n height: 143px;\n width: auto;\n}\n.select-tip .ant-result-title {\n font-size: 16px;\n}\n.custom-result {\n height: 100%;\n}\n.custom-result .ant-result-extra {\n margin-top: 12px;\n}\n";
486
+ styleInject(css_248z$2);
487
+ var transformErrorMessage = function transformErrorMessage(err) {
488
+ if (!err) {
489
+ return [];
490
+ }
491
+ var str = err.replace(/\n/g, ',');
492
+ return str.split(',');
493
+ };
494
+ var ErrorBoundarySmall = function (_super) {
495
+ __extends(ErrorBoundarySmall, _super);
496
+ function ErrorBoundarySmall(props) {
497
+ var _this = _super.call(this, props) || this;
498
+ _this.extra = function (stack) {
499
+ var _a, _b;
500
+ var text = transformErrorMessage(stack)[0];
501
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, text, /*#__PURE__*/React.createElement(_Button, {
502
+ type: "link",
503
+ onClick: function onClick() {
504
+ return _this.setState({
505
+ collapsed: !_this.state.collapsed
506
+ });
507
+ }
508
+ }, "\u8BE6\u60C5\u8BF7\u67E5\u770B")), /*#__PURE__*/React.createElement("div", {
509
+ style: {
510
+ marginTop: '8px',
511
+ textAlign: 'left'
512
+ }
513
+ }, !_this.state.collapsed && /*#__PURE__*/React.createElement(MyMonaco, {
514
+ value: (_b = (_a = _this.state.error) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : ''
515
+ })));
516
+ };
517
+ _this.state = {
518
+ collapsed: true,
519
+ hasError: false,
520
+ error: undefined,
521
+ errorInfo: undefined
522
+ };
523
+ return _this;
524
+ }
525
+ ErrorBoundarySmall.getDerivedStateFromError = function (error) {
526
+ return {
527
+ hasError: true
528
+ };
529
+ };
530
+ ErrorBoundarySmall.prototype.componentDidCatch = function (error, errorInfo) {
531
+ this.setState({
532
+ error: error,
533
+ errorInfo: errorInfo
534
+ });
535
+ };
536
+ ErrorBoundarySmall.prototype.render = function () {
537
+ var _a = this.state,
538
+ hasError = _a.hasError,
539
+ error = _a.error;
540
+ if (hasError) {
541
+ return /*#__PURE__*/React.createElement(_Result, {
542
+ style: {
543
+ padding: 0,
544
+ margin: 0
545
+ },
546
+ icon: null,
547
+ subTitle: "\u62B1\u6B49\uFF0C\u6B64\u6A21\u5757\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u5904\u7406",
548
+ extra: this.extra(error === null || error === void 0 ? void 0 : error.stack)
549
+ });
550
+ }
551
+ return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children);
552
+ };
553
+ return ErrorBoundarySmall;
554
+ }(React.Component);
555
+ var config_table_fd = function config_table_fd(props) {
556
+ return [{
557
+ title: '字段设置',
558
+ containerType: 'tabs',
559
+ hidden: true,
560
+ children: [{
561
+ inputType: 'MyMonaco',
562
+ inputProps: {
563
+ language: 'javascript',
564
+ height: '70vh'
565
+ },
566
+ dataIndex: 'tableColumns'
567
+ }]
568
+ }, {
569
+ title: '通用',
570
+ containerType: 'tabs',
571
+ children: [{
572
+ title: 'id',
573
+ inputType: 'MyInput',
574
+ layout: '1/3',
575
+ dataIndex: 'id',
576
+ inputProps: {
577
+ disabled: true
578
+ }
579
+ }, {
580
+ title: '名称',
581
+ inputType: 'MyInput',
582
+ layout: '1/3',
583
+ dataIndex: 'title',
584
+ width: 320,
585
+ render: function render(value, record, index) {
586
+ var text = "".concat(value, "(").concat(record.id, ")");
587
+ return /*#__PURE__*/React.createElement("span", {
588
+ title: text
589
+ }, text);
590
+ }
591
+ }, {
592
+ title: '模块',
593
+ inputType: 'MyInput',
594
+ layout: '1/3',
595
+ dataIndex: 'type'
596
+ }, {
597
+ title: '接口路径',
598
+ inputType: 'MyInput',
599
+ layout: '1/3',
600
+ dataIndex: 'name'
601
+ }, {
602
+ title: '接口前缀',
603
+ layout: '1/3',
604
+ inputType: 'MyInput',
605
+ dataIndex: 'apiPrefix'
606
+ }, {
607
+ title: '历史接口',
608
+ layout: '1/3',
609
+ inputType: 'MyInput',
610
+ dataIndex: 'dept'
611
+ }, {
612
+ title: '表单联动设置',
613
+ hidden: true,
614
+ containerType: 'tabs',
615
+ children: [{
616
+ inputType: 'MyMonaco',
617
+ inputProps: {
618
+ language: 'javascript',
619
+ height: '50vh'
620
+ },
621
+ dataIndex: 'watchScript'
622
+ }]
623
+ }, {
624
+ title: '表单回选前钩子',
625
+ hidden: true,
626
+ containerType: 'tabs',
627
+ children: [{
628
+ inputType: 'MyMonaco',
629
+ inputProps: {
630
+ language: 'javascript',
631
+ height: '50vh'
632
+ },
633
+ dataIndex: 'handleBeforePopup'
634
+ }]
635
+ }, {
636
+ title: '表单提交前钩子',
637
+ containerType: 'tabs',
638
+ hidden: true,
639
+ children: [{
640
+ inputType: 'MyMonaco',
641
+ inputProps: {
642
+ language: 'javascript',
643
+ height: '50vh'
644
+ },
645
+ dataIndex: 'beforeSubmit'
646
+ }]
647
+ }]
648
+ }, {
649
+ title: '表格地址',
650
+ isActive: 0,
651
+ dataIndex: 'id',
652
+ render: function render(value, record, index) {
653
+ var p = genHappyPath('/config-table/list', [value]);
654
+ return /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement("a", {
655
+ target: "blank",
656
+ onClick: function onClick() {
657
+ return SLocal_History.safe_history_push(p, props);
658
+ }
659
+ }, "\u6253\u5F00"), /*#__PURE__*/React.createElement("a", {
660
+ onClick: function onClick() {
661
+ return copyText(p) && _message.success('复制成功!');
662
+ }
663
+ }, "\u590D\u5236\u5730\u5740"));
664
+ }
665
+ }, {
666
+ title: '表单地址',
667
+ isActive: 0,
668
+ dataIndex: 'id',
669
+ render: function render(value, record, index) {
670
+ var p = genHappyPath('/config-table/panel', [value], "?id=1");
671
+ return /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement("a", {
672
+ target: "blank",
673
+ onClick: function onClick() {
674
+ return SLocal_History.safe_history_push(p, props);
675
+ }
676
+ }, "\u6253\u5F00"), /*#__PURE__*/React.createElement("a", {
677
+ onClick: function onClick() {
678
+ return copyText(p) && _message.success('复制成功!');
679
+ }
680
+ }, "\u590D\u5236\u5730\u5740"));
681
+ }
682
+ }, {
683
+ title: "表格",
684
+ containerType: 'tabs',
685
+ hidden: true,
686
+ children: [{
687
+ title: '显示默认操作列',
688
+ inputType: 'MyCheckbox',
689
+ inputProps: {
690
+ optionKey: '否是',
691
+ marshal: 0
692
+ },
693
+ dataIndex: 'showAction',
694
+ hidden: true,
695
+ layout: '1/4'
696
+ }, {
697
+ title: '显示添加按钮',
698
+ inputType: 'MyCheckbox',
699
+ inputProps: {
700
+ optionKey: '否是',
701
+ marshal: 0
702
+ },
703
+ dataIndex: 'showAdd',
704
+ hidden: true,
705
+ layout: '1/4'
706
+ }, {
707
+ title: '显示行打印按钮',
708
+ inputType: 'MyCheckbox',
709
+ inputProps: {
710
+ optionKey: '否是',
711
+ marshal: 0
712
+ },
713
+ dataIndex: 'showRowPrintBtn',
714
+ hidden: true,
715
+ layout: '1/4'
716
+ }, {
717
+ title: '显示导出按钮',
718
+ inputType: 'MyCheckbox',
719
+ inputProps: {
720
+ optionKey: '否是',
721
+ marshal: 0
722
+ },
723
+ dataIndex: 'showExport',
724
+ hidden: true,
725
+ layout: '1/4'
726
+ }, {
727
+ title: '显示打印按钮',
728
+ inputType: 'MyCheckbox',
729
+ inputProps: {
730
+ optionKey: '否是',
731
+ marshal: 0
732
+ },
733
+ dataIndex: 'showPrint',
734
+ hidden: true,
735
+ layout: '1/4'
736
+ }, {
737
+ title: '行标识',
738
+ inputType: 'MyInput',
739
+ layout: '1/4',
740
+ dataIndex: 'rowKey',
741
+ hidden: true
742
+ }, {
743
+ title: '静态查询参数',
744
+ containerType: 'tabs',
745
+ hidden: true,
746
+ children: [{
747
+ inputType: 'MyMonaco',
748
+ inputProps: {
749
+ language: 'javascript',
750
+ height: '50vh'
751
+ },
752
+ dataIndex: 'searchParams'
753
+ }]
754
+ }, {
755
+ title: '查询配置',
756
+ containerType: 'tabs',
757
+ hidden: true,
758
+ children: [{
759
+ inputType: 'MyMonaco',
760
+ inputProps: {
761
+ language: 'javascript',
762
+ height: '50vh'
763
+ },
764
+ dataIndex: 'searchConfig'
765
+ }]
766
+ }, {
767
+ title: '默认查询参数',
768
+ containerType: 'tabs',
769
+ hidden: true,
770
+ children: [{
771
+ inputType: 'MyMonaco',
772
+ inputProps: {
773
+ language: 'javascript',
774
+ height: '50vh'
775
+ },
776
+ dataIndex: 'initialSearchValue'
777
+ }]
778
+ }, {
779
+ title: '表格字段设置',
780
+ containerType: 'tabs',
781
+ hidden: true,
782
+ children: [{
783
+ inputType: 'MyMonaco',
784
+ inputProps: {
785
+ language: 'javascript',
786
+ height: '50vh'
787
+ },
788
+ dataIndex: 'genColumns'
789
+ }]
790
+ }, {
791
+ title: '自定义按钮',
792
+ containerType: 'tabs',
793
+ hidden: true,
794
+ children: [{
795
+ inputType: 'MyMonaco',
796
+ inputProps: {
797
+ language: 'javascript',
798
+ height: '50vh'
799
+ },
800
+ dataIndex: 'RenderBtns'
801
+ }]
802
+ }]
803
+ }, {
804
+ title: "表单",
805
+ containerType: 'tabs',
806
+ hidden: true,
807
+ children: [{
808
+ title: '打印',
809
+ inputType: 'MyCheckbox',
810
+ inputProps: {
811
+ optionKey: '否是',
812
+ marshal: 0
813
+ },
814
+ dataIndex: 'needPrint',
815
+ hidden: true,
816
+ layout: '1/3'
817
+ }, {
818
+ title: '同步',
819
+ inputType: 'MyCheckbox',
820
+ inputProps: {
821
+ optionKey: '否是',
822
+ marshal: 0
823
+ },
824
+ dataIndex: 'needSync',
825
+ hidden: true,
826
+ layout: '1/3'
827
+ }, {
828
+ title: '导入',
829
+ inputType: 'MyCheckbox',
830
+ inputProps: {
831
+ optionKey: '否是',
832
+ marshal: 0
833
+ },
834
+ dataIndex: 'needImport',
835
+ hidden: true,
836
+ layout: '1/3'
837
+ }]
838
+ }];
839
+ };
840
+ function use_table_config(setting, props) {
841
+ var default_conf = setting.default_conf;
842
+ var default_conf_ref = useRef({});
843
+ var _a = useState(false),
844
+ loading = _a[0],
845
+ setLoading = _a[1];
846
+ var _b = useState(),
847
+ config = _b[0],
848
+ setConfig = _b[1];
849
+ var config_raw = useRef();
850
+ function fetch_config() {
851
+ return __awaiter(this, void 0, void 0, function () {
852
+ var __title, res, arr, _config;
853
+ return __generator(this, function (_a) {
854
+ switch (_a.label) {
855
+ case 0:
856
+ __title = default_conf_ref.current.title;
857
+ if (!__title) return [2];
858
+ setLoading(true);
859
+ return [4, SMchc_TableConfig.page({
860
+ params: {
861
+ 'title.equals': __title,
862
+ 'deleteFlag.equals': false
863
+ },
864
+ ignore_usr: true
865
+ })["finally"](function () {
866
+ return setLoading(false);
867
+ })];
868
+ case 1:
869
+ res = _a.sent();
870
+ arr = expect_array(res.data);
871
+ if (arr.length > 1) {
872
+ _message.warning('存在多份配置');
873
+ }
874
+ _config = arr[0];
875
+ config_raw.current = _assign({}, _config);
876
+ if (!(_config === null || _config === void 0 ? void 0 : _config.tableColumns)) return [2];
877
+ setConfig(SMchc_TableConfig.process_remote(_config, props));
878
+ return [2];
879
+ }
880
+ });
881
+ });
882
+ }
883
+ function init_config() {
884
+ edit_config(default_conf_ref.current);
885
+ }
886
+ function recover_config() {
887
+ edit_config(_assign(_assign({}, config_raw.current), default_conf_ref.current), true);
888
+ }
889
+ function edit_config(edit_config, is_recover) {
890
+ if (edit_config === void 0) {
891
+ edit_config = config_raw.current;
892
+ }
893
+ if (is_recover === void 0) {
894
+ is_recover = false;
895
+ }
896
+ mchcModal__.open('modal_form', {
897
+ width: '90vw',
898
+ maskClosable: false,
899
+ bodyStyle: {
900
+ height: '80vh'
901
+ },
902
+ modal_data: {
903
+ getInitialData: function getInitialData() {
904
+ return __awaiter(this, void 0, void 0, function () {
905
+ return __generator(this, function (_a) {
906
+ return [2, edit_config];
907
+ });
908
+ });
909
+ },
910
+ onSubmit: function onSubmit(v) {
911
+ return __awaiter(this, void 0, void 0, function () {
912
+ return __generator(this, function (_a) {
913
+ switch (_a.label) {
914
+ case 0:
915
+ if (is_recover) {
916
+ if (!confirm_operation()) {
917
+ _message.warning('输入错误');
918
+ return [2, 0];
919
+ }
920
+ }
921
+ if (!v.id) return [3, 2];
922
+ return [4, SMchc_TableConfig.put(v, {
923
+ ignore_usr: true
924
+ })];
925
+ case 1:
926
+ _a.sent();
927
+ return [3, 4];
928
+ case 2:
929
+ return [4, SMchc_TableConfig.post(v, {
930
+ ignore_usr: true
931
+ })];
932
+ case 3:
933
+ _a.sent();
934
+ _a.label = 4;
935
+ case 4:
936
+ return [4, fetch_config()];
937
+ case 5:
938
+ _a.sent();
939
+ return [2, 1];
940
+ }
941
+ });
942
+ });
943
+ },
944
+ formDescriptions: config_table_fd
945
+ }
946
+ });
947
+ }
948
+ useEffect(function () {
949
+ if (default_conf.title && !config_raw.current) {
950
+ SMchc_TableConfig.process_local(default_conf).then(function (r) {
951
+ default_conf_ref.current = r;
952
+ fetch_config();
953
+ });
954
+ }
955
+ return function () {};
956
+ }, []);
957
+ return {
958
+ config: config,
959
+ init_config: init_config,
960
+ edit_config: edit_config,
961
+ loading: loading,
962
+ recover_config: recover_config
963
+ };
964
+ }
965
+ var css_248z$1 = ".wrap-module_edit-btn__Pqh0P {\n position: absolute;\n top: 6px;\n right: 6px;\n opacity: 0.5;\n width: auto;\n}\n.wrap-module_edit-btn__Pqh0P:hover {\n opacity: 1;\n}\n";
966
+ var styles$1 = {
967
+ "edit-btn": "wrap-module_edit-btn__Pqh0P"
968
+ };
969
+ styleInject(css_248z$1);
970
+ LazyAntd.Tree;
971
+ LazyAntd.TreeSelect;
972
+ LazyAntd.Select;
973
+ LazyAntd.Table;
974
+ var Dropdown$1 = LazyAntd.Dropdown;
975
+ LazyAntd.Pagination;
976
+ function BF_Wrap2(setting, props) {
977
+ var _a = use_table_config(setting, props),
978
+ config = _a.config,
979
+ edit_config = _a.edit_config,
980
+ init_config = _a.init_config,
981
+ loading = _a.loading,
982
+ recover_config = _a.recover_config;
983
+ var Wrap = useMemo(function () {
984
+ return function (_a) {
985
+ var children = _a.children,
986
+ _b = _a.style,
987
+ style = _b === void 0 ? {} : _b;
988
+ if (loading) return /*#__PURE__*/React.createElement(LoadingPlaceholder, null);
989
+ var menu = /*#__PURE__*/React.createElement(_Menu, null, /*#__PURE__*/React.createElement(_Menu.Item, {
990
+ onClick: function onClick() {
991
+ return edit_config();
992
+ }
993
+ }, "\u7F16\u8F91"), /*#__PURE__*/React.createElement(_Menu.Item, {
994
+ onClick: function onClick() {
995
+ return recover_config();
996
+ }
997
+ }, "\u521D\u59CB"));
998
+ var isAdmin = SLocal_State.isAdmin;
999
+ return /*#__PURE__*/React.createElement("div", {
1000
+ style: _assign(_assign({}, style), {
1001
+ background: '#fff',
1002
+ position: 'relative',
1003
+ border: isAdmin ? '1px dashed red' : 'none'
1004
+ })
1005
+ }, config ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorBoundarySmall, null, /*#__PURE__*/React.createElement(MyLazyComponent, null, children)), isAdmin ? /*#__PURE__*/React.createElement(Dropdown$1.Button, {
1006
+ icon: /*#__PURE__*/React.createElement(BuildOutlined, null),
1007
+ className: styles$1['edit-btn'],
1008
+ size: "small",
1009
+ overlay: menu,
1010
+ trigger: ['hover']
1011
+ }) : null) : /*#__PURE__*/React.createElement(_Result, {
1012
+ status: "warning",
1013
+ title: "\u914D\u7F6E\u7F3A\u5931",
1014
+ subTitle: "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u521D\u59CB\u5316[".concat(setting.default_conf.title, "]"),
1015
+ extra: /*#__PURE__*/React.createElement(OkButton, {
1016
+ onClick: init_config
1017
+ }, "\u521D\u59CB\u5316")
1018
+ }));
1019
+ };
1020
+ }, [config, loading]);
1021
+ return {
1022
+ config: config,
1023
+ Wrap: Wrap
1024
+ };
1025
+ }
1026
+ function get_bf_default() {
1027
+ var config = {
1028
+ "tableColumns": "// ctx 上下文\r\n// ui 组件, goTo 跳转函数, createElement 创建元素\r\n// request 请求库, message 消息提示, mchcEnv 环境相关\r\n\r\nconst { React, ui, goTo, request, message, mchcEnv } = ctx\r\nconst { Button, Space } = ui\r\nconst c = React.createElement\r\n\r\nret = function () {\r\n return data\r\n}\r\nvar data = [\r\n {\r\n title: \"一、基本情况\",\r\n hidden: true,\r\n inputType: \"title\"\r\n },\r\n {\r\n title: \"孕妇的姓名\",\r\n dataIndex: \"name\",\r\n inputType: \"MyInput\",\r\n layout: \"1/3\"\r\n },\r\n {\r\n title: \"测试Checkbox\",\r\n dataIndex: \"name\",\r\n inputType: \"Checkbox\",\r\n props: {\r\n options: 'a,b,b,d,无',\r\n type:'multiple',\r\n marshal:false\r\n }\r\n },\r\n {\r\n title: \"测试Checkbox\",\r\n dataIndex: \"name\",\r\n inputType: \"Checkbox\",\r\n props: {\r\n options: [\r\n {\r\n label: 'a', value: 1, inputType: 'Checkbox', props: {\r\n options: [\r\n {\r\n label: 'b', value: 1,\r\n },\r\n {\r\n label: 'b', value: 2, inputType: 'ArrayInput', props: {\r\n options: [\r\n {\r\n inputType: 'MyInput',\r\n prefix: '前前前'\r\n },\r\n {\r\n inputType: 'MyInput',\r\n prefix: 'aaa',\r\n suffix: 'bbb'\r\n },\r\n ]\r\n }\r\n },\r\n ]\r\n }, prefix: '前', suffix: '后', parentheses: true\r\n },\r\n { label: 'b', value: 2 },\r\n { label: 'sb', value: 99, exclusive: true }\r\n ],\r\n 'optionKey': '分娩方式',\r\n\r\n\r\n }\r\n },\r\n {\r\n title: \"孕妇的年龄\",\r\n dataIndex: \"age\",\r\n inputType: \"InputNumber\",\r\n layout: \"1/3\"\r\n },\r\n {\r\n title: \"日期\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n },\r\n {\r\n title: \"日期+时间\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n showTime: true,\r\n format: \"YYYY-MM-DD HH-mm\"\r\n }\r\n },\r\n {\r\n title: \"日期不详\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n unknown: true,\r\n }\r\n },\r\n {\r\n title: \"一个按钮2\",\r\n dataIndex: \"aBtn\",\r\n hidden: true,\r\n inputType: \"MyButton\",\r\n inputProps: {\r\n btnText: \"增加年龄\"\r\n }\r\n },\r\n {\r\n title: \"标题11\",\r\n dataIndex: \"education\",\r\n children: [\r\n {\r\n title: \"文化程度\",\r\n dataIndex: \"education\",\r\n inputType: \"MyCheckbox\",\r\n inputProps: {\r\n optionKey: \"文化程度\",\r\n marshal: false\r\n }\r\n },\r\n {\r\n title: \"一个按钮\",\r\n dataIndex: \"aBtn\",\r\n hidden: true,\r\n inputType: \"MyButton\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n btnText: \"增加年龄\"\r\n }\r\n }\r\n ]\r\n }\r\n]"
1029
+ };
1030
+ return config;
1031
+ }
1032
+ function BF_Form(props) {
1033
+ var _a;
1034
+ var history_args = props.history_args,
1035
+ fallback_finish = props.fallback_finish,
1036
+ fallback_init = props.fallback_init;
1037
+ var _form = _Form.useForm()[0];
1038
+ var history_url = useRef();
1039
+ var _form_first = _Form.useForm()[0];
1040
+ var _b = BF_Wrap2(props),
1041
+ config = _b.config,
1042
+ Wrap = _b.Wrap;
1043
+ var _c = useState(false),
1044
+ first = _c[0],
1045
+ setFirst = _c[1];
1046
+ var remote_data = useRef({});
1047
+ var form = (_a = props.form) !== null && _a !== void 0 ? _a : _form;
1048
+ function init() {
1049
+ return __awaiter(this, void 0, void 0, function () {
1050
+ var history_conf_url, history_conf, url1, url2_1, data;
1051
+ var _a;
1052
+ return __generator(this, function (_b) {
1053
+ switch (_b.label) {
1054
+ case 0:
1055
+ if (!config) return [2];
1056
+ history_conf_url = config === null || config === void 0 ? void 0 : config.dept;
1057
+ if (!(history_conf_url === null || history_conf_url === void 0 ? void 0 : history_conf_url.includes('/api'))) return [3, 2];
1058
+ return [4, request.get(history_conf_url)];
1059
+ case 1:
1060
+ history_conf = (_a = _b.sent().data) !== null && _a !== void 0 ? _a : {};
1061
+ url1 = history_conf.url1, url2_1 = history_conf.url2;
1062
+ if (url1 === null || url1 === void 0 ? void 0 : url1.includes('/api')) {
1063
+ history_url.current = url1;
1064
+ request.get(history_url.current, {
1065
+ params: history_args
1066
+ }).then(function (res) {
1067
+ var data = res.data;
1068
+ if (!data) return;
1069
+ form.setFieldsValue(data);
1070
+ remote_data.current = data;
1071
+ });
1072
+ }
1073
+ if (url2_1 === null || url2_1 === void 0 ? void 0 : url2_1.includes('/api')) {
1074
+ setFirst(true);
1075
+ request.get(url2_1, {
1076
+ params: history_args
1077
+ }).then(function (res) {
1078
+ var first_data = res.data;
1079
+ if (!first_data) return;
1080
+ console.log('first', {
1081
+ data: first_data,
1082
+ url2: url2_1
1083
+ });
1084
+ _form_first.setFieldsValue(first_data);
1085
+ });
1086
+ }
1087
+ return [3, 4];
1088
+ case 2:
1089
+ return [4, fallback_init()];
1090
+ case 3:
1091
+ data = _b.sent();
1092
+ if (!data) return [2];
1093
+ remote_data.current = data;
1094
+ form.setFieldsValue(data);
1095
+ _b.label = 4;
1096
+ case 4:
1097
+ return [2];
1098
+ }
1099
+ });
1100
+ });
1101
+ }
1102
+ function update(v) {
1103
+ return __awaiter(this, void 0, void 0, function () {
1104
+ var submitData;
1105
+ return __generator(this, function (_a) {
1106
+ switch (_a.label) {
1107
+ case 0:
1108
+ if (!history_url.current) return [3, 1];
1109
+ submitData = _assign(_assign({}, remote_data.current), v);
1110
+ mchcLogger.log('submitData', submitData);
1111
+ request.put(history_url.current, submitData, {
1112
+ successText: '操作成功'
1113
+ });
1114
+ return [3, 3];
1115
+ case 1:
1116
+ return [4, fallback_finish(v)];
1117
+ case 2:
1118
+ _a.sent();
1119
+ _a.label = 3;
1120
+ case 3:
1121
+ mchcEvent.emit('custom_msg', {
1122
+ type: 'BF_Form',
1123
+ data: config === null || config === void 0 ? void 0 : config.title
1124
+ });
1125
+ return [2];
1126
+ }
1127
+ });
1128
+ });
1129
+ }
1130
+ useEffect(function () {
1131
+ init();
1132
+ return mchcEvent.on_rm('custom_msg', function (e) {
1133
+ if (e.type == 'BF_Form' && e.data === (config === null || config === void 0 ? void 0 : config.title)) {
1134
+ init();
1135
+ }
1136
+ });
1137
+ }, [config]);
1138
+ return /*#__PURE__*/React.createElement(Wrap, null, first ? /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
1139
+ span: 14
1140
+ }, /*#__PURE__*/React.createElement(FormSectionForm, {
1141
+ targetLabelCol: first ? 2 : 2,
1142
+ onFinish: update,
1143
+ form: form,
1144
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1145
+ })), /*#__PURE__*/React.createElement(_Col, {
1146
+ span: 10
1147
+ }, /*#__PURE__*/React.createElement(FormSectionForm, {
1148
+ targetLabelCol: first ? 2 : 2,
1149
+ disableAll: true,
1150
+ form: _form_first,
1151
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1152
+ }))) : /*#__PURE__*/React.createElement(FormSectionForm, {
1153
+ onFinish: update,
1154
+ form: form,
1155
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1156
+ }));
1157
+ }
1158
+ var HeaderInfoInner = /*#__PURE__*/lazy(function () {
1159
+ return import('./.root4.js');
1160
+ });
1161
+ function DoctorEnd_HeaderInfo(props) {
1162
+ return /*#__PURE__*/React.createElement(MyLazyComponent$1, {
1163
+ size: "tiny"
1164
+ }, /*#__PURE__*/React.createElement(HeaderInfoInner, props));
1165
+ }
1166
+ var DoctorEnd_HeaderInfoLayout = function HeaderInfoLayout(props) {
1167
+ return /*#__PURE__*/React.createElement("div", {
1168
+ style: {
1169
+ height: '100%'
1170
+ }
1171
+ }, /*#__PURE__*/React.createElement(DoctorEnd_HeaderInfo, props), /*#__PURE__*/React.createElement("div", {
1172
+ style: {
1173
+ height: "calc(100% - 84px)"
1174
+ }
1175
+ }, props.children));
1176
+ };
1177
+ var DoctorEnd_ExemplaryCase = /*#__PURE__*/lazy(function () {
1178
+ return import('./.root5.js');
1179
+ });
1180
+ var SelectTip = function SelectTip() {
1181
+ return /*#__PURE__*/React.createElement(_Result, {
1182
+ className: "select-tip",
1183
+ title: "\u8BF7\u5728\u5DE6\u4FA7\u5217\u8868\u9009\u62E9\u6216\u65B0\u5EFA"
1184
+ });
1185
+ };
1186
+ var Mchc_Login = /*#__PURE__*/lazy(function () {
1187
+ return import('./.root6.js');
1188
+ });
1189
+ function QuickDocButton(props) {
1190
+ var page_type = props.page_type;
1191
+ var single = page_type === '单页';
1192
+ function quick_doc() {
1193
+ mchcModal__.open('modal_form', {
1194
+ title: "".concat(page_type, "\u5FEB\u6377\u5EFA\u6863"),
1195
+ modal_data: {
1196
+ bf_title: "\u95E8\u8BCA-\u5FEB\u6377\u5EFA\u6863".concat(single ? '' : '非单页'),
1197
+ getInitialData: function getInitialData() {
1198
+ return __awaiter(this, void 0, void 0, function () {
1199
+ var res;
1200
+ return __generator(this, function (_a) {
1201
+ switch (_a.label) {
1202
+ case 0:
1203
+ if (!single) return [2, {}];
1204
+ return [4, request.post('/api/doctor/initPregnancyForQuickDocument', getSearchParamsAll(), {
1205
+ unboxing: true
1206
+ })];
1207
+ case 1:
1208
+ res = _a.sent();
1209
+ return [2, res.data];
1210
+ }
1211
+ });
1212
+ });
1213
+ },
1214
+ onValuesChange: function onValuesChange(changedValues, values, form) {
1215
+ return __awaiter(this, void 0, void 0, function () {
1216
+ var __key, is末次月经, lmp, _a, edd, sureEdd, gestationalWeek;
1217
+ return __generator(this, function (_b) {
1218
+ switch (_b.label) {
1219
+ case 0:
1220
+ __key = _keys(changedValues)[0];
1221
+ is末次月经 = __key === 'lmp';
1222
+ if (!is末次月经) return [3, 2];
1223
+ lmp = _get(changedValues, 'lmp');
1224
+ return [4, SLocal_Calculator.lmp_计算_edd_gestationalWeek(lmp)];
1225
+ case 1:
1226
+ _a = _b.sent(), edd = _a.edd, sureEdd = _a.sureEdd, gestationalWeek = _a.gestationalWeek;
1227
+ console.log({
1228
+ edd: edd,
1229
+ sureEdd: sureEdd,
1230
+ gestationalWeek: gestationalWeek
1231
+ });
1232
+ form.setFieldsValue({
1233
+ edd: edd,
1234
+ sureEdd: sureEdd,
1235
+ gestationalWeek: gestationalWeek
1236
+ });
1237
+ _b.label = 2;
1238
+ case 2:
1239
+ return [2];
1240
+ }
1241
+ });
1242
+ });
1243
+ },
1244
+ onSubmit: function onSubmit(v) {
1245
+ return __awaiter(this, void 0, void 0, function () {
1246
+ return __generator(this, function (_a) {
1247
+ switch (_a.label) {
1248
+ case 0:
1249
+ return [4, request.post('/api/pregnancies', set(v, 'fileType', single ? 1 : 2), {
1250
+ successText: '操作成功'
1251
+ })];
1252
+ case 1:
1253
+ _a.sent();
1254
+ if (single) {
1255
+ setTimeout(mchcEnv.reload, 1000);
1256
+ } else {
1257
+ return [2, true];
1258
+ }
1259
+ return [2];
1260
+ }
1261
+ });
1262
+ });
1263
+ },
1264
+ formDescriptions: function formDescriptions() {
1265
+ return import('./.root7.js');
1266
+ }
1267
+ }
1268
+ });
1269
+ }
1270
+ return /*#__PURE__*/React.createElement(OkButton, {
1271
+ primary: true,
1272
+ icon: /*#__PURE__*/React.createElement(UserAddOutlined, null),
1273
+ onClick: quick_doc
1274
+ }, "\u5FEB\u6377\u5EFA\u6863");
1275
+ }
1276
+ LazyAntd$1.Tree;
1277
+ LazyAntd$1.TreeSelect;
1278
+ LazyAntd$1.Select;
1279
+ LazyAntd$1.Table;
1280
+ var Dropdown = LazyAntd$1.Dropdown;
1281
+ LazyAntd$1.Pagination;
1282
+ var readType = {
1283
+ 身份证: 'ReadCard',
1284
+ 二维码: 'QRScan'
1285
+ };
1286
+ var types = Object.keys(readType);
1287
+ function IdNOButton(props) {
1288
+ var send_id = props.send_id;
1289
+ var _a = useState(types[0]),
1290
+ target = _a[0],
1291
+ setTarget = _a[1];
1292
+ var isOpen = useMchcDriverStatus().isOpen;
1293
+ var menuProps = /*#__PURE__*/React.createElement(_Menu, {
1294
+ onClick: function onClick(e) {}
1295
+ }, types.map(function (k) {
1296
+ return /*#__PURE__*/React.createElement(_Menu.Item, {
1297
+ onClick: function onClick() {
1298
+ setTarget(k);
1299
+ send_msg(k);
1300
+ },
1301
+ key: k
1302
+ }, "\u8BFB\u53D6", k);
1303
+ }));
1304
+ function send_msg(type) {
1305
+ var command = {
1306
+ name: readType[type],
1307
+ data: {},
1308
+ send_id: send_id
1309
+ };
1310
+ return mchcDriver.send(command);
1311
+ }
1312
+ return /*#__PURE__*/React.createElement(Dropdown.Button, {
1313
+ disabled: !__DEV__ && !isOpen,
1314
+ style: {
1315
+ color: isOpen ? undefined : 'red'
1316
+ },
1317
+ type: isOpen ? 'primary' : undefined,
1318
+ icon: /*#__PURE__*/React.createElement(DownOutlined, null),
1319
+ overlay: menuProps,
1320
+ onClick: function onClick(e) {
1321
+ return send_msg(target);
1322
+ }
1323
+ }, /*#__PURE__*/React.createElement(_Space, null, isOpen ? /*#__PURE__*/React.createElement(ScanOutlined, null) : /*#__PURE__*/React.createElement(DisconnectOutlined, {
1324
+ style: {
1325
+ color: 'red'
1326
+ }
1327
+ }), /*#__PURE__*/React.createElement("span", null, "\u8BFB\u53D6", target)));
1328
+ }
1329
+ function SnapButton(props) {
1330
+ var isOpen = useMchcDriverStatus().isOpen;
1331
+ function readSnap() {
1332
+ var command = {
1333
+ command: 'Snap',
1334
+ data: {
1335
+ pid: 0,
1336
+ uid: SLocal_State.userData.login
1337
+ },
1338
+ token: mchcEnv.token
1339
+ };
1340
+ mchcLogger.log('=======', JSON.stringify(command));
1341
+ return mchcDriver.send(command);
1342
+ }
1343
+ return /*#__PURE__*/React.createElement(_Button, {
1344
+ type: "primary",
1345
+ icon: /*#__PURE__*/React.createElement(UploadOutlined, null),
1346
+ disabled: !isOpen,
1347
+ onClick: readSnap
1348
+ }, "\u62A5\u544A\u5F55\u5165");
1349
+ }
1350
+ function useReadIdNO() {
1351
+ var _a = useState(),
1352
+ id_NO_msg = _a[0],
1353
+ setdata = _a[1];
1354
+ useEffect(function () {
1355
+ return mchcDriver.on_rm('data', function (e) {
1356
+ if (e.type === 'ReadCard') {
1357
+ setdata(e);
1358
+ }
1359
+ });
1360
+ }, []);
1361
+ return {
1362
+ id_NO_msg: id_NO_msg
1363
+ };
1364
+ }
1365
+ var css_248z = ".index-module_his-btn__-jrBZ {\n position: relative;\n margin-bottom: 10px;\n margin-left: 32px;\n border-radius: 6px;\n}\n.index-module_btn-risk__IUgZz {\n color: #ff9200;\n background-color: #fff5e8;\n}\n";
1366
+ var styles = {
1367
+ "his-btn": "index-module_his-btn__-jrBZ",
1368
+ "btn-risk": "index-module_btn-risk__IUgZz"
1369
+ };
1370
+ styleInject(css_248z);
1371
+ var isPopup = mchcEnums.Doctor.modalPopup.getValue('弹窗');
1372
+ var isRemid = mchcEnums.Doctor.modalPopup.getValue('提醒');
1373
+ var isNoop = mchcEnums.Doctor.modalPopup.getValue('无');
1374
+ var remindEnum;
1375
+ (function (remindEnum) {
1376
+ remindEnum[remindEnum["popup"] = isPopup] = "popup";
1377
+ remindEnum[remindEnum["remind"] = isRemid] = "remind";
1378
+ remindEnum[remindEnum["no"] = isNoop] = "no";
1379
+ })(remindEnum || (remindEnum = {}));
1380
+ function highRiskTablePopup(res) {
1381
+ var isOpenSCTable = res.isOpenSCTable,
1382
+ isOpenEclampsiaTable = res.isOpenEclampsiaTable,
1383
+ isOpenVTETable = res.isOpenVTETable;
1384
+ if (isOpenSCTable == remindEnum.popup) {
1385
+ mchcEvent.emit('outpatient', {
1386
+ type: '弹窗',
1387
+ modal_name: '瘢痕子宫阴道试产表'
1388
+ });
1389
+ }
1390
+ if (isOpenEclampsiaTable == remindEnum.popup) {
1391
+ mchcEvent.emit('outpatient', {
1392
+ type: '弹窗',
1393
+ modal_name: '子痫前期风险评估表'
1394
+ });
1395
+ }
1396
+ if (isOpenVTETable == remindEnum.popup) {
1397
+ mchcEvent.emit('outpatient', {
1398
+ type: '弹窗',
1399
+ modal_name: '深静脉血栓高危因素孕期用药筛查表'
1400
+ });
1401
+ }
1402
+ }
1403
+ var popupRemindkeyMap = {
1404
+ VTE: ['cicatrixLable', 'isOpenVTETable'],
1405
+ 子痫: ['eclampsiaLable', 'isOpenEclampsiaTable'],
1406
+ 瘢痕子宫: ['thrombusLable', 'isOpenSCTable']
1407
+ };
1408
+ function isShowPopupRemind(key, headerInfo, value) {
1409
+ if (!headerInfo || !value) return false;
1410
+ var item = popupRemindkeyMap[key];
1411
+ var valueOfHeaderinfo = headerInfo[item[0]];
1412
+ var valueOfRvisit = value[item[1]];
1413
+ return !valueOfHeaderinfo && (valueOfRvisit == remindEnum.popup || valueOfRvisit == remindEnum.remind) ? true : false;
1414
+ }
1415
+ function _HighRiskTableEntry(props) {
1416
+ var _a, _b, _c;
1417
+ var headerInfo = props.headerInfo,
1418
+ data = props.data;
1419
+ useEffect(function () {
1420
+ return function () {};
1421
+ }, []);
1422
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Space, null, mchcEnv.is('广三') || /*#__PURE__*/React.createElement(_Button, {
1423
+ className: classnames(styles['his-btn'], (_a = {}, _a[styles['btn-risk']] = isShowPopupRemind('瘢痕子宫', headerInfo, data), _a)),
1424
+ type: "dashed",
1425
+ icon: /*#__PURE__*/React.createElement(TableOutlined, null),
1426
+ onClick: function onClick() {
1427
+ mchcEvent.emit('outpatient', {
1428
+ type: '弹窗',
1429
+ modal_name: '瘢痕子宫阴道试产表'
1430
+ });
1431
+ }
1432
+ }, "\u7622\u75D5\u5B50\u5BAB\u9634\u9053\u8BD5\u4EA7\u8868", showRisk('瘢痕子宫', props)), /*#__PURE__*/React.createElement(_Button, {
1433
+ className: classnames(styles['his-btn'], (_b = {}, _b[styles['btn-risk']] = isShowPopupRemind('子痫', headerInfo, data), _b)),
1434
+ type: "dashed",
1435
+ icon: /*#__PURE__*/React.createElement(TableOutlined, null),
1436
+ onClick: function onClick() {
1437
+ mchcEvent.emit('outpatient', {
1438
+ type: '弹窗',
1439
+ modal_name: '子痫前期风险评估表'
1440
+ });
1441
+ }
1442
+ }, "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868", showRisk('子痫', props)), /*#__PURE__*/React.createElement(_Button, {
1443
+ className: classnames(styles['his-btn'], (_c = {}, _c[styles['btn-risk']] = isShowPopupRemind('VTE', headerInfo, data), _c)),
1444
+ type: "dashed",
1445
+ icon: /*#__PURE__*/React.createElement(TableOutlined, null),
1446
+ onClick: function onClick() {
1447
+ mchcEvent.emit('outpatient', {
1448
+ type: '弹窗',
1449
+ modal_name: '深静脉血栓高危因素孕期用药筛查表'
1450
+ });
1451
+ }
1452
+ }, "VTE\u9884\u9632\u7528\u836F\u7B5B\u67E5\u8868", showRisk('VTE', props))));
1453
+ }
1454
+ function showRisk(type, props) {
1455
+ return isShowPopupRemind(type, props.headerInfo, props.data) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Divider, {
1456
+ type: "vertical"
1457
+ }), /*#__PURE__*/React.createElement("span", {
1458
+ style: {}
1459
+ }, "\u5B58\u5728\u98CE\u9669 "), /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
1460
+ style: {
1461
+ fontSize: '14px'
1462
+ }
1463
+ })) : null;
1464
+ }
1465
+ var HighRiskTableEntry = Object.assign(_HighRiskTableEntry, {
1466
+ highRiskTablePopup: highRiskTablePopup
1467
+ });
1468
+ function safe_navigate(url_conf, props, params) {
1469
+ if (mchcEnv.is_fullscreen) return;
1470
+ if (props === null || props === void 0 ? void 0 : props.is_modal) {
1471
+ mchcModal__.open('modal_page', {
1472
+ modal_data: {
1473
+ route_conf: {
1474
+ url: url_conf,
1475
+ params: params
1476
+ }
1477
+ }
1478
+ });
1479
+ return;
1480
+ }
1481
+ if (location.pathname == url_conf) {
1482
+ _message.info('已在当前页面');
1483
+ return;
1484
+ }
1485
+ return SLocal_History.safe_history_push(url_conf, props);
1486
+ }
1487
+ window.safe_navigate = safe_navigate;
1488
+ var DoctorEnd_检验检查_History = /*#__PURE__*/lazy(function () {
1489
+ return import('./.root8.js');
1490
+ });
1491
+ export { BF_Form as B, DoctorEnd_ExemplaryCase as D, ErrorBoundarySmall as E, HighRiskTableEntry as H, IdNOButton as I, Layout_Sider as L, MountMchcModal as M, Page_DocRecord as P, QuickDocButton as Q, SelectTip as S, __awaiter as _, __generator as a, _assign as b, __spreadArray as c, __rest as d, __extends as e, BF_Wrap2 as f, collapsedWidth as g, Layout_TabButton as h, MyBaseList as i, get_bf_default as j, DoctorEnd_HeaderInfo as k, DoctorEnd_HeaderInfoLayout as l, mchcModal__ as m, Mchc_Login as n, SnapButton as o, safe_navigate as p, config_table_fd as q, DoctorEnd_检验检查_History as r, styleInject as s, useReadIdNO as u, width as w };
1492
+ //# sourceMappingURL=index.js.map