@lm_fe/pages 0.1.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/README.md +31 -0
  2. package/dist/a_chunks/.root.js +245 -0
  3. package/dist/a_chunks/.root.js.map +1 -0
  4. package/dist/a_chunks/.root10.js +474 -0
  5. package/dist/a_chunks/.root10.js.map +1 -0
  6. package/dist/a_chunks/.root11.js +170 -0
  7. package/dist/a_chunks/.root11.js.map +1 -0
  8. package/dist/a_chunks/.root12.js +200 -0
  9. package/dist/a_chunks/.root12.js.map +1 -0
  10. package/dist/a_chunks/.root13.js +113 -0
  11. package/dist/a_chunks/.root13.js.map +1 -0
  12. package/dist/a_chunks/.root14.js +735 -0
  13. package/dist/a_chunks/.root14.js.map +1 -0
  14. package/dist/a_chunks/.root15.js +58 -0
  15. package/dist/a_chunks/.root15.js.map +1 -0
  16. package/dist/a_chunks/.root16.js +172 -0
  17. package/dist/a_chunks/.root16.js.map +1 -0
  18. package/dist/a_chunks/.root17.js +258 -0
  19. package/dist/a_chunks/.root17.js.map +1 -0
  20. package/dist/a_chunks/.root18.js +416 -0
  21. package/dist/a_chunks/.root18.js.map +1 -0
  22. package/dist/a_chunks/.root19.js +427 -0
  23. package/dist/a_chunks/.root19.js.map +1 -0
  24. package/dist/a_chunks/.root2.js +76 -0
  25. package/dist/a_chunks/.root2.js.map +1 -0
  26. package/dist/a_chunks/.root20.js +958 -0
  27. package/dist/a_chunks/.root20.js.map +1 -0
  28. package/dist/a_chunks/.root21.js +235 -0
  29. package/dist/a_chunks/.root21.js.map +1 -0
  30. package/dist/a_chunks/.root22.js +158 -0
  31. package/dist/a_chunks/.root22.js.map +1 -0
  32. package/dist/a_chunks/.root23.js +959 -0
  33. package/dist/a_chunks/.root23.js.map +1 -0
  34. package/dist/a_chunks/.root24.js +759 -0
  35. package/dist/a_chunks/.root24.js.map +1 -0
  36. package/dist/a_chunks/.root25.js +281 -0
  37. package/dist/a_chunks/.root25.js.map +1 -0
  38. package/dist/a_chunks/.root3.js +1054 -0
  39. package/dist/a_chunks/.root3.js.map +1 -0
  40. package/dist/a_chunks/.root4.js +629 -0
  41. package/dist/a_chunks/.root4.js.map +1 -0
  42. package/dist/a_chunks/.root5.js +1440 -0
  43. package/dist/a_chunks/.root5.js.map +1 -0
  44. package/dist/a_chunks/.root6.js +164 -0
  45. package/dist/a_chunks/.root6.js.map +1 -0
  46. package/dist/a_chunks/.root7.js +123 -0
  47. package/dist/a_chunks/.root7.js.map +1 -0
  48. package/dist/a_chunks/.root8.js +544 -0
  49. package/dist/a_chunks/.root8.js.map +1 -0
  50. package/dist/a_chunks/.root9.js +69 -0
  51. package/dist/a_chunks/.root9.js.map +1 -0
  52. package/dist/a_chunks/extends.js +11 -0
  53. package/dist/a_chunks/extends.js.map +1 -0
  54. package/dist/a_chunks/index.js +1492 -0
  55. package/dist/a_chunks/index.js.map +1 -0
  56. package/dist/block/index.d.ts +1 -0
  57. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +9 -0
  58. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/form_config.d.ts +3 -0
  59. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/index.d.ts +3 -0
  60. package/dist/components/BF_Form/Wrap.d.ts +9 -0
  61. package/dist/components/BF_Form/index.d.ts +14 -0
  62. package/dist/components/BF_Form/use_table_config copy.d.ts +13 -0
  63. package/dist/components/BF_Form/use_table_config.d.ts +13 -0
  64. package/dist/components/BF_Form/utils.d.ts +2 -0
  65. package/dist/components/Base_List/Helper.d.ts +13 -0
  66. package/dist/components/Base_List/_MyBaseList.d.ts +9 -0
  67. package/dist/components/Base_List/index.d.ts +3 -0
  68. package/dist/components/Base_List/types.d.ts +129 -0
  69. package/dist/components/HighRiskTableEntry/index.d.ts +8 -0
  70. package/dist/components/HighRiskTableEntry/utils.d.ts +23 -0
  71. package/dist/components/IdNOButton/index copy.d.ts +6 -0
  72. package/dist/components/IdNOButton/index.d.ts +12 -0
  73. package/dist/components/Layout_Sider/Inner.d.ts +17 -0
  74. package/dist/components/Layout_Sider/index.d.ts +4 -0
  75. package/dist/components/Layout_Sider/utils.d.ts +1 -0
  76. package/dist/components/Layout_TabButton/Inner.d.ts +11 -0
  77. package/dist/components/Layout_TabButton/index.d.ts +8 -0
  78. package/dist/components/Login/Inner.d.ts +8 -0
  79. package/dist/components/Login/index.d.ts +1 -0
  80. package/dist/components/QuickDocButton/form_config.d.ts +4 -0
  81. package/dist/components/QuickDocButton/index.d.ts +6 -0
  82. package/dist/components/doctor_end/ExemplaryCase/Inner.d.ts +33 -0
  83. package/dist/components/doctor_end/ExemplaryCase/config.d.ts +27 -0
  84. package/dist/components/doctor_end/ExemplaryCase/index.d.ts +3 -0
  85. package/dist/components/doctor_end/ExemplaryCase/request.d.ts +2 -0
  86. package/dist/components/doctor_end/HeaderInfo/Inner.d.ts +3 -0
  87. package/dist/components/doctor_end/HeaderInfo/index.d.ts +4 -0
  88. package/dist/components/doctor_end/HeaderInfo/types.d.ts +10 -0
  89. package/dist/components/doctor_end/HeaderInfo/utils.d.ts +20 -0
  90. package/dist/components/doctor_end/HeaderInfoLayout/index.d.ts +3 -0
  91. package/dist/components/doctor_end/index.d.ts +3 -0
  92. package/dist/components/exception/403.d.ts +4 -0
  93. package/dist/components/exception/404.d.ts +4 -0
  94. package/dist/components/exception/500.d.ts +6 -0
  95. package/dist/components/exception/ErrorBoundary.d.ts +11 -0
  96. package/dist/components/exception/ErrorBoundarySmall.d.ts +16 -0
  97. package/dist/components/exception/SelectTip.d.ts +2 -0
  98. package/dist/components/exception/index.d.ts +1 -0
  99. package/dist/components/index.d.ts +10 -0
  100. package/dist/form_config/config_table.d.ts +2 -0
  101. package/dist/form_config/index.d.ts +1 -0
  102. package/dist/index.d.ts +6 -0
  103. package/dist/index.js +36 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/modals/entries/BF_Form/index.d.ts +4 -0
  106. package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +2 -0
  107. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +16 -0
  109. package/dist/modals/entries/modal_form/index.d.ts +29 -0
  110. package/dist/modals/entries/modal_page/index.d.ts +12 -0
  111. package/dist/modals/entries/print_modal/index.d.ts +3 -0
  112. package/dist/modals/entries/template_modal3/EditModal.d.ts +2 -0
  113. package/dist/modals/entries/template_modal3/common.d.ts +4 -0
  114. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +1 -0
  115. package/dist/modals/entries/template_modal3/index copy 2.d.ts +19 -0
  116. package/dist/modals/entries/template_modal3/index copy.d.ts +22 -0
  117. package/dist/modals/entries/template_modal3/index.d.ts +17 -0
  118. package/dist/modals/entries/template_modal3/methods/index.d.ts +15 -0
  119. package/dist/modals/entries/template_modal3/types.d.ts +27 -0
  120. package/dist/modals/entries/test/index.d.ts +6 -0
  121. package/dist/modals/entries/text_search/index.d.ts +8 -0
  122. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +8 -0
  123. package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/index.d.ts +9 -0
  124. package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +8 -0
  125. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +9 -0
  126. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/components.d.ts +7 -0
  127. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +28 -0
  128. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/utils.d.ts +9 -0
  129. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +8 -0
  130. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +3 -0
  131. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +5 -0
  132. package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +7 -0
  133. package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +8 -0
  134. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +12 -0
  135. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/index.d.ts +20 -0
  136. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/util.d.ts +60 -0
  137. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +13 -0
  138. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +9 -0
  139. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +12 -0
  140. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +13 -0
  141. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +2 -0
  142. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/index.d.ts +8 -0
  143. package/dist/modals/index.d.ts +22 -0
  144. package/dist/modals/meta.d.ts +21 -0
  145. package/dist/pages/doc_record/Right.d.ts +6 -0
  146. package/dist/pages/doc_record/index.d.ts +7 -0
  147. package/dist/pages/index.d.ts +1 -0
  148. package/dist/utils/index.d.ts +2 -0
  149. package/package.json +46 -0
@@ -0,0 +1,759 @@
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';
14
+ 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';
40
+ 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";
57
+ var styles = {
58
+ "highrisk-pop": "index-module_highrisk-pop__EXrdh",
59
+ "highrisk-sign-content": "index-module_highrisk-sign-content__2OIIR",
60
+ "highrisk-sign": "index-module_highrisk-sign__A2COH",
61
+ "highrisk-infec": "index-module_highrisk-infec__ioC8F",
62
+ "highrisk-factor": "index-module_highrisk-factor__6Jvpt",
63
+ "highrisk-options": "index-module_highrisk-options__wYFIS",
64
+ "highrisk-timeline": "index-module_highrisk-timeline__LnCQm",
65
+ "record-left": "index-module_record-left__LUFuL",
66
+ "record-grade": "index-module_record-grade__eZRL9",
67
+ "record-week": "index-module_record-week__ZM4kc",
68
+ "record-right": "index-module_record-right__XQNAA",
69
+ "record-item": "index-module_record-item__XQRGF",
70
+ "item-label": "index-module_item-label__9G8OI",
71
+ "item-note": "index-module_item-note__iB4rS",
72
+ "infectionNote-item": "index-module_infectionNote-item__Am1Go",
73
+ "row-content": "index-module_row-content__-A1zS",
74
+ "col-content": "index-module_col-content__1Z2c3",
75
+ "tree-title": "index-module_tree-title__yGg17"
76
+ };
77
+ 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;
84
+ var boundSymbol$1 = ':';
85
+ function HighriskSign_高危因素管理(props) {
86
+ var _this = this;
87
+ var headerInfo = props.headerInfo,
88
+ gradeOptions = props.gradeOptions,
89
+ contagionOptions = props.contagionOptions,
90
+ highriskTreeData = props.highriskTreeData,
91
+ initData = props.initData,
92
+ set_initData = props.set_initData;
93
+ var highRiskTreeDataMapping = useRef({});
94
+ var _a = useState([]),
95
+ currentTreeData = _a[0],
96
+ set_currentTreeData = _a[1];
97
+ 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;
107
+ function getInitData(_h) {
108
+ var _a, _b;
109
+ if (_h === void 0) {
110
+ _h = headerInfo;
111
+ }
112
+ if (!_h) return _h;
113
+ var grade = (_h === null || _h === void 0 ? void 0 : _h.highriskLable) || (_h === null || _h === void 0 ? void 0 : _h.highriskGrade) || '';
114
+ var _data = __assign(__assign({}, _h), {
115
+ infectionNote: (_a = _h === null || _h === void 0 ? void 0 : _h.infectionNote) !== null && _a !== void 0 ? _a : '',
116
+ highriskNote: (_b = _h === null || _h === void 0 ? void 0 : _h.highriskNote) !== null && _b !== void 0 ? _b : '',
117
+ highriskGrade: grade,
118
+ highriskLable: grade
119
+ });
120
+ return _data;
121
+ }
122
+ useEffect(function () {
123
+ (function () {
124
+ return __awaiter(_this, void 0, void 0, function () {
125
+ var highriskNote_, _selectTree_1;
126
+ var _a, _b, _c, _d;
127
+ 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
+ }
140
+ });
141
+ });
142
+ set_selectTree(_selectTree_1);
143
+ set_expandedKeys(Object.keys(highRiskTreeDataMapping.current));
144
+ set_initData(getInitData());
145
+ }
146
+ set_currentTreeData(highriskTreeData);
147
+ return [2];
148
+ });
149
+ });
150
+ })();
151
+ 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
+ }
166
+ function handleSearch(e) {
167
+ var searchValue = _get(e, 'target.value');
168
+ var _a = searchTreeData(searchValue, highriskTreeData),
169
+ treeData = _a.treeData,
170
+ expandedKeys = _a.expandedKeys;
171
+ set_currentTreeData(!!searchValue ? treeData : highriskTreeData);
172
+ set_expandedKeys(!!searchValue ? expandedKeys : []);
173
+ set_searchValue(searchValue);
174
+ }
175
+ function searchTreeData(value, __highriskTreeData) {
176
+ var expandedKeys = [];
177
+ var treeData = [];
178
+ var searchValueArr = _split(value, ',') || [];
179
+ var _loop_1 = function _loop_1() {
180
+ var searchValue_1 = searchValueArr[0];
181
+ if (!searchValue_1) {
182
+ searchValueArr.shift();
183
+ return "continue";
184
+ }
185
+ __highriskTreeData.map(function (item) {
186
+ var _a;
187
+ var val = item.val || '';
188
+ var mnemonic = item.mnemonic || '';
189
+ var pid = item.pid;
190
+ var id = item.id;
191
+ if ((val.indexOf(searchValue_1) > -1 || mnemonic.indexOf(searchValue_1) > -1) && pid === 0 && !_includes(expandedKeys, String(item.id))) {
192
+ treeData.push(item);
193
+ expandedKeys.push(String(item.id));
194
+ _map(__highriskTreeData, function (subItem) {
195
+ if (subItem.pid === id && !_includes(expandedKeys, String(subItem.id))) {
196
+ treeData.push(subItem);
197
+ expandedKeys.push(String(subItem.id));
198
+ }
199
+ });
200
+ } else if (searchValue_1 && val.indexOf(searchValue_1) > -1 && pid !== 0 && !_includes(expandedKeys, String(item.id))) {
201
+ treeData.push(item);
202
+ expandedKeys.push(String(item.id));
203
+ var _loop_2 = function _loop_2() {
204
+ var bool = false;
205
+ _map(__highriskTreeData, function (subItem) {
206
+ if (subItem.id === pid && !_includes(expandedKeys, String(subItem.id))) {
207
+ treeData.push(subItem);
208
+ expandedKeys.push(String(subItem.id));
209
+ pid = subItem.pid;
210
+ bool = true;
211
+ }
212
+ });
213
+ if (!bool) pid = 0;
214
+ };
215
+ while (pid != 0) {
216
+ _loop_2();
217
+ }
218
+ var id_1 = _get(item, 'id').toString();
219
+ 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');
223
+ }) == -1) {
224
+ treeData.push(item);
225
+ }
226
+ }
227
+ });
228
+ searchValueArr.shift();
229
+ };
230
+ while (searchValueArr.length > 0) {
231
+ _loop_1();
232
+ }
233
+ var sortTreeData = _sortBy(treeData, function (item) {
234
+ return _get(item, 'id');
235
+ });
236
+ return {
237
+ treeData: sortTreeData,
238
+ expandedKeys: expandedKeys
239
+ };
240
+ }
241
+ function handleSelectHighrisk(values, e) {
242
+ var arr = [];
243
+ values.forEach(function (k) {
244
+ var _item = highRiskTreeDataMapping.current[k];
245
+ SelectOne(_item, arr);
246
+ });
247
+ calAndSetData(arr);
248
+ set_selectTree(__spreadArray([], arr, true));
249
+ }
250
+ function SelectOne(_item, selectArr) {
251
+ var isIn = selectArr.find(function (_) {
252
+ return _.id === (_item === null || _item === void 0 ? void 0 : _item.id);
253
+ });
254
+ if (isIn) return;
255
+ var pid = _item === null || _item === void 0 ? void 0 : _item.pid;
256
+ if (!pid) return;
257
+ var ind = selectArr.findIndex(function (_) {
258
+ return _.pid == (_item === null || _item === void 0 ? void 0 : _item.pid);
259
+ });
260
+ var isBrotherIn = ind != -1;
261
+ if (isBrotherIn && !multiple) {
262
+ selectArr.splice(ind, 1, _item);
263
+ } else {
264
+ selectArr.push(_item);
265
+ }
266
+ }
267
+ function calAndSetData(selectArr, nodeArr) {
268
+ var _a;
269
+ var _addNoteArr = [],
270
+ __highriskGrade = '';
271
+ var selectTree_ = _cloneDeep(selectArr);
272
+ selectTree_.map(function (_) {
273
+ var code = _.code;
274
+ var addNote = getTargetNote(_);
275
+ if (!_includes(_addNoteArr, addNote)) {
276
+ _addNoteArr.push(addNote);
277
+ }
278
+ if (__highriskGrade == '' || code > __highriskGrade) {
279
+ __highriskGrade = code;
280
+ }
281
+ });
282
+ console.log('_addNoteArr', _addNoteArr);
283
+ set_initData(Object.assign({}, initData, {
284
+ 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
+ }
307
+ });
308
+ return treeData;
309
+ }
310
+ function handleExpend(expandedKeys) {
311
+ set_expandedKeys(expandedKeys);
312
+ }
313
+ function handleReset() {
314
+ set_initData(Object.assign({}, initData, {
315
+ highriskGrade: '',
316
+ highriskNote: '',
317
+ infectionNote: ''
318
+ }));
319
+ set_selectTree([]);
320
+ }
321
+ function getGradeColor(grade) {
322
+ grade = grade !== null && grade !== void 0 ? grade : 'I';
323
+ var target = gradeOptions.find(function (_) {
324
+ return _.label === grade;
325
+ });
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
+ });
338
+ }
339
+ function renderTree(_a) {
340
+ var treeData = _a.treeData,
341
+ expandedKeys = _a.expandedKeys;
342
+ return /*#__PURE__*/React.createElement(Tree, {
343
+ multiple: true,
344
+ showLine: {
345
+ showLeafIcon: false
346
+ },
347
+ treeData: treeData,
348
+ onSelect: handleSelectHighrisk,
349
+ onExpand: handleExpend,
350
+ expandedKeys: expandedKeys,
351
+ selectedKeys: selectTree.map(function (_) {
352
+ return _.id.toString();
353
+ }),
354
+ titleRender: function titleRender(treeNode) {
355
+ 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"));
357
+ }
358
+ });
359
+ }
360
+ function renderhiskTree() {
361
+ var treeData__ = transferHighRiskData(currentTreeData);
362
+ var highriskVersion = mchcConfig.get('highriskVersion');
363
+ if (highriskVersion === 23 || mchcEnv.is('华医') || mchcEnv.is('南医增城')) {
364
+ return renderTree({
365
+ treeData: treeData__,
366
+ expandedKeys: expandedKeys
367
+ });
368
+ } else {
369
+ return /*#__PURE__*/React.createElement(_Row, {
370
+ className: styles["row-content"],
371
+ key: searchValue ? searchValue : currentTreeData.length
372
+ }, /*#__PURE__*/React.createElement(_Col, {
373
+ span: 8
374
+ }, /*#__PURE__*/React.createElement("div", {
375
+ className: styles["tree-title"]
376
+ }, _get(treeData__, "[0].title")), /*#__PURE__*/React.createElement("div", {
377
+ className: styles["col-content"]
378
+ }, renderTree({
379
+ treeData: _get(treeData__, "[0].children"),
380
+ expandedKeys: expandedKeys
381
+ }))), /*#__PURE__*/React.createElement(_Col, {
382
+ span: 8
383
+ }, /*#__PURE__*/React.createElement("div", {
384
+ className: styles["tree-title"]
385
+ }, _get(treeData__, "[1].title")), /*#__PURE__*/React.createElement("div", {
386
+ className: styles["col-content"]
387
+ }, renderTree({
388
+ treeData: _get(treeData__, "[1].children"),
389
+ expandedKeys: expandedKeys
390
+ }))), /*#__PURE__*/React.createElement(_Col, {
391
+ span: 8
392
+ }, /*#__PURE__*/React.createElement("div", {
393
+ className: styles["tree-title"]
394
+ }, _get(treeData__, "[2].title")), /*#__PURE__*/React.createElement("div", {
395
+ className: styles["col-content"]
396
+ }, renderTree({
397
+ treeData: _get(treeData__, "[2].children"),
398
+ expandedKeys: expandedKeys
399
+ }))));
400
+ }
401
+ }
402
+ function getTargetNote(v) {
403
+ var p = _get(highRiskTreeDataMapping.current, v.pid);
404
+ 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
+ return addNote;
406
+ }
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
+ return /*#__PURE__*/React.createElement("div", {
411
+ className: styles["highrisk-sign"]
412
+ }, /*#__PURE__*/React.createElement("div", {
413
+ className: styles["highrisk-sign-header"]
414
+ }, /*#__PURE__*/React.createElement(_Row, {
415
+ gutter: 8
416
+ }, /*#__PURE__*/React.createElement(_Col, {
417
+ span: 2
418
+ }, "\u9AD8\u5371\u7B49\u7EA7:"), /*#__PURE__*/React.createElement(_Col, {
419
+ span: 6
420
+ }, /*#__PURE__*/React.createElement(HighRiskGradeSelectPure, {
421
+ onChange: function onChange(v) {
422
+ set_initData(Object.assign({}, initData, {
423
+ highriskGrade: v
424
+ }));
425
+ },
426
+ value: _get(initData, 'highriskGrade')
427
+ })), /*#__PURE__*/React.createElement(_Col, {
428
+ span: 15,
429
+ style: {
430
+ textAlign: 'right'
431
+ }
432
+ }, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
433
+ onClick: function onClick() {
434
+ set_expandedKeys([]);
435
+ }
436
+ }, "\u5168\u90E8\u6536\u8D77"), /*#__PURE__*/React.createElement(_Button, {
437
+ onClick: function onClick() {
438
+ set_expandedKeys(_keys(highRiskTreeDataMapping.current));
439
+ }
440
+ }, "\u5168\u90E8\u5C55\u5F00"), /*#__PURE__*/React.createElement(_Button, {
441
+ onClick: handleReset
442
+ }, "\u6E05\u7A7A"), /*#__PURE__*/React.createElement(_Button, {
443
+ type: "primary",
444
+ onClick: function onClick() {
445
+ return set_initData(getInitData());
446
+ }
447
+ }, "\u6062\u590D"))), /*#__PURE__*/React.createElement(_Col, {
448
+ span: 2
449
+ }, " \u4F20\u67D3\u75C5", /*#__PURE__*/React.createElement("span", {
450
+ style: {
451
+ color: 'red',
452
+ padding: 2,
453
+ fontWeight: 'bold',
454
+ fontSize: 22
455
+ }
456
+ }, "*"), ":"), /*#__PURE__*/React.createElement(_Col, {
457
+ span: 21
458
+ }, /*#__PURE__*/React.createElement(MySelect, {
459
+ style: {
460
+ width: '100%'
461
+ },
462
+ options: __spreadArray([{
463
+ label: '无',
464
+ value: '无',
465
+ exclusive: true
466
+ }], contagionOptions, true),
467
+ onChange: function onChange(v) {
468
+ set_initData(Object.assign({}, initData, {
469
+ infectionNote: v
470
+ }));
471
+ },
472
+ mode: "tags",
473
+ marshal: 0,
474
+ value: initData === null || initData === void 0 ? void 0 : initData.infectionNote
475
+ })), /*#__PURE__*/React.createElement(_Col, {
476
+ span: 2
477
+ }, "\u9AD8\u5371\u56E0\u7D20:"), /*#__PURE__*/React.createElement(_Col, {
478
+ span: 21
479
+ }, /*#__PURE__*/React.createElement(Select, {
480
+ mode: "tags",
481
+ style: {
482
+ width: '100%'
483
+ },
484
+ className: styles["highrisk-factor"],
485
+ onChange: handleChange,
486
+ value: _get(initData, 'highriskNote', '').split(',').filter(function (_) {
487
+ return _;
488
+ })
489
+ })), /*#__PURE__*/React.createElement(_Col, {
490
+ span: 2
491
+ }, "\u6A21\u7CCA\u67E5\u627E:"), /*#__PURE__*/React.createElement(_Col, {
492
+ span: 21
493
+ }, /*#__PURE__*/React.createElement(_Input, {
494
+ onChange: handleSearch
495
+ })))), /*#__PURE__*/React.createElement("div", {
496
+ className: styles["highrisk-sign-content"]
497
+ }, renderhiskTree()));
498
+ }
499
+ function HighriskTimeline_高危因素管理(props) {
500
+ var id = props.id,
501
+ gradeOptions = props.gradeOptions,
502
+ contagionColor = props.contagionColor;
503
+ var _a = useState([]),
504
+ riskRecords = _a[0],
505
+ set_riskRecords = _a[1];
506
+ useEffect(function () {
507
+ SMchc_Doctor.getRiskRecordsOfOutpatient(id !== null && id !== void 0 ? id : getSearchParamsValue('id')).then(set_riskRecords);
508
+ return function () {};
509
+ }, []);
510
+ function getGradeColor(grade) {
511
+ grade = grade !== null && grade !== void 0 ? grade : 'I';
512
+ var target = gradeOptions.find(function (_) {
513
+ return _.label === grade;
514
+ });
515
+ return target === null || target === void 0 ? void 0 : target.note;
516
+ }
517
+ function getGradeColorText(grade) {
518
+ grade = grade !== null && grade !== void 0 ? grade : 'I';
519
+ var target = gradeOptions.find(function (_) {
520
+ return _.label === grade;
521
+ });
522
+ return target === null || target === void 0 ? void 0 : target.colorText;
523
+ }
524
+ var newRiskRecords = _cloneDeep(riskRecords);
525
+ newRiskRecords = _orderBy(riskRecords, ['eventDate'], ['desc']);
526
+ return _isEmpty(newRiskRecords) ? /*#__PURE__*/React.createElement(_Empty, {
527
+ description: "\u6682\u65E0\u9AD8\u5371\u8BB0\u5F55"
528
+ }) : /*#__PURE__*/React.createElement(_Timeline, {
529
+ mode: "left",
530
+ className: styles["highrisk-timeline"]
531
+ }, _map(newRiskRecords, function (item) {
532
+ var _a;
533
+ return /*#__PURE__*/React.createElement(_Timeline.Item, null, /*#__PURE__*/React.createElement("div", {
534
+ className: styles["record-left"]
535
+ }, /*#__PURE__*/React.createElement("div", {
536
+ className: styles["record-grade"],
537
+ style: {
538
+ background: getGradeColor(item.highriskGrade)
539
+ }
540
+ }, getGradeColorText(item.highriskGrade)), /*#__PURE__*/React.createElement("div", {
541
+ className: styles["record-week"]
542
+ }, item.gestationalWeek ? "\u5B55".concat(item.gestationalWeek, "\u5468") : '')), /*#__PURE__*/React.createElement("div", {
543
+ className: styles["record-right"]
544
+ }, /*#__PURE__*/React.createElement("div", {
545
+ className: classnames(styles['record-item'], (_a = {}, _a[styles['infectionNote-item']] = !!item.infectionNote, _a))
546
+ }, /*#__PURE__*/React.createElement("div", {
547
+ className: styles["item-label"],
548
+ style: {
549
+ background: !!item.infectionNote ? contagionColor : ''
550
+ }
551
+ }, "\u4F20\u67D3\u75C5\uFF1A"), /*#__PURE__*/React.createElement("div", {
552
+ className: styles["item-note"]
553
+ }, item.infectionNote || '无')), /*#__PURE__*/React.createElement("div", {
554
+ className: styles["record-item"]
555
+ }, /*#__PURE__*/React.createElement("div", {
556
+ className: styles["item-label"]
557
+ }, "\u9AD8\u5371\u56E0\u7D20\uFF1A"), /*#__PURE__*/React.createElement("div", {
558
+ className: styles["item-note"]
559
+ }, item.highriskNote || '无')), /*#__PURE__*/React.createElement("div", {
560
+ className: styles["record-item"]
561
+ }, /*#__PURE__*/React.createElement("div", {
562
+ className: styles["item-label"]
563
+ }, "\u8BC4\u5B9A\u65E5\u671F\uFF1A"), /*#__PURE__*/React.createElement("div", {
564
+ className: styles["item-note"]
565
+ }, formatDate(item.eventDate))), /*#__PURE__*/React.createElement("div", {
566
+ className: styles["record-item"]
567
+ }, /*#__PURE__*/React.createElement("div", {
568
+ className: styles["item-label"]
569
+ }, "\u8BC4\u5B9A\u533B\u751F\uFF1A"), /*#__PURE__*/React.createElement("div", {
570
+ className: styles["item-note"]
571
+ }, item.doctor))));
572
+ }));
573
+ }
574
+ var boundSymbol = ':';
575
+ function HighriskFactor(props) {
576
+ 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高危标记;
586
+ var highRiskTreeDataMapping = useRef({});
587
+ var _a = useState([]),
588
+ highriskTreeData = _a[0],
589
+ set_highriskTreeData = _a[1];
590
+ var _b = useState([]),
591
+ gradeOptions = _b[0],
592
+ set_gradeOptions = _b[1];
593
+ 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];
605
+ useEffect(function () {
606
+ (function () {
607
+ return __awaiter(_this, void 0, void 0, function () {
608
+ var h, _a, treeData, highriskNote_, _selectTree_1;
609
+ var _b, _c;
610
+ return __generator(this, function (_d) {
611
+ switch (_d.label) {
612
+ 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];
618
+ 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 : [];
634
+ _selectTree_1 = [];
635
+ highriskNote_.map(function (item) {
636
+ _map(highRiskTreeDataMapping.current, function (v, i) {
637
+ var addNote = getTargetNote(v);
638
+ if (item == addNote) {
639
+ _selectTree_1.push(v);
640
+ }
641
+ });
642
+ });
643
+ set_highriskTreeData(treeData);
644
+ _d.label = 5;
645
+ case 5:
646
+ return [2];
647
+ }
648
+ });
649
+ });
650
+ })();
651
+ return function () {};
652
+ }, []);
653
+ function onOk() {
654
+ return __awaiter(this, void 0, void 0, function () {
655
+ return __generator(this, function (_a) {
656
+ switch (_a.label) {
657
+ case 0:
658
+ if (hide高危标记) {
659
+ close === null || close === void 0 ? void 0 : close(true);
660
+ return [2];
661
+ }
662
+ if (!(initData === null || initData === void 0 ? void 0 : initData.infectionNote)) {
663
+ return [2, _message.info('请选择传染病!')];
664
+ }
665
+ if (initData.highriskGrade && initData.highriskGrade !== ROMAN_NUMERALS[1]) {
666
+ if (!initData.highriskNote) {
667
+ _message.error('请填写高危因素!');
668
+ return [2];
669
+ }
670
+ }
671
+ if (initData.highriskNote) {
672
+ if (!initData.highriskGrade) {
673
+ _message.error('请填写高危等级!');
674
+ return [2];
675
+ }
676
+ }
677
+ if (!onFinish) return [3, 1];
678
+ if (headerInfo) {
679
+ onFinish(__assign(__assign({}, headerInfo), initData));
680
+ }
681
+ return [3, 3];
682
+ case 1:
683
+ return [4, updateRiskRecords()];
684
+ case 2:
685
+ _a.sent();
686
+ handleSubmit === null || handleSubmit === void 0 ? void 0 : handleSubmit();
687
+ _a.label = 3;
688
+ case 3:
689
+ close === null || close === void 0 ? void 0 : close(true);
690
+ return [2];
691
+ }
692
+ });
693
+ });
694
+ }
695
+ function updateRiskRecords() {
696
+ return __awaiter(this, void 0, void 0, function () {
697
+ var postData;
698
+ return __generator(this, function (_a) {
699
+ switch (_a.label) {
700
+ case 0:
701
+ postData = {
702
+ outEmrId: _get(headerInfo, 'id'),
703
+ infectionNote: initData === null || initData === void 0 ? void 0 : initData.infectionNote,
704
+ highriskNote: initData === null || initData === void 0 ? void 0 : initData.highriskNote,
705
+ highriskGrade: initData === null || initData === void 0 ? void 0 : initData.highriskGrade,
706
+ gestationalWeek: _get(headerInfo, "gesweek")
707
+ };
708
+ return [4, request.put('/api/doctor/assessHighRisk', postData)];
709
+ case 1:
710
+ _a.sent();
711
+ _message.success('信息保存成功!');
712
+ return [2];
713
+ }
714
+ });
715
+ });
716
+ }
717
+ function handleClose() {
718
+ close === null || close === void 0 ? void 0 : close();
719
+ }
720
+ function handleTabChange(key) {
721
+ set_activeTabKey(key);
722
+ }
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
733
+ },
734
+ width: '70vw',
735
+ onCancel: handleClose,
736
+ onOk: onOk
737
+ }), /*#__PURE__*/React.createElement(_Tabs, {
738
+ activeKey: activeTabKey,
739
+ onChange: handleTabChange
740
+ }, hide高危标记 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
741
+ tab: "\u9AD8\u5371\u6807\u8BB0",
742
+ key: "1"
743
+ }, /*#__PURE__*/React.createElement(HighriskSign_高危因素管理, {
744
+ initData: initData,
745
+ set_initData: set_initData,
746
+ gradeOptions: gradeOptions,
747
+ contagionOptions: contagionOptions,
748
+ highriskTreeData: highriskTreeData,
749
+ headerInfo: headerInfo
750
+ })), hide高危时间轴 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
751
+ tab: "\u9AD8\u5371\u65F6\u95F4\u8F74",
752
+ key: "2"
753
+ }, /*#__PURE__*/React.createElement(HighriskTimeline_高危因素管理, {
754
+ id: pregnancyId !== null && pregnancyId !== void 0 ? pregnancyId : headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id,
755
+ gradeOptions: gradeOptions
756
+ }))));
757
+ }
758
+ export { HighriskFactor as default };
759
+ //# sourceMappingURL=.root24.js.map