@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,59 +1,15 @@
1
- import 'antd/es/modal/style';
2
- import _Modal from 'antd/es/modal';
3
- import { _ as _extends } from './extends.js';
4
- import 'antd/es/tabs/style';
5
- import _Tabs from 'antd/es/tabs';
6
- import 'antd/es/message/style';
7
- import _message from 'antd/es/message';
8
- import _map from 'lodash/map';
9
- import _keyBy from 'lodash/keyBy';
10
- import _get from 'lodash/get';
11
- import { s as styleInject, _ as __awaiter, a as __generator, c as __spreadArray, b as __assign, d as __rest } from './index.js';
12
- import { SMchc_Doctor, SMchc_Common } from '@lm_fe/service';
13
- import { getSearchParamsValue, formatDate, ROMAN_NUMERALS, request } from '@lm_fe/utils';
1
+ import { s as styleInject, a as __assign, b as __awaiter, c as __generator, _ as __spreadArray, d as __rest } from './index.js';
2
+ import { mchcConfig, mchcEnv } from '@lm_fe/env';
3
+ import { SMchc_Common, SMchc_Doctor, SMchc_TemplateTrees } from '@lm_fe/service';
4
+ import { isEmpty, getSearchParamsValue, formatDate, ROMAN_NUMERALS, request } from '@lm_fe/utils';
5
+ import { Row, Col, Space, Button, Input, Empty, Timeline, Modal, Tabs, message } from 'antd';
6
+ import { keyBy, map, get, keys, split, sortBy, isEmpty as isEmpty$1, includes, findIndex, cloneDeep, orderBy } from 'lodash';
14
7
  import React, { useRef, useState, useEffect } from 'react';
15
- import 'antd/es/input/style';
16
- import _Input from 'antd/es/input';
17
- import 'antd/es/space/style';
18
- import _Space from 'antd/es/space';
19
- import 'antd/es/button/style';
20
- import _Button from 'antd/es/button';
21
- import 'antd/es/row/style';
22
- import _Row from 'antd/es/row';
23
- import 'antd/es/col/style';
24
- import _Col from 'antd/es/col';
25
- import _split from 'lodash/split';
26
- import _sortBy from 'lodash/sortBy';
27
- import _keys from 'lodash/keys';
28
- import _isEmpty from 'lodash/isEmpty';
29
- import _includes from 'lodash/includes';
30
- import _findIndex from 'lodash/findIndex';
31
- import _cloneDeep from 'lodash/cloneDeep';
32
- import { HighRiskGradeSelectPure, MySelect } from '@lm_fe/components_m';
33
- import { mchcEnv, mchcConfig } from '@lm_fe/env';
34
- import { LazyAntd } from '@lm_fe/components';
35
- import 'antd/es/timeline/style';
36
- import _Timeline from 'antd/es/timeline';
37
- import 'antd/es/empty/style';
38
- import _Empty from 'antd/es/empty';
39
- import _orderBy from 'lodash/orderBy';
8
+ import { HighRiskGradeSelectPure } from '@lm_fe/components_m';
9
+ import { MySelect, Tree_L } from '@lm_fe/components';
10
+ import { use_provoke } from '@lm_fe/provoke';
40
11
  import classnames from 'classnames';
41
- import 'antd/es/list/style';
42
- import 'antd/es/list';
43
- import 'antd/es/tooltip/style';
44
- import 'antd/es/tooltip';
45
- import '@ant-design/icons';
46
- import 'antd/es/spin/style';
47
- import 'antd/es/spin';
48
- import 'antd/es/form/style';
49
- import 'antd/es/form';
50
- import 'antd/es/result/style';
51
- import 'antd/es/result';
52
- import 'antd/es/menu/style';
53
- import 'antd/es/menu';
54
- import 'antd/es/divider/style';
55
- import 'antd/es/divider';
56
- var css_248z = ".index-module_highrisk-pop__EXrdh .ant-modal-title {\n font-size: 18px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-nav {\n margin-left: 20px;\n margin-bottom: 6px;\n}\n.index-module_highrisk-pop__EXrdh .ant-col {\n margin-bottom: 8px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-content-holder {\n padding: 0 20px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign-content__2OIIR {\n height: 400px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-row {\n margin-bottom: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-form-item {\n margin-bottom: 4px;\n margin-right: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-input,\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-tree {\n font-size: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-select-selection-overflow {\n max-width: 99%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-infec__ioC8F {\n width: 100%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-factor__6Jvpt .ant-select-selector {\n height: 88px;\n overflow-y: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-options__wYFIS {\n height: 350px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm {\n height: 520px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 8px;\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-label {\n width: 120px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-tail {\n left: 132px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-head {\n left: 128px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-left .ant-timeline-item-content {\n left: 124px;\n width: calc(100% - 120px - 20px);\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item {\n padding-bottom: 0;\n margin-bottom: -30px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL {\n position: relative;\n left: -140px;\n top: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-grade__eZRL9 {\n position: relative;\n width: 108px;\n height: 30px;\n line-height: 30px;\n border-radius: 4px;\n text-align: center;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-week__ZM4kc {\n width: 108px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA {\n position: relative;\n top: -60px;\n color: #535881;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_record-item__XQRGF {\n margin: 4px 0;\n padding-right: 6px;\n display: flex;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-label__9G8OI {\n width: 72px;\n text-align: right;\n margin-right: 3px;\n border-radius: 4px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-note__iB4rS {\n flex: 1;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_infectionNote-item__Am1Go .index-module_item-label__9G8OI {\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_infectionNote-item__Am1Go .index-module_item-note__iB4rS {\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_row-content__-A1zS {\n display: flex;\n justify-content: space-between;\n}\n.index-module_highrisk-pop__EXrdh .index-module_col-content__1Z2c3 {\n height: 340px;\n overflow: auto;\n padding-left: 10px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_tree-title__yGg17 {\n font-size: 14px;\n font-weight: 600;\n line-height: 40px;\n}\n";
12
+ var css_248z = ".index-module_highrisk-pop__EXrdh .ant-modal-title {\n font-size: 18px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-nav {\n margin-left: 20px;\n margin-bottom: 6px;\n}\n.index-module_highrisk-pop__EXrdh .ant-col {\n margin-bottom: 8px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-content-holder {\n padding: 0 20px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign-content__2OIIR {\n height: 400px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-row {\n margin-bottom: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-form-item {\n margin-bottom: 4px;\n margin-right: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-input,\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-tree {\n font-size: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-select-selection-overflow {\n max-width: 99%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-infec__ioC8F {\n width: 100%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-factor__6Jvpt .ant-select-selector {\n height: 88px;\n overflow-y: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-options__wYFIS {\n height: 350px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm {\n height: 520px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 8px;\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-label {\n width: 120px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-tail {\n left: 132px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-head {\n left: 128px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-left .ant-timeline-item-content {\n left: 124px;\n width: calc(100% - 120px - 20px);\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item {\n padding-bottom: 0;\n margin-bottom: -30px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL {\n position: relative;\n left: -140px;\n top: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-grade__eZRL9 {\n position: relative;\n width: 108px;\n height: 30px;\n line-height: 30px;\n border-radius: 4px;\n text-align: center;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-week__ZM4kc {\n width: 108px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA {\n position: relative;\n top: -60px;\n color: #535881;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_record-item__XQRGF {\n margin: 4px 0;\n padding-right: 6px;\n display: flex;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-label__9G8OI {\n width: 72px;\n text-align: right;\n margin-right: 3px;\n border-radius: 4px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-note__iB4rS {\n flex: 1;\n}\n.index-module_highrisk-pop__EXrdh .index-module_row-content__-A1zS {\n display: flex;\n justify-content: space-between;\n}\n.index-module_highrisk-pop__EXrdh .index-module_col-content__1Z2c3 {\n height: 340px;\n overflow: auto;\n padding-left: 10px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_tree-title__yGg17 {\n font-size: 14px;\n font-weight: 600;\n line-height: 40px;\n}\n";
57
13
  var styles = {
58
14
  "highrisk-pop": "index-module_highrisk-pop__EXrdh",
59
15
  "highrisk-sign-content": "index-module_highrisk-sign-content__2OIIR",
@@ -69,41 +25,71 @@ var styles = {
69
25
  "record-item": "index-module_record-item__XQRGF",
70
26
  "item-label": "index-module_item-label__9G8OI",
71
27
  "item-note": "index-module_item-note__iB4rS",
72
- "infectionNote-item": "index-module_infectionNote-item__Am1Go",
73
28
  "row-content": "index-module_row-content__-A1zS",
74
29
  "col-content": "index-module_col-content__1Z2c3",
75
30
  "tree-title": "index-module_tree-title__yGg17"
76
31
  };
77
32
  styleInject(css_248z);
78
- var Tree = LazyAntd.Tree;
79
- LazyAntd.TreeSelect;
80
- var Select = LazyAntd.Select;
81
- LazyAntd.Table;
82
- LazyAntd.Dropdown;
83
- LazyAntd.Pagination;
33
+ function transfer_to_treeNode(data, pid) {
34
+ if (pid === void 0) {
35
+ pid = 0;
36
+ }
37
+ var treeData = [];
38
+ data.map(function (item) {
39
+ if (item.pid === pid) {
40
+ var _item = __assign(__assign({}, item), {
41
+ key: String(item.id)
42
+ });
43
+ _item.title = item.val;
44
+ _item.children = transfer_to_treeNode(data, item.id);
45
+ if (isEmpty(_item.children)) {
46
+ _item.isLeaf = true;
47
+ } else {
48
+ _item.isLeaf = false;
49
+ }
50
+ treeData.push(_item);
51
+ }
52
+ });
53
+ return treeData;
54
+ }
55
+ function ColorSpan(props) {
56
+ var bg_color = props.bg_color,
57
+ _a = props.styles,
58
+ styles = _a === void 0 ? {} : _a;
59
+ return /*#__PURE__*/React.createElement("span", {
60
+ style: __assign({
61
+ background: bg_color ? bg_color : '',
62
+ display: 'inline-block',
63
+ width: '12px',
64
+ height: '12px',
65
+ margin: '0 10px'
66
+ }, styles)
67
+ });
68
+ }
84
69
  var boundSymbol$1 = ':';
85
70
  function HighriskSign_高危因素管理(props) {
86
71
  var _this = this;
72
+ var config = use_provoke('config').config;
87
73
  var headerInfo = props.headerInfo,
88
74
  gradeOptions = props.gradeOptions,
89
- contagionOptions = props.contagionOptions,
90
- highriskTreeData = props.highriskTreeData,
75
+ _a = props.contagionOptions,
76
+ contagionOptions = _a === void 0 ? [] : _a,
91
77
  initData = props.initData,
92
- set_initData = props.set_initData;
78
+ assign_initData = props.assign_initData;
93
79
  var highRiskTreeDataMapping = useRef({});
94
- var _a = useState([]),
95
- currentTreeData = _a[0],
96
- set_currentTreeData = _a[1];
97
80
  var _b = useState([]),
98
- expandedKeys = _b[0],
99
- set_expandedKeys = _b[1];
100
- var _c = useState(''),
101
- searchValue = _c[0],
102
- set_searchValue = _c[1];
103
- var _d = useState([]),
104
- selectTree = _d[0],
105
- set_selectTree = _d[1];
106
- var multiple = mchcEnv["in"](['广三', '建瓯', '郫都', '广州市八']) ? true : false;
81
+ currentTreeData = _b[0],
82
+ set_currentTreeData = _b[1];
83
+ var _c = useState([]),
84
+ expandedKeys = _c[0],
85
+ set_expandedKeys = _c[1];
86
+ var _d = useState(''),
87
+ searchValue = _d[0],
88
+ set_searchValue = _d[1];
89
+ var _e = useState([]),
90
+ selectTree = _e[0],
91
+ set_selectTree = _e[1];
92
+ var multiple = config.高危标记多选;
107
93
  function getInitData(_h) {
108
94
  var _a, _b;
109
95
  if (_h === void 0) {
@@ -122,88 +108,83 @@ function HighriskSign_高危因素管理(props) {
122
108
  useEffect(function () {
123
109
  (function () {
124
110
  return __awaiter(_this, void 0, void 0, function () {
125
- var highriskNote_, _selectTree_1;
111
+ var highriskTreeData, highriskNote_, _selectTree_1;
126
112
  var _a, _b, _c, _d;
127
113
  return __generator(this, function (_e) {
128
- if (headerInfo) {
129
- highRiskTreeDataMapping.current = _keyBy(highriskTreeData, 'id');
130
- highriskNote_ = (_d = (_c = (_b = (_a = headerInfo.highriskNote) === null || _a === void 0 ? void 0 : _a.split) === null || _b === void 0 ? void 0 : _b.call(_a, ',')) === null || _c === void 0 ? void 0 : _c.filter(function (_) {
131
- return _;
132
- })) !== null && _d !== void 0 ? _d : [];
133
- _selectTree_1 = [];
134
- highriskNote_.map(function (item) {
135
- _map(highRiskTreeDataMapping.current, function (v, i) {
136
- var addNote = getTargetNote(v);
137
- if (item == addNote) {
138
- _selectTree_1.push(v);
139
- }
114
+ switch (_e.label) {
115
+ case 0:
116
+ if (!headerInfo) return [3, 2];
117
+ return [4, SMchc_Common.getHighriskTree()];
118
+ case 1:
119
+ highriskTreeData = _e.sent();
120
+ highRiskTreeDataMapping.current = keyBy(highriskTreeData, 'id');
121
+ highriskNote_ = (_d = (_c = (_b = (_a = headerInfo.highriskNote) === null || _a === void 0 ? void 0 : _a.split) === null || _b === void 0 ? void 0 : _b.call(_a, ',')) === null || _c === void 0 ? void 0 : _c.filter(function (_) {
122
+ return _;
123
+ })) !== null && _d !== void 0 ? _d : [];
124
+ _selectTree_1 = [];
125
+ highriskNote_.map(function (item) {
126
+ map(highRiskTreeDataMapping.current, function (v, i) {
127
+ var addNote = getTargetNote(v);
128
+ if (item == addNote) {
129
+ _selectTree_1.push(v);
130
+ }
131
+ });
140
132
  });
141
- });
142
- set_selectTree(_selectTree_1);
143
- set_expandedKeys(Object.keys(highRiskTreeDataMapping.current));
144
- set_initData(getInitData());
133
+ set_selectTree(_selectTree_1);
134
+ set_expandedKeys(Object.keys(highRiskTreeDataMapping.current));
135
+ assign_initData(getInitData());
136
+ set_currentTreeData(highriskTreeData);
137
+ _e.label = 2;
138
+ case 2:
139
+ return [2];
145
140
  }
146
- set_currentTreeData(highriskTreeData);
147
- return [2];
148
141
  });
149
142
  });
150
143
  })();
151
144
  return function () {};
152
- }, [highriskTreeData, headerInfo]);
153
- function handleChange(value) {
154
- var _selectTree = [];
155
- _map(value, function (str) {
156
- _map(highRiskTreeDataMapping.current, function (v, i) {
157
- var addNote = getTargetNote(v);
158
- if (str == addNote) {
159
- _selectTree.push(v);
160
- }
161
- });
162
- });
163
- calAndSetData(_selectTree, value);
164
- set_selectTree(_selectTree);
165
- }
145
+ }, [headerInfo]);
166
146
  function handleSearch(e) {
167
- var searchValue = _get(e, 'target.value');
168
- var _a = searchTreeData(searchValue, highriskTreeData),
147
+ var searchValue = get(e, 'target.value');
148
+ var _a = searchTreeData(searchValue),
169
149
  treeData = _a.treeData,
170
150
  expandedKeys = _a.expandedKeys;
171
- set_currentTreeData(!!searchValue ? treeData : highriskTreeData);
151
+ set_currentTreeData(!!searchValue ? treeData : Object.values(highRiskTreeDataMapping.current));
172
152
  set_expandedKeys(!!searchValue ? expandedKeys : []);
173
153
  set_searchValue(searchValue);
174
154
  }
175
- function searchTreeData(value, __highriskTreeData) {
155
+ function searchTreeData(value) {
156
+ var tree_data = Object.values(highRiskTreeDataMapping.current);
176
157
  var expandedKeys = [];
177
158
  var treeData = [];
178
- var searchValueArr = _split(value, ',') || [];
159
+ var searchValueArr = split(value, ',') || [];
179
160
  var _loop_1 = function _loop_1() {
180
161
  var searchValue_1 = searchValueArr[0];
181
162
  if (!searchValue_1) {
182
163
  searchValueArr.shift();
183
164
  return "continue";
184
165
  }
185
- __highriskTreeData.map(function (item) {
166
+ tree_data.map(function (item) {
186
167
  var _a;
187
168
  var val = item.val || '';
188
169
  var mnemonic = item.mnemonic || '';
189
170
  var pid = item.pid;
190
171
  var id = item.id;
191
- if ((val.indexOf(searchValue_1) > -1 || mnemonic.indexOf(searchValue_1) > -1) && pid === 0 && !_includes(expandedKeys, String(item.id))) {
172
+ if ((val.indexOf(searchValue_1) > -1 || mnemonic.indexOf(searchValue_1) > -1) && pid === 0 && !includes(expandedKeys, String(item.id))) {
192
173
  treeData.push(item);
193
174
  expandedKeys.push(String(item.id));
194
- _map(__highriskTreeData, function (subItem) {
195
- if (subItem.pid === id && !_includes(expandedKeys, String(subItem.id))) {
175
+ map(tree_data, function (subItem) {
176
+ if (subItem.pid === id && !includes(expandedKeys, String(subItem.id))) {
196
177
  treeData.push(subItem);
197
178
  expandedKeys.push(String(subItem.id));
198
179
  }
199
180
  });
200
- } else if (searchValue_1 && val.indexOf(searchValue_1) > -1 && pid !== 0 && !_includes(expandedKeys, String(item.id))) {
181
+ } else if (searchValue_1 && val.indexOf(searchValue_1) > -1 && pid !== 0 && !includes(expandedKeys, String(item.id))) {
201
182
  treeData.push(item);
202
183
  expandedKeys.push(String(item.id));
203
184
  var _loop_2 = function _loop_2() {
204
185
  var bool = false;
205
- _map(__highriskTreeData, function (subItem) {
206
- if (subItem.id === pid && !_includes(expandedKeys, String(subItem.id))) {
186
+ map(tree_data, function (subItem) {
187
+ if (subItem.id === pid && !includes(expandedKeys, String(subItem.id))) {
207
188
  treeData.push(subItem);
208
189
  expandedKeys.push(String(subItem.id));
209
190
  pid = subItem.pid;
@@ -215,11 +196,11 @@ function HighriskSign_高危因素管理(props) {
215
196
  while (pid != 0) {
216
197
  _loop_2();
217
198
  }
218
- var id_1 = _get(item, 'id').toString();
199
+ var id_1 = get(item, 'id').toString();
219
200
  searchValueArr.push(id_1);
220
- } else if (searchValue_1 === ((_a = _get(item, 'pid')) === null || _a === void 0 ? void 0 : _a.toString())) {
221
- if (_findIndex(treeData, function (treeValue) {
222
- return _get(treeValue, 'id') == _get(item, 'id');
201
+ } else if (searchValue_1 === ((_a = get(item, 'pid')) === null || _a === void 0 ? void 0 : _a.toString())) {
202
+ if (findIndex(treeData, function (treeValue) {
203
+ return get(treeValue, 'id') == get(item, 'id');
223
204
  }) == -1) {
224
205
  treeData.push(item);
225
206
  }
@@ -230,122 +211,101 @@ function HighriskSign_高危因素管理(props) {
230
211
  while (searchValueArr.length > 0) {
231
212
  _loop_1();
232
213
  }
233
- var sortTreeData = _sortBy(treeData, function (item) {
234
- return _get(item, 'id');
214
+ var sortTreeData = sortBy(treeData, function (item) {
215
+ return get(item, 'id');
235
216
  });
236
217
  return {
237
218
  treeData: sortTreeData,
238
219
  expandedKeys: expandedKeys
239
220
  };
240
221
  }
241
- function handleSelectHighrisk(values, e) {
242
- var arr = [];
243
- values.forEach(function (k) {
222
+ function handle_select_change(_value) {
223
+ var tag_arr = split(_value, ',');
224
+ var tree_items = [];
225
+ map(tag_arr, function (str) {
226
+ map(highRiskTreeDataMapping.current, function (v, i) {
227
+ var addNote = getTargetNote(v);
228
+ if (str == addNote) {
229
+ tree_items.push(v);
230
+ }
231
+ });
232
+ });
233
+ calAndSetData(tree_items, tag_arr);
234
+ }
235
+ function handle_tree_select(ids, e) {
236
+ var custom_tags = get(initData, 'highriskNote', '').split(',').filter(function (_) {
237
+ return !_.includes(':');
238
+ });
239
+ var tree_items = [];
240
+ ids.forEach(function (k) {
244
241
  var _item = highRiskTreeDataMapping.current[k];
245
- SelectOne(_item, arr);
242
+ add_item_to_arr(_item, tree_items);
243
+ });
244
+ var tag_to_add = tree_items.map(function (_item) {
245
+ var addNote = getTargetNote(_item);
246
+ return addNote;
246
247
  });
247
- calAndSetData(arr);
248
- set_selectTree(__spreadArray([], arr, true));
248
+ calAndSetData(tree_items, __spreadArray(__spreadArray([], tag_to_add, true), custom_tags, true));
249
249
  }
250
- function SelectOne(_item, selectArr) {
251
- var isIn = selectArr.find(function (_) {
250
+ function add_item_to_arr(_item, mute_arr) {
251
+ var isIn = mute_arr.find(function (_) {
252
252
  return _.id === (_item === null || _item === void 0 ? void 0 : _item.id);
253
253
  });
254
254
  if (isIn) return;
255
255
  var pid = _item === null || _item === void 0 ? void 0 : _item.pid;
256
256
  if (!pid) return;
257
- var ind = selectArr.findIndex(function (_) {
257
+ var ind = mute_arr.findIndex(function (_) {
258
258
  return _.pid == (_item === null || _item === void 0 ? void 0 : _item.pid);
259
259
  });
260
260
  var isBrotherIn = ind != -1;
261
261
  if (isBrotherIn && !multiple) {
262
- selectArr.splice(ind, 1, _item);
262
+ mute_arr.splice(ind, 1, _item);
263
263
  } else {
264
- selectArr.push(_item);
264
+ mute_arr.push(_item);
265
265
  }
266
266
  }
267
- function calAndSetData(selectArr, nodeArr) {
268
- var _a;
269
- var _addNoteArr = [],
270
- __highriskGrade = '';
271
- var selectTree_ = _cloneDeep(selectArr);
272
- selectTree_.map(function (_) {
267
+ function calAndSetData(tree_items, tag_arr) {
268
+ var __highriskGrade = isEmpty$1(tree_items) ? initData === null || initData === void 0 ? void 0 : initData.highriskGrade : '';
269
+ tree_items.forEach(function (_) {
273
270
  var code = _.code;
274
- var addNote = getTargetNote(_);
275
- if (!_includes(_addNoteArr, addNote)) {
276
- _addNoteArr.push(addNote);
277
- }
278
271
  if (__highriskGrade == '' || code > __highriskGrade) {
279
272
  __highriskGrade = code;
280
273
  }
281
274
  });
282
- console.log('_addNoteArr', _addNoteArr);
283
- set_initData(Object.assign({}, initData, {
275
+ assign_initData({
284
276
  highriskGrade: __highriskGrade,
285
- highriskNote: ((_a = nodeArr !== null && nodeArr !== void 0 ? nodeArr : _addNoteArr) !== null && _a !== void 0 ? _a : []).join(',')
286
- }));
287
- }
288
- function transferHighRiskData(data, pid) {
289
- if (pid === void 0) {
290
- pid = 0;
291
- }
292
- var treeData = [];
293
- data.map(function (item) {
294
- if (item.pid === pid) {
295
- var _item = __assign(__assign({}, item), {
296
- key: String(item.id)
297
- });
298
- _item.title = item.val;
299
- _item.children = transferHighRiskData(data, item.id);
300
- if (_isEmpty(_item.children)) {
301
- _item.isLeaf = true;
302
- } else {
303
- _item.isLeaf = false;
304
- }
305
- treeData.push(_item);
306
- }
277
+ highriskNote: tag_arr.join(',')
307
278
  });
308
- return treeData;
279
+ set_selectTree(__spreadArray([], tree_items, true));
309
280
  }
310
281
  function handleExpend(expandedKeys) {
311
282
  set_expandedKeys(expandedKeys);
312
283
  }
313
284
  function handleReset() {
314
- set_initData(Object.assign({}, initData, {
285
+ assign_initData({
315
286
  highriskGrade: '',
316
287
  highriskNote: '',
317
288
  infectionNote: ''
318
- }));
289
+ });
319
290
  set_selectTree([]);
320
291
  }
321
292
  function getGradeColor(grade) {
322
293
  grade = grade !== null && grade !== void 0 ? grade : 'I';
323
- var target = gradeOptions.find(function (_) {
294
+ var target = gradeOptions === null || gradeOptions === void 0 ? void 0 : gradeOptions.find(function (_) {
324
295
  return _.label === grade;
325
296
  });
326
- return target === null || target === void 0 ? void 0 : target.note;
327
- }
328
- function renderColorSpan(label) {
329
- return /*#__PURE__*/React.createElement("span", {
330
- style: {
331
- background: getGradeColor(label),
332
- display: 'inline-block',
333
- width: '12px',
334
- height: '12px',
335
- margin: '0 10px'
336
- }
337
- });
297
+ return target === null || target === void 0 ? void 0 : target.color;
338
298
  }
339
299
  function renderTree(_a) {
340
300
  var treeData = _a.treeData,
341
301
  expandedKeys = _a.expandedKeys;
342
- return /*#__PURE__*/React.createElement(Tree, {
302
+ return /*#__PURE__*/React.createElement(Tree_L, {
343
303
  multiple: true,
344
304
  showLine: {
345
305
  showLeafIcon: false
346
306
  },
347
307
  treeData: treeData,
348
- onSelect: handleSelectHighrisk,
308
+ onSelect: handle_tree_select,
349
309
  onExpand: handleExpend,
350
310
  expandedKeys: expandedKeys,
351
311
  selectedKeys: selectTree.map(function (_) {
@@ -353,12 +313,14 @@ function HighriskSign_高危因素管理(props) {
353
313
  }),
354
314
  titleRender: function titleRender(treeNode) {
355
315
  var _a;
356
- return /*#__PURE__*/React.createElement("div", null, ((_a = treeNode.children) === null || _a === void 0 ? void 0 : _a.length) == 0 && renderColorSpan(treeNode.code), _get(treeNode, "title"));
316
+ return /*#__PURE__*/React.createElement("div", null, ((_a = treeNode.children) === null || _a === void 0 ? void 0 : _a.length) == 0 ? (/*#__PURE__*/React.createElement(ColorSpan, {
317
+ bg_color: getGradeColor(get(treeNode, 'code'))
318
+ })) : null, get(treeNode, "title"));
357
319
  }
358
320
  });
359
321
  }
360
322
  function renderhiskTree() {
361
- var treeData__ = transferHighRiskData(currentTreeData);
323
+ var treeData__ = transfer_to_treeNode(currentTreeData);
362
324
  var highriskVersion = mchcConfig.get('highriskVersion');
363
325
  if (highriskVersion === 23 || mchcEnv.is('华医') || mchcEnv.is('南医增城')) {
364
326
  return renderTree({
@@ -366,94 +328,91 @@ function HighriskSign_高危因素管理(props) {
366
328
  expandedKeys: expandedKeys
367
329
  });
368
330
  } else {
369
- return /*#__PURE__*/React.createElement(_Row, {
370
- className: styles["row-content"],
331
+ return /*#__PURE__*/React.createElement(Row, {
332
+ className: styles['row-content'],
371
333
  key: searchValue ? searchValue : currentTreeData.length
372
- }, /*#__PURE__*/React.createElement(_Col, {
334
+ }, /*#__PURE__*/React.createElement(Col, {
373
335
  span: 8
374
336
  }, /*#__PURE__*/React.createElement("div", {
375
- className: styles["tree-title"]
376
- }, _get(treeData__, "[0].title")), /*#__PURE__*/React.createElement("div", {
377
- className: styles["col-content"]
337
+ className: styles['tree-title']
338
+ }, get(treeData__, "[0].title")), /*#__PURE__*/React.createElement("div", {
339
+ className: styles['col-content']
378
340
  }, renderTree({
379
- treeData: _get(treeData__, "[0].children"),
341
+ treeData: get(treeData__, "[0].children"),
380
342
  expandedKeys: expandedKeys
381
- }))), /*#__PURE__*/React.createElement(_Col, {
343
+ }))), /*#__PURE__*/React.createElement(Col, {
382
344
  span: 8
383
345
  }, /*#__PURE__*/React.createElement("div", {
384
- className: styles["tree-title"]
385
- }, _get(treeData__, "[1].title")), /*#__PURE__*/React.createElement("div", {
386
- className: styles["col-content"]
346
+ className: styles['tree-title']
347
+ }, get(treeData__, "[1].title")), /*#__PURE__*/React.createElement("div", {
348
+ className: styles['col-content']
387
349
  }, renderTree({
388
- treeData: _get(treeData__, "[1].children"),
350
+ treeData: get(treeData__, "[1].children"),
389
351
  expandedKeys: expandedKeys
390
- }))), /*#__PURE__*/React.createElement(_Col, {
352
+ }))), /*#__PURE__*/React.createElement(Col, {
391
353
  span: 8
392
354
  }, /*#__PURE__*/React.createElement("div", {
393
- className: styles["tree-title"]
394
- }, _get(treeData__, "[2].title")), /*#__PURE__*/React.createElement("div", {
395
- className: styles["col-content"]
355
+ className: styles['tree-title']
356
+ }, get(treeData__, "[2].title")), /*#__PURE__*/React.createElement("div", {
357
+ className: styles['col-content']
396
358
  }, renderTree({
397
- treeData: _get(treeData__, "[2].children"),
359
+ treeData: get(treeData__, "[2].children"),
398
360
  expandedKeys: expandedKeys
399
361
  }))));
400
362
  }
401
363
  }
402
364
  function getTargetNote(v) {
403
- var p = _get(highRiskTreeDataMapping.current, v.pid);
365
+ var p = get(highRiskTreeDataMapping.current, v.pid);
404
366
  var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol$1).concat(v === null || v === void 0 ? void 0 : v.val);
405
367
  return addNote;
406
368
  }
407
- !!(initData === null || initData === void 0 ? void 0 : initData.infectionNote) && contagionOptions.every(function (_) {
408
- return _.value !== (initData === null || initData === void 0 ? void 0 : initData.infectionNote);
409
- });
410
369
  return /*#__PURE__*/React.createElement("div", {
411
- className: styles["highrisk-sign"]
370
+ className: styles['highrisk-sign']
412
371
  }, /*#__PURE__*/React.createElement("div", {
413
- className: styles["highrisk-sign-header"]
414
- }, /*#__PURE__*/React.createElement(_Row, {
372
+ className: styles['highrisk-sign-header']
373
+ }, /*#__PURE__*/React.createElement(Row, {
415
374
  gutter: 8
416
- }, /*#__PURE__*/React.createElement(_Col, {
375
+ }, /*#__PURE__*/React.createElement(Col, {
417
376
  span: 2
418
- }, "\u9AD8\u5371\u7B49\u7EA7:"), /*#__PURE__*/React.createElement(_Col, {
377
+ }, "\u9AD8\u5371\u7B49\u7EA7:"), /*#__PURE__*/React.createElement(Col, {
419
378
  span: 6
420
379
  }, /*#__PURE__*/React.createElement(HighRiskGradeSelectPure, {
421
380
  onChange: function onChange(v) {
422
- set_initData(Object.assign({}, initData, {
381
+ assign_initData({
423
382
  highriskGrade: v
424
- }));
383
+ });
425
384
  },
426
- value: _get(initData, 'highriskGrade')
427
- })), /*#__PURE__*/React.createElement(_Col, {
385
+ value: get(initData, 'highriskGrade')
386
+ })), /*#__PURE__*/React.createElement(Col, {
428
387
  span: 15,
429
388
  style: {
430
389
  textAlign: 'right'
431
390
  }
432
- }, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
391
+ }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
433
392
  onClick: function onClick() {
434
393
  set_expandedKeys([]);
435
394
  }
436
- }, "\u5168\u90E8\u6536\u8D77"), /*#__PURE__*/React.createElement(_Button, {
395
+ }, "\u5168\u90E8\u6536\u8D77"), /*#__PURE__*/React.createElement(Button, {
437
396
  onClick: function onClick() {
438
- set_expandedKeys(_keys(highRiskTreeDataMapping.current));
397
+ set_expandedKeys(keys(highRiskTreeDataMapping.current));
439
398
  }
440
- }, "\u5168\u90E8\u5C55\u5F00"), /*#__PURE__*/React.createElement(_Button, {
399
+ }, "\u5168\u90E8\u5C55\u5F00"), /*#__PURE__*/React.createElement(Button, {
441
400
  onClick: handleReset
442
- }, "\u6E05\u7A7A"), /*#__PURE__*/React.createElement(_Button, {
401
+ }, "\u6E05\u7A7A"), /*#__PURE__*/React.createElement(Button, {
443
402
  type: "primary",
444
403
  onClick: function onClick() {
445
- return set_initData(getInitData());
404
+ return assign_initData(getInitData());
446
405
  }
447
- }, "\u6062\u590D"))), /*#__PURE__*/React.createElement(_Col, {
406
+ }, "\u6062\u590D"))), /*#__PURE__*/React.createElement(Col, {
448
407
  span: 2
449
- }, " \u4F20\u67D3\u75C5", /*#__PURE__*/React.createElement("span", {
408
+ }, ' ', "\u4F20\u67D3\u75C5", /*#__PURE__*/React.createElement("span", {
450
409
  style: {
451
410
  color: 'red',
452
411
  padding: 2,
453
412
  fontWeight: 'bold',
454
413
  fontSize: 22
455
414
  }
456
- }, "*"), ":"), /*#__PURE__*/React.createElement(_Col, {
415
+ }, "*"), ":"), /*#__PURE__*/React.createElement(Col, {
457
416
  span: 21
458
417
  }, /*#__PURE__*/React.createElement(MySelect, {
459
418
  style: {
@@ -463,37 +422,40 @@ function HighriskSign_高危因素管理(props) {
463
422
  label: '无',
464
423
  value: '无',
465
424
  exclusive: true
425
+ }, {
426
+ label: '未查',
427
+ value: '未查',
428
+ exclusive: true
466
429
  }], contagionOptions, true),
467
430
  onChange: function onChange(v) {
468
- set_initData(Object.assign({}, initData, {
431
+ assign_initData({
469
432
  infectionNote: v
470
- }));
433
+ });
471
434
  },
472
435
  mode: "tags",
473
436
  marshal: 0,
474
437
  value: initData === null || initData === void 0 ? void 0 : initData.infectionNote
475
- })), /*#__PURE__*/React.createElement(_Col, {
438
+ })), /*#__PURE__*/React.createElement(Col, {
476
439
  span: 2
477
- }, "\u9AD8\u5371\u56E0\u7D20:"), /*#__PURE__*/React.createElement(_Col, {
440
+ }, "\u9AD8\u5371\u56E0\u7D20:"), /*#__PURE__*/React.createElement(Col, {
478
441
  span: 21
479
- }, /*#__PURE__*/React.createElement(Select, {
442
+ }, /*#__PURE__*/React.createElement(MySelect, {
480
443
  mode: "tags",
481
444
  style: {
482
445
  width: '100%'
483
446
  },
484
- className: styles["highrisk-factor"],
485
- onChange: handleChange,
486
- value: _get(initData, 'highriskNote', '').split(',').filter(function (_) {
487
- return _;
488
- })
489
- })), /*#__PURE__*/React.createElement(_Col, {
447
+ marshal: 0,
448
+ className: styles['highrisk-factor'],
449
+ onChange: handle_select_change,
450
+ value: get(initData, 'highriskNote', '')
451
+ })), /*#__PURE__*/React.createElement(Col, {
490
452
  span: 2
491
- }, "\u6A21\u7CCA\u67E5\u627E:"), /*#__PURE__*/React.createElement(_Col, {
453
+ }, "\u6A21\u7CCA\u67E5\u627E:"), /*#__PURE__*/React.createElement(Col, {
492
454
  span: 21
493
- }, /*#__PURE__*/React.createElement(_Input, {
455
+ }, /*#__PURE__*/React.createElement(Input, {
494
456
  onChange: handleSearch
495
457
  })))), /*#__PURE__*/React.createElement("div", {
496
- className: styles["highrisk-sign-content"]
458
+ className: styles['highrisk-sign-content']
497
459
  }, renderhiskTree()));
498
460
  }
499
461
  function HighriskTimeline_高危因素管理(props) {
@@ -509,28 +471,27 @@ function HighriskTimeline_高危因素管理(props) {
509
471
  }, []);
510
472
  function getGradeColor(grade) {
511
473
  grade = grade !== null && grade !== void 0 ? grade : 'I';
512
- var target = gradeOptions.find(function (_) {
474
+ var target = gradeOptions === null || gradeOptions === void 0 ? void 0 : gradeOptions.find(function (_) {
513
475
  return _.label === grade;
514
476
  });
515
- return target === null || target === void 0 ? void 0 : target.note;
477
+ return target === null || target === void 0 ? void 0 : target.color;
516
478
  }
517
479
  function getGradeColorText(grade) {
518
480
  grade = grade !== null && grade !== void 0 ? grade : 'I';
519
- var target = gradeOptions.find(function (_) {
481
+ var target = gradeOptions === null || gradeOptions === void 0 ? void 0 : gradeOptions.find(function (_) {
520
482
  return _.label === grade;
521
483
  });
522
484
  return target === null || target === void 0 ? void 0 : target.colorText;
523
485
  }
524
- var newRiskRecords = _cloneDeep(riskRecords);
525
- newRiskRecords = _orderBy(riskRecords, ['eventDate'], ['desc']);
526
- return _isEmpty(newRiskRecords) ? /*#__PURE__*/React.createElement(_Empty, {
486
+ var newRiskRecords = cloneDeep(riskRecords);
487
+ newRiskRecords = orderBy(riskRecords, ['eventDate'], ['desc']);
488
+ return isEmpty$1(newRiskRecords) ? (/*#__PURE__*/React.createElement(Empty, {
527
489
  description: "\u6682\u65E0\u9AD8\u5371\u8BB0\u5F55"
528
- }) : /*#__PURE__*/React.createElement(_Timeline, {
490
+ })) : (/*#__PURE__*/React.createElement(Timeline, {
529
491
  mode: "left",
530
492
  className: styles["highrisk-timeline"]
531
- }, _map(newRiskRecords, function (item) {
532
- var _a;
533
- return /*#__PURE__*/React.createElement(_Timeline.Item, null, /*#__PURE__*/React.createElement("div", {
493
+ }, map(newRiskRecords, function (item) {
494
+ return /*#__PURE__*/React.createElement(Timeline.Item, null, /*#__PURE__*/React.createElement("div", {
534
495
  className: styles["record-left"]
535
496
  }, /*#__PURE__*/React.createElement("div", {
536
497
  className: styles["record-grade"],
@@ -542,7 +503,7 @@ function HighriskTimeline_高危因素管理(props) {
542
503
  }, item.gestationalWeek ? "\u5B55".concat(item.gestationalWeek, "\u5468") : '')), /*#__PURE__*/React.createElement("div", {
543
504
  className: styles["record-right"]
544
505
  }, /*#__PURE__*/React.createElement("div", {
545
- className: classnames(styles['record-item'], (_a = {}, _a[styles['infectionNote-item']] = !!item.infectionNote, _a))
506
+ className: classnames(styles['record-item'])
546
507
  }, /*#__PURE__*/React.createElement("div", {
547
508
  className: styles["item-label"],
548
509
  style: {
@@ -569,86 +530,219 @@ function HighriskTimeline_高危因素管理(props) {
569
530
  }, "\u8BC4\u5B9A\u533B\u751F\uFF1A"), /*#__PURE__*/React.createElement("div", {
570
531
  className: styles["item-note"]
571
532
  }, item.doctor))));
572
- }));
533
+ })));
573
534
  }
574
535
  var boundSymbol = ':';
575
- function HighriskFactor(props) {
536
+ var KEY = 'tags';
537
+ function HighriskSign_Tag(props) {
576
538
  var _this = this;
577
- var modal_data = props.modal_data,
578
- close = props.close,
579
- others = __rest(props, ["modal_data", "close"]);
580
- var data = modal_data.data,
581
- onFinish = modal_data.onFinish,
582
- handleSubmit = modal_data.handleSubmit,
583
- pregnancyId = modal_data.pregnancyId,
584
- hide高危时间轴 = modal_data.hide高危时间轴,
585
- hide高危标记 = modal_data.hide高危标记;
539
+ var config = use_provoke('config').config;
540
+ var headerInfo = props.headerInfo;
541
+ props.gradeOptions;
542
+ props.contagionOptions;
543
+ var initData = props.initData,
544
+ assign_initData = props.assign_initData;
586
545
  var highRiskTreeDataMapping = useRef({});
587
- var _a = useState([]),
588
- highriskTreeData = _a[0],
589
- set_highriskTreeData = _a[1];
590
546
  var _b = useState([]),
591
- gradeOptions = _b[0],
592
- set_gradeOptions = _b[1];
547
+ currentTreeData = _b[0],
548
+ set_currentTreeData = _b[1];
593
549
  var _c = useState([]),
594
- contagionOptions = _c[0],
595
- set_contagionOptions = _c[1];
596
- var _d = useState(hide高危标记 ? hide高危时间轴 ? '' : '2' : '1'),
597
- activeTabKey = _d[0],
598
- set_activeTabKey = _d[1];
599
- var _e = useState(),
600
- initData = _e[0],
601
- set_initData = _e[1];
602
- var _f = useState(),
603
- headerInfo = _f[0],
604
- setHeaderInfo = _f[1];
550
+ expandedKeys = _c[0],
551
+ set_expandedKeys = _c[1];
552
+ var _d = useState([]),
553
+ selectTree = _d[0],
554
+ set_selectTree = _d[1];
555
+ var multiple = config.病人标签多选;
605
556
  useEffect(function () {
606
557
  (function () {
607
558
  return __awaiter(_this, void 0, void 0, function () {
608
- var h, _a, treeData, highriskNote_, _selectTree_1;
609
- var _b, _c;
559
+ var highriskTreeData, data, highriskNote_, _selectTree_1;
560
+ var _a, _b, _c;
610
561
  return __generator(this, function (_d) {
611
562
  switch (_d.label) {
612
563
  case 0:
613
- SMchc_Common.getHighriskGradeConfig().then(set_gradeOptions);
614
- if (!!hide高危标记) return [3, 5];
615
- if (!(data !== null && data !== void 0)) return [3, 1];
616
- _a = data;
617
- return [3, 3];
564
+ if (!headerInfo) return [3, 2];
565
+ return [4, SMchc_TemplateTrees.getTemplateTree({
566
+ type: 9527
567
+ })];
618
568
  case 1:
619
- return [4, SMchc_Doctor.getOutpatientHeaderInfo(pregnancyId)];
620
- case 2:
621
- _a = _d.sent();
622
- _d.label = 3;
623
- case 3:
624
- h = _a;
625
- setHeaderInfo(h);
626
- SMchc_Common.getHighriskContagionConfig().then(function (r) {
627
- set_contagionOptions(r.options);
628
- });
629
- return [4, SMchc_Common.getHighriskTree()];
630
- case 4:
631
- treeData = _d.sent();
632
- highRiskTreeDataMapping.current = _keyBy(treeData, 'id');
633
- highriskNote_ = (_c = (_b = h.highriskNote) === null || _b === void 0 ? void 0 : _b.split(',')) !== null && _c !== void 0 ? _c : [];
569
+ highriskTreeData = _d.sent();
570
+ highRiskTreeDataMapping.current = keyBy(highriskTreeData, 'id');
571
+ data = get(headerInfo, KEY);
572
+ highriskNote_ = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.split) === null || _a === void 0 ? void 0 : _a.call(data, ',')) === null || _b === void 0 ? void 0 : _b.filter(function (_) {
573
+ return _;
574
+ })) !== null && _c !== void 0 ? _c : [];
634
575
  _selectTree_1 = [];
635
576
  highriskNote_.map(function (item) {
636
- _map(highRiskTreeDataMapping.current, function (v, i) {
577
+ map(highRiskTreeDataMapping.current, function (v, i) {
637
578
  var addNote = getTargetNote(v);
638
579
  if (item == addNote) {
639
580
  _selectTree_1.push(v);
640
581
  }
641
582
  });
642
583
  });
643
- set_highriskTreeData(treeData);
644
- _d.label = 5;
645
- case 5:
584
+ set_selectTree(_selectTree_1);
585
+ set_expandedKeys(Object.keys(highRiskTreeDataMapping.current));
586
+ assign_initData(headerInfo);
587
+ set_currentTreeData(highriskTreeData);
588
+ _d.label = 2;
589
+ case 2:
646
590
  return [2];
647
591
  }
648
592
  });
649
593
  });
650
594
  })();
651
595
  return function () {};
596
+ }, [headerInfo]);
597
+ function handle_select_change(_value) {
598
+ var tag_arr = split(_value, ',');
599
+ var tree_items = [];
600
+ map(tag_arr, function (str) {
601
+ map(highRiskTreeDataMapping.current, function (v, i) {
602
+ var addNote = getTargetNote(v);
603
+ if (str == addNote) {
604
+ tree_items.push(v);
605
+ }
606
+ });
607
+ });
608
+ calAndSetData(tree_items, tag_arr);
609
+ }
610
+ function handle_tree_select(ids, e) {
611
+ var _a, _b;
612
+ var custom_tags = (_b = (_a = get(initData, KEY)) === null || _a === void 0 ? void 0 : _a.split(',').filter(function (_) {
613
+ return !_.includes(':');
614
+ })) !== null && _b !== void 0 ? _b : [];
615
+ var tree_items = [];
616
+ ids.forEach(function (k) {
617
+ var _item = highRiskTreeDataMapping.current[k];
618
+ add_item_to_arr(_item, tree_items);
619
+ });
620
+ var tag_to_add = tree_items.map(function (_item) {
621
+ var addNote = getTargetNote(_item);
622
+ return addNote;
623
+ });
624
+ calAndSetData(tree_items, __spreadArray(__spreadArray([], tag_to_add, true), custom_tags, true));
625
+ }
626
+ function add_item_to_arr(_item, mute_arr) {
627
+ var isIn = mute_arr.find(function (_) {
628
+ return _.id === (_item === null || _item === void 0 ? void 0 : _item.id);
629
+ });
630
+ if (isIn) return;
631
+ var pid = _item === null || _item === void 0 ? void 0 : _item.pid;
632
+ if (!pid) return;
633
+ var ind = mute_arr.findIndex(function (_) {
634
+ return _.pid == (_item === null || _item === void 0 ? void 0 : _item.pid);
635
+ });
636
+ var isBrotherIn = ind != -1;
637
+ if (isBrotherIn && !multiple) {
638
+ mute_arr.splice(ind, 1, _item);
639
+ } else {
640
+ mute_arr.push(_item);
641
+ }
642
+ }
643
+ function calAndSetData(tree_items, tag_arr) {
644
+ var _a;
645
+ assign_initData((_a = {}, _a[KEY] = tag_arr.join(','), _a));
646
+ set_selectTree(__spreadArray([], tree_items, true));
647
+ }
648
+ function handleExpend(expandedKeys) {
649
+ set_expandedKeys(expandedKeys);
650
+ }
651
+ function renderTree(_a) {
652
+ var treeData = _a.treeData,
653
+ expandedKeys = _a.expandedKeys;
654
+ return /*#__PURE__*/React.createElement(Tree_L, {
655
+ multiple: true,
656
+ showLine: {
657
+ showLeafIcon: false
658
+ },
659
+ treeData: treeData,
660
+ onSelect: handle_tree_select,
661
+ onExpand: handleExpend,
662
+ expandedKeys: expandedKeys,
663
+ selectedKeys: selectTree.map(function (_) {
664
+ return _.id.toString();
665
+ }),
666
+ titleRender: function titleRender(treeNode) {
667
+ var _a;
668
+ return /*#__PURE__*/React.createElement("div", null, ((_a = treeNode.children) === null || _a === void 0 ? void 0 : _a.length) == 0 ? /*#__PURE__*/React.createElement(ColorSpan, {
669
+ bg_color: get(treeNode, 'wb')
670
+ }) : null, get(treeNode, "title"));
671
+ }
672
+ });
673
+ }
674
+ function renderhiskTree() {
675
+ var treeData__ = transfer_to_treeNode(currentTreeData);
676
+ if (isEmpty$1(currentTreeData)) return /*#__PURE__*/React.createElement(Empty, null);
677
+ return renderTree({
678
+ treeData: treeData__,
679
+ expandedKeys: expandedKeys
680
+ });
681
+ }
682
+ function getTargetNote(v) {
683
+ var p = get(highRiskTreeDataMapping.current, v.pid);
684
+ var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol).concat(v === null || v === void 0 ? void 0 : v.val);
685
+ if (!(v === null || v === void 0 ? void 0 : v.wb)) return addNote;
686
+ return "".concat(addNote).concat(boundSymbol).concat(v === null || v === void 0 ? void 0 : v.wb);
687
+ }
688
+ return /*#__PURE__*/React.createElement("div", {
689
+ className: styles['highrisk-sign']
690
+ }, /*#__PURE__*/React.createElement("div", {
691
+ className: styles['highrisk-sign-header']
692
+ }, /*#__PURE__*/React.createElement(Row, {
693
+ gutter: 8
694
+ }, /*#__PURE__*/React.createElement(Col, {
695
+ span: 2
696
+ }, "\u6807\u7B7E:"), /*#__PURE__*/React.createElement(Col, {
697
+ span: 21
698
+ }, /*#__PURE__*/React.createElement(MySelect, {
699
+ mode: "tags",
700
+ style: {
701
+ width: '100%'
702
+ },
703
+ marshal: 0,
704
+ className: styles['highrisk-factor'],
705
+ onChange: handle_select_change,
706
+ value: get(initData, KEY, '')
707
+ })))), /*#__PURE__*/React.createElement("div", {
708
+ className: styles['highrisk-sign-content']
709
+ }, renderhiskTree()));
710
+ }
711
+ function HighriskFactor(props) {
712
+ var modal_data = props.modal_data,
713
+ close = props.close,
714
+ others = __rest(props, ["modal_data", "close"]);
715
+ var data = modal_data.data,
716
+ onFinish = modal_data.onFinish,
717
+ handleSubmit = modal_data.handleSubmit,
718
+ pregnancyId = modal_data.pregnancyId,
719
+ hide高危时间轴 = modal_data.hide高危时间轴,
720
+ hide高危标记 = modal_data.hide高危标记;
721
+ var _a = use_provoke('可选高危等级', '可选传染病'),
722
+ 可选高危等级 = _a.可选高危等级,
723
+ 可选传染病 = _a.可选传染病;
724
+ var _b = useState(hide高危标记 ? hide高危时间轴 ? '' : '2' : '1'),
725
+ activeTabKey = _b[0],
726
+ set_activeTabKey = _b[1];
727
+ var _c = useState(),
728
+ initData = _c[0],
729
+ set_initData = _c[1];
730
+ var _d = useState(),
731
+ headerInfo = _d[0],
732
+ setHeaderInfo = _d[1];
733
+ function assign_initData(part) {
734
+ if (part === void 0) {
735
+ part = {};
736
+ }
737
+ set_initData(Object.assign({}, initData, part));
738
+ }
739
+ useEffect(function () {
740
+ if (data) {
741
+ setHeaderInfo(data);
742
+ } else {
743
+ SMchc_Doctor.getOutpatientHeaderInfo(pregnancyId).then(setHeaderInfo);
744
+ }
745
+ return function () {};
652
746
  }, []);
653
747
  function onOk() {
654
748
  return __awaiter(this, void 0, void 0, function () {
@@ -660,20 +754,23 @@ function HighriskFactor(props) {
660
754
  return [2];
661
755
  }
662
756
  if (!(initData === null || initData === void 0 ? void 0 : initData.infectionNote)) {
663
- return [2, _message.info('请选择传染病!')];
757
+ return [2, message.info('请选择传染病!')];
664
758
  }
665
759
  if (initData.highriskGrade && initData.highriskGrade !== ROMAN_NUMERALS[1]) {
666
760
  if (!initData.highriskNote) {
667
- _message.error('请填写高危因素!');
761
+ message.error('请填写高危因素!');
668
762
  return [2];
669
763
  }
670
764
  }
671
765
  if (initData.highriskNote) {
672
766
  if (!initData.highriskGrade) {
673
- _message.error('请填写高危等级!');
767
+ message.error('请填写高危等级!');
674
768
  return [2];
675
769
  }
676
770
  }
771
+ console.log('initData', {
772
+ initData: initData
773
+ });
677
774
  if (!onFinish) return [3, 1];
678
775
  if (headerInfo) {
679
776
  onFinish(__assign(__assign({}, headerInfo), initData));
@@ -699,16 +796,17 @@ function HighriskFactor(props) {
699
796
  switch (_a.label) {
700
797
  case 0:
701
798
  postData = {
702
- outEmrId: _get(headerInfo, 'id'),
799
+ outEmrId: get(headerInfo, 'id'),
703
800
  infectionNote: initData === null || initData === void 0 ? void 0 : initData.infectionNote,
801
+ tags: initData === null || initData === void 0 ? void 0 : initData.tags,
704
802
  highriskNote: initData === null || initData === void 0 ? void 0 : initData.highriskNote,
705
803
  highriskGrade: initData === null || initData === void 0 ? void 0 : initData.highriskGrade,
706
- gestationalWeek: _get(headerInfo, "gesweek")
804
+ gestationalWeek: get(headerInfo, "gesweek")
707
805
  };
708
806
  return [4, request.put('/api/doctor/assessHighRisk', postData)];
709
807
  case 1:
710
808
  _a.sent();
711
- _message.success('信息保存成功!');
809
+ mchcEnv.success('信息保存成功!');
712
810
  return [2];
713
811
  }
714
812
  });
@@ -720,40 +818,44 @@ function HighriskFactor(props) {
720
818
  function handleTabChange(key) {
721
819
  set_activeTabKey(key);
722
820
  }
723
- function getTargetNote(v) {
724
- var p = _get(highRiskTreeDataMapping.current, v.pid);
725
- var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol).concat(v === null || v === void 0 ? void 0 : v.val);
726
- return addNote;
727
- }
728
- return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
729
- className: styles["highrisk-pop"],
730
- bodyStyle: {
731
- padding: 0,
732
- maxHeight: 700
821
+ return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
822
+ className: styles['highrisk-pop'],
823
+ styles: {
824
+ body: {
825
+ padding: 0,
826
+ maxHeight: 700
827
+ }
733
828
  },
734
- width: '70vw',
829
+ width: '80vw',
735
830
  onCancel: handleClose,
736
831
  onOk: onOk
737
- }), /*#__PURE__*/React.createElement(_Tabs, {
832
+ }), /*#__PURE__*/React.createElement(Tabs, {
738
833
  activeKey: activeTabKey,
739
834
  onChange: handleTabChange
740
- }, hide高危标记 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
835
+ }, hide高危标记 ? null : (/*#__PURE__*/React.createElement(Tabs.TabPane, {
741
836
  tab: "\u9AD8\u5371\u6807\u8BB0",
742
837
  key: "1"
743
838
  }, /*#__PURE__*/React.createElement(HighriskSign_高危因素管理, {
744
839
  initData: initData,
745
- set_initData: set_initData,
746
- gradeOptions: gradeOptions,
747
- contagionOptions: contagionOptions,
748
- highriskTreeData: highriskTreeData,
840
+ assign_initData: assign_initData,
841
+ gradeOptions: 可选高危等级,
842
+ contagionOptions: 可选传染病 === null || 可选传染病 === void 0 ? void 0 : 可选传染病.options,
749
843
  headerInfo: headerInfo
750
- })), hide高危时间轴 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
844
+ }))), hide高危时间轴 ? null : (/*#__PURE__*/React.createElement(Tabs.TabPane, {
751
845
  tab: "\u9AD8\u5371\u65F6\u95F4\u8F74",
752
846
  key: "2"
753
847
  }, /*#__PURE__*/React.createElement(HighriskTimeline_高危因素管理, {
754
848
  id: pregnancyId !== null && pregnancyId !== void 0 ? pregnancyId : headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id,
755
- gradeOptions: gradeOptions
756
- }))));
849
+ gradeOptions: 可选高危等级
850
+ }))), hide高危标记 ? null : (/*#__PURE__*/React.createElement(Tabs.TabPane, {
851
+ tab: "\u6807\u7B7E\u7BA1\u7406",
852
+ key: "3"
853
+ }, /*#__PURE__*/React.createElement(HighriskSign_Tag, {
854
+ initData: initData,
855
+ assign_initData: assign_initData,
856
+ gradeOptions: 可选高危等级,
857
+ contagionOptions: 可选传染病 === null || 可选传染病 === void 0 ? void 0 : 可选传染病.options,
858
+ headerInfo: headerInfo
859
+ })))));
757
860
  }
758
861
  export { HighriskFactor as default };
759
- //# sourceMappingURL=.root24.js.map