@lm_fe/pages 0.1.201 → 0.2.2

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 (173) hide show
  1. package/README.md +0 -0
  2. package/dist/a_chunks/.root.js +1610 -222
  3. package/dist/a_chunks/.root10.js +494 -462
  4. package/dist/a_chunks/.root11.js +231 -159
  5. package/dist/a_chunks/.root12.js +245 -186
  6. package/dist/a_chunks/.root13.js +1898 -104
  7. package/dist/a_chunks/.root14.js +147 -716
  8. package/dist/a_chunks/.root15.js +27 -44
  9. package/dist/a_chunks/.root16.js +18 -168
  10. package/dist/a_chunks/.root17.js +20 -255
  11. package/dist/a_chunks/.root18.js +168 -385
  12. package/dist/a_chunks/.root19.js +119 -403
  13. package/dist/a_chunks/.root2.js +101 -73
  14. package/dist/a_chunks/.root20.js +74 -945
  15. package/dist/a_chunks/.root21.js +168 -202
  16. package/dist/a_chunks/.root22.js +677 -144
  17. package/dist/a_chunks/.root23.js +27 -956
  18. package/dist/a_chunks/.root24.js +126 -742
  19. package/dist/a_chunks/.root25.js +214 -265
  20. package/dist/a_chunks/.root26.js +391 -0
  21. package/dist/a_chunks/.root27.js +395 -0
  22. package/dist/a_chunks/.root28.js +948 -0
  23. package/dist/a_chunks/.root29.js +214 -0
  24. package/dist/a_chunks/.root3.js +56 -1044
  25. package/dist/a_chunks/.root30.js +130 -0
  26. package/dist/a_chunks/.root31.js +914 -0
  27. package/dist/a_chunks/.root32.js +860 -0
  28. package/dist/a_chunks/.root33.js +102 -0
  29. package/dist/a_chunks/.root34.js +157 -0
  30. package/dist/a_chunks/.root4.js +1004 -581
  31. package/dist/a_chunks/.root5.js +610 -1414
  32. package/dist/a_chunks/.root6.js +1399 -155
  33. package/dist/a_chunks/.root7.js +151 -123
  34. package/dist/a_chunks/.root8.js +82 -504
  35. package/dist/a_chunks/.root9.js +97 -60
  36. package/dist/a_chunks/data.js +572 -0
  37. package/dist/a_chunks/func.js +86 -0
  38. package/dist/a_chunks/index.js +942 -265
  39. package/dist/a_chunks/use_fetus.js +138 -0
  40. package/dist/a_chunks/utils.js +100 -0
  41. package/dist/a_chunks/utils2.js +36 -0
  42. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  43. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  44. package/dist/components/BF_Form/index.d.ts +4 -2
  45. package/dist/components/BF_Form/types.d.ts +7 -0
  46. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  47. package/dist/components/Base_List/Helper.d.ts +0 -5
  48. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  49. package/dist/components/Base_List/index.d.ts +2 -1
  50. package/dist/components/Base_List/types.d.ts +6 -3
  51. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  52. package/dist/components/Base_List/utils.d.ts +11 -0
  53. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  54. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  55. package/dist/components/Layout_Sider/index.d.ts +2 -2
  56. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  57. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  58. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  59. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  60. package/dist/components/Login/Inner.d.ts +0 -1
  61. package/dist/components/Login/index.d.ts +2 -1
  62. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  63. package/dist/components/MenuSearch/index.d.ts +2 -0
  64. package/dist/components/QuickDocButton/index.d.ts +5 -1
  65. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  66. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  67. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  68. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  69. package/dist/components/exception/index.d.ts +1 -0
  70. package/dist/components/index.d.ts +1 -0
  71. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  72. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  73. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  74. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  75. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  76. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  77. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  78. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  79. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  80. package/dist/curve/components/api.d.ts +17 -0
  81. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  82. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  83. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  84. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  85. package/dist/curve/data.d.ts +125 -0
  86. package/dist/curve/func.d.ts +12 -0
  87. package/dist/curve/func.test.d.ts +1 -0
  88. package/dist/curve/index.d.ts +7 -0
  89. package/dist/curve/intro-steps.d.ts +7 -0
  90. package/dist/curve/utils.d.ts +8 -0
  91. package/dist/form_config/conceiveMode.d.ts +2 -0
  92. package/dist/form_config/index.d.ts +4 -0
  93. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  94. package/dist/form_config/not_yes_input.d.ts +4 -0
  95. package/dist/form_config/pressure.d.ts +4 -0
  96. package/dist/hooks/index.d.ts +1 -0
  97. package/dist/index.d.ts +2 -0
  98. package/dist/index.js +8 -33
  99. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  100. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  101. package/dist/modals/entries/box/index.d.ts +6 -0
  102. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  103. package/dist/modals/entries/result_template/index.d.ts +24 -0
  104. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  105. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  106. package/dist/modals/entries/template_modal3/index.d.ts +5 -3
  107. package/dist/modals/entries/text_search/index.d.ts +1 -1
  108. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  109. 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/utils.d.ts +5 -0
  110. 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 +2 -7
  111. 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 +2 -1
  112. 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 +2 -7
  113. 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 +2 -2
  114. 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 +3 -3
  115. 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 +2 -2
  116. 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 +4 -5
  117. 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 +1 -1
  118. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
  119. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
  120. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  121. package/dist/modals/index.d.ts +2 -0
  122. package/dist/modals/meta.d.ts +2 -0
  123. package/dist/pages/doc_record/index.d.ts +1 -1
  124. package/dist/pages/index.d.ts +1 -0
  125. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  126. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  127. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  128. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  129. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  130. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  131. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  132. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  133. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  134. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  135. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  136. package/dist/pages/questionnaire/index.d.ts +3 -0
  137. package/dist/pages/questionnaire/types.d.ts +10 -0
  138. package/dist/utils/helper.d.ts +5 -0
  139. package/dist/utils/index.d.ts +2 -1
  140. package/package.json +34 -16
  141. package/dist/a_chunks/.root.js.map +0 -1
  142. package/dist/a_chunks/.root10.js.map +0 -1
  143. package/dist/a_chunks/.root11.js.map +0 -1
  144. package/dist/a_chunks/.root12.js.map +0 -1
  145. package/dist/a_chunks/.root13.js.map +0 -1
  146. package/dist/a_chunks/.root14.js.map +0 -1
  147. package/dist/a_chunks/.root15.js.map +0 -1
  148. package/dist/a_chunks/.root16.js.map +0 -1
  149. package/dist/a_chunks/.root17.js.map +0 -1
  150. package/dist/a_chunks/.root18.js.map +0 -1
  151. package/dist/a_chunks/.root19.js.map +0 -1
  152. package/dist/a_chunks/.root2.js.map +0 -1
  153. package/dist/a_chunks/.root20.js.map +0 -1
  154. package/dist/a_chunks/.root21.js.map +0 -1
  155. package/dist/a_chunks/.root22.js.map +0 -1
  156. package/dist/a_chunks/.root23.js.map +0 -1
  157. package/dist/a_chunks/.root24.js.map +0 -1
  158. package/dist/a_chunks/.root25.js.map +0 -1
  159. package/dist/a_chunks/.root3.js.map +0 -1
  160. package/dist/a_chunks/.root4.js.map +0 -1
  161. package/dist/a_chunks/.root5.js.map +0 -1
  162. package/dist/a_chunks/.root6.js.map +0 -1
  163. package/dist/a_chunks/.root7.js.map +0 -1
  164. package/dist/a_chunks/.root8.js.map +0 -1
  165. package/dist/a_chunks/.root9.js.map +0 -1
  166. package/dist/a_chunks/extends.js +0 -11
  167. package/dist/a_chunks/extends.js.map +0 -1
  168. package/dist/a_chunks/index.js.map +0 -1
  169. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  170. package/dist/index.js.map +0 -1
  171. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
  172. 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 +0 -12
  173. 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" +0 -12
@@ -1,49 +1,30 @@
1
- import 'antd/es/modal/style';
2
- import _Modal from 'antd/es/modal';
3
- import { _ as _extends } from './extends.js';
4
- import { d as __rest } from './index.js';
5
- import React from 'react';
6
- import 'antd/es/row/style';
7
- import 'antd/es/row';
8
- import 'antd/es/col/style';
9
- import 'antd/es/col';
10
- import 'antd/es/list/style';
11
- import 'antd/es/list';
12
- import 'antd/es/tooltip/style';
13
- import 'antd/es/tooltip';
14
- import 'lodash/get';
15
- import '@ant-design/icons';
1
+ import { d as __rest, a as __assign, B as BF_Form } from './index.js';
2
+ import { Modal } from 'antd';
3
+ import React, { useState, useEffect } from 'react';
4
+ import '@lm_fe/components';
5
+ import '@lm_fe/utils';
16
6
  import 'classnames';
17
- import 'antd/es/button/style';
18
- import 'antd/es/button';
19
- import 'antd/es/spin/style';
20
- import 'antd/es/spin';
7
+ import 'lodash';
21
8
  import '@lm_fe/components_m';
22
- import '@lm_fe/utils';
23
- import '@lm_fe/components';
24
- import 'antd/es/form/style';
25
- import 'antd/es/form';
26
- import 'antd/es/result/style';
27
- import 'antd/es/result';
28
- import 'antd/es/menu/style';
29
- import 'antd/es/menu';
30
- import '@lm_fe/service';
31
- import 'antd/es/message/style';
32
- import 'antd/es/message';
33
- import 'antd/es/space/style';
34
- import 'antd/es/space';
35
9
  import '@lm_fe/env';
36
- import 'lodash/keys';
37
- import 'antd/es/divider/style';
38
- import 'antd/es/divider';
39
- function Test(_a) {
10
+ import '@lm_fe/provoke';
11
+ import '@lm_fe/service';
12
+ function FormChrono(_a) {
40
13
  var modal_data = _a.modal_data,
41
14
  visible = _a.visible,
42
- onCancel = _a.onCancel,
43
- others = __rest(_a, ["modal_data", "visible", "onCancel"]);
44
- var content = modal_data.content;
45
- return /*#__PURE__*/React.createElement(_Modal, _extends({
46
- visible: visible,
15
+ onCancel = _a.onCancel;
16
+ _a.props;
17
+ var others = __rest(_a, ["modal_data", "visible", "onCancel", "props"]);
18
+ var title = modal_data.title,
19
+ history_args = modal_data.history_args;
20
+ var _b = useState();
21
+ _b[0];
22
+ _b[1];
23
+ useEffect(function () {
24
+ return function () {};
25
+ }, []);
26
+ return /*#__PURE__*/React.createElement(Modal, __assign({
27
+ open: visible,
47
28
  title: "Test",
48
29
  width: 1000,
49
30
  footer: null,
@@ -52,7 +33,9 @@ function Test(_a) {
52
33
  top: '20px'
53
34
  },
54
35
  destroyOnClose: true
55
- }, others), content);
36
+ }, others), /*#__PURE__*/React.createElement(BF_Form, {
37
+ title: title,
38
+ history_args: history_args
39
+ }));
56
40
  }
57
- export { Test as default };
58
- //# sourceMappingURL=.root15.js.map
41
+ export { FormChrono as default };
@@ -1,172 +1,22 @@
1
- import 'antd/es/modal/style';
2
- import _Modal from 'antd/es/modal';
3
- import 'antd/es/empty/style';
4
- import _Empty from 'antd/es/empty';
5
- import 'antd/es/divider/style';
6
- import _Divider from 'antd/es/divider';
7
- import 'antd/es/input/style';
8
- import _Input from 'antd/es/input';
9
- import { s as styleInject, d as __rest, c as __spreadArray, b as __assign } from './index.js';
10
- import React, { useState, useEffect } from 'react';
11
- import store from 'store';
12
- import { ClockCircleOutlined, CloseOutlined } from '@ant-design/icons';
13
- import 'antd/es/row/style';
14
- import 'antd/es/row';
15
- import 'antd/es/col/style';
16
- import 'antd/es/col';
17
- import 'antd/es/list/style';
18
- import 'antd/es/list';
19
- import 'antd/es/tooltip/style';
20
- import 'antd/es/tooltip';
21
- import 'lodash/get';
1
+ import { d as __rest, a as __assign } from './index.js';
2
+ import { Modal } from 'antd';
3
+ import React from 'react';
4
+ import '@lm_fe/components';
5
+ import '@lm_fe/utils';
22
6
  import 'classnames';
23
- import 'antd/es/button/style';
24
- import 'antd/es/button';
25
- import 'antd/es/spin/style';
26
- import 'antd/es/spin';
7
+ import 'lodash';
27
8
  import '@lm_fe/components_m';
28
- import '@lm_fe/utils';
29
- import '@lm_fe/components';
30
- import 'antd/es/form/style';
31
- import 'antd/es/form';
32
- import 'antd/es/result/style';
33
- import 'antd/es/result';
34
- import 'antd/es/menu/style';
35
- import 'antd/es/menu';
36
- import '@lm_fe/service';
37
- import 'antd/es/message/style';
38
- import 'antd/es/message';
39
- import 'antd/es/space/style';
40
- import 'antd/es/space';
41
9
  import '@lm_fe/env';
42
- import 'lodash/keys';
43
- var css_248z = ".index-module_row-item__AdReQ:hover {\n background: #eee;\n}\n";
44
- var styles = {
45
- "row-item": "index-module_row-item__AdReQ"
46
- };
47
- styleInject(css_248z);
48
- var TEXTSEARCH_HISTORYLIST = 'TEXTSEARCH_HISTORYLIST';
49
- function TextSearch(_a) {
50
- var _b;
51
- var modal_data = _a.modal_data,
52
- visible = _a.visible,
53
- onCancel = _a.onCancel,
54
- close = _a.close;
55
- __rest(_a, ["modal_data", "visible", "onCancel", "close"]);
56
- var _c = modal_data.items,
57
- items = _c === void 0 ? [] : _c,
58
- _d = modal_data.getLabel,
59
- getLabel = _d === void 0 ? function () {
60
- return '';
61
- } : _d,
62
- onSelect = modal_data.onSelect;
63
- var _e = useState(''),
64
- searchText = _e[0],
65
- setSearchText = _e[1];
66
- var _f = useState(false),
67
- inputShow = _f[0],
68
- setInputShow = _f[1];
69
- var _g = useState((_b = store.get(TEXTSEARCH_HISTORYLIST)) !== null && _b !== void 0 ? _b : []),
70
- historyList = _g[0],
71
- _setHistoryList = _g[1];
72
- function setHistoryList(_list) {
73
- _setHistoryList(_list);
74
- store.set(TEXTSEARCH_HISTORYLIST, _list);
75
- }
76
- var resultArr = items.filter(function (_) {
77
- var label = getLabel(_);
78
- return label.includes(searchText);
79
- });
80
- useEffect(function () {
81
- setTimeout(function () {
82
- setInputShow(true);
83
- }, 200);
84
- return function () {};
85
- }, []);
86
- var rowStyle = {
87
- padding: 6,
88
- marginBottom: 2,
89
- textIndent: 24,
90
- display: 'flex',
91
- justifyContent: 'space-between',
92
- cursor: 'pointer'
93
- };
94
- return /*#__PURE__*/React.createElement(_Modal, {
95
- visible: visible,
96
- title: null,
97
- closeIcon: null,
98
- width: 512,
99
- footer: null,
100
- onCancel: onCancel,
101
- closable: false,
102
- style: {
103
- top: '4px'
104
- },
105
- bodyStyle: {},
106
- destroyOnClose: true
107
- }, inputShow && /*#__PURE__*/React.createElement(_Input, {
108
- placeholder: "\u8F93\u5165\u83DC\u5355\u540D\u79F0\u641C\u7D22",
109
- autoFocus: true,
110
- onChange: function onChange(e) {
111
- return setSearchText(e.target.value);
112
- },
113
- value: searchText
114
- }), historyList.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Divider, null, "\u5386\u53F2\u8BB0\u5F55"), /*#__PURE__*/React.createElement("div", {
115
- style: {
116
- maxHeight: '20vh',
117
- overflowY: 'scroll'
118
- }
119
- }, historyList.map(function (item) {
120
- return /*#__PURE__*/React.createElement("div", {
121
- className: styles['row-item'],
122
- style: rowStyle,
123
- onClick: function onClick() {
124
- onSelect(item);
125
- close === null || close === void 0 ? void 0 : close(true);
126
- }
127
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(ClockCircleOutlined, {
128
- style: {
129
- marginRight: 6
130
- }
131
- }), getLabel(item)), /*#__PURE__*/React.createElement(CloseOutlined, {
132
- title: "\u6E05\u9664",
133
- style: {
134
- cursor: 'pointer'
135
- },
136
- onClick: function onClick(e) {
137
- e.stopPropagation();
138
- var idx = historyList.findIndex(function (_) {
139
- return _ === item;
140
- });
141
- historyList.splice(idx, 1);
142
- setHistoryList(__spreadArray([], historyList, true));
143
- }
144
- }));
145
- }))) : null, /*#__PURE__*/React.createElement(_Divider, null, "\u641C\u7D22\u7ED3\u679C"), /*#__PURE__*/React.createElement("div", {
146
- style: {
147
- height: '40vh',
148
- overflowY: 'scroll'
149
- }
150
- }, resultArr.length ? /*#__PURE__*/React.createElement(React.Fragment, null, resultArr.map(function (_) {
151
- return /*#__PURE__*/React.createElement("div", {
152
- className: styles['row-item'],
153
- style: __assign({}, rowStyle),
154
- onClick: function onClick() {
155
- onSelect(_);
156
- close === null || close === void 0 ? void 0 : close(true);
157
- if (historyList.some(function (h) {
158
- return getLabel(h) === getLabel(_);
159
- })) return;
160
- var arr = historyList.length >= 5 ? historyList.slice(1, 5) : historyList;
161
- setHistoryList(__spreadArray(__spreadArray([], arr, true), [_], false));
162
- }
163
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", {
164
- style: {
165
- fontWeight: 'bold',
166
- marginRight: 6
167
- }
168
- }, "\xB7"), getLabel(_)));
169
- })) : /*#__PURE__*/React.createElement(_Empty, null)));
10
+ import '@lm_fe/provoke';
11
+ import '@lm_fe/service';
12
+ var DEFAULT_URL = '/api/template-trees';
13
+ function TemplateModal2(props) {
14
+ props.modal_data;
15
+ props.onCancel;
16
+ props.onOk;
17
+ var others = __rest(props, ["modal_data", "onCancel", "onOk"]);
18
+ return /*#__PURE__*/React.createElement(Modal, __assign({
19
+ width: 1100
20
+ }, others));
170
21
  }
171
- export { TextSearch as default };
172
- //# sourceMappingURL=.root16.js.map
22
+ export { DEFAULT_URL, TemplateModal2 as default };
@@ -1,258 +1,23 @@
1
- import 'antd/es/modal/style';
2
- import _Modal from 'antd/es/modal';
3
- import { _ as _extends } from './extends.js';
4
- import 'antd/es/row/style';
5
- import _Row from 'antd/es/row';
6
- import 'antd/es/col/style';
7
- import _Col from 'antd/es/col';
8
- import 'antd/es/form/style';
9
- import _Form from 'antd/es/form';
10
- import { s as styleInject, d as __rest, _ as __awaiter, a as __generator, b as __assign } from './index.js';
11
- import React, { useState, useRef, useEffect } from 'react';
12
- import { SMchc_HBvManage } from '@lm_fe/service';
13
- import { getSearchParamsValue } from '@lm_fe/utils';
14
- import { MyFormSectionForm } from '@lm_fe/components_m';
15
- import 'antd/es/list/style';
16
- import 'antd/es/list';
17
- import 'antd/es/tooltip/style';
18
- import 'antd/es/tooltip';
19
- import 'lodash/get';
20
- import '@ant-design/icons';
21
- import 'classnames';
22
- import 'antd/es/button/style';
23
- import 'antd/es/button';
24
- import 'antd/es/spin/style';
25
- import 'antd/es/spin';
1
+ import { d as __rest, a as __assign } from './index.js';
2
+ import { Modal } from 'antd';
3
+ import React from 'react';
26
4
  import '@lm_fe/components';
27
- import 'antd/es/result/style';
28
- import 'antd/es/result';
29
- import 'antd/es/menu/style';
30
- import 'antd/es/menu';
31
- import 'antd/es/message/style';
32
- import 'antd/es/message';
33
- import 'antd/es/space/style';
34
- import 'antd/es/space';
5
+ import '@lm_fe/utils';
6
+ import 'classnames';
7
+ import 'lodash';
8
+ import '@lm_fe/components_m';
35
9
  import '@lm_fe/env';
36
- import 'lodash/keys';
37
- import 'antd/es/divider/style';
38
- import 'antd/es/divider';
39
- var css_248z = ".index-module_syphilis-modal__cyVIA .ant-modal-body {\n max-height: 600px;\n overflow: auto;\n}\n";
40
- var styles = {
41
- "syphilis-modal": "index-module_syphilis-modal__cyVIA"
42
- };
43
- styleInject(css_248z);
44
- function SyphilisManagement(props) {
45
- var _this = this;
46
- var _a;
47
- var modal_data = props.modal_data,
48
- close = props.close,
49
- others = __rest(props, ["modal_data", "close"]);
50
- var headerInfo = modal_data.headerInfo;
51
- var _b = useState({}),
52
- syphilisData = _b[0],
53
- setSyphilisData = _b[1];
54
- var datacache = useRef({});
55
- var _c = useState(''),
56
- text = _c[0],
57
- setText = _c[1];
58
- var id = (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id) !== null && _a !== void 0 ? _a : getSearchParamsValue('id');
59
- var form = _Form.useForm()[0];
60
- useEffect(function () {
61
- (function () {
62
- return __awaiter(_this, void 0, void 0, function () {
63
- var syphilisList, syphilisData;
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0:
67
- return [4, SMchc_HBvManage.getList({
68
- params: {
69
- 'pregnancyId.equals': id
70
- }
71
- })];
72
- case 1:
73
- syphilisList = _a.sent();
74
- syphilisData = syphilisList[0] || {
75
- pregnancy: {
76
- id: id
77
- }
78
- };
79
- handleSuggest(syphilisData);
80
- datacache.current = syphilisData;
81
- setSyphilisData(syphilisData);
82
- return [2];
83
- }
84
- });
85
- });
86
- })();
87
- return function () {};
88
- }, []);
89
- function handleCancel() {
90
- close === null || close === void 0 ? void 0 : close(false);
91
- }
92
- function handleOk() {
93
- return __awaiter(this, void 0, void 0, function () {
94
- var formData, submit;
95
- return __generator(this, function (_a) {
96
- switch (_a.label) {
97
- case 0:
98
- formData = form.getFieldsValue();
99
- submit = __assign(__assign({}, datacache.current), formData);
100
- if (!submit.id) return [3, 2];
101
- return [4, SMchc_HBvManage.put(submit)];
102
- case 1:
103
- _a.sent();
104
- return [3, 4];
105
- case 2:
106
- return [4, SMchc_HBvManage.post(submit)];
107
- case 3:
108
- _a.sent();
109
- _a.label = 4;
110
- case 4:
111
- close === null || close === void 0 ? void 0 : close(true);
112
- return [2];
113
- }
114
- });
115
- });
116
- }
117
- function config() {
118
- var config = [{
119
- name: 'hbsag',
120
- key: 'hbsag',
121
- label: 'HBsAg',
122
- inputType: 'MyAutoComplete',
123
- span: 24,
124
- inputProps: {
125
- optionKey: '阴阳3s'
126
- }
127
- }, {
128
- name: 'hbsab',
129
- key: 'hbsab',
130
- label: 'HBsAb',
131
- inputType: 'MyAutoComplete',
132
- span: 24,
133
- inputProps: {
134
- optionKey: '阴阳3s'
135
- }
136
- }, {
137
- name: 'hbeag',
138
- key: 'hbeag',
139
- label: 'HBeAg',
140
- inputType: 'MyAutoComplete',
141
- span: 24,
142
- inputProps: {
143
- optionKey: '阴阳3s'
144
- }
145
- }, {
146
- name: 'hbeab',
147
- key: 'hbeab',
148
- label: 'HBeAb',
149
- inputType: 'MyAutoComplete',
150
- span: 24,
151
- inputProps: {
152
- optionKey: '阴阳3s'
153
- }
154
- }, {
155
- name: 'hbcab',
156
- key: 'hbcab',
157
- label: 'HBcAb',
158
- inputType: 'MyAutoComplete',
159
- span: 24,
160
- inputProps: {
161
- optionKey: '阴阳3s'
162
- }
163
- }, {
164
- name: 'hbvDna',
165
- key: 'hbvDna',
166
- label: 'HBV DNA',
167
- inputType: 'MyAutoComplete',
168
- span: 24,
169
- unit: 'IU/ml',
170
- inputProps: {
171
- options: ['_ * 10 ^ _']
172
- }
173
- }, {
174
- name: 'useDrug',
175
- key: 'useDrug',
176
- label: '是否用药',
177
- inputType: 'MyCheckbox',
178
- inputProps: {
179
- optionKey: '否是s'
180
- },
181
- span: 24
182
- }, {
183
- name: 'drugContent',
184
- key: 'drugContent',
185
- label: '药物',
186
- inputType: 'MyCheckbox',
187
- inputProps: {
188
- options: [{
189
- "value": '替诺福伟',
190
- "label": "替诺福伟"
191
- }, {
192
- "value": '提比夫定',
193
- "label": "提比夫定"
194
- }, {
195
- "value": '拉米夫定',
196
- "label": "拉米夫定"
197
- }, {
198
- value: '其他',
199
- label: '其他',
200
- inputType: 'MyInput'
201
- }]
202
- },
203
- span: 24
204
- }, {
205
- name: 'useDrugWeek',
206
- key: 'useDrugWeek',
207
- label: '用药起始孕周',
208
- inputType: 'input',
209
- span: 24
210
- }];
211
- return config;
212
- }
213
- function handleSuggest(b) {
214
- var _a;
215
- var hbvDna = (_a = b.hbvDna) !== null && _a !== void 0 ? _a : '';
216
- var hbeag = b.hbeag;
217
- hbvDna = hbvDna.replace(/\s/g, '').replace('*10^', 'e');
218
- console.log('hbvDna', hbvDna);
219
- var n = +hbvDna;
220
- if (hbvDna && !isNaN(n)) {
221
- if (n > 2e5 && n <= 2e9) {
222
- setText("HBV DNA > 2*10^5 IU/m,建议与感染孕产妇充分海通,在知情同意的基础上,于孕 28 周开始抗病毒治疗");
223
- } else if (n > 2e9) {
224
- setText("HBV DNA > 2*10^9 IU/ml,可于孕24周开始抗病害");
225
- }
226
- } else if (hbeag === null || hbeag === void 0 ? void 0 : hbeag.includes('阳')) {
227
- setText("HBeAa阳性,建议与感头孕产妇充分沟通,在知情同意的基础上,于孕 28 周开始抗病毒治疗");
228
- } else {
229
- setText('');
230
- }
231
- }
232
- return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
233
- title: "\u4E59\u809D\u4E13\u6848\u7BA1\u7406",
234
- className: styles["syphilis-modal"],
235
- width: 1000,
236
- onCancel: handleCancel,
237
- onOk: handleOk
238
- }), /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
239
- span: 14
240
- }, /*#__PURE__*/React.createElement(MyFormSectionForm, {
241
- onValuesChange: function onValuesChange(a, b) {
242
- handleSuggest(b);
243
- },
244
- form: form,
245
- formDescriptions: config(),
246
- data: syphilisData
247
- })), /*#__PURE__*/React.createElement(_Col, {
248
- span: 10
249
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, "\u5EFA\u8BAE\uFF1A"), /*#__PURE__*/React.createElement("div", {
250
- style: {
251
- marginTop: 64,
252
- fontSize: 18,
253
- fontWeight: 'bold'
254
- }
255
- }, " ", text !== null && text !== void 0 ? text : '--')))));
10
+ import '@lm_fe/provoke';
11
+ import '@lm_fe/service';
12
+ function Box(_a) {
13
+ var modal_data = _a.modal_data,
14
+ visible = _a.visible,
15
+ others = __rest(_a, ["modal_data", "visible"]);
16
+ var content = modal_data.content;
17
+ return /*#__PURE__*/React.createElement(Modal, __assign({
18
+ title: "Test",
19
+ open: visible,
20
+ centered: true
21
+ }, others), content);
256
22
  }
257
- export { SyphilisManagement as default };
258
- //# sourceMappingURL=.root17.js.map
23
+ export { Box as default };