@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
@@ -0,0 +1,635 @@
1
+ import { s as styleInject, a as __assign, u as use_headinfo_color, m as mchcModal__, b as __awaiter, c as __generator, D as DoctorEnd_ExemplaryCase, Q as QuestionnaireButton, e as safe_navigate } from './index.js';
2
+ import { mchcEnv, mchcUtils, mchcEvent, mchcLogger, mchcConfig } from '@lm_fe/env';
3
+ import { SMchc_Doctor } from '@lm_fe/service';
4
+ import { isString, isNil, text_ellipsis, request, EMPTY_PLACEHOLDER, setSearchParamsValue } from '@lm_fe/utils';
5
+ import { Tag, Button, Tooltip } from 'antd';
6
+ import classnames from 'classnames';
7
+ import { keys, get } from 'lodash';
8
+ import React, { useState, useRef, useEffect } from 'react';
9
+ import { MyIcon, PatientSelect } from '@lm_fe/components';
10
+ import { OkButton } from '@lm_fe/components_m';
11
+ import { use_provoke } from '@lm_fe/provoke';
12
+ var css_248z = ".index-module_outpatientNO__Lso6m .ant-select {\n overflow: hidden;\n}\n.index-module_outpatientNO__Lso6m .ant-select-selector {\n border: 2px solid rgba(255, 255, 255, 0.4) !important;\n background: rgba(255, 255, 255, 0.3) !important;\n}\n.index-module_header-info-wrapper__ELW9h {\n display: flex;\n padding: 6px;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_header-info-content__UwPuT {\n display: flex;\n justify-content: left;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_header-info-extra__qa69p {\n flex: 1;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_header-info-extra__qa69p .index-module_new-flash-content__iGHRu {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_header-info-extra__qa69p .index-module_new-flash-content__iGHRu .index-module_icon-conetent__si7sz {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 30px;\n height: 30px;\n margin-right: 10px;\n background-color: #fff;\n border-radius: 50%;\n transition: all 0.4s;\n opacity: 0.6;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_header-info-extra__qa69p .index-module_new-flash-content__iGHRu .index-module_icon-conetent__si7sz:hover {\n opacity: 1;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_wrapper-msg__u5NLW {\n padding: 6px 0;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-top__5IKCc {\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-top__5IKCc .index-module_msg-item__HMn3X {\n font-size: 18px;\n margin-right: 10px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n word-break: break-all;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-top__5IKCc .index-module_msg-item__HMn3X .index-module_value__KIHqO {\n font-weight: bold;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-top__5IKCc .index-module_small-item__lJoX7 {\n max-width: 190px;\n font-size: 14px;\n margin-right: 10px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n word-break: break-all;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-top__5IKCc .index-module_small-item__lJoX7 .index-module_value__KIHqO {\n font-weight: bold;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-bottom__I9xv- {\n display: flex;\n font-weight: 600;\n font-size: 14px;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-bottom__I9xv- .index-module_exemplary-case__v1xLs button {\n margin-right: 6px;\n color: #0aa4a2;\n outline: 1px solid #0aa4a2;\n background-color: #e6fffb;\n border: 0 none;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-bottom__I9xv- .index-module_msg-highrisk__MkLlm {\n max-width: 480px;\n overflow: hidden;\n margin-right: 6px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_wrapper-btns__86BTc {\n display: flex;\n height: 66px;\n margin-right: 20px;\n overflow: hidden;\n border-radius: 4px;\n cursor: pointer;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_highrisk__yWGGR {\n display: flex;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_highrisk__yWGGR .index-module_level-btn__W6GsL {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 44px;\n height: 66px;\n color: #fff;\n font-weight: 600;\n font-size: 18px;\n line-height: 66px;\n text-align: center;\n writing-mode: vertical-rl;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_highrisk__yWGGR .index-module_twinkling__ezoY2 {\n animation: index-module_twinkling__ezoY2 500ms ease-in-out 0s infinite normal;\n}\n@keyframes index-module_twinkling__ezoY2 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.index-module_header-info-wrapper__ELW9h .index-module_highrisk__yWGGR .index-module_infection-btn__DVXBb {\n display: inline-block;\n width: 44px;\n height: 66px;\n padding: 0 9px;\n color: #fff;\n font-weight: 600;\n font-size: 16px;\n text-align: center;\n writing-mode: vertical-lr;\n /*从左向右 从右向左是 writing-mode: vertical-rl;*/\n writing-mode: tb-lr;\n /*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl;*/\n}\n.index-module_header-info-wrapper__ELW9h .index-module_signs__uvavL {\n display: flex;\n flex-direction: column;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_signs__uvavL .index-module_signs-btn__Vg84- {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n width: 44px;\n color: #fff;\n font-weight: 600;\n font-size: 14px;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_signs__uvavL .index-module_trial__Ce-Hy {\n background-color: #4e1303;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_signs__uvavL .index-module_pahr__AUR0Q {\n background-color: #57c5f7;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_signs__uvavL .index-module_pahr__AUR0Q em {\n color: #A83A08;\n font-size: 12px;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_preeclampsia-btn__icRxH {\n width: 44px;\n height: 66px;\n padding: 0 9px;\n color: #fff;\n font-weight: 600;\n font-size: 16px;\n text-align: center;\n background-color: #cdc673;\n writing-mode: vertical-lr;\n writing-mode: tb-lr;\n}\n.index-module_label__eQPR5 {\n color: #666;\n}\n";
13
+ var styles = {
14
+ "outpatientNO": "index-module_outpatientNO__Lso6m",
15
+ "header-info-wrapper": "index-module_header-info-wrapper__ELW9h",
16
+ "header-info-content": "index-module_header-info-content__UwPuT",
17
+ "header-info-extra": "index-module_header-info-extra__qa69p",
18
+ "new-flash-content": "index-module_new-flash-content__iGHRu",
19
+ "icon-conetent": "index-module_icon-conetent__si7sz",
20
+ "wrapper-msg": "index-module_wrapper-msg__u5NLW",
21
+ "msg-top": "index-module_msg-top__5IKCc",
22
+ "msg-item": "index-module_msg-item__HMn3X",
23
+ "value": "index-module_value__KIHqO",
24
+ "small-item": "index-module_small-item__lJoX7",
25
+ "msg-bottom": "index-module_msg-bottom__I9xv-",
26
+ "exemplary-case": "index-module_exemplary-case__v1xLs",
27
+ "msg-highrisk": "index-module_msg-highrisk__MkLlm",
28
+ "wrapper-btns": "index-module_wrapper-btns__86BTc",
29
+ "highrisk": "index-module_highrisk__yWGGR",
30
+ "level-btn": "index-module_level-btn__W6GsL",
31
+ "twinkling": "index-module_twinkling__ezoY2",
32
+ "infection-btn": "index-module_infection-btn__DVXBb",
33
+ "signs": "index-module_signs__uvavL",
34
+ "signs-btn": "index-module_signs-btn__Vg84-",
35
+ "trial": "index-module_trial__Ce-Hy",
36
+ "pahr": "index-module_pahr__AUR0Q",
37
+ "preeclampsia-btn": "index-module_preeclampsia-btn__icRxH",
38
+ "label": "index-module_label__eQPR5"
39
+ };
40
+ styleInject(css_248z);
41
+ var infectionNameMap = {
42
+ 艾: 'HIV',
43
+ 梅: '梅毒',
44
+ 乙: '乙肝',
45
+ 传染病: '传染病'
46
+ };
47
+ var infectionKeywordMap = {
48
+ 艾: ['HIV', 'hiv', '艾滋'],
49
+ 梅: ['梅毒'],
50
+ 乙: ['乙肝', 'HBsAg阳性', '乙型肝炎', '乙型病毒性肝炎', '小三阳', '大三阳'],
51
+ 传染病: ['结核病', '重症感染性肺炎', '特殊病毒感染', '丙型病毒性肝炎', '传染病', '病毒性肝炎']
52
+ };
53
+ var infectionExcludeKeywordMap = {
54
+ 艾: [],
55
+ 梅: ['史'],
56
+ 乙: [],
57
+ 传染病: []
58
+ };
59
+ var infectionColorMap = {
60
+ 艾: '#C736FF',
61
+ 梅: '#8D36FF',
62
+ 乙: '#6236FF',
63
+ 传染病: '#9340BA'
64
+ };
65
+ var sorting = {
66
+ 艾: 1,
67
+ 梅: 2,
68
+ 乙: 3,
69
+ 传染病: -1
70
+ };
71
+ function getTheFuckingLabel(str, isMulti) {
72
+ if (isMulti === void 0) {
73
+ isMulti = false;
74
+ }
75
+ var keys = Object.keys(infectionKeywordMap);
76
+ var type = keys.reduce(function (res, key) {
77
+ if (res) return res;
78
+ var value = infectionKeywordMap[key];
79
+ var exlucdeValue = infectionExcludeKeywordMap[key];
80
+ var isTarget = value.some(function (v) {
81
+ return str.includes(v) && !exlucdeValue.includes(v);
82
+ });
83
+ return isTarget ? key : null;
84
+ }, null);
85
+ if (!type) return null;
86
+ var label = isMulti ? type : infectionNameMap[type];
87
+ var color = infectionColorMap[type];
88
+ var key = sorting[type];
89
+ return {
90
+ label: label,
91
+ type: type,
92
+ color: color,
93
+ key: key,
94
+ allType: []
95
+ };
96
+ }
97
+ function handleFuckinginfectionNoteLabel(infectionNote) {
98
+ if (!infectionNote) return [];
99
+ var arr = infectionNote.split(',').filter(function (_) {
100
+ return _ && !['无', '未查'].includes(_);
101
+ });
102
+ var len = arr.length;
103
+ var result = arr.map(function (str) {
104
+ return getTheFuckingLabel(str, len > 1);
105
+ }).filter(function (_) {
106
+ return _;
107
+ });
108
+ var hash = {};
109
+ result = result.reduce(function (item, next) {
110
+ if (!hash[next.type]) {
111
+ hash[next.type] = true;
112
+ item.push(next);
113
+ }
114
+ return item;
115
+ }, []);
116
+ result = result.map(function (_) {
117
+ return __assign(__assign({}, _), {
118
+ allType: keys(hash)
119
+ });
120
+ });
121
+ var 传染病item = result.find(function (item) {
122
+ return item.type === '传染病';
123
+ });
124
+ if (传染病item) {
125
+ result = [传染病item];
126
+ } else {
127
+ result.sort(function (a, b) {
128
+ return a.key - b.key;
129
+ });
130
+ }
131
+ return result;
132
+ }
133
+ function hasKeyword(arr, val) {
134
+ if (!val) return false;
135
+ return arr.some(function (_) {
136
+ return (_ === null || _ === void 0 ? void 0 : _.includes(val)) || (val === null || val === void 0 ? void 0 : val.includes(_));
137
+ });
138
+ }
139
+ function use专案(headerInfo) {
140
+ var is_show_all = false;
141
+ var multipletsArr = ['三胎妊娠', '四胎妊娠', '五胎妊娠', '六胎妊娠', '多胎妊娠'];
142
+ var twinsArr = ['双胎妊娠'];
143
+ var _a = useState(false),
144
+ isShowGdm = _a[0];
145
+ _a[1];
146
+ var _b = useState(false),
147
+ isShowBmi = _b[0];
148
+ _b[1];
149
+ var _c = useState(false),
150
+ isShowSlowGrowing = _c[0];
151
+ _c[1];
152
+ var isShowTwins = hasKeyword(twinsArr, headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.pregnancyCaseLable);
153
+ var isShowMultiplets = hasKeyword(multipletsArr, headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.pregnancyCaseLable);
154
+ var is_show_梅毒 = mchcEnv["in"](['华医']);
155
+ var is_show_乙肝 = mchcEnv["in"](['华医']);
156
+ return {
157
+ isShowGdm: isShowGdm || is_show_all,
158
+ isShowBmi: isShowBmi || is_show_all,
159
+ isShowSlowGrowing: isShowSlowGrowing || is_show_all,
160
+ isShowTwins: isShowTwins || is_show_all,
161
+ isShowMultiplets: isShowMultiplets || is_show_all,
162
+ is_show_梅毒: is_show_梅毒 || is_show_all,
163
+ is_show_乙肝: is_show_乙肝 || is_show_all
164
+ };
165
+ }
166
+ function FuckTags(props) {
167
+ var str_data = props.str_data;
168
+ if (!str_data || !isString(str_data)) return null;
169
+ var arr = str_data.split(',');
170
+ return /*#__PURE__*/React.createElement("span", {
171
+ style: {
172
+ margin: '0 4px'
173
+ }
174
+ }, arr.map(function (_) {
175
+ return /*#__PURE__*/React.createElement(FuckTagItem, {
176
+ symbol: _
177
+ });
178
+ }));
179
+ }
180
+ function FuckTagItem(props) {
181
+ var _a;
182
+ var symbol = props.symbol;
183
+ if (!symbol || !isString(symbol)) return null;
184
+ var arr = symbol.split(':').filter(function (_) {
185
+ return !isNil(_) && !['null', 'undefined'].includes(_.toLowerCase());
186
+ });
187
+ var len = arr.length;
188
+ if (len == 0) return null;
189
+ if (len == 1) return /*#__PURE__*/React.createElement(Tag, null, arr[0]);
190
+ var title = "".concat(arr[0], ":").concat(arr[1]);
191
+ return /*#__PURE__*/React.createElement(Tag, {
192
+ color: (_a = arr[2]) !== null && _a !== void 0 ? _a : 'default',
193
+ title: title
194
+ }, text_ellipsis(arr[1], 8));
195
+ }
196
+ function HeaderInfoInner(props) {
197
+ var _a;
198
+ var saveHeaderInfo = props.saveHeaderInfo,
199
+ isNurse = props.isNurse;
200
+ props.id;
201
+ var onDobuleClick = props.onDobuleClick;
202
+ var _b = use_provoke('config', 'user_info'),
203
+ config = _b.config;
204
+ _b.user_info;
205
+ var pregnancyId = mchcUtils.single_id(props);
206
+ var _c = useState(),
207
+ headerInfo = _c[0],
208
+ setHeaderInfo = _c[1];
209
+ var highriskLable = (headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.highriskLable) || 'Ⅰ';
210
+ var color_conf = use_headinfo_color(highriskLable);
211
+ var info_addon = (_a = config.头部信息拓展) !== null && _a !== void 0 ? _a : [];
212
+ var _d = use专案(headerInfo),
213
+ isShowBmi = _d.isShowBmi,
214
+ isShowGdm = _d.isShowGdm,
215
+ isShowMultiplets = _d.isShowMultiplets,
216
+ isShowSlowGrowing = _d.isShowSlowGrowing,
217
+ isShowTwins = _d.isShowTwins,
218
+ is_show_乙肝 = _d.is_show_乙肝,
219
+ is_show_梅毒 = _d.is_show_梅毒;
220
+ var _e = useState(true),
221
+ isTwinkling = _e[0],
222
+ setIsTwinkling = _e[1];
223
+ var _f = useState(false),
224
+ exemplaryCaseVisible = _f[0],
225
+ setExemplaryCaseVisible = _f[1];
226
+ var _g = useState('1'),
227
+ tabkey = _g[0],
228
+ setTabkey = _g[1];
229
+ var infectionNoteLabels = handleFuckinginfectionNoteLabel(headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.infectionNote);
230
+ var headerInfoCache = useRef(headerInfo);
231
+ headerInfoCache.current = headerInfo;
232
+ var randomIds = useRef(+new Date());
233
+ useEffect(function () {
234
+ fetchHeaderInfo();
235
+ }, [pregnancyId]);
236
+ useEffect(function () {
237
+ return mchcEvent.on_rm('ws_event', function (e) {
238
+ if (e.type !== 'obis-doctor' || e.event !== 'message' || !e.data) return;
239
+ if (e.data.type === 'RefreshPregnancyHeaderInfo') {
240
+ mchcLogger.log('event !!', {
241
+ e: e
242
+ });
243
+ fetchHeaderInfo();
244
+ }
245
+ });
246
+ }, []);
247
+ useEffect(function () {
248
+ var rm = mchcEvent.on_rm('outpatient', function (e) {
249
+ if (e.type === '弹窗' && !isNurse) {
250
+ switch (e.modal_name) {
251
+ case '瘢痕子宫阴道试产表':
252
+ open瘢痕子宫阴道试产表();
253
+ break;
254
+ case '子痫前期风险评估表':
255
+ open子痫前期风险评估表();
256
+ break;
257
+ case '深静脉血栓高危因素孕期用药筛查表':
258
+ open深静脉血栓高危因素孕期用药筛查表();
259
+ break;
260
+ case '梅毒管理':
261
+ open梅毒管理();
262
+ break;
263
+ }
264
+ }
265
+ if (e.type === '刷新头部') {
266
+ fetchHeaderInfo();
267
+ }
268
+ });
269
+ return rm;
270
+ }, []);
271
+ function open瘢痕子宫阴道试产表() {
272
+ mchcModal__.openOne(randomIds.current + 1, '瘢痕子宫阴道试产表', {
273
+ modal_data: {
274
+ headerInfo: headerInfoCache.current
275
+ },
276
+ onClose: fetchHeaderInfo
277
+ });
278
+ }
279
+ function open子痫前期风险评估表() {
280
+ mchcModal__.openOne(randomIds.current + 2, '子痫前期风险评估表', {
281
+ modal_data: {
282
+ headerInfo: headerInfoCache.current
283
+ },
284
+ onClose: fetchHeaderInfo
285
+ });
286
+ }
287
+ function open深静脉血栓高危因素孕期用药筛查表() {
288
+ mchcModal__.openOne(randomIds.current + 3, '深静脉血栓高危因素孕期用药筛查表', {
289
+ modal_data: {
290
+ headerInfo: headerInfoCache.current
291
+ },
292
+ onClose: fetchHeaderInfo
293
+ });
294
+ }
295
+ function open梅毒管理() {
296
+ mchcModal__.openOne(randomIds.current + 4, '梅毒管理', {
297
+ modal_data: {
298
+ headerInfo: headerInfoCache.current
299
+ },
300
+ onClose: fetchHeaderInfo
301
+ });
302
+ }
303
+ function open乙肝管理() {
304
+ mchcModal__.openOne(randomIds.current + 5, '乙肝管理', {
305
+ modal_data: {
306
+ headerInfo: headerInfoCache.current
307
+ },
308
+ onClose: fetchHeaderInfo
309
+ });
310
+ }
311
+ function open高危因素管理() {
312
+ var is护士端_禁止编辑高危因素_传染病 = mchcConfig.get('护士端_禁止编辑高危因素_传染病');
313
+ if (is护士端_禁止编辑高危因素_传染病 && isNurse) return;
314
+ setIsTwinkling(false);
315
+ mchcModal__.open('高危因素管理', {
316
+ modal_data: {
317
+ data: headerInfo,
318
+ pregnancyId: pregnancyId,
319
+ handleSubmit: fetchHeaderInfo
320
+ }
321
+ });
322
+ }
323
+ function switch_page() {
324
+ var path = isNurse ? '/prenatal-visit/pregnancy/doctor-end' : '/prenatal-visit/pregnancy/nurse-end';
325
+ safe_navigate("".concat(path, "?id=").concat(pregnancyId), props, {
326
+ id: pregnancyId
327
+ });
328
+ }
329
+ function showSpan(key) {
330
+ return (headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo[key]) ? true : false;
331
+ }
332
+ function getValue(key) {
333
+ var _a;
334
+ return (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo[key]) !== null && _a !== void 0 ? _a : EMPTY_PLACEHOLDER;
335
+ }
336
+ function check_week_show(curgesweek) {
337
+ var bool = true;
338
+ if (typeof curgesweek == 'string') {
339
+ var index = curgesweek.indexOf('+');
340
+ var week = curgesweek;
341
+ if (index != -1) {
342
+ week = curgesweek.substr(0, index);
343
+ }
344
+ var week_ = parseInt(week);
345
+ if (week_ >= 42) {
346
+ bool = false;
347
+ }
348
+ }
349
+ return bool;
350
+ }
351
+ function showTitle(bool) {
352
+ var title = bool ? getValue('highriskNote') : getValue('highRiskDiagnosis');
353
+ var a = title && title.length > 25 ? title : '';
354
+ return a;
355
+ }
356
+ function renderInfo() {
357
+ var _a, _b, _c;
358
+ var is_show_note = mchcConfig.get('highriskType') == 'highriskNote';
359
+ return /*#__PURE__*/React.createElement("div", {
360
+ className: classnames(styles['header-info-wrapper']),
361
+ onDoubleClick: function onDoubleClick(e) {},
362
+ style: {
363
+ background: color_conf.高危背景
364
+ }
365
+ }, /*#__PURE__*/React.createElement("div", {
366
+ className: styles['header-info-content']
367
+ }, /*#__PURE__*/React.createElement("div", {
368
+ className: styles['wrapper-btns']
369
+ }, /*#__PURE__*/React.createElement("div", {
370
+ className: styles['highrisk']
371
+ }, /*#__PURE__*/React.createElement("span", {
372
+ style: {
373
+ background: color_conf.高危颜色
374
+ },
375
+ className: classnames(styles['level-btn'], isTwinkling && highriskLable === 'Ⅴ' && !mchcEnv.is('广三') ? styles['twinkling'] : ''),
376
+ title: JSON.stringify(props.id),
377
+ onClick: open高危因素管理
378
+ }, color_conf.高危文字), showSpan('infectionLable') && !!infectionNoteLabels.length ? (/*#__PURE__*/React.createElement("span", {
379
+ style: {
380
+ padding: 0,
381
+ display: 'flex',
382
+ flexDirection: 'column',
383
+ writingMode: 'unset',
384
+ fontSize: infectionNoteLabels.length >> 1 ? 14 : 16
385
+ },
386
+ className: styles['infection-btn'],
387
+ title: get(headerInfo, 'infectionLable')
388
+ }, infectionNoteLabels.map(function (_) {
389
+ return /*#__PURE__*/React.createElement("span", {
390
+ key: _.key,
391
+ onClick: function onClick() {
392
+ return (_.type === '梅' || _.type === '传染病' && _.allType.includes('梅')) && open梅毒管理();
393
+ },
394
+ style: {
395
+ background: _.color,
396
+ flex: 1,
397
+ display: 'flex',
398
+ alignItems: 'center',
399
+ justifyContent: 'center',
400
+ writingMode: 'vertical-lr'
401
+ }
402
+ }, _.label);
403
+ }))) : null), /*#__PURE__*/React.createElement("div", {
404
+ className: styles['signs']
405
+ }, showSpan('thrombusLable') && (/*#__PURE__*/React.createElement("span", {
406
+ className: classnames(styles['signs-btn'], styles['trial']),
407
+ onClick: open瘢痕子宫阴道试产表
408
+ }, "\u75A4")), showSpan('cicatrixLable') && (/*#__PURE__*/React.createElement("span", {
409
+ className: classnames(styles['signs-btn'], styles['pahr']),
410
+ style: {
411
+ flexDirection: 'column'
412
+ },
413
+ onClick: open深静脉血栓高危因素孕期用药筛查表
414
+ }, /*#__PURE__*/React.createElement("span", null, "VTE", /*#__PURE__*/React.createElement("em", null, (_c = (_b = (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.alertAssessment) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : ''))))), showSpan('eclampsiaLable') && (/*#__PURE__*/React.createElement("div", {
415
+ className: styles['preeclampsia-btn'],
416
+ onClick: open子痫前期风险评估表
417
+ }, "\u5B50\u75EB"))), /*#__PURE__*/React.createElement("div", {
418
+ className: styles['wrapper-msg']
419
+ }, /*#__PURE__*/React.createElement("div", {
420
+ className: styles['msg-top']
421
+ }, /*#__PURE__*/React.createElement("div", {
422
+ className: styles['msg-item']
423
+ }, /*#__PURE__*/React.createElement("span", {
424
+ className: styles['value']
425
+ }, getValue('name'))), /*#__PURE__*/React.createElement("div", {
426
+ className: styles['small-item']
427
+ }, /*#__PURE__*/React.createElement("span", {
428
+ className: styles['value']
429
+ }, getValue('age'), "\u5C81")), /*#__PURE__*/React.createElement("div", {
430
+ className: styles['small-item']
431
+ }, /*#__PURE__*/React.createElement("span", {
432
+ className: styles['value']
433
+ }, "G", getValue('g'), "P", getValue('p'))), get(headerInfo, "labourState") ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
434
+ className: styles['small-item']
435
+ }, /*#__PURE__*/React.createElement("span", {
436
+ className: styles['label']
437
+ }, "\u4EA7\u540E\uFF1A"), /*#__PURE__*/React.createElement("span", {
438
+ className: styles['value']
439
+ }, getValue('daysAfterDelivery'))), /*#__PURE__*/React.createElement("div", {
440
+ className: styles['small-item']
441
+ }, /*#__PURE__*/React.createElement("span", {
442
+ className: styles['label']
443
+ }, "\u5206\u5A29\u5B55\u5468\uFF1A"), /*#__PURE__*/React.createElement("span", {
444
+ className: styles['value']
445
+ }, getValue('labourWeek'))))) : (/*#__PURE__*/React.createElement(React.Fragment, null, check_week_show(getValue('curgesweek')) && (/*#__PURE__*/React.createElement("div", {
446
+ className: styles['small-item']
447
+ }, /*#__PURE__*/React.createElement("span", {
448
+ className: styles['label']
449
+ }, "\u5B55\u5468\uFF1A"), /*#__PURE__*/React.createElement("span", {
450
+ className: styles['value']
451
+ }, getValue('curgesweek')))), /*#__PURE__*/React.createElement("div", {
452
+ className: styles['small-item']
453
+ }, /*#__PURE__*/React.createElement("span", {
454
+ className: styles['label']
455
+ }, "\u9884\u4EA7\u671F\uFF1A"), /*#__PURE__*/React.createElement("span", {
456
+ className: styles['value']
457
+ }, getValue('edd'))))), /*#__PURE__*/React.createElement("div", {
458
+ className: styles['small-item']
459
+ }, /*#__PURE__*/React.createElement("span", {
460
+ className: styles['label']
461
+ }, "\u5C31\u8BCA\u5361\u53F7\uFF1A"), render_select()), info_addon.map(function (_) {
462
+ var txt = getValue(_.value);
463
+ return /*#__PURE__*/React.createElement("div", {
464
+ key: _.label,
465
+ className: styles['small-item'],
466
+ title: txt
467
+ }, /*#__PURE__*/React.createElement("span", {
468
+ className: styles['label']
469
+ }, _.label, "\uFF1A"), /*#__PURE__*/React.createElement("span", {
470
+ className: styles['value']
471
+ }, txt));
472
+ })), /*#__PURE__*/React.createElement("div", {
473
+ className: styles['msg-bottom']
474
+ }, /*#__PURE__*/React.createElement("div", {
475
+ className: styles['exemplary-case']
476
+ }, is_show_乙肝 && (/*#__PURE__*/React.createElement(Button, {
477
+ hidden: infectionNoteLabels.some(function (_) {
478
+ return _.type === '乙';
479
+ }),
480
+ type: "text",
481
+ size: "small",
482
+ onClick: open乙肝管理
483
+ }, "\u4E59\u809D\u4E13\u6848\u7BA1\u7406")), is_show_梅毒 && (/*#__PURE__*/React.createElement(Button, {
484
+ hidden: infectionNoteLabels.some(function (_) {
485
+ return _.type === '梅';
486
+ }),
487
+ type: "text",
488
+ size: "small",
489
+ onClick: open梅毒管理
490
+ }, "\u6885\u6BD2\u4E13\u6848\u7BA1\u7406")), isShowGdm && (/*#__PURE__*/React.createElement(Button, {
491
+ size: "small",
492
+ type: "text",
493
+ onClick: function onClick() {
494
+ setExemplaryCaseVisible(true);
495
+ setTabkey('1');
496
+ }
497
+ }, "GDM\u4E13\u6848")), isShowSlowGrowing && (/*#__PURE__*/React.createElement(Button, {
498
+ size: "small",
499
+ type: "text",
500
+ onClick: function onClick() {
501
+ setExemplaryCaseVisible(true);
502
+ setTabkey('2');
503
+ }
504
+ }, "\u80CE\u513F\u751F\u957F\u7F13\u6162\u4E13\u6848")), isShowBmi && (/*#__PURE__*/React.createElement(Button, {
505
+ size: "small",
506
+ type: "text",
507
+ onClick: function onClick() {
508
+ setExemplaryCaseVisible(true);
509
+ setTabkey('3');
510
+ }
511
+ }, "BMI\u9AD8\u5371\u4E13\u6848")), isShowMultiplets && (/*#__PURE__*/React.createElement(Button, {
512
+ size: "small",
513
+ type: "text",
514
+ onClick: function onClick() {
515
+ setExemplaryCaseVisible(true);
516
+ setTabkey('5');
517
+ }
518
+ }, get(props, "headerInfo.pregnancyCaseLable") || '多胎', "\u598A\u5A20\u4E13\u6848"))), showSpan('infectionNote') ? (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
519
+ style: {
520
+ color: color_conf.传染病颜色
521
+ }
522
+ }, "\u4F20\u67D3\u75C5:", getValue('infectionNote') || '无'), /*#__PURE__*/React.createElement("span", {
523
+ style: {
524
+ margin: '0 4px'
525
+ }
526
+ }, "/"))) : null, /*#__PURE__*/React.createElement(Tooltip, {
527
+ placement: "bottomLeft",
528
+ title: showTitle(is_show_note)
529
+ }, /*#__PURE__*/React.createElement("div", {
530
+ className: styles['msg-highrisk'],
531
+ style: {
532
+ color: color_conf.高危文字颜色
533
+ }
534
+ }, is_show_note ? (/*#__PURE__*/React.createElement("span", null, "\u9AD8\u5371\u56E0\u7D20:", getValue('highriskNote') || '无')) : (/*#__PURE__*/React.createElement("span", null, "\u9AD8\u5371\u8BCA\u65AD:", getValue('highRiskDiagnosis') || '无')))), /*#__PURE__*/React.createElement(FuckTags, {
535
+ str_data: get(headerInfo, 'tags')
536
+ })))), render_extra());
537
+ }
538
+ function fetchHeaderInfo() {
539
+ return __awaiter(this, void 0, void 0, function () {
540
+ var data;
541
+ return __generator(this, function (_a) {
542
+ switch (_a.label) {
543
+ case 0:
544
+ if (!pregnancyId) return [2];
545
+ return [4, SMchc_Doctor.getOutpatientHeaderInfo(pregnancyId)];
546
+ case 1:
547
+ data = _a.sent();
548
+ saveHeaderInfo === null || saveHeaderInfo === void 0 ? void 0 : saveHeaderInfo(data);
549
+ setHeaderInfo(data);
550
+ return [2];
551
+ }
552
+ });
553
+ });
554
+ }
555
+ function render_extra() {
556
+ if (!headerInfo) return null;
557
+ var common_props = {
558
+ shape: 'circle',
559
+ style: {
560
+ opacity: 0.6,
561
+ marginLeft: 6
562
+ }
563
+ };
564
+ var wrap_style = {
565
+ display: 'flex',
566
+ alignItems: 'flex-start',
567
+ justifyContent: 'flex-end'
568
+ };
569
+ return /*#__PURE__*/React.createElement("div", {
570
+ style: {
571
+ flex: 1
572
+ }
573
+ }, /*#__PURE__*/React.createElement("div", {
574
+ style: __assign(__assign({}, wrap_style), {
575
+ marginBottom: 4
576
+ })
577
+ }, /*#__PURE__*/React.createElement(OkButton, __assign({}, common_props, {
578
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
579
+ value: "ThunderboltOutlined"
580
+ }),
581
+ onClick: onDobuleClick
582
+ })), /*#__PURE__*/React.createElement(OkButton, __assign({}, common_props, {
583
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
584
+ value: "ReloadOutlined"
585
+ }),
586
+ onClick: fetchHeaderInfo
587
+ })), mchcEnv.is_single ? null : (/*#__PURE__*/React.createElement(OkButton, __assign({}, common_props, {
588
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
589
+ value: "RetweetOutlined"
590
+ }),
591
+ onClick: switch_page
592
+ })))), /*#__PURE__*/React.createElement("div", {
593
+ style: wrap_style
594
+ }, /*#__PURE__*/React.createElement(QuestionnaireButton, __assign({
595
+ onOk: function onOk(qs) {
596
+ return request.post('/api/send/questionnaire', {
597
+ type: 1,
598
+ id: pregnancyId,
599
+ questionnaire: qs
600
+ });
601
+ }
602
+ }, common_props, {
603
+ btn_text: "\u95EE\u5377",
604
+ shape: "round"
605
+ }))));
606
+ }
607
+ function render_select() {
608
+ if (!headerInfo) return EMPTY_PLACEHOLDER;
609
+ if (mchcEnv.isSp) return headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.outpatientNO;
610
+ return /*#__PURE__*/React.createElement(PatientSelect, {
611
+ size: "small",
612
+ style: {
613
+ width: 120
614
+ },
615
+ className: styles['outpatientNO'],
616
+ value: headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.outpatientNO,
617
+ onPatientSelect: function onPatientSelect(v, form) {
618
+ var new_url = setSearchParamsValue('id', v.id);
619
+ mchcEnv.reload(new_url);
620
+ }
621
+ });
622
+ }
623
+ return /*#__PURE__*/React.createElement(React.Fragment, null, renderInfo(), exemplaryCaseVisible && (/*#__PURE__*/React.createElement(DoctorEnd_ExemplaryCase, __assign({
624
+ onClose: function onClose() {
625
+ return setExemplaryCaseVisible(false);
626
+ },
627
+ isShowGdm: isShowGdm || true,
628
+ isShowBmi: isShowBmi || true,
629
+ isShowSlowGrowing: isShowSlowGrowing || true,
630
+ isShowTwins: isShowTwins || true,
631
+ isShowMultiplets: isShowMultiplets || true,
632
+ tabkey: tabkey
633
+ }, props))));
634
+ }
635
+ export { HeaderInfoInner as default };