@lm_fe/pages 0.1.201 → 0.2.5

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 (191) hide show
  1. package/README.md +1 -1
  2. package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
  3. package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
  4. package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
  5. package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
  6. package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
  7. package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
  8. package/dist/a_chunks/data.js +572 -0
  9. package/dist/a_chunks/func.js +86 -0
  10. package/dist/a_chunks/index.js +1049 -286
  11. package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
  12. package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
  13. package/dist/a_chunks/modals.entries.box.js +23 -0
  14. package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
  15. package/dist/a_chunks/modals.entries.modal_page.js +143 -0
  16. package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
  17. package/dist/a_chunks/modals.entries.result_template.js +201 -0
  18. package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
  19. package/dist/a_chunks/modals.entries.test.js +30 -0
  20. package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
  21. package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
  22. package/dist/a_chunks/{.root18.js → 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.js} +68 -93
  23. package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
  24. package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
  25. package/dist/a_chunks/{.root20.js → 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.js} +144 -154
  26. package/dist/a_chunks/{.root21.js → 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.js} +27 -48
  27. package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
  28. package/dist/a_chunks/{.root23.js → 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.js} +127 -172
  29. package/dist/a_chunks/{.root24.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +438 -336
  30. package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
  31. package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
  32. package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
  33. package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
  34. package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
  35. package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
  36. package/dist/a_chunks/src.components.Login.js +151 -0
  37. package/dist/a_chunks/src.components.MenuSearch.js +106 -0
  38. package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
  39. package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
  40. package/dist/a_chunks/use_fetus.js +138 -0
  41. package/dist/a_chunks/utils.js +100 -0
  42. package/dist/a_chunks/utils2.js +36 -0
  43. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  44. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  45. package/dist/components/BF_Form/index.d.ts +4 -2
  46. package/dist/components/BF_Form/types.d.ts +7 -0
  47. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  48. package/dist/components/Base_List/Helper.d.ts +0 -5
  49. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  50. package/dist/components/Base_List/index.d.ts +2 -1
  51. package/dist/components/Base_List/types.d.ts +6 -3
  52. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  53. package/dist/components/Base_List/utils.d.ts +11 -0
  54. package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
  55. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  56. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  57. package/dist/components/Layout_Sider/index.d.ts +2 -2
  58. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  59. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  60. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  61. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  62. package/dist/components/Login/Inner.d.ts +0 -1
  63. package/dist/components/Login/index.d.ts +2 -1
  64. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  65. package/dist/components/MenuSearch/index.d.ts +2 -0
  66. package/dist/components/QuickDocButton/index.d.ts +5 -1
  67. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  68. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  69. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  70. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  71. package/dist/components/exception/index.d.ts +1 -0
  72. package/dist/components/index.d.ts +1 -0
  73. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  74. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  75. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  76. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  77. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  78. package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
  79. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  80. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  81. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  82. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  83. package/dist/curve/components/api.d.ts +17 -0
  84. package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
  85. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  86. package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
  87. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  88. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  89. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  90. package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
  91. package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
  92. package/dist/curve/data.d.ts +125 -0
  93. package/dist/curve/func.d.ts +12 -0
  94. package/dist/curve/func.test.d.ts +1 -0
  95. package/dist/curve/index.d.ts +7 -0
  96. package/dist/curve/intro-steps.d.ts +7 -0
  97. package/dist/curve/utils.d.ts +8 -0
  98. package/dist/form_config/conceiveMode.d.ts +2 -0
  99. package/dist/form_config/index.d.ts +4 -0
  100. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  101. package/dist/form_config/not_yes_input.d.ts +4 -0
  102. package/dist/form_config/pressure.d.ts +4 -0
  103. package/dist/hooks/index.d.ts +1 -0
  104. package/dist/hooks/use_duck_form.d.ts +18 -0
  105. package/dist/index.d.ts +2 -0
  106. package/dist/index.js +8 -33
  107. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  109. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +7 -1
  110. package/dist/modals/entries/box/index.d.ts +6 -0
  111. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  112. package/dist/modals/entries/result_template/index.d.ts +24 -0
  113. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  114. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  115. package/dist/modals/entries/template_modal3/index.d.ts +6 -3
  116. package/dist/modals/entries/text_search/index.d.ts +1 -1
  117. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  118. 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
  119. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
  120. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
  121. 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
  122. 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
  123. 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
  124. 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
  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/types.d.ts +3 -3
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  132. package/dist/modals/index.d.ts +4 -1
  133. package/dist/modals/meta.d.ts +4 -1
  134. package/dist/pages/doc_record/index.d.ts +1 -1
  135. package/dist/pages/index.d.ts +1 -0
  136. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  137. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  138. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  139. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  140. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  141. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  142. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  143. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  144. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  145. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  146. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  147. package/dist/pages/questionnaire/index.d.ts +3 -0
  148. package/dist/pages/questionnaire/types.d.ts +10 -0
  149. package/dist/utils/helper.d.ts +5 -0
  150. package/dist/utils/index.d.ts +2 -1
  151. package/package.json +34 -16
  152. package/dist/a_chunks/.root.js +0 -245
  153. package/dist/a_chunks/.root.js.map +0 -1
  154. package/dist/a_chunks/.root10.js +0 -474
  155. package/dist/a_chunks/.root10.js.map +0 -1
  156. package/dist/a_chunks/.root11.js.map +0 -1
  157. package/dist/a_chunks/.root12.js +0 -200
  158. package/dist/a_chunks/.root12.js.map +0 -1
  159. package/dist/a_chunks/.root13.js.map +0 -1
  160. package/dist/a_chunks/.root14.js.map +0 -1
  161. package/dist/a_chunks/.root15.js +0 -58
  162. package/dist/a_chunks/.root15.js.map +0 -1
  163. package/dist/a_chunks/.root16.js.map +0 -1
  164. package/dist/a_chunks/.root17.js.map +0 -1
  165. package/dist/a_chunks/.root18.js.map +0 -1
  166. package/dist/a_chunks/.root19.js.map +0 -1
  167. package/dist/a_chunks/.root2.js +0 -76
  168. package/dist/a_chunks/.root2.js.map +0 -1
  169. package/dist/a_chunks/.root20.js.map +0 -1
  170. package/dist/a_chunks/.root21.js.map +0 -1
  171. package/dist/a_chunks/.root22.js.map +0 -1
  172. package/dist/a_chunks/.root23.js.map +0 -1
  173. package/dist/a_chunks/.root24.js.map +0 -1
  174. package/dist/a_chunks/.root25.js +0 -281
  175. package/dist/a_chunks/.root25.js.map +0 -1
  176. package/dist/a_chunks/.root3.js.map +0 -1
  177. package/dist/a_chunks/.root4.js +0 -629
  178. package/dist/a_chunks/.root4.js.map +0 -1
  179. package/dist/a_chunks/.root5.js.map +0 -1
  180. package/dist/a_chunks/.root6.js +0 -164
  181. package/dist/a_chunks/.root6.js.map +0 -1
  182. package/dist/a_chunks/.root7.js.map +0 -1
  183. package/dist/a_chunks/.root8.js.map +0 -1
  184. package/dist/a_chunks/.root9.js +0 -69
  185. package/dist/a_chunks/.root9.js.map +0 -1
  186. package/dist/a_chunks/extends.js +0 -11
  187. package/dist/a_chunks/extends.js.map +0 -1
  188. package/dist/a_chunks/index.js.map +0 -1
  189. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  190. package/dist/index.js.map +0 -1
  191. 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,45 +1,15 @@
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';
1
+ import { s as styleInject, d as __rest, _ as __spreadArray, a as __assign } from './index.js';
2
+ import { MyIcon } from '@lm_fe/components';
3
+ import { Modal, Input, Divider, Empty } from 'antd';
10
4
  import React, { useState, useEffect } from 'react';
11
5
  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';
6
+ import '@lm_fe/utils';
22
7
  import 'classnames';
23
- import 'antd/es/button/style';
24
- import 'antd/es/button';
25
- import 'antd/es/spin/style';
26
- import 'antd/es/spin';
8
+ import 'lodash';
27
9
  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
10
  import '@lm_fe/env';
42
- import 'lodash/keys';
11
+ import '@lm_fe/provoke';
12
+ import '@lm_fe/service';
43
13
  var css_248z = ".index-module_row-item__AdReQ:hover {\n background: #eee;\n}\n";
44
14
  var styles = {
45
15
  "row-item": "index-module_row-item__AdReQ"
@@ -91,8 +61,8 @@ function TextSearch(_a) {
91
61
  justifyContent: 'space-between',
92
62
  cursor: 'pointer'
93
63
  };
94
- return /*#__PURE__*/React.createElement(_Modal, {
95
- visible: visible,
64
+ return /*#__PURE__*/React.createElement(Modal, {
65
+ open: visible,
96
66
  title: null,
97
67
  closeIcon: null,
98
68
  width: 512,
@@ -104,17 +74,17 @@ function TextSearch(_a) {
104
74
  },
105
75
  bodyStyle: {},
106
76
  destroyOnClose: true
107
- }, inputShow && /*#__PURE__*/React.createElement(_Input, {
77
+ }, inputShow && /*#__PURE__*/React.createElement(Input, {
108
78
  placeholder: "\u8F93\u5165\u83DC\u5355\u540D\u79F0\u641C\u7D22",
109
79
  autoFocus: true,
110
80
  onChange: function onChange(e) {
111
81
  return setSearchText(e.target.value);
112
82
  },
113
83
  value: searchText
114
- }), historyList.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Divider, null, "\u5386\u53F2\u8BB0\u5F55"), /*#__PURE__*/React.createElement("div", {
84
+ }), historyList.length ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null, "\u5386\u53F2\u8BB0\u5F55"), /*#__PURE__*/React.createElement("div", {
115
85
  style: {
116
86
  maxHeight: '20vh',
117
- overflowY: 'scroll'
87
+ overflowY: 'auto'
118
88
  }
119
89
  }, historyList.map(function (item) {
120
90
  return /*#__PURE__*/React.createElement("div", {
@@ -124,11 +94,13 @@ function TextSearch(_a) {
124
94
  onSelect(item);
125
95
  close === null || close === void 0 ? void 0 : close(true);
126
96
  }
127
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(ClockCircleOutlined, {
97
+ }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(MyIcon, {
98
+ value: 'ClockCircleOutlined',
128
99
  style: {
129
100
  marginRight: 6
130
101
  }
131
- }), getLabel(item)), /*#__PURE__*/React.createElement(CloseOutlined, {
102
+ }), getLabel(item)), /*#__PURE__*/React.createElement(MyIcon, {
103
+ value: 'CloseOutlined',
132
104
  title: "\u6E05\u9664",
133
105
  style: {
134
106
  cursor: 'pointer'
@@ -142,12 +114,12 @@ function TextSearch(_a) {
142
114
  setHistoryList(__spreadArray([], historyList, true));
143
115
  }
144
116
  }));
145
- }))) : null, /*#__PURE__*/React.createElement(_Divider, null, "\u641C\u7D22\u7ED3\u679C"), /*#__PURE__*/React.createElement("div", {
117
+ })))) : null, /*#__PURE__*/React.createElement(Divider, null, "\u641C\u7D22\u7ED3\u679C"), /*#__PURE__*/React.createElement("div", {
146
118
  style: {
147
119
  height: '40vh',
148
- overflowY: 'scroll'
120
+ overflowY: 'auto'
149
121
  }
150
- }, resultArr.length ? /*#__PURE__*/React.createElement(React.Fragment, null, resultArr.map(function (_) {
122
+ }, resultArr.length ? (/*#__PURE__*/React.createElement(React.Fragment, null, resultArr.map(function (_) {
151
123
  return /*#__PURE__*/React.createElement("div", {
152
124
  className: styles['row-item'],
153
125
  style: __assign({}, rowStyle),
@@ -166,7 +138,6 @@ function TextSearch(_a) {
166
138
  marginRight: 6
167
139
  }
168
140
  }, "\xB7"), getLabel(_)));
169
- })) : /*#__PURE__*/React.createElement(_Empty, null)));
141
+ }))) : /*#__PURE__*/React.createElement(Empty, null)));
170
142
  }
171
143
  export { TextSearch as default };
172
- //# sourceMappingURL=.root16.js.map
@@ -1,47 +1,20 @@
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';
1
+ import { s as styleInject, d as __rest, b as __awaiter, c as __generator, a as __assign } from './index.js';
2
+ import { Form, Modal, Row, Col } from 'antd';
11
3
  import React, { useState, useRef, useEffect } from 'react';
12
4
  import { SMchc_HBvManage } from '@lm_fe/service';
13
5
  import { getSearchParamsValue } from '@lm_fe/utils';
14
6
  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';
26
7
  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';
8
+ import 'classnames';
9
+ import 'lodash';
35
10
  import '@lm_fe/env';
36
- import 'lodash/keys';
37
- import 'antd/es/divider/style';
38
- import 'antd/es/divider';
11
+ import '@lm_fe/provoke';
39
12
  var css_248z = ".index-module_syphilis-modal__cyVIA .ant-modal-body {\n max-height: 600px;\n overflow: auto;\n}\n";
40
13
  var styles = {
41
14
  "syphilis-modal": "index-module_syphilis-modal__cyVIA"
42
15
  };
43
16
  styleInject(css_248z);
44
- function SyphilisManagement(props) {
17
+ function Syphilis_Management(props) {
45
18
  var _this = this;
46
19
  var _a;
47
20
  var modal_data = props.modal_data,
@@ -56,7 +29,7 @@ function SyphilisManagement(props) {
56
29
  text = _c[0],
57
30
  setText = _c[1];
58
31
  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];
32
+ var form = Form.useForm()[0];
60
33
  useEffect(function () {
61
34
  (function () {
62
35
  return __awaiter(_this, void 0, void 0, function () {
@@ -122,7 +95,7 @@ function SyphilisManagement(props) {
122
95
  inputType: 'MyAutoComplete',
123
96
  span: 24,
124
97
  inputProps: {
125
- optionKey: '阴阳3s'
98
+ uniqueKey: '阴阳3s'
126
99
  }
127
100
  }, {
128
101
  name: 'hbsab',
@@ -131,7 +104,7 @@ function SyphilisManagement(props) {
131
104
  inputType: 'MyAutoComplete',
132
105
  span: 24,
133
106
  inputProps: {
134
- optionKey: '阴阳3s'
107
+ uniqueKey: '阴阳3s'
135
108
  }
136
109
  }, {
137
110
  name: 'hbeag',
@@ -140,7 +113,7 @@ function SyphilisManagement(props) {
140
113
  inputType: 'MyAutoComplete',
141
114
  span: 24,
142
115
  inputProps: {
143
- optionKey: '阴阳3s'
116
+ uniqueKey: '阴阳3s'
144
117
  }
145
118
  }, {
146
119
  name: 'hbeab',
@@ -149,7 +122,7 @@ function SyphilisManagement(props) {
149
122
  inputType: 'MyAutoComplete',
150
123
  span: 24,
151
124
  inputProps: {
152
- optionKey: '阴阳3s'
125
+ uniqueKey: '阴阳3s'
153
126
  }
154
127
  }, {
155
128
  name: 'hbcab',
@@ -158,7 +131,7 @@ function SyphilisManagement(props) {
158
131
  inputType: 'MyAutoComplete',
159
132
  span: 24,
160
133
  inputProps: {
161
- optionKey: '阴阳3s'
134
+ uniqueKey: '阴阳3s'
162
135
  }
163
136
  }, {
164
137
  name: 'hbvDna',
@@ -176,7 +149,7 @@ function SyphilisManagement(props) {
176
149
  label: '是否用药',
177
150
  inputType: 'MyCheckbox',
178
151
  inputProps: {
179
- optionKey: '否是s'
152
+ uniqueKey: '否是s'
180
153
  },
181
154
  span: 24
182
155
  }, {
@@ -229,13 +202,13 @@ function SyphilisManagement(props) {
229
202
  setText('');
230
203
  }
231
204
  }
232
- return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
205
+ return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
233
206
  title: "\u4E59\u809D\u4E13\u6848\u7BA1\u7406",
234
207
  className: styles["syphilis-modal"],
235
208
  width: 1000,
236
209
  onCancel: handleCancel,
237
210
  onOk: handleOk
238
- }), /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
211
+ }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
239
212
  span: 14
240
213
  }, /*#__PURE__*/React.createElement(MyFormSectionForm, {
241
214
  onValuesChange: function onValuesChange(a, b) {
@@ -244,7 +217,7 @@ function SyphilisManagement(props) {
244
217
  form: form,
245
218
  formDescriptions: config(),
246
219
  data: syphilisData
247
- })), /*#__PURE__*/React.createElement(_Col, {
220
+ })), /*#__PURE__*/React.createElement(Col, {
248
221
  span: 10
249
222
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, "\u5EFA\u8BAE\uFF1A"), /*#__PURE__*/React.createElement("div", {
250
223
  style: {
@@ -254,5 +227,4 @@ function SyphilisManagement(props) {
254
227
  }
255
228
  }, " ", text !== null && text !== void 0 ? text : '--')))));
256
229
  }
257
- export { SyphilisManagement as default };
258
- //# sourceMappingURL=.root17.js.map
230
+ export { Syphilis_Management as default };
@@ -1,59 +1,26 @@
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/space/style';
9
- import _Space from 'antd/es/space';
10
- import 'antd/es/button/style';
11
- import _Button from 'antd/es/button';
12
- import _split from 'lodash/split';
13
- import _orderBy from 'lodash/orderBy';
14
- import _last from 'lodash/last';
15
- import _isEmpty from 'lodash/isEmpty';
16
- import _includes from 'lodash/includes';
17
- import _get from 'lodash/get';
18
- import _forEach from 'lodash/forEach';
19
- import _floor from 'lodash/floor';
20
- import _filter from 'lodash/filter';
21
- import { s as styleInject, d as __rest, _ as __awaiter, a as __generator } from './index.js';
1
+ import { s as styleInject, d as __rest, b as __awaiter, c as __generator, a as __assign } from './index.js';
22
2
  import { SMchc_Doctor, SMchc_TemplateTrees } from '@lm_fe/service';
23
3
  import { getSearchParamsValue } from '@lm_fe/utils';
4
+ import { Space, Button, Modal, Row, Col } from 'antd';
24
5
  import dayjs from 'dayjs';
6
+ import { get, forEach, orderBy, last, split, includes, floor, filter, isEmpty } from 'lodash';
25
7
  import React, { useRef, useState, useEffect } from 'react';
26
8
  import ReactToPrint from 'react-to-print';
27
- import { mchcEnv } from '@lm_fe/env';
28
9
  import { LazyAntd } from '@lm_fe/components';
29
- import 'antd/es/list/style';
30
- import 'antd/es/list';
31
- import 'antd/es/tooltip/style';
32
- import 'antd/es/tooltip';
33
- import '@ant-design/icons';
10
+ import { mchcEnv } from '@lm_fe/env';
11
+ import { f as fuck_user_info, a as fuck_sign_user, b as fuck_sign_doctor } from './utils2.js';
34
12
  import 'classnames';
35
- import 'antd/es/spin/style';
36
- import 'antd/es/spin';
37
13
  import '@lm_fe/components_m';
38
- import 'antd/es/form/style';
39
- import 'antd/es/form';
40
- import 'antd/es/result/style';
41
- import 'antd/es/result';
42
- import 'antd/es/menu/style';
43
- import 'antd/es/menu';
44
- import 'antd/es/message/style';
45
- import 'antd/es/message';
46
- import 'lodash/keys';
47
- import 'antd/es/divider/style';
48
- import 'antd/es/divider';
49
- var css_248z = "@media print {\n html,\n body {\n background-color: #fff !important;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye {\n width: 100%;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-switcher,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-switcher,\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-checkbox,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-checkbox {\n display: none;\n }\n html .index-module_printPreeclampsia__6nw-U .ant-tree-checkbox-checked .ant-tree-checkbox-inner,\n body .index-module_printPreeclampsia__6nw-U .ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n background-color: red;\n border-color: red;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #e6f7ff;\n border-bottom: 3px solid #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode {\n width: 100%;\n white-space: pre-wrap;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(6),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(6),\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(13),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(13) {\n margin-bottom: 8px;\n padding-bottom: 8px;\n border-bottom: 1px dashed #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode {\n width: 100%;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(2),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(2),\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 45px;\n padding: 60px 0;\n border-bottom: 1px dashed #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 80px;\n padding-bottom: 103px;\n }\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye {\n width: 100%;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-switcher,\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-checkbox {\n display: none;\n}\n.index-module_preeclampsia-modal__6Zi23 .ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n background-color: red;\n border-color: red;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #e6f7ff;\n border-bottom: 3px solid #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode {\n width: 100%;\n white-space: pre-wrap;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(7),\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(13) {\n margin-bottom: 8px;\n padding-bottom: 8px;\n border-bottom: 1px dashed #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode {\n width: 100%;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(2),\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 45px;\n padding: 60px 0;\n border-bottom: 1px dashed #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 80px;\n padding-bottom: 103px;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_footer-tips__6vi0d {\n float: left;\n width: 680px;\n color: #666;\n font-size: 12px;\n text-align: left;\n}\n";
14
+ import '@lm_fe/provoke';
15
+ var css_248z = "@media print {\n html,\n body {\n background-color: #fff !important;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye {\n width: 100%;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-switcher,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-switcher,\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-checkbox,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-checkbox {\n display: none;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #e6f7ff;\n border-bottom: 3px solid #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode {\n width: 100%;\n white-space: pre-wrap;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode {\n width: 100%;\n }\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye {\n width: 100%;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-switcher,\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-checkbox {\n display: none;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #e6f7ff;\n border-bottom: 3px solid #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode {\n width: 100%;\n white-space: pre-wrap;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode {\n width: 100%;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_footer-tips__6vi0d {\n float: left;\n width: 680px;\n color: #666;\n font-size: 12px;\n text-align: left;\n}\n.index-module_fuck-border__WQySw {\n border-bottom: 2px dashed #6699ff;\n margin: 4px 0;\n}\n";
50
16
  var styles = {
51
17
  "printPreeclampsia": "index-module_printPreeclampsia__6nw-U",
52
18
  "tree-title": "index-module_tree-title__jYmye",
53
19
  "tree-left": "index-module_tree-left__FxlAh",
54
20
  "tree-right": "index-module_tree-right__C11MH",
55
21
  "preeclampsia-modal": "index-module_preeclampsia-modal__6Zi23",
56
- "footer-tips": "index-module_footer-tips__6vi0d"
22
+ "footer-tips": "index-module_footer-tips__6vi0d",
23
+ "fuck-border": "index-module_fuck-border__WQySw"
57
24
  };
58
25
  styleInject(css_248z);
59
26
  var Tree = LazyAntd.Tree;
@@ -91,7 +58,7 @@ function Preeclampsia(props) {
91
58
  return __generator(this, function (_a) {
92
59
  switch (_a.label) {
93
60
  case 0:
94
- pregnancyId = _get(headerInfo, "id") || getSearchParamsValue('id');
61
+ pregnancyId = get(headerInfo, "id") || getSearchParamsValue('id');
95
62
  SMchc_TemplateTrees.getTemplateTree(35).then(setTreeGuide);
96
63
  return [4, SMchc_TemplateTrees.getTemplateTree(34)];
97
64
  case 1:
@@ -105,14 +72,14 @@ function Preeclampsia(props) {
105
72
  return [4, SMchc_Doctor.getPreRiskAssessmentInfo(pregnancyId)];
106
73
  case 4:
107
74
  res = _a.sent();
108
- factorValue = _get(selecteFactor, 'value') || [];
75
+ factorValue = get(selecteFactor, 'value') || [];
109
76
  factorKeys = [];
110
- _forEach(factorValue, function (item) {
77
+ forEach(factorValue, function (item) {
111
78
  return factorKeys.push(String(item.id));
112
79
  });
113
- guideValue = _get(selecteGuide, 'value') || [];
80
+ guideValue = get(selecteGuide, 'value') || [];
114
81
  guideKeys = [];
115
- _forEach(guideValue, function (item) {
82
+ forEach(guideValue, function (item) {
116
83
  return guideKeys.push(String(item.id));
117
84
  });
118
85
  newKeys = getTreeFactor(treeFactor, factorKeys, res);
@@ -128,20 +95,20 @@ function Preeclampsia(props) {
128
95
  function getTreeFactor(treeFactor, factorKeys, data) {
129
96
  var _pregnancyData = data;
130
97
  var _diagnosesList = _pregnancyData.diagnoses;
131
- var pregnancyHistories = _orderBy(_get(_pregnancyData, 'pregnancymh'), ['gravidityindex'], ['asc']) || [];
132
- var gravidity = _get(_pregnancyData, 'gravidity');
133
- var bmi = _get(_pregnancyData, 'bmi');
134
- var familyHistoryOtherNote = _get(_pregnancyData, 'familyHistoryOrderNote') || '';
135
- var allergyHistoryOtherNote = _get(_pregnancyData, 'allergyDrugNote') || '';
136
- _get(_pregnancyData, 'sureEdd') || '';
137
- _get(_pregnancyData, 'dob') || '';
138
- var futureAge = _get(_pregnancyData, 'eddAge');
139
- var lastPregnancyHistory = _last(pregnancyHistories);
140
- _forEach(pregnancyHistories, function (item) {
98
+ var pregnancyHistories = orderBy(get(_pregnancyData, 'pregnancymh'), ['gravidityindex'], ['asc']) || [];
99
+ var gravidity = get(_pregnancyData, 'gravidity');
100
+ var bmi = get(_pregnancyData, 'bmi');
101
+ var familyHistoryOtherNote = get(_pregnancyData, 'familyHistoryOrderNote') || '';
102
+ var allergyHistoryOtherNote = get(_pregnancyData, 'allergyDrugNote') || '';
103
+ get(_pregnancyData, 'sureEdd') || '';
104
+ get(_pregnancyData, 'dob') || '';
105
+ var futureAge = get(_pregnancyData, 'eddAge');
106
+ var lastPregnancyHistory = last(pregnancyHistories);
107
+ forEach(pregnancyHistories, function (item) {
141
108
  if (item.exceptionalcase && item.exceptionalcase.indexOf('子痫前期') !== -1) {
142
109
  factorKeys.push(getTreeId('子痫前期史, 尤其合并不良妊娠结局', treeFactor));
143
110
  }
144
- _forEach(_get(item, 'children'), function (subItem) {
111
+ forEach(get(item, 'children'), function (subItem) {
145
112
  if (subItem.neonateWeight < 2.5) {
146
113
  factorKeys.push(getTreeId('个人既往史因素(如: 低出生体重, 妊娠年龄偏小, 前次不良妊娠结局, 超过10年以上的妊娠间隔)', treeFactor));
147
114
  }
@@ -149,17 +116,17 @@ function Preeclampsia(props) {
149
116
  });
150
117
  function hasCode(diagnosisObj) {
151
118
  var arr = ['N00', 'N01', 'N02', 'N03', 'N04', 'N05', 'N06', 'N07', 'N08', 'N09', 'N010', 'N11', 'N12', 'N14', 'N15', 'N16', 'N17', 'N18', 'N19', 'N25', 'N26', 'N27'];
152
- var code = _get(diagnosisObj, 'diagnosisCode');
153
- var codeArr = _split(code, '.');
154
- var bool = _includes(arr, _get(codeArr, '[0]'));
119
+ var code = get(diagnosisObj, 'diagnosisCode');
120
+ var codeArr = split(code, '.');
121
+ var bool = includes(arr, get(codeArr, '[0]'));
155
122
  if (bool) return bool;
156
- if (_get(codeArr, '[0]') == 'N28') {
157
- var codeNum = _floor(_get(codeArr, "[1]"));
123
+ if (get(codeArr, '[0]') == 'N28') {
124
+ var codeNum = floor(get(codeArr, "[1]"));
158
125
  if (codeNum <= 820) return true;
159
126
  }
160
127
  return bool;
161
128
  }
162
- _forEach(_diagnosesList, function (item) {
129
+ forEach(_diagnosesList, function (item) {
163
130
  if (item.diagnosis.indexOf('双胎妊娠') !== -1 || item.diagnosis.indexOf('多胎妊娠') !== -1 || item.diagnosis.indexOf('胎妊娠') !== -1) {
164
131
  factorKeys.push(getTreeId('多胎妊娠', treeFactor));
165
132
  }
@@ -200,16 +167,16 @@ function Preeclampsia(props) {
200
167
  if (allergyHistoryOtherNote.indexOf('NSAIDs') !== -1 || allergyHistoryOtherNote.indexOf('非甾体类消炎药') !== -1) {
201
168
  factorKeys.push(getTreeId('对NSAIDs过敏', treeFactor));
202
169
  }
203
- if (futureAge < 18 || isBool(lastPregnancyHistory) || _get(lastPregnancyHistory, 'fetusdeath') || (lastPregnancyHistory === null || lastPregnancyHistory === void 0 ? void 0 : lastPregnancyHistory.year) && getDiffYears(dayjs(new Date()).format('YYYY-MM-DD'), lastPregnancyHistory === null || lastPregnancyHistory === void 0 ? void 0 : lastPregnancyHistory.year) > 10) {
170
+ if (futureAge < 18 || isBool(lastPregnancyHistory) || get(lastPregnancyHistory, 'fetusdeath') || (lastPregnancyHistory === null || lastPregnancyHistory === void 0 ? void 0 : lastPregnancyHistory.year) && getDiffYears(dayjs(new Date()).format('YYYY-MM-DD'), lastPregnancyHistory === null || lastPregnancyHistory === void 0 ? void 0 : lastPregnancyHistory.year) > 10) {
204
171
  factorKeys.push(getTreeId('个人既往史因素(如: 低出生体重, 妊娠年龄偏小, 前次不良妊娠结局, 超过10年以上的妊娠间隔)', treeFactor));
205
172
  }
206
173
  function isBool(lastPregnancyHistory) {
207
174
  var bool = false;
208
- var exceptionalcase = _get(lastPregnancyHistory, 'exceptionalcase') || '';
209
- var naturalAbortion = _get(lastPregnancyHistory, 'naturalAbortion');
210
- var biochemicalAbortion = _get(lastPregnancyHistory, 'biochemicalAbortion');
211
- var fetusdeath = _get(lastPregnancyHistory, 'fetusdeath');
212
- var preterm = _get(lastPregnancyHistory, 'preterm');
175
+ var exceptionalcase = get(lastPregnancyHistory, 'exceptionalcase') || '';
176
+ var naturalAbortion = get(lastPregnancyHistory, 'naturalAbortion');
177
+ var biochemicalAbortion = get(lastPregnancyHistory, 'biochemicalAbortion');
178
+ var fetusdeath = get(lastPregnancyHistory, 'fetusdeath');
179
+ var preterm = get(lastPregnancyHistory, 'preterm');
213
180
  if (exceptionalcase.indexOf('异位妊娠') != -1 || exceptionalcase.indexOf('滋养细胞') != -1 || exceptionalcase.indexOf('葡萄胎') != -1 || exceptionalcase.indexOf('出生缺陷') != -1 || exceptionalcase.indexOf('新生儿缺陷') != -1 || exceptionalcase.indexOf('胚胎停育') != -1 || exceptionalcase.indexOf('胎停') != -1 || exceptionalcase.indexOf('绒毛摸上皮性疾病') != -1 || naturalAbortion || biochemicalAbortion || fetusdeath || preterm) {
214
181
  bool = true;
215
182
  }
@@ -219,13 +186,13 @@ function Preeclampsia(props) {
219
186
  }
220
187
  function getTreeId(val, treeData) {
221
188
  var treeId = '';
222
- _forEach(treeData, function (item) {
189
+ forEach(treeData, function (item) {
223
190
  if (item.val === val) treeId = item.id.toString();
224
191
  });
225
192
  return String(treeId);
226
193
  }
227
194
  function handleCheckFactor(keys) {
228
- _forEach(treeFactor, function (item) {
195
+ forEach(treeFactor, function (item) {
229
196
  if (keys.includes(String(item.id))) {
230
197
  item.selected = true;
231
198
  } else {
@@ -236,7 +203,7 @@ function Preeclampsia(props) {
236
203
  setTreeFactor(treeFactor);
237
204
  }
238
205
  function handleCheckGuide(keys) {
239
- _forEach(treeGuide, function (item) {
206
+ forEach(treeGuide, function (item) {
240
207
  if (keys.includes(String(item.id))) {
241
208
  item.selected = true;
242
209
  } else {
@@ -253,8 +220,8 @@ function Preeclampsia(props) {
253
220
  switch (_a.label) {
254
221
  case 0:
255
222
  pregnancyId = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id;
256
- filterFactor = _filter(treeFactor, function (item) {
257
- return _includes(factorKeys, String(item.id));
223
+ filterFactor = filter(treeFactor, function (item) {
224
+ return includes(factorKeys, String(item.id));
258
225
  });
259
226
  factorData = {
260
227
  pregnancyId: pregnancyId,
@@ -262,8 +229,8 @@ function Preeclampsia(props) {
262
229
  value: filterFactor,
263
230
  templateId: null
264
231
  };
265
- filterGuide = _filter(treeGuide, function (item) {
266
- return _includes(guideKeys, String(item.id));
232
+ filterGuide = filter(treeGuide, function (item) {
233
+ return includes(guideKeys, String(item.id));
267
234
  });
268
235
  guideData = {
269
236
  pregnancyId: pregnancyId,
@@ -299,13 +266,17 @@ function Preeclampsia(props) {
299
266
  pid = 0;
300
267
  }
301
268
  var treeData = [];
302
- _forEach(data, function (item) {
269
+ forEach(data, function (item) {
303
270
  if (item.pid === pid) {
304
- if (item.pid === 0) item.className = styles['tree-title'];
271
+ if (item.pid === 0) {
272
+ item.className = styles['tree-title'];
273
+ } else {
274
+ if (item.categoryName) item.className = styles['fuck-border'];
275
+ }
305
276
  item.title = item.val;
306
277
  item.key = String(item.id);
307
278
  item.children = transferTemplateData(data, item.id);
308
- if (_isEmpty(item.children)) {
279
+ if (isEmpty(item.children)) {
309
280
  item.isLeaf = true;
310
281
  } else {
311
282
  item.isLeaf = false;
@@ -317,24 +288,22 @@ function Preeclampsia(props) {
317
288
  }
318
289
  var treeFactorNodes = transferTemplateData(treeFactor);
319
290
  var treeGuideNodes = transferTemplateData(treeGuide);
320
- var footer = [/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
321
- className: styles["footer-tips"]
322
- }, mchcEnv.is('郫都') ? '参考指南:子痫前期的预防及预测指南(2025)' : '参考指南:2018美国妇产科医师协会“妊娠期低剂量阿司匹林的应用”'), /*#__PURE__*/React.createElement(_Space, {
291
+ var footer = [/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {
323
292
  style: {
324
293
  display: 'flex',
325
294
  alignItems: 'center',
326
295
  justifyContent: 'center'
327
296
  }
328
- }, /*#__PURE__*/React.createElement(_Button, {
297
+ }, /*#__PURE__*/React.createElement(Button, {
329
298
  onClick: function onClick() {
330
299
  return close === null || close === void 0 ? void 0 : close();
331
300
  }
332
- }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(_Button, {
301
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
333
302
  type: "primary",
334
303
  onClick: handleOk
335
304
  }, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(ReactToPrint, {
336
305
  trigger: function trigger() {
337
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Button, {
306
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
338
307
  type: "primary"
339
308
  }, "\u6253\u5370"));
340
309
  },
@@ -350,13 +319,13 @@ function Preeclampsia(props) {
350
319
  return printTableRef.current;
351
320
  }
352
321
  })))];
353
- return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
322
+ return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
354
323
  className: styles["preeclampsia-modal"],
355
324
  title: "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868",
356
325
  width: 900,
357
326
  footer: footer,
358
327
  maskClosable: false
359
- }), /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
328
+ }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
360
329
  span: 12,
361
330
  className: styles["tree-left"]
362
331
  }, /*#__PURE__*/React.createElement(Tree, {
@@ -366,7 +335,7 @@ function Preeclampsia(props) {
366
335
  checkedKeys: factorKeys,
367
336
  onCheck: handleCheckFactor,
368
337
  treeData: treeFactorNodes
369
- })), /*#__PURE__*/React.createElement(_Col, {
338
+ })), /*#__PURE__*/React.createElement(Col, {
370
339
  span: 11,
371
340
  offset: 1,
372
341
  className: styles["tree-right"]
@@ -391,7 +360,7 @@ function Preeclampsia(props) {
391
360
  style: {
392
361
  textAlign: 'center'
393
362
  }
394
- }, "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868"), /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
363
+ }, "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868"), fuck_user_info(headerInfo), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
395
364
  span: 12,
396
365
  className: styles["tree-left"]
397
366
  }, /*#__PURE__*/React.createElement(Tree, {
@@ -400,7 +369,7 @@ function Preeclampsia(props) {
400
369
  defaultExpandAll: true,
401
370
  checkedKeys: factorKeys,
402
371
  treeData: treeFactorNodes
403
- })), /*#__PURE__*/React.createElement(_Col, {
372
+ })), /*#__PURE__*/React.createElement(Col, {
404
373
  span: 11,
405
374
  offset: 1,
406
375
  className: styles["tree-right"]
@@ -410,7 +379,13 @@ function Preeclampsia(props) {
410
379
  defaultExpandAll: true,
411
380
  checkedKeys: guideKeys,
412
381
  treeData: treeGuideNodes
413
- }))))));
382
+ }))), /*#__PURE__*/React.createElement("div", {
383
+ style: {
384
+ display: mchcEnv["in"](['越秀妇幼']) ? 'block' : 'none',
385
+ lineHeight: 2.6,
386
+ pageBreakBefore: 'always',
387
+ padding: '48px 24px'
388
+ }
389
+ }, /*#__PURE__*/React.createElement("div", null, "\u60A3\u8005\u77E5\u60C5\u9009\u62E9"), /*#__PURE__*/React.createElement("div", null, "1.\u533B\u751F\u5DF2\u544A\u77E5\u6211\u5173\u4E8E\u75BE\u75C5\u7684\u4ECB\u7ECD\u3001\u76EE\u524D\u5B55\u4EA7\u5987\u7684\u75C5\u60C5\u3001\u6240\u9700\u91C7\u53D6\u7684\u5404\u79CD\u6CBB\u7597\u63AA\u65BD\u53CA\u5176\u53EF\u80FD\u5B58\u5728\u7684\u98CE\u9669\u3002"), /*#__PURE__*/React.createElement("div", null, "2.\u6211\u540C\u610F\u533B\u751F\u6839\u636E\u4EA7\u5987\u75C5\u60C5\u9700\u8981\u800C\u91C7\u53D6\u5404\u79CD\u6CBB\u7597\u63AA\u65BD\u3002"), /*#__PURE__*/React.createElement("div", null, "3.\u6211\u5E76\u672A\u5F97\u5230\u767E\u5206\u4E4B\u767E\u6210\u529F\u7684\u8BB8\u8BFA\u3002"), /*#__PURE__*/React.createElement("div", null, "4.\u6211\u5DF2\u8BE6\u7EC6\u9605\u8BFB\u4EE5\u4E0A\u5185\u5BB9\uFF0C\u5BF9\u533B\u5E08\u8BE6\u7EC6\u544A\u77E5\u7684\u5404\u79CD\u98CE\u9669\u8868\u793A\u5B8C\u5168\u7406\u89E3\uFF0C\u7ECF\u614E\u91CD\u8003\u8651\uFF0C\u6211\u540C\u610F\u8FDB\u884C\u6CBB\u7597\u3002"), fuck_sign_user(), /*#__PURE__*/React.createElement("div", null, "\u6211\u5DF2\u544A\u77E5\u60A3\u8005\u75C5\u60C5\u3001\u6240\u9700\u91C7\u53D6\u7684\u5404\u79CD\u6CBB\u7597\u63AA\u65BD\u53CA\u5176\u53EF\u80FD\u5B58\u5728\u7684\u98CE\u9669\u3001\u53EF\u80FD\u5B58\u5728\u7684\u5176\u4ED6\u6CBB\u7597\u65B9\u6CD5\u5E76\u4E14\u89E3\u7B54\u4E86\u60A3\u8005\u5173\u4E8E\u8BE5\u6CBB\u7597\u7684\u76F8\u5173\u95EE\u9898\u3002"), fuck_sign_doctor()))));
414
390
  }
415
391
  export { Preeclampsia as default, getDiffYears };
416
- //# sourceMappingURL=.root18.js.map