@lm_fe/pages 0.1.201 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +0 -0
  2. package/dist/a_chunks/.root.js +1610 -222
  3. package/dist/a_chunks/.root10.js +494 -462
  4. package/dist/a_chunks/.root11.js +231 -159
  5. package/dist/a_chunks/.root12.js +245 -186
  6. package/dist/a_chunks/.root13.js +1898 -104
  7. package/dist/a_chunks/.root14.js +147 -716
  8. package/dist/a_chunks/.root15.js +27 -44
  9. package/dist/a_chunks/.root16.js +18 -168
  10. package/dist/a_chunks/.root17.js +20 -255
  11. package/dist/a_chunks/.root18.js +168 -385
  12. package/dist/a_chunks/.root19.js +119 -403
  13. package/dist/a_chunks/.root2.js +101 -73
  14. package/dist/a_chunks/.root20.js +74 -945
  15. package/dist/a_chunks/.root21.js +168 -202
  16. package/dist/a_chunks/.root22.js +677 -144
  17. package/dist/a_chunks/.root23.js +27 -956
  18. package/dist/a_chunks/.root24.js +126 -742
  19. package/dist/a_chunks/.root25.js +214 -265
  20. package/dist/a_chunks/.root26.js +391 -0
  21. package/dist/a_chunks/.root27.js +395 -0
  22. package/dist/a_chunks/.root28.js +948 -0
  23. package/dist/a_chunks/.root29.js +214 -0
  24. package/dist/a_chunks/.root3.js +56 -1044
  25. package/dist/a_chunks/.root30.js +130 -0
  26. package/dist/a_chunks/.root31.js +914 -0
  27. package/dist/a_chunks/.root32.js +860 -0
  28. package/dist/a_chunks/.root33.js +102 -0
  29. package/dist/a_chunks/.root34.js +157 -0
  30. package/dist/a_chunks/.root4.js +1004 -581
  31. package/dist/a_chunks/.root5.js +610 -1414
  32. package/dist/a_chunks/.root6.js +1399 -155
  33. package/dist/a_chunks/.root7.js +151 -123
  34. package/dist/a_chunks/.root8.js +82 -504
  35. package/dist/a_chunks/.root9.js +97 -60
  36. package/dist/a_chunks/data.js +572 -0
  37. package/dist/a_chunks/func.js +86 -0
  38. package/dist/a_chunks/index.js +942 -265
  39. package/dist/a_chunks/use_fetus.js +138 -0
  40. package/dist/a_chunks/utils.js +100 -0
  41. package/dist/a_chunks/utils2.js +36 -0
  42. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  43. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  44. package/dist/components/BF_Form/index.d.ts +4 -2
  45. package/dist/components/BF_Form/types.d.ts +7 -0
  46. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  47. package/dist/components/Base_List/Helper.d.ts +0 -5
  48. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  49. package/dist/components/Base_List/index.d.ts +2 -1
  50. package/dist/components/Base_List/types.d.ts +6 -3
  51. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  52. package/dist/components/Base_List/utils.d.ts +11 -0
  53. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  54. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  55. package/dist/components/Layout_Sider/index.d.ts +2 -2
  56. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  57. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  58. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  59. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  60. package/dist/components/Login/Inner.d.ts +0 -1
  61. package/dist/components/Login/index.d.ts +2 -1
  62. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  63. package/dist/components/MenuSearch/index.d.ts +2 -0
  64. package/dist/components/QuickDocButton/index.d.ts +5 -1
  65. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  66. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  67. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  68. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  69. package/dist/components/exception/index.d.ts +1 -0
  70. package/dist/components/index.d.ts +1 -0
  71. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  72. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  73. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  74. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  75. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  76. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  77. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  78. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  79. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  80. package/dist/curve/components/api.d.ts +17 -0
  81. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  82. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  83. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  84. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  85. package/dist/curve/data.d.ts +125 -0
  86. package/dist/curve/func.d.ts +12 -0
  87. package/dist/curve/func.test.d.ts +1 -0
  88. package/dist/curve/index.d.ts +7 -0
  89. package/dist/curve/intro-steps.d.ts +7 -0
  90. package/dist/curve/utils.d.ts +8 -0
  91. package/dist/form_config/conceiveMode.d.ts +2 -0
  92. package/dist/form_config/index.d.ts +4 -0
  93. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  94. package/dist/form_config/not_yes_input.d.ts +4 -0
  95. package/dist/form_config/pressure.d.ts +4 -0
  96. package/dist/hooks/index.d.ts +1 -0
  97. package/dist/index.d.ts +2 -0
  98. package/dist/index.js +8 -33
  99. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  100. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  101. package/dist/modals/entries/box/index.d.ts +6 -0
  102. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  103. package/dist/modals/entries/result_template/index.d.ts +24 -0
  104. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  105. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  106. package/dist/modals/entries/template_modal3/index.d.ts +5 -3
  107. package/dist/modals/entries/text_search/index.d.ts +1 -1
  108. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  109. package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
  110. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
  111. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
  112. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
  113. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
  114. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
  115. package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
  116. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
  117. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
  118. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
  119. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
  120. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  121. package/dist/modals/index.d.ts +2 -0
  122. package/dist/modals/meta.d.ts +2 -0
  123. package/dist/pages/doc_record/index.d.ts +1 -1
  124. package/dist/pages/index.d.ts +1 -0
  125. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  126. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  127. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  128. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  129. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  130. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  131. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  132. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  133. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  134. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  135. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  136. package/dist/pages/questionnaire/index.d.ts +3 -0
  137. package/dist/pages/questionnaire/types.d.ts +10 -0
  138. package/dist/utils/helper.d.ts +5 -0
  139. package/dist/utils/index.d.ts +2 -1
  140. package/package.json +34 -16
  141. package/dist/a_chunks/.root.js.map +0 -1
  142. package/dist/a_chunks/.root10.js.map +0 -1
  143. package/dist/a_chunks/.root11.js.map +0 -1
  144. package/dist/a_chunks/.root12.js.map +0 -1
  145. package/dist/a_chunks/.root13.js.map +0 -1
  146. package/dist/a_chunks/.root14.js.map +0 -1
  147. package/dist/a_chunks/.root15.js.map +0 -1
  148. package/dist/a_chunks/.root16.js.map +0 -1
  149. package/dist/a_chunks/.root17.js.map +0 -1
  150. package/dist/a_chunks/.root18.js.map +0 -1
  151. package/dist/a_chunks/.root19.js.map +0 -1
  152. package/dist/a_chunks/.root2.js.map +0 -1
  153. package/dist/a_chunks/.root20.js.map +0 -1
  154. package/dist/a_chunks/.root21.js.map +0 -1
  155. package/dist/a_chunks/.root22.js.map +0 -1
  156. package/dist/a_chunks/.root23.js.map +0 -1
  157. package/dist/a_chunks/.root24.js.map +0 -1
  158. package/dist/a_chunks/.root25.js.map +0 -1
  159. package/dist/a_chunks/.root3.js.map +0 -1
  160. package/dist/a_chunks/.root4.js.map +0 -1
  161. package/dist/a_chunks/.root5.js.map +0 -1
  162. package/dist/a_chunks/.root6.js.map +0 -1
  163. package/dist/a_chunks/.root7.js.map +0 -1
  164. package/dist/a_chunks/.root8.js.map +0 -1
  165. package/dist/a_chunks/.root9.js.map +0 -1
  166. package/dist/a_chunks/extends.js +0 -11
  167. package/dist/a_chunks/extends.js.map +0 -1
  168. package/dist/a_chunks/index.js.map +0 -1
  169. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  170. package/dist/index.js.map +0 -1
  171. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
  172. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +0 -12
  173. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
@@ -1,629 +1,1052 @@
1
- import { _ as _extends } from './extends.js';
2
- import 'antd/es/tooltip/style';
3
- import _Tooltip from 'antd/es/tooltip';
4
- import 'antd/es/button/style';
5
- import _Button from 'antd/es/button';
6
- import 'antd/es/message/style';
7
- import _message from 'antd/es/message';
8
- import 'lodash/set';
9
- import 'lodash/isEmpty';
10
- import _get from 'lodash/get';
11
- import 'lodash/forEach';
12
- import { s as styleInject, b as __assign, m as mchcModal__, _ as __awaiter, a as __generator, D as DoctorEnd_ExemplaryCase } from './index.js';
13
- import { ThunderboltOutlined, ReloadOutlined } from '@ant-design/icons';
14
- import { mchcEnv, mchcEvent, mchcLogger, mchcConfig } from '@lm_fe/env';
15
- import { SMchc_Common, SMchc_Doctor } from '@lm_fe/service';
16
- import { getSearchParamsValue, ROMAN_NUMERALS } from '@lm_fe/utils';
17
- import classnames from 'classnames';
18
- import 'dayjs';
19
- import React, { useState, useRef, useEffect } from 'react';
20
- import _keys from 'lodash/keys';
21
- import 'antd/es/row/style';
22
- import 'antd/es/row';
23
- import 'antd/es/col/style';
24
- import 'antd/es/col';
25
- import 'antd/es/list/style';
26
- import 'antd/es/list';
27
- import 'antd/es/spin/style';
28
- import 'antd/es/spin';
29
- import '@lm_fe/components_m';
30
- import '@lm_fe/components';
31
- import 'antd/es/form/style';
32
- import 'antd/es/form';
33
- import 'antd/es/result/style';
34
- import 'antd/es/result';
35
- import 'antd/es/menu/style';
36
- import 'antd/es/menu';
37
- import 'antd/es/space/style';
38
- import 'antd/es/space';
39
- import 'antd/es/divider/style';
40
- import 'antd/es/divider';
41
- var css_248z = ".index-module_levelBgc0__IsgwU {\n background-color: #fff;\n}\n.index-module_levelBgc1__Zostp {\n background-color: #cbf5d1;\n}\n.index-module_levelBgc2__hXzIV {\n background-color: #f7edd6;\n}\n.index-module_levelBgc3__iXLO3 {\n background-color: #fad9b1;\n}\n.index-module_levelBgc4__tk-PA {\n background-color: #fce5e5;\n}\n.index-module_levelBgc5__XERWb {\n background-color: #f0baba;\n}\n.index-module_header-info-wrapper__ELW9h {\n display: flex;\n height: 84px;\n padding: 8px 12px;\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 margin-right: 24px;\n color: #150f55;\n font-size: 16px;\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 margin-right: 12px;\n color: #5a6676;\n font-size: 14px;\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-infection__4NKKU {\n margin-right: 6px;\n}\n.index-module_header-info-wrapper__ELW9h .index-module_msg-bottom__I9xv- .index-module_msg-highrisk__MkLlm {\n width: 700px;\n overflow: hidden;\n color: #932c3f;\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";
42
- var styles = {
43
- "levelBgc0": "index-module_levelBgc0__IsgwU",
44
- "levelBgc1": "index-module_levelBgc1__Zostp",
45
- "levelBgc2": "index-module_levelBgc2__hXzIV",
46
- "levelBgc3": "index-module_levelBgc3__iXLO3",
47
- "levelBgc4": "index-module_levelBgc4__tk-PA",
48
- "levelBgc5": "index-module_levelBgc5__XERWb",
49
- "header-info-wrapper": "index-module_header-info-wrapper__ELW9h",
50
- "header-info-content": "index-module_header-info-content__UwPuT",
51
- "header-info-extra": "index-module_header-info-extra__qa69p",
52
- "new-flash-content": "index-module_new-flash-content__iGHRu",
53
- "icon-conetent": "index-module_icon-conetent__si7sz",
54
- "wrapper-msg": "index-module_wrapper-msg__u5NLW",
55
- "msg-top": "index-module_msg-top__5IKCc",
56
- "msg-item": "index-module_msg-item__HMn3X",
57
- "value": "index-module_value__KIHqO",
58
- "small-item": "index-module_small-item__lJoX7",
59
- "msg-bottom": "index-module_msg-bottom__I9xv-",
60
- "exemplary-case": "index-module_exemplary-case__v1xLs",
61
- "msg-infection": "index-module_msg-infection__4NKKU",
62
- "msg-highrisk": "index-module_msg-highrisk__MkLlm",
63
- "wrapper-btns": "index-module_wrapper-btns__86BTc",
64
- "highrisk": "index-module_highrisk__yWGGR",
65
- "level-btn": "index-module_level-btn__W6GsL",
66
- "twinkling": "index-module_twinkling__ezoY2",
67
- "infection-btn": "index-module_infection-btn__DVXBb",
68
- "signs": "index-module_signs__uvavL",
69
- "signs-btn": "index-module_signs-btn__Vg84-",
70
- "trial": "index-module_trial__Ce-Hy",
71
- "pahr": "index-module_pahr__AUR0Q",
72
- "preeclampsia-btn": "index-module_preeclampsia-btn__icRxH"
73
- };
1
+ import { s as styleInject, a as __assign, _ as __spreadArray, b as __awaiter, c as __generator, m as mchcModal__, d as __rest } from './index.js';
2
+ import { mchcConfig, mchcLogger, mchcEnv, mchcEvent } from '@lm_fe/env';
3
+ import { SMchc_FormDescriptions, ModelService } from '@lm_fe/service';
4
+ import { safeGetFromFuncOrData, safe_json_parse, safe_json_parse_arr, expect_array, Browser, downloadFile, formatDateTime, safe_async_call, sleep, cloneDeep } from '@lm_fe/utils';
5
+ import { Form, message, Space, Divider, Button } from 'antd';
6
+ import { get, isObject, isString, isNil, omit, isFunction } from 'lodash';
7
+ import React, { useState, useEffect, useRef } from 'react';
8
+ import { MyFormSection, OkButton, MyBaseListComponents, getDefaultRequiredRules, InterceptDisplayFC } from '@lm_fe/components_m';
9
+ import { useMyEffectSafe, MyIcon, Table_L } from '@lm_fe/components';
10
+ import { use_provoke } from '@lm_fe/provoke';
11
+ import 'classnames';
12
+ function MyBaseListRenderFormSection(_a) {
13
+ var config = _a.config,
14
+ disabled = _a.disabled,
15
+ form = _a.form;
16
+ return /*#__PURE__*/React.createElement(MyFormSection, {
17
+ size: 'small',
18
+ form: form,
19
+ defaultOptions: {},
20
+ inline: true,
21
+ formDescriptions: config.map(function (_) {
22
+ var _a, _b, _c;
23
+ if (!_) return _;
24
+ var props = (_b = (_a = _.inputProps) !== null && _a !== void 0 ? _a : _.props) !== null && _b !== void 0 ? _b : {};
25
+ props.allowClear = true;
26
+ if (['Select', 'select', 'MySelect', 'MS', 'MA', 'input', 'MI', 'MyInput'].includes(_.inputType) && !((_c = _.inputProps) === null || _c === void 0 ? void 0 : _c.width)) {
27
+ props.width = 128;
28
+ }
29
+ _.inputProps = props;
30
+ return _;
31
+ }),
32
+ disableAll: disabled
33
+ });
34
+ }
35
+ var css_248z = ".index-module_base-list__AUHXA {\n height: 100%;\n overflow-y: auto;\n}\n.index-module_ant-table-ordinal__c8C7I {\n padding-left: 0 !important;\n padding-right: 0 !important;\n}\n";
74
36
  styleInject(css_248z);
75
- var infectionNameMap = {
76
- 艾: 'HIV',
77
- 梅: '梅毒',
78
- 乙: '乙肝',
79
- 传染病: '传染病'
80
- };
81
- var infectionKeywordMap = {
82
- 艾: ['HIV', 'hiv', '艾滋'],
83
- 梅: ['梅毒'],
84
- 乙: ['乙肝', 'HBsAg阳性', '乙型肝炎', '乙型病毒性肝炎', '小三阳', '大三阳'],
85
- 传染病: ['结核病', '重症感染性肺炎', '特殊病毒感染', '丙型病毒性肝炎', '传染病', '病毒性肝炎', 'AIDS']
86
- };
87
- var infectionExcludeKeywordMap = {
88
- 艾: [],
89
- 梅: ['史'],
90
- 乙: [],
91
- 传染病: []
92
- };
93
- var infectionColorMap = {
94
- 艾: '#C736FF',
95
- 梅: '#8D36FF',
96
- 乙: '#6236FF',
97
- 传染病: '#9340BA'
98
- };
99
- var sorting = {
100
- 艾: 1,
101
- 梅: 2,
102
- 乙: 3,
103
- 传染病: -1
104
- };
105
- function getTheFuckingLabel(str, isMulti) {
106
- if (isMulti === void 0) {
107
- isMulti = false;
108
- }
109
- var keys = Object.keys(infectionKeywordMap);
110
- var type = keys.reduce(function (res, key) {
111
- if (res) return res;
112
- var value = infectionKeywordMap[key];
113
- var exlucdeValue = infectionExcludeKeywordMap[key];
114
- var isTarget = value.some(function (v) {
115
- return str.includes(v) && !exlucdeValue.includes(v);
116
- });
117
- return isTarget ? key : null;
118
- }, null);
119
- if (!type) return null;
120
- var label = isMulti ? type : infectionNameMap[type];
121
- var color = infectionColorMap[type];
122
- var key = sorting[type];
123
- return {
124
- label: label,
125
- type: type,
126
- color: color,
127
- key: key,
128
- allType: []
37
+ function formatProps(props) {
38
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _w, _x, _y, _z, _0, _1;
39
+ var _props = __assign({}, props);
40
+ _props.handleBeforePopup = (_c = (_a = _props.handleBeforePopup) !== null && _a !== void 0 ? _a : (_b = _props.bf_conf) === null || _b === void 0 ? void 0 : _b.handleBeforePopup) !== null && _c !== void 0 ? _c : function (values) {
41
+ return values;
129
42
  };
43
+ _props.beforeSubmit = (_f = (_d = _props.beforeSubmit) !== null && _d !== void 0 ? _d : (_e = _props.bf_conf) === null || _e === void 0 ? void 0 : _e.beforeSubmit) !== null && _f !== void 0 ? _f : function (values) {
44
+ return values;
45
+ };
46
+ _props.name = (_g = _props.name) !== null && _g !== void 0 ? _g : (_h = _props.bf_conf) === null || _h === void 0 ? void 0 : _h.name;
47
+ _props.searchParams = safeGetFromFuncOrData((_j = _props.searchParams) !== null && _j !== void 0 ? _j : (_k = _props.bf_conf) === null || _k === void 0 ? void 0 : _k.searchParams);
48
+ _props.initialSearchValue = safeGetFromFuncOrData((_l = _props.initialSearchValue) !== null && _l !== void 0 ? _l : (_m = _props.bf_conf) === null || _m === void 0 ? void 0 : _m.initialSearchValue);
49
+ _props.searchConfig = safeGetFromFuncOrData((_o = _props.searchConfig) !== null && _o !== void 0 ? _o : (_p = _props.bf_conf) === null || _p === void 0 ? void 0 : _p.searchConfig);
50
+ _props.tableColumns = (_q = _props.tableColumns) !== null && _q !== void 0 ? _q : (_r = _props.bf_conf) === null || _r === void 0 ? void 0 : _r.tableColumns;
51
+ _props.showAction = (_u = (_s = _props.showAction) !== null && _s !== void 0 ? _s : (_t = _props.bf_conf) === null || _t === void 0 ? void 0 : _t.showAction) !== null && _u !== void 0 ? _u : true;
52
+ _props.showAdd = (_y = (_w = _props.showAdd) !== null && _w !== void 0 ? _w : (_x = _props.bf_conf) === null || _x === void 0 ? void 0 : _x.showAdd) !== null && _y !== void 0 ? _y : true;
53
+ _props.genColumns = (_1 = (_z = _props.genColumns) !== null && _z !== void 0 ? _z : (_0 = _props.bf_conf) === null || _0 === void 0 ? void 0 : _0.genColumns) !== null && _1 !== void 0 ? _1 : undefined;
54
+ return _props;
130
55
  }
131
- function handleFuckinginfectionNoteLabel(infectionNote) {
132
- if (!infectionNote) return [];
133
- var arr = infectionNote.split(',').filter(function (_) {
134
- return _ && _ !== '无';
135
- });
136
- var len = arr.length;
137
- var result = arr.map(function (str) {
138
- return getTheFuckingLabel(str, len > 1);
139
- }).filter(function (_) {
56
+ function tranformQueryData(values, searchConfig, isFuck) {
57
+ if (searchConfig === void 0) {
58
+ searchConfig = [];
59
+ }
60
+ if (isFuck === void 0) {
61
+ isFuck = false;
62
+ }
63
+ var newValues = __assign({}, values);
64
+ var kvArr = searchConfig.filter(function (_) {
140
65
  return _;
66
+ }).map(function (conf) {
67
+ var k = SMchc_FormDescriptions.get_form_item_name_str(conf);
68
+ var v = get(newValues, k);
69
+ return [k, v, conf];
141
70
  });
142
- var hash = {};
143
- result = result.reduce(function (item, next) {
144
- if (!hash[next.type]) {
145
- hash[next.type] = true;
146
- item.push(next);
71
+ return kvArr.reduce(function (sum, _a) {
72
+ var _b, _c;
73
+ var k = _a[0],
74
+ v = _a[1],
75
+ conf = _a[2];
76
+ if (isFuck) return __assign(__assign({}, sum), (_b = {}, _b[k] = v, _b));
77
+ var res = conf ? calcKeyByType(k, v, conf) : (_c = {}, _c[k] = v, _c);
78
+ return __assign(__assign({}, sum), res);
79
+ }, {});
80
+ }
81
+ function calcKeyByType(k, v, config) {
82
+ var _a, _b, _c, _d, _e, _f, _g;
83
+ var _h, _j, _k, _l, _m, _o;
84
+ var input_type = (_h = config.inputType) !== null && _h !== void 0 ? _h : 'input';
85
+ var filterType = (_l = (_k = (_j = config.filterType) === null || _j === void 0 ? void 0 : _j.split) === null || _k === void 0 ? void 0 : _k.call(_j, ',')) !== null && _l !== void 0 ? _l : [];
86
+ var type = ((_m = config.inputProps) === null || _m === void 0 ? void 0 : _m.type) || ((_o = config.inputProps) === null || _o === void 0 ? void 0 : _o.mode);
87
+ var is_multiple = type === 'multiple' || type === 'tags';
88
+ var f1 = filterType[0];
89
+ var f2 = filterType[1];
90
+ if (['input', 'Input', 'MyInput', 'address', 'MyAddress', 'MA'].includes(input_type)) {
91
+ return _a = {}, _a["".concat(k, ".").concat(f1 || 'contains')] = v, _a;
92
+ }
93
+ if (['input_number', 'InputNumber', 'DatePicker', 'MSW', 'MySwitch', 'switch'].includes(input_type)) {
94
+ return _b = {}, _b["".concat(k, ".").concat(f1 || 'equals')] = v, _b;
95
+ }
96
+ if (['select', 'Select', 'MySelect', 'MS'].includes(input_type)) {
97
+ var obj = safe_json_parse(v, v);
98
+ if (Array.isArray(obj)) {
99
+ var arr = obj.map(function (_) {
100
+ return isObject(_) ? _.value : _;
101
+ });
102
+ var _v = arr.length > 1 ? arr.join(',') : arr[0];
103
+ var has_comma = isString(_v) && _v.includes(',');
104
+ var _df = is_multiple || has_comma ? 'in' : 'equals';
105
+ return _c = {}, _c["".concat(k, ".").concat(f1 || _df)] = _v, _c;
106
+ } else {
107
+ var has_comma = isString(v) && v.includes(',');
108
+ var _df = is_multiple || has_comma ? 'in' : 'equals';
109
+ return _d = {}, _d["".concat(k, ".").concat(f1 || _df)] = v, _d;
147
110
  }
148
- return item;
149
- }, []);
150
- result = result.map(function (_) {
151
- return __assign(__assign({}, _), {
152
- allType: _keys(hash)
153
- });
154
- });
155
- var 传染病item = result.find(function (item) {
156
- return item.type === '传染病';
157
- });
158
- if (传染病item) {
159
- result = [传染病item];
160
- } else {
161
- result.sort(function (a, b) {
162
- return a.key - b.key;
163
- });
164
111
  }
165
- return result;
112
+ if (['RangePicker', 'rangeDate', 'MyRangeDate', 'rangeDateTime', 'MyRangeDateTime', 'ArrayInput'].includes(input_type)) {
113
+ var value = safe_json_parse_arr(v);
114
+ return _e = {}, _e["".concat(k, ".").concat(f1 || 'greaterOrEqualThan')] = value[0], _e["".concat(k, ".").concat(f2 || 'lessOrEqualThan')] = value[1], _e;
115
+ }
116
+ return f1 ? (_f = {}, _f["".concat(k, ".").concat(f1)] = v, _f) : (_g = {}, _g[k] = v, _g);
166
117
  }
167
- function hasKeyword(arr, val) {
168
- if (!val) return false;
169
- return arr.some(function (_) {
170
- return (_ === null || _ === void 0 ? void 0 : _.includes(val)) || (val === null || val === void 0 ? void 0 : val.includes(_));
171
- });
118
+ function get_dataIndex(record) {
119
+ var _a, _b;
120
+ var _dataIndex = (_b = (_a = record === null || record === void 0 ? void 0 : record.dataIndex) !== null && _a !== void 0 ? _a : record === null || record === void 0 ? void 0 : record.name) !== null && _b !== void 0 ? _b : record === null || record === void 0 ? void 0 : record.key;
121
+ if (isString(_dataIndex) && _dataIndex.includes('.')) {
122
+ return _dataIndex.split('.');
123
+ }
124
+ return _dataIndex;
172
125
  }
173
- function use专案(headerInfo) {
174
- var is_show_all = false;
175
- var multipletsArr = ['三胎妊娠', '四胎妊娠', '五胎妊娠', '六胎妊娠', '多胎妊娠'];
176
- var twinsArr = ['双胎妊娠'];
177
- var _a = useState(false),
178
- isShowGdm = _a[0];
179
- _a[1];
180
- var _b = useState(false),
181
- isShowBmi = _b[0];
182
- _b[1];
183
- var _c = useState(false),
184
- isShowSlowGrowing = _c[0];
185
- _c[1];
186
- var isShowTwins = hasKeyword(twinsArr, headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.pregnancyCaseLable);
187
- var isShowMultiplets = hasKeyword(multipletsArr, headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.pregnancyCaseLable);
188
- var is_show_梅毒 = mchcEnv["in"](['华医']);
189
- var is_show_乙肝 = mchcEnv["in"](['华医']);
190
- return {
191
- isShowGdm: isShowGdm || is_show_all,
192
- isShowBmi: isShowBmi || is_show_all,
193
- isShowSlowGrowing: isShowSlowGrowing || is_show_all,
194
- isShowTwins: isShowTwins || is_show_all,
195
- isShowMultiplets: isShowMultiplets || is_show_all,
196
- is_show_梅毒: is_show_梅毒 || is_show_all,
197
- is_show_乙肝: is_show_乙肝 || is_show_all
198
- };
126
+ function get_title(record) {
127
+ var _a, _b;
128
+ var _title = (_b = (_a = record === null || record === void 0 ? void 0 : record.title) !== null && _a !== void 0 ? _a : record === null || record === void 0 ? void 0 : record.label) !== null && _b !== void 0 ? _b : record === null || record === void 0 ? void 0 : record.name;
129
+ return _title;
199
130
  }
200
- function HeaderInfoInner(props) {
201
- var saveHeaderInfo = props.saveHeaderInfo,
202
- isNurse = props.isNurse,
203
- pregnancyData = props.pregnancyData;
204
- props.getPregnancyData;
205
- var _id = props.id;
206
- props.basicInfo;
207
- var onDobuleClick = props.onDobuleClick;
208
- var pregnancyId = _id !== null && _id !== void 0 ? _id : getSearchParamsValue('id');
209
- var _a = useState(),
210
- headerInfo = _a[0],
211
- setHeaderInfo = _a[1];
212
- var _b = use专案(headerInfo),
213
- isShowBmi = _b.isShowBmi,
214
- isShowGdm = _b.isShowGdm,
215
- isShowMultiplets = _b.isShowMultiplets,
216
- isShowSlowGrowing = _b.isShowSlowGrowing,
217
- isShowTwins = _b.isShowTwins,
218
- is_show_乙肝 = _b.is_show_乙肝,
219
- is_show_梅毒 = _b.is_show_梅毒;
220
- var _c = useState(true),
221
- isTwinkling = _c[0],
222
- setIsTwinkling = _c[1];
223
- var _d = useState(''),
224
- contagionColor = _d[0],
225
- setContagionColor = _d[1];
226
- var _e = useState(false),
227
- exemplaryCaseVisible = _e[0],
228
- setExemplaryCaseVisible = _e[1];
229
- var _f = useState('1'),
230
- tabkey = _f[0],
231
- setTabkey = _f[1];
232
- var _g = useState([]),
233
- highriskGradeConfig = _g[0],
234
- setHighriskGradeConfig = _g[1];
235
- var highriskLable = (headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.highriskLable) || ROMAN_NUMERALS[1];
236
- var infectionNoteLabels = handleFuckinginfectionNoteLabel(headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.infectionNote);
237
- var headerInfoCache = useRef(headerInfo);
238
- headerInfoCache.current = headerInfo;
239
- var randomIds = useRef(+new Date());
131
+ function use_my_baselist(props) {
132
+ var tableColumns = props.tableColumns;
133
+ var _a = useState([]),
134
+ table_columns = _a[0],
135
+ set_table_columns = _a[1];
240
136
  useEffect(function () {
241
- SMchc_Common.getHighriskContagionConfig().then(function (r) {
242
- setContagionColor(r.color);
243
- });
244
- SMchc_Common.getHighriskGradeConfig().then(function (r) {
245
- setHighriskGradeConfig(r);
137
+ SMchc_FormDescriptions.extract_form_config(tableColumns).then(function (conf) {
138
+ set_table_columns(expect_array(conf).filter(function (_) {
139
+ return !isNil(_);
140
+ }));
246
141
  });
247
- }, []);
248
- useEffect(function () {
249
- fetchHeaderInfo();
250
- }, [pregnancyId]);
142
+ return function () {};
143
+ }, [tableColumns]);
144
+ return {
145
+ table_columns: table_columns
146
+ };
147
+ }
148
+ var browserClient = Browser.client || {};
149
+ function _MyBaseList(_props) {
150
+ var _a, _b, _c;
151
+ var sys_theme = use_provoke(function (s) {
152
+ return s.sys_theme;
153
+ });
154
+ var props = formatProps(_props);
155
+ var dbg_dataSource = props.dbg_dataSource,
156
+ _d = props.needPagination,
157
+ needPagination = _d === void 0 ? true : _d,
158
+ _e = props.showAdd,
159
+ showAdd = _e === void 0 ? true : _e,
160
+ _f = props.showAction,
161
+ showAction = _f === void 0 ? true : _f,
162
+ modalFormConfig = props.modalFormConfig,
163
+ useListSourceCount = props.useListSourceCount,
164
+ fuckPage = props.fuckPage,
165
+ ignore_usr = props.ignore_usr,
166
+ ignore_env = props.ignore_env,
167
+ get_fuck_page = props.get_fuck_page,
168
+ ModalForm = props.ModalForm,
169
+ _g = props.baseTitle,
170
+ baseTitle = _g === void 0 ? '' : _g,
171
+ rowKey = props.rowKey,
172
+ showExport = props.showExport,
173
+ showPrint = props.showPrint,
174
+ showCopy = props.showCopy,
175
+ otherTableProps = props.otherTableProps,
176
+ needEditInTable = props.needEditInTable,
177
+ needChecked = props.needChecked,
178
+ requestBeforeEdit = props.requestBeforeEdit,
179
+ addText = props.addText,
180
+ editText = props.editText,
181
+ name = props.name,
182
+ apiPrefix = props.apiPrefix,
183
+ ActionAddonBefore = props.ActionAddonBefore,
184
+ RenderAction = props.RenderAction,
185
+ RenderBtns = props.RenderBtns,
186
+ RenderSearchBtns = props.RenderSearchBtns,
187
+ _h = props.searchConfig,
188
+ searchConfig = _h === void 0 ? [] : _h,
189
+ _j = props.searchParams,
190
+ searchParams = _j === void 0 ? {} : _j,
191
+ _k = props.initialSearchValue,
192
+ initialSearchValue = _k === void 0 ? {} : _k,
193
+ _l = props.showRowDelBtn,
194
+ showRowDelBtn = _l === void 0 ? true : _l,
195
+ _m = props.showRowEditBtn,
196
+ showRowEditBtn = _m === void 0 ? true : _m,
197
+ _o = props.showRowPrintBtn,
198
+ showRowPrintBtn = _o === void 0 ? false : _o,
199
+ customModelService = props.customModelService,
200
+ genColumns = props.genColumns,
201
+ onAdd = props.onAdd,
202
+ onExport = props.onExport,
203
+ onPrint = props.onPrint,
204
+ beforeSearch = props.beforeSearch,
205
+ handleClickRow = props.handleClickRow,
206
+ _p = props.handleDoubleClickRow,
207
+ handleDoubleClickRow = _p === void 0 ? function (item) {
208
+ return handleEdit(item);
209
+ } : _p,
210
+ onModalOpen = props.onModalOpen,
211
+ _q = props.printDefaultConfig,
212
+ printDefaultConfig = _q === void 0 ? {} : _q,
213
+ _r = props.beforeSubmit,
214
+ beforeSubmit = _r === void 0 ? function (v) {
215
+ return v;
216
+ } : _r,
217
+ handleBeforePopup = props.handleBeforePopup,
218
+ effect_ctx = props.effect_ctx,
219
+ action_col = props.action_col;
220
+ var staticDefaultQuery = {
221
+ page: 0,
222
+ size: needPagination ? mchcConfig.get('列表一页显示条数') || 14 : 999,
223
+ sort: 'id,desc',
224
+ 'deleteFlag.equals': 0
225
+ };
226
+ var myBaseListService = useRef();
227
+ var _searchForm = Form.useForm()[0];
228
+ var children = props.children;
229
+ var queryRef = useRef(null);
230
+ var wrapRef = useRef(null);
231
+ var defaultQueryValue = Object.assign({}, staticDefaultQuery, searchParams);
232
+ var defaultQuery = useRef(defaultQueryValue);
233
+ var showSearch = !!searchConfig.length;
234
+ var table_columns = use_my_baselist(props).table_columns;
235
+ var actCellWidth = (+showRowDelBtn + +showRowEditBtn + +showRowPrintBtn) * 60;
236
+ if (ActionAddonBefore) {
237
+ actCellWidth += 70;
238
+ }
239
+ if (editText) {
240
+ actCellWidth += editText.length * 14;
241
+ }
242
+ var searchForm = (_a = props.searchForm) !== null && _a !== void 0 ? _a : _searchForm;
251
243
  useEffect(function () {
252
- return mchcEvent.on_rm('ws_event', function (e) {
253
- if (e.type !== 'obis-doctor' || e.event !== 'message' || !e.data) return;
254
- if (e.data.type === 'RefreshPregnancyHeaderInfo') {
255
- mchcLogger.log('event !!', {
256
- e: e
257
- });
258
- fetchHeaderInfo();
259
- }
244
+ myBaseListService.current = customModelService || new ModelService({
245
+ n: name,
246
+ useListSourceCount: useListSourceCount,
247
+ needTransferParams: false,
248
+ apiPrefix: apiPrefix,
249
+ fuckPage: fuckPage,
250
+ get_fuck_page: get_fuck_page,
251
+ ignore_env: ignore_env,
252
+ ignore_usr: ignore_usr
260
253
  });
261
- }, []);
254
+ }, [name, customModelService]);
255
+ var _s = useState(0),
256
+ total = _s[0],
257
+ setTotal = _s[1];
258
+ var _t = useState([]),
259
+ dataSource = _t[0],
260
+ setDataSource = _t[1];
261
+ var _u = useState(false),
262
+ visible = _u[0],
263
+ setVisible = _u[1];
264
+ var _v = useState(false),
265
+ editable = _v[0],
266
+ setEditable = _v[1];
267
+ var _w = useState(),
268
+ ___id = _w[0],
269
+ set___Id = _w[1];
270
+ var _x = useState(),
271
+ extraModalData = _x[0],
272
+ setExtraModalData = _x[1];
273
+ var _y = useState(0),
274
+ editKey = _y[0],
275
+ setEditKey = _y[1];
276
+ var _z = useState(false),
277
+ loading = _z[0],
278
+ setLoading = _z[1];
279
+ var _0 = useState(false),
280
+ longSearchForm = _0[0],
281
+ setLongSearchForm = _0[1];
282
+ var _1 = useState(500),
283
+ tableHeight = _1[0],
284
+ setTableHeight = _1[1];
285
+ var _2 = useState([]),
286
+ checkRows = _2[0],
287
+ setCheckRows = _2[1];
288
+ var table_form = Form.useForm()[0];
289
+ var editKeyRef = useRef(0);
290
+ var formWrapper = useRef(null);
291
+ var propsCache = useRef(props);
292
+ propsCache.current = props;
293
+ var inited = useRef(false);
294
+ var _3 = useState(defaultQueryValue.size),
295
+ __pageSize = _3[0],
296
+ set__pageSize = _3[1];
297
+ var _4 = useState(1),
298
+ __current = _4[0],
299
+ set__current = _4[1];
300
+ function setPageSize(n) {
301
+ set__pageSize(n);
302
+ defaultQuery.current.size = n;
303
+ }
304
+ function setCurrent(n) {
305
+ set__current(n);
306
+ defaultQuery.current.page = n - 1;
307
+ }
308
+ function safe_set_edit_key(id) {
309
+ setEditKey(id);
310
+ editKeyRef.current = id;
311
+ }
262
312
  useEffect(function () {
263
- var rm = mchcEvent.on_rm('outpatient', function (e) {
264
- if (e.type === '弹窗' && !isNurse) {
265
- switch (e.modal_name) {
266
- case '瘢痕子宫阴道试产表':
267
- open瘢痕子宫阴道试产表();
268
- break;
269
- case '子痫前期风险评估表':
270
- open子痫前期风险评估表();
271
- break;
272
- case '深静脉血栓高危因素孕期用药筛查表':
273
- open深静脉血栓高危因素孕期用药筛查表();
274
- break;
275
- case '梅毒管理':
276
- open梅毒管理();
277
- break;
278
- }
313
+ setTimeout(function () {
314
+ var _a, _b, _c, _d, _e, _f, _g;
315
+ var h = document.body.clientHeight;
316
+ var formHeight = (_b = (_a = formWrapper.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0;
317
+ var queryHeight = (_d = (_c = queryRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight) !== null && _d !== void 0 ? _d : 0;
318
+ var tableHeaderHeight = (_g = (_f = (_e = wrapRef.current) === null || _e === void 0 ? void 0 : _e.querySelector('.ant-table-header')) === null || _f === void 0 ? void 0 : _f.clientHeight) !== null && _g !== void 0 ? _g : 0;
319
+ setTableHeight(h - queryHeight - tableHeaderHeight - 118 - 60);
320
+ if (formHeight > 40) {
321
+ setLongSearchForm(true);
279
322
  }
280
- if (e.type === '刷新头部') {
281
- fetchHeaderInfo();
323
+ if (dbg_dataSource) {
324
+ setDataSource(dbg_dataSource);
325
+ } else {
326
+ search();
282
327
  }
283
- });
284
- return rm;
328
+ inited.current = true;
329
+ }, 600);
330
+ return function () {};
331
+ }, [dbg_dataSource]);
332
+ useEffect(function () {
333
+ setTimeout(function () {
334
+ var _a, _b, _c, _d, _e, _f, _g;
335
+ var h = browserClient.clientHeight;
336
+ var formHeight = (_b = (_a = formWrapper.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0;
337
+ var queryHeight = (_d = (_c = queryRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight) !== null && _d !== void 0 ? _d : 0;
338
+ var tableHeaderHeight = (_g = (_f = (_e = wrapRef.current) === null || _e === void 0 ? void 0 : _e.querySelector('.ant-table-header')) === null || _f === void 0 ? void 0 : _f.clientHeight) !== null && _g !== void 0 ? _g : 0;
339
+ mchcLogger.log('formHeight', {
340
+ queryHeight: queryHeight,
341
+ formHeight: formHeight,
342
+ h: h,
343
+ tableHeaderHeight: tableHeaderHeight
344
+ });
345
+ }, 1000);
346
+ return function () {};
285
347
  }, []);
286
- function open瘢痕子宫阴道试产表() {
287
- var _a;
288
- mchcModal__.openOne(randomIds.current + 1, '瘢痕子宫阴道试产表', {
289
- modal_data: {
290
- pregnancyId: (_a = headerInfoCache.current) === null || _a === void 0 ? void 0 : _a.id
291
- },
292
- onClose: fetchHeaderInfo
293
- });
348
+ if (effect_ctx) {
349
+ useMyEffectSafe(effect_ctx)(function () {
350
+ if (inited.current) {
351
+ message.info('刷新成功!');
352
+ handleSearch();
353
+ }
354
+ }, []);
294
355
  }
295
- function open子痫前期风险评估表() {
296
- mchcModal__.openOne(randomIds.current + 2, '子痫前期风险评估表', {
297
- modal_data: {
298
- headerInfo: headerInfoCache.current
299
- },
300
- onClose: fetchHeaderInfo
356
+ var actionCtx = {
357
+ handleSearch: handleSearch,
358
+ getSearchParams: getSearchParams,
359
+ getCheckRows: function getCheckRows() {
360
+ return checkRows;
361
+ }
362
+ };
363
+ function create_or_update(submitData) {
364
+ return __awaiter(this, void 0, void 0, function () {
365
+ var service, isUpdate, text, res;
366
+ var _a, _b, _c, _d;
367
+ return __generator(this, function (_e) {
368
+ switch (_e.label) {
369
+ case 0:
370
+ if (isFunction(props.create_or_update)) {
371
+ return [2, props.create_or_update(submitData)];
372
+ }
373
+ service = myBaseListService.current;
374
+ if (!service) return [2];
375
+ isUpdate = !!(submitData === null || submitData === void 0 ? void 0 : submitData.id);
376
+ text = isUpdate ? '更新' : '新增';
377
+ if (!(submitData === null || submitData === void 0 ? void 0 : submitData.id)) return [3, 2];
378
+ return [4, (_b = (_a = myBaseListService.current) === null || _a === void 0 ? void 0 : _a.put) === null || _b === void 0 ? void 0 : _b.call(_a, submitData)];
379
+ case 1:
380
+ res = _e.sent();
381
+ return [3, 4];
382
+ case 2:
383
+ return [4, (_d = (_c = myBaseListService.current) === null || _c === void 0 ? void 0 : _c.post) === null || _d === void 0 ? void 0 : _d.call(_c, submitData)];
384
+ case 3:
385
+ res = _e.sent();
386
+ _e.label = 4;
387
+ case 4:
388
+ message.info(text + '成功!');
389
+ safe_set_edit_key(0);
390
+ set___Id(undefined);
391
+ handleSearch();
392
+ return [2, res];
393
+ }
394
+ });
301
395
  });
302
396
  }
303
- function open深静脉血栓高危因素孕期用药筛查表() {
304
- var _a;
305
- mchcModal__.openOne(randomIds.current + 3, '深静脉血栓高危因素孕期用药筛查表', {
306
- modal_data: {
307
- pregnancyId: (_a = headerInfoCache.current) === null || _a === void 0 ? void 0 : _a.id
308
- },
309
- onClose: fetchHeaderInfo
397
+ function _onModalOpen(rowData) {
398
+ var _this = this;
399
+ rowData === null || rowData === void 0 ? void 0 : rowData.id;
400
+ if (onModalOpen) return onModalOpen({
401
+ rowData: rowData,
402
+ handleSearch: handleSearch,
403
+ create_or_update: create_or_update,
404
+ table_columns: table_columns
310
405
  });
406
+ mchcModal__.open('modal_form', __assign(__assign({}, modalFormConfig), {
407
+ modal_data: __assign(__assign({
408
+ onValuesChange: function onValuesChange(val, allval, form) {
409
+ return __awaiter(_this, void 0, void 0, function () {
410
+ return __generator(this, function (_a) {
411
+ return [2];
412
+ });
413
+ });
414
+ }
415
+ }, modalFormConfig === null || modalFormConfig === void 0 ? void 0 : modalFormConfig.modal_data), {
416
+ formDescriptions: cal_columns,
417
+ onSubmit: function onSubmit(new_data, old_data) {
418
+ return __awaiter(this, void 0, void 0, function () {
419
+ var _data, submitData;
420
+ return __generator(this, function (_a) {
421
+ switch (_a.label) {
422
+ case 0:
423
+ _data = Object.assign({}, rowData, new_data);
424
+ return [4, safe_async_call(beforeSubmit, _data, old_data)];
425
+ case 1:
426
+ submitData = _a.sent();
427
+ mchcLogger.log('submitData', submitData);
428
+ if (!submitData) return [2];
429
+ return [2, create_or_update(submitData)];
430
+ }
431
+ });
432
+ });
433
+ },
434
+ getInitialData: function getInitialData() {
435
+ return __awaiter(this, void 0, void 0, function () {
436
+ var fn, _data, res;
437
+ var _a;
438
+ return __generator(this, function (_b) {
439
+ switch (_b.label) {
440
+ case 0:
441
+ fn = handleBeforePopup;
442
+ _data = cloneDeep(rowData !== null && rowData !== void 0 ? rowData : {});
443
+ if (!((rowData === null || rowData === void 0 ? void 0 : rowData.id) && requestBeforeEdit)) return [3, 2];
444
+ return [4, (_a = myBaseListService.current) === null || _a === void 0 ? void 0 : _a.getOne(rowData === null || rowData === void 0 ? void 0 : rowData.id)];
445
+ case 1:
446
+ res = _b.sent();
447
+ if (res) _data = res;
448
+ _b.label = 2;
449
+ case 2:
450
+ return [2, fn ? fn(_data) : _data];
451
+ }
452
+ });
453
+ });
454
+ }
455
+ })
456
+ }));
311
457
  }
312
- function open梅毒管理() {
313
- mchcModal__.openOne(randomIds.current + 4, '梅毒管理', {
314
- modal_data: {
315
- headerInfo: headerInfoCache.current
316
- },
317
- onClose: fetchHeaderInfo
458
+ var render_props = {
459
+ createOrUpdate: create_or_update,
460
+ handleView: handleView,
461
+ handleDelete: handleDelete,
462
+ handleEdit: handleEdit,
463
+ handleSearch: handleSearch,
464
+ setExtraModalData: setExtraModalData,
465
+ setEditable: setEditable,
466
+ setVisible: setVisible,
467
+ setId: set___Id,
468
+ create_or_update: create_or_update
469
+ };
470
+ var actionCol = (_b = action_col === null || action_col === void 0 ? void 0 : action_col(render_props)) !== null && _b !== void 0 ? _b : {
471
+ title: __DEV__ ? actCellWidth + '' : '操作',
472
+ dataIndex: '__operation',
473
+ fixed: 'right',
474
+ align: 'center',
475
+ isActive: 0,
476
+ width: actCellWidth,
477
+ render: function render(value, rowData, index) {
478
+ var editable = isEditing(rowData);
479
+ if (needEditInTable && editable) {
480
+ return /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(OkButton, {
481
+ size: "small",
482
+ onClick: function onClick() {
483
+ return handleItemSave();
484
+ }
485
+ }, "\u4FDD\u5B58"), /*#__PURE__*/React.createElement(OkButton, {
486
+ size: "small",
487
+ onClick: function onClick() {
488
+ return handleItemCancel();
489
+ }
490
+ }, "\u53D6\u6D88"));
491
+ }
492
+ if (RenderAction) {
493
+ return /*#__PURE__*/React.createElement(RenderAction, __assign({
494
+ rowData: rowData
495
+ }, render_props));
496
+ }
497
+ return /*#__PURE__*/React.createElement(Space, {
498
+ size: 'small'
499
+ }, ActionAddonBefore && /*#__PURE__*/React.createElement(ActionAddonBefore, __assign({
500
+ rowData: rowData
501
+ }, render_props)), showRowEditBtn ? /*#__PURE__*/React.createElement(OkButton, {
502
+ title: '编辑/查看',
503
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
504
+ value: 'EditOutlined'
505
+ }),
506
+ size: "small",
507
+ onClick: function onClick(e) {
508
+ return handleEdit(rowData);
509
+ },
510
+ btn_text: editText
511
+ }) : null, showCopy ? /*#__PURE__*/React.createElement(OkButton, {
512
+ title: "\u590D\u5236",
513
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
514
+ value: 'CopyOutlined'
515
+ }),
516
+ size: "small",
517
+ onClick: function onClick(e) {
518
+ return handleEdit(omit(rowData, ['id']));
519
+ }
520
+ }) : null, showRowPrintBtn ? /*#__PURE__*/React.createElement(OkButton, {
521
+ title: "\u6253\u5370",
522
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
523
+ value: 'PrinterOutlined'
524
+ }),
525
+ size: "small",
526
+ onClick: function onClick(e) {
527
+ return handleRowPrint(rowData);
528
+ }
529
+ }) : null, showRowDelBtn ? /*#__PURE__*/React.createElement(OkButton, {
530
+ title: "\u5220\u9664",
531
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
532
+ value: 'DeleteOutlined'
533
+ }),
534
+ danger: true,
535
+ type: "primary",
536
+ size: "small",
537
+ onClick: function onClick(e) {
538
+ return handleDelete(rowData);
539
+ }
540
+ }) : null);
541
+ }
542
+ };
543
+ var _columns = !table_columns.some(function (_) {
544
+ return _.title === '操作';
545
+ }) && showAction ? __spreadArray(__spreadArray([], table_columns, true), [actionCol], false) : table_columns;
546
+ var cal_columns = (_c = genColumns === null || genColumns === void 0 ? void 0 : genColumns({
547
+ handleEdit: handleEdit,
548
+ handleDelete: handleDelete,
549
+ handleSearch: handleSearch,
550
+ handleItemCancel: handleItemCancel,
551
+ handleItemSave: handleItemSave,
552
+ editKey: editKey,
553
+ tableColumns: table_columns,
554
+ actionCol: actionCol,
555
+ getSearchParams: getSearchParams
556
+ })) !== null && _c !== void 0 ? _c : _columns;
557
+ var isEditing = function isEditing(rowData) {
558
+ return (rowData.editKey || rowData.id) === editKey;
559
+ };
560
+ function handleDelete(rowData) {
561
+ return __awaiter(this, void 0, void 0, function () {
562
+ var isOk;
563
+ var _a;
564
+ return __generator(this, function (_b) {
565
+ switch (_b.label) {
566
+ case 0:
567
+ isOk = confirm('确认是否删除?');
568
+ if (!isOk) return [2];
569
+ return [4, (_a = myBaseListService.current) === null || _a === void 0 ? void 0 : _a.del(rowData.id)];
570
+ case 1:
571
+ _b.sent();
572
+ mchcEnv.success("\u5220\u9664".concat(baseTitle, "\u6210\u529F"));
573
+ handleSearch();
574
+ return [2];
575
+ }
576
+ });
318
577
  });
319
578
  }
320
- function open乙肝管理() {
321
- mchcModal__.openOne(randomIds.current + 5, '乙肝管理', {
322
- modal_data: {
323
- headerInfo: headerInfoCache.current
324
- },
325
- onClose: fetchHeaderInfo
579
+ function handleRowPrint(rowData) {
580
+ return __awaiter(this, void 0, void 0, function () {
581
+ return __generator(this, function (_a) {
582
+ mchcModal__.open('print_modal', {
583
+ modal_data: {
584
+ requestData: __assign({
585
+ url: name + 'rowprint',
586
+ id: rowData === null || rowData === void 0 ? void 0 : rowData.id
587
+ }, getSearchParams())
588
+ }
589
+ });
590
+ return [2];
591
+ });
326
592
  });
327
593
  }
328
- function open高危因素管理() {
329
- var _a;
330
- var is护士端_禁止编辑高危因素_传染病 = mchcConfig.get('护士端_禁止编辑高危因素_传染病');
331
- if (is护士端_禁止编辑高危因素_传染病 && isNurse) return;
332
- setIsTwinkling(false);
333
- mchcModal__.open('高危因素管理', {
334
- modal_data: {
335
- data: headerInfo,
336
- pregnancyId: (_a = pregnancyData === null || pregnancyData === void 0 ? void 0 : pregnancyData.id) !== null && _a !== void 0 ? _a : headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id,
337
- handleSubmit: fetchHeaderInfo
338
- }
594
+ function handleItemSave(d) {
595
+ return __awaiter(this, void 0, void 0, function () {
596
+ var old_data, _data, submitData;
597
+ var _a;
598
+ return __generator(this, function (_b) {
599
+ switch (_b.label) {
600
+ case 0:
601
+ return [4, table_form.validateFields()];
602
+ case 1:
603
+ _b.sent();
604
+ old_data = (_a = d !== null && d !== void 0 ? d : dataSource.find(function (_) {
605
+ return _.id === editKeyRef.current;
606
+ })) !== null && _a !== void 0 ? _a : {};
607
+ _data = __assign(__assign({}, old_data), table_form.getFieldsValue());
608
+ return [4, safe_async_call(beforeSubmit, _data, old_data)];
609
+ case 2:
610
+ submitData = _b.sent();
611
+ return [4, create_or_update(submitData)];
612
+ case 3:
613
+ _b.sent();
614
+ table_form.resetFields();
615
+ return [2];
616
+ }
617
+ });
339
618
  });
340
619
  }
341
- function getBackGroundColor(grade) {
342
- var backGroundColor = '';
343
- switch (grade) {
344
- case 'Ⅰ':
345
- backGroundColor = styles['levelBgc1'];
346
- break;
347
- case 'Ⅱ':
348
- backGroundColor = styles['levelBgc2'];
349
- break;
350
- case 'Ⅲ':
351
- backGroundColor = styles['levelBgc3'];
352
- break;
353
- case 'Ⅳ':
354
- backGroundColor = styles['levelBgc4'];
355
- break;
356
- case 'Ⅴ':
357
- backGroundColor = styles['levelBgc5'];
358
- break;
359
- default:
360
- backGroundColor = styles['levelBgc0'];
361
- break;
362
- }
363
- return backGroundColor;
620
+ function handleItemCancel() {
621
+ table_form.resetFields();
622
+ set___Id(undefined);
623
+ safe_set_edit_key(0);
624
+ setDataSource(typeof editKey === 'string' ? dataSource.slice(1, dataSource.length) : dataSource);
364
625
  }
365
- function showSpan(key) {
366
- return (headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo[key]) ? true : false;
626
+ function handleEdit(rowData) {
627
+ return __awaiter(this, void 0, void 0, function () {
628
+ var key;
629
+ return __generator(this, function (_a) {
630
+ switch (_a.label) {
631
+ case 0:
632
+ if (!needEditInTable) return [3, 4];
633
+ if (!editKeyRef.current) return [3, 3];
634
+ if (!mchcEnv["in"](['广三'])) return [3, 2];
635
+ return [4, handleItemSave()];
636
+ case 1:
637
+ _a.sent();
638
+ return [3, 3];
639
+ case 2:
640
+ message.warning('请先保存上一条数据!');
641
+ return [2];
642
+ case 3:
643
+ table_form.setFieldsValue(rowData);
644
+ key = rowData.editKey || rowData.id;
645
+ set___Id(rowData.id);
646
+ safe_set_edit_key(key);
647
+ return [3, 5];
648
+ case 4:
649
+ if (ModalForm) {
650
+ setVisible(true);
651
+ setEditable(true);
652
+ set___Id(rowData.id);
653
+ } else {
654
+ _onModalOpen(rowData);
655
+ }
656
+ _a.label = 5;
657
+ case 5:
658
+ return [2];
659
+ }
660
+ });
661
+ });
367
662
  }
368
- function getValue(key) {
369
- var _a;
370
- return (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo[key]) !== null && _a !== void 0 ? _a : '--';
663
+ function handleView(rowData) {
664
+ setVisible(true);
665
+ setEditable(false);
666
+ set___Id(rowData.id);
371
667
  }
372
- function isHide(curgesweek) {
373
- var bool = true;
374
- if (typeof curgesweek == 'string') {
375
- var index = curgesweek.indexOf('+');
376
- var week = curgesweek;
377
- if (index != -1) {
378
- week = curgesweek.substr(0, index);
668
+ var handleAdd = function handleAdd() {
669
+ var _a;
670
+ if (onAdd) {
671
+ onAdd();
672
+ return;
673
+ }
674
+ if (needEditInTable) {
675
+ if (editKeyRef.current) {
676
+ message.error('请先保存上一条记录~');
677
+ return;
379
678
  }
380
- var week_ = parseInt(week);
381
- if (week_ >= 42) {
382
- bool = false;
679
+ var mockKey = +new Date();
680
+ var new_data = {
681
+ editKey: mockKey
682
+ };
683
+ new_data = (_a = handleBeforePopup === null || handleBeforePopup === void 0 ? void 0 : handleBeforePopup(new_data)) !== null && _a !== void 0 ? _a : new_data;
684
+ var new_arr = __spreadArray([new_data], dataSource, true);
685
+ handleEdit(new_data);
686
+ setDataSource(new_arr);
687
+ } else {
688
+ if (ModalForm) {
689
+ setEditable(true);
690
+ setVisible(true);
691
+ } else {
692
+ _onModalOpen();
383
693
  }
384
694
  }
385
- return bool;
386
- }
387
- function showTitle(bool) {
388
- var title = bool ? getValue('highriskNote') : getValue('highRiskDiagnosis');
389
- var a = title && title.length > 25 ? title : '';
390
- return a;
695
+ };
696
+ var handleCancel = function handleCancel() {
697
+ setVisible(false);
698
+ setEditable(false);
699
+ set___Id(undefined);
700
+ setExtraModalData(undefined);
701
+ };
702
+ var handleFieldsChange = function handleFieldsChange() {};
703
+ function getSearchParams(isFuck) {
704
+ var _a;
705
+ if (isFuck === void 0) {
706
+ isFuck = false;
707
+ }
708
+ var searchConfig = propsCache.current.searchConfig;
709
+ var values = searchForm.getFieldsValue();
710
+ var data = tranformQueryData(values, searchConfig, isFuck);
711
+ var v = (_a = beforeSearch === null || beforeSearch === void 0 ? void 0 : beforeSearch(data)) !== null && _a !== void 0 ? _a : data;
712
+ mchcLogger.log('getSearchParams', defaultQuery.current, {
713
+ values: values,
714
+ v: v,
715
+ data: data
716
+ });
717
+ return __assign(__assign({}, defaultQuery.current), v);
391
718
  }
392
- function renderInfo() {
393
- var _a, _b, _c, _d, _e;
394
- var highriskType = mchcConfig.get('highriskType') == 'highriskNote';
395
- return /*#__PURE__*/React.createElement("div", {
396
- className: classnames(styles['header-info-wrapper'], getBackGroundColor(highriskLable))
397
- }, /*#__PURE__*/React.createElement("div", {
398
- className: styles["header-info-content"]
399
- }, /*#__PURE__*/React.createElement("div", {
400
- className: styles["wrapper-btns"]
401
- }, /*#__PURE__*/React.createElement("div", {
402
- className: styles["highrisk"]
403
- }, !!highriskLable && /*#__PURE__*/React.createElement("span", {
404
- style: {
405
- background: (_a = highriskGradeConfig.find(function (_) {
406
- return _.label === highriskLable;
407
- })) === null || _a === void 0 ? void 0 : _a.note
408
- },
409
- className: classnames(styles['level-btn'], isTwinkling && highriskLable === 'Ⅴ' && !mchcEnv.is('广三') ? styles['twinkling'] : ''),
410
- title: JSON.stringify(props.id),
411
- onClick: open高危因素管理
412
- }, (_b = highriskGradeConfig.find(function (_) {
413
- return _.label === highriskLable;
414
- })) === null || _b === void 0 ? void 0 : _b.colorText), showSpan('infectionLable') && !!infectionNoteLabels.length ? /*#__PURE__*/React.createElement("span", {
415
- style: {
416
- padding: 0,
417
- display: 'flex',
418
- flexDirection: 'column',
419
- writingMode: 'unset',
420
- fontSize: infectionNoteLabels.length >> 1 ? 14 : 16
421
- },
422
- className: styles["infection-btn"],
423
- title: _get(headerInfo, 'infectionLable')
424
- }, infectionNoteLabels.map(function (_) {
425
- return /*#__PURE__*/React.createElement("span", {
426
- key: _.key,
427
- onClick: function onClick() {
428
- return (_.type === '梅' || _.type === '传染病' && _.allType.includes('梅')) && open梅毒管理();
429
- },
430
- style: {
431
- background: _.color,
432
- flex: 1,
433
- display: 'flex',
434
- alignItems: 'center',
435
- justifyContent: 'center',
436
- writingMode: 'vertical-lr'
437
- }
438
- }, _.label);
439
- })) : null), /*#__PURE__*/React.createElement("div", {
440
- className: styles["signs"]
441
- }, showSpan('thrombusLable') && /*#__PURE__*/React.createElement("span", {
442
- className: classnames(styles["signs-btn"], styles['trial']),
443
- onClick: open瘢痕子宫阴道试产表
444
- }, "\u75A4"), showSpan('cicatrixLable') && /*#__PURE__*/React.createElement("span", {
445
- className: classnames(styles["signs-btn"], styles['pahr']),
446
- style: {
447
- flexDirection: 'column'
448
- },
449
- onClick: open深静脉血栓高危因素孕期用药筛查表
450
- }, /*#__PURE__*/React.createElement("span", null, "VTE", /*#__PURE__*/React.createElement("em", null, (_e = (_d = (_c = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.alertAssessment) === null || _c === void 0 ? void 0 : _c.value) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : '')))), showSpan('eclampsiaLable') && /*#__PURE__*/React.createElement("div", {
451
- className: styles["preeclampsia-btn"],
452
- onClick: open子痫前期风险评估表
453
- }, "\u5B50\u75EB")), /*#__PURE__*/React.createElement("div", {
454
- className: styles["wrapper-msg"]
455
- }, /*#__PURE__*/React.createElement("div", {
456
- className: styles["msg-top"]
457
- }, /*#__PURE__*/React.createElement("div", {
458
- className: styles["msg-item"]
459
- }, /*#__PURE__*/React.createElement("span", {
460
- className: styles["label"],
461
- onDoubleClick: function onDoubleClick() {
462
- return mchcModal__.open('高危因素管理', {
463
- modal_data: {
464
- data: headerInfo,
465
- pregnancyId: pregnancyData === null || pregnancyData === void 0 ? void 0 : pregnancyData.id,
466
- handleSubmit: fetchHeaderInfo
467
- }
468
- });
719
+ function handleSearch() {
720
+ return __awaiter(this, arguments, void 0, function (params) {
721
+ var res, data, pagination;
722
+ if (params === void 0) {
723
+ params = defaultQuery.current;
469
724
  }
470
- }, "\u59D3\u540D\uFF1A"), /*#__PURE__*/React.createElement("span", {
471
- className: styles["value"]
472
- }, getValue('name'))), /*#__PURE__*/React.createElement("div", {
473
- className: styles["msg-item"]
474
- }, /*#__PURE__*/React.createElement("span", {
475
- className: styles["label"]
476
- }, "\u5E74\u9F84\uFF1A"), /*#__PURE__*/React.createElement("span", {
477
- className: styles["value"]
478
- }, getValue('age'))), /*#__PURE__*/React.createElement("div", {
479
- className: styles["msg-item"]
480
- }, /*#__PURE__*/React.createElement("span", {
481
- className: styles["label"]
482
- }, "\u5B55\u4EA7:"), /*#__PURE__*/React.createElement("span", {
483
- className: styles["value"]
484
- }, getValue('g'), "/", getValue('p'))), _get(headerInfo, "labourState") ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
485
- className: styles["msg-item"]
486
- }, /*#__PURE__*/React.createElement("span", {
487
- className: styles["label"]
488
- }, "\u4EA7\u540E\uFF1A"), /*#__PURE__*/React.createElement("span", {
489
- className: styles["value"]
490
- }, getValue('daysAfterDelivery'))), /*#__PURE__*/React.createElement("div", {
491
- className: styles["msg-item"]
492
- }, /*#__PURE__*/React.createElement("span", {
493
- className: styles["label"]
494
- }, "\u5206\u5A29\u5B55\u5468\uFF1A"), /*#__PURE__*/React.createElement("span", {
495
- className: styles["value"]
496
- }, getValue('labourWeek')))) : /*#__PURE__*/React.createElement(React.Fragment, null, isHide(getValue('curgesweek')) && /*#__PURE__*/React.createElement("div", {
497
- className: styles["msg-item"]
498
- }, /*#__PURE__*/React.createElement("span", {
499
- className: styles["label"]
500
- }, "\u5B55\u5468\uFF1A"), /*#__PURE__*/React.createElement("span", {
501
- className: styles["value"]
502
- }, getValue('curgesweek'))), /*#__PURE__*/React.createElement("div", {
503
- className: styles["msg-item"]
504
- }, /*#__PURE__*/React.createElement("span", {
505
- className: styles["label"]
506
- }, "\u9884\u4EA7\u671F\uFF1A"), /*#__PURE__*/React.createElement("span", {
507
- className: styles["value"]
508
- }, getValue('edd')))), /*#__PURE__*/React.createElement("div", {
509
- className: styles["small-item"]
510
- }, /*#__PURE__*/React.createElement("span", {
511
- className: styles["label"]
512
- }, "\u5C31\u8BCA\u5361\u53F7\uFF1A"), /*#__PURE__*/React.createElement("span", {
513
- className: styles["value"]
514
- }, getValue('outpatientNO'))), /*#__PURE__*/React.createElement("div", {
515
- className: styles["small-item"]
516
- }, /*#__PURE__*/React.createElement("span", {
517
- className: styles["label"]
518
- }, "\u4EA7\u68C0\u7F16\u53F7\uFF1A"), /*#__PURE__*/React.createElement("span", {
519
- className: styles["value"]
520
- }, getValue('checkupNO')))), /*#__PURE__*/React.createElement("div", {
521
- className: styles["msg-bottom"]
522
- }, /*#__PURE__*/React.createElement("div", {
523
- className: styles["exemplary-case"]
524
- }, is_show_乙肝 && /*#__PURE__*/React.createElement(_Button, {
525
- hidden: infectionNoteLabels.some(function (_) {
526
- return _.type === '乙';
527
- }),
528
- type: "text",
529
- size: "small",
530
- onClick: open乙肝管理
531
- }, "\u4E59\u809D\u4E13\u6848\u7BA1\u7406"), is_show_梅毒 && /*#__PURE__*/React.createElement(_Button, {
532
- hidden: infectionNoteLabels.some(function (_) {
533
- return _.type === '梅';
534
- }),
535
- type: "text",
536
- size: "small",
537
- onClick: open梅毒管理
538
- }, "\u6885\u6BD2\u4E13\u6848\u7BA1\u7406"), isShowGdm && /*#__PURE__*/React.createElement(_Button, {
539
- size: "small",
540
- type: "text",
541
- onClick: function onClick() {
542
- setExemplaryCaseVisible(true);
543
- setTabkey('1');
544
- }
545
- }, "GDM\u4E13\u6848"), isShowSlowGrowing && /*#__PURE__*/React.createElement(_Button, {
546
- size: "small",
547
- type: "text",
548
- onClick: function onClick() {
549
- setExemplaryCaseVisible(true);
550
- setTabkey('2');
551
- }
552
- }, "\u80CE\u513F\u751F\u957F\u7F13\u6162\u4E13\u6848"), isShowBmi && /*#__PURE__*/React.createElement(_Button, {
553
- size: "small",
554
- type: "text",
555
- onClick: function onClick() {
556
- setExemplaryCaseVisible(true);
557
- setTabkey('3');
558
- }
559
- }, "BMI\u9AD8\u5371\u4E13\u6848"), isShowMultiplets && /*#__PURE__*/React.createElement(_Button, {
560
- size: "small",
561
- type: "text",
562
- onClick: function onClick() {
563
- setExemplaryCaseVisible(true);
564
- setTabkey('5');
565
- }
566
- }, _get(props, "headerInfo.pregnancyCaseLable") || '多胎', "\u598A\u5A20\u4E13\u6848")), showSpan('infectionNote') ? /*#__PURE__*/React.createElement("div", {
567
- style: {
568
- color: contagionColor
569
- },
570
- className: styles["msg-infection"]
571
- }, "\u4F20\u67D3\u75C5\uFF1A", getValue('infectionNote') || '无', " /") : null, /*#__PURE__*/React.createElement(_Tooltip, {
572
- placement: "bottomLeft",
573
- title: showTitle(highriskType)
574
- }, highriskType ? /*#__PURE__*/React.createElement("div", {
575
- className: styles["msg-highrisk"]
576
- }, "\u9AD8\u5371\u56E0\u7D20\uFF1A", getValue('highriskNote') || '无') : /*#__PURE__*/React.createElement("div", {
577
- className: styles["msg-highrisk"]
578
- }, "\u9AD8\u5371\u8BCA\u65AD\uFF1A", getValue('highRiskDiagnosis') || '无'))))), /*#__PURE__*/React.createElement("div", {
579
- className: styles["header-info-extra"]
580
- }, /*#__PURE__*/React.createElement("div", {
581
- className: styles["new-flash-content"]
582
- }, /*#__PURE__*/React.createElement("div", {
583
- hidden: isNurse,
584
- className: styles["icon-conetent"],
585
- onClick: onDobuleClick
586
- }, /*#__PURE__*/React.createElement(ThunderboltOutlined, {
587
- style: {
588
- color: 'red'
589
- }
590
- })), /*#__PURE__*/React.createElement("div", {
591
- className: styles["icon-conetent"],
592
- onClick: function onClick() {
593
- return fetchHeaderInfo().then(function () {
594
- return _message.info('刷新成功');
595
- });
596
- }
597
- }, /*#__PURE__*/React.createElement(ReloadOutlined, null)))));
598
- }
599
- function fetchHeaderInfo() {
600
- return __awaiter(this, void 0, void 0, function () {
601
- var data;
602
725
  return __generator(this, function (_a) {
603
726
  switch (_a.label) {
604
727
  case 0:
605
- if (!pregnancyId) return [2];
606
- return [4, SMchc_Doctor.getOutpatientHeaderInfo(pregnancyId)];
728
+ if (!myBaseListService.current) return [2];
729
+ if (dataSource.some(function (_) {
730
+ return isNil(_.id);
731
+ })) setDataSource([]);
732
+ setLoading(true);
733
+ return [4, Promise.all([myBaseListService.current.page({
734
+ params: params
735
+ }), sleep(100)])["finally"](function () {
736
+ return setLoading(false);
737
+ })];
607
738
  case 1:
608
- data = _a.sent();
609
- saveHeaderInfo === null || saveHeaderInfo === void 0 ? void 0 : saveHeaderInfo(data);
610
- setHeaderInfo(data);
739
+ res = _a.sent()[0];
740
+ data = res.data, pagination = res.pagination;
741
+ setDataSource(data);
742
+ setTotal(pagination.total);
743
+ mchcEvent.emit('BaseList_hook', {
744
+ type: 'search',
745
+ data: data,
746
+ name: name
747
+ });
611
748
  return [2];
612
749
  }
613
750
  });
614
751
  });
615
752
  }
616
- return /*#__PURE__*/React.createElement(React.Fragment, null, renderInfo(), exemplaryCaseVisible && /*#__PURE__*/React.createElement(DoctorEnd_ExemplaryCase, _extends({
617
- onClose: function onClose() {
618
- return setExemplaryCaseVisible(false);
753
+ var handlePageChange = function handlePageChange(current, size) {
754
+ mchcLogger.log('handlePageChange', current, size);
755
+ setPageSize(size);
756
+ setCurrent(current);
757
+ handleSearch();
758
+ };
759
+ var handleRowSelected = function handleRowSelected(keys, rows) {
760
+ setCheckRows(rows);
761
+ };
762
+ function format_columns(cols) {
763
+ if (cols === void 0) {
764
+ cols = [];
765
+ }
766
+ return cols.filter(function (_) {
767
+ return _ && !_.hidden;
768
+ }).map(function (col) {
769
+ var _a;
770
+ if (col === void 0) {
771
+ col = {};
772
+ }
773
+ var _b = col,
774
+ inputProps = _b.inputProps,
775
+ props = _b.props,
776
+ dataIndex = _b.dataIndex,
777
+ width = _b.width;
778
+ var isOperativeCell = isString(dataIndex) && ['__operation', 'operation'].includes(dataIndex);
779
+ var format_data = {
780
+ title: get_title(col),
781
+ dataIndex: get_dataIndex(col)
782
+ };
783
+ var a = __assign(__assign(__assign({
784
+ width: width !== null && width !== void 0 ? width : 120
785
+ }, col), format_data), {
786
+ children: format_columns(col === null || col === void 0 ? void 0 : col.children),
787
+ align: 'center',
788
+ ellipsis: (_a = col === null || col === void 0 ? void 0 : col.ellipsis) !== null && _a !== void 0 ? _a : {
789
+ showTitle: true
790
+ },
791
+ onCell: function onCell(rowData) {
792
+ return __assign(__assign(__assign({}, col), format_data), {
793
+ inputProps: inputProps !== null && inputProps !== void 0 ? inputProps : props,
794
+ record: rowData,
795
+ editing: isOperativeCell ? false : isEditing(rowData)
796
+ });
797
+ }
798
+ });
799
+ return a;
800
+ });
801
+ }
802
+ var renderEditableCell = function renderEditableCell(cell) {
803
+ var _a;
804
+ var editing = cell.editing,
805
+ dataIndex = cell.dataIndex,
806
+ title = cell.title,
807
+ inputType = cell.inputType,
808
+ inputProps = cell.inputProps,
809
+ rules = cell.rules,
810
+ record = cell.record;
811
+ cell.index;
812
+ var children = cell.children,
813
+ inputConfig = cell.inputConfig,
814
+ render = cell.render,
815
+ restProps = __rest(cell, ["editing", "dataIndex", "title", "inputType", "inputProps", "rules", "record", "index", "children", "inputConfig", "render"]);
816
+ var C = (_a = MyBaseListComponents[inputType]) !== null && _a !== void 0 ? _a : function () {
817
+ return "Unkown Cell Component:" + inputType;
818
+ };
819
+ return /*#__PURE__*/React.createElement("td", __assign({}, restProps, {
820
+ title: get(record, dataIndex)
821
+ }), editing && inputType ? (/*#__PURE__*/React.createElement(Form.Item, {
822
+ name: dataIndex,
823
+ style: {
824
+ margin: 0
825
+ },
826
+ rules: getDefaultRequiredRules(rules, title || dataIndex)
827
+ }, /*#__PURE__*/React.createElement(C, __assign({}, inputProps, {
828
+ inputType: inputType,
829
+ config: inputConfig !== null && inputConfig !== void 0 ? inputConfig : cell
830
+ })))) : (C === null || C === void 0 ? void 0 : C.DisplayFC) && !render ? /*#__PURE__*/React.createElement(InterceptDisplayFC, {
831
+ C: C,
832
+ config: inputConfig !== null && inputConfig !== void 0 ? inputConfig : cell,
833
+ value: get(record, dataIndex)
834
+ }) : children);
835
+ };
836
+ function search() {
837
+ return __awaiter(this, void 0, void 0, function () {
838
+ var q;
839
+ return __generator(this, function (_a) {
840
+ setCheckRows([]);
841
+ setCurrent(1);
842
+ q = getSearchParams();
843
+ defaultQuery.current = q;
844
+ handleSearch(q);
845
+ return [2];
846
+ });
847
+ });
848
+ }
849
+ var mergedColumns = format_columns(cal_columns);
850
+ var rowSelection = {
851
+ onChange: handleRowSelected,
852
+ selectedRowKeys: checkRows.map(function (_) {
853
+ return _.id;
854
+ })
855
+ };
856
+ var __pagination = needPagination ? {
857
+ position: ['bottomCenter'],
858
+ total: total,
859
+ size: 'small',
860
+ showTotal: function showTotal(_total) {
861
+ return "\u603B\u5171 ".concat(total, " \u6761");
862
+ },
863
+ pageSizeOptions: [10, 20, 50, 100].map(function (_) {
864
+ return _.toString();
865
+ }),
866
+ pageSize: __pageSize,
867
+ current: __current,
868
+ onChange: handlePageChange,
869
+ onShowSizeChange: handlePageChange,
870
+ showQuickJumper: true,
871
+ showSizeChanger: true
872
+ } : false;
873
+ var __components = needEditInTable || true ? {
874
+ body: {
875
+ cell: renderEditableCell
876
+ }
877
+ } : {};
878
+ var _5 = useState([]);
879
+ _5[0];
880
+ _5[1];
881
+ return /*#__PURE__*/React.createElement("div", {
882
+ ref: wrapRef,
883
+ style: {
884
+ background: sys_theme.bg_color
885
+ }
886
+ }, /*#__PURE__*/React.createElement(Form, {
887
+ onSubmitCapture: function onSubmitCapture(e) {
888
+ message.info('onSubmitCapture');
619
889
  },
620
- isShowGdm: isShowGdm || true,
621
- isShowBmi: isShowBmi || true,
622
- isShowSlowGrowing: isShowSlowGrowing || true,
623
- isShowTwins: isShowTwins || true,
624
- isShowMultiplets: isShowMultiplets || true,
625
- tabkey: tabkey
626
- }, props)));
890
+ onFinish: function onFinish() {
891
+ message.info('onFinish');
892
+ },
893
+ form: table_form,
894
+ component: false,
895
+ onFieldsChange: handleFieldsChange
896
+ }, /*#__PURE__*/React.createElement("div", {
897
+ className: "global-base-table",
898
+ id: "global-base-table"
899
+ }, /*#__PURE__*/React.createElement("div", {
900
+ ref: queryRef,
901
+ style: __assign({
902
+ padding: 4
903
+ }, longSearchForm ? {
904
+ display: 'flex',
905
+ flexDirection: 'column-reverse'
906
+ } : {
907
+ display: 'flex',
908
+ justifyContent: 'space-between'
909
+ })
910
+ }, /*#__PURE__*/React.createElement("div", {
911
+ ref: formWrapper,
912
+ style: {
913
+ display: 'flex',
914
+ alignItems: 'center',
915
+ justifyContent: 'space-between',
916
+ paddingTop: 4
917
+ }
918
+ }, showSearch ? (/*#__PURE__*/React.createElement(Form, {
919
+ initialValues: initialSearchValue,
920
+ form: searchForm,
921
+ layout: "inline",
922
+ onFinish: function onFinish() {
923
+ search();
924
+ }
925
+ }, searchConfig ? /*#__PURE__*/React.createElement(MyBaseListRenderFormSection, {
926
+ config: searchConfig,
927
+ disabled: loading
928
+ }) : null)) : null), /*#__PURE__*/React.createElement("div", {
929
+ style: {
930
+ display: 'flex',
931
+ alignItems: 'center',
932
+ justifyContent: 'flex-end',
933
+ borderBottom: longSearchForm ? "1px dashed ".concat(sys_theme.colorBorder) : 0,
934
+ paddingBottom: 4,
935
+ paddingRight: 28
936
+ }
937
+ }, /*#__PURE__*/React.createElement(Space, null, RenderBtns === null || RenderBtns === void 0 ? void 0 : RenderBtns.call(window, actionCtx), showExport || onExport ? /*#__PURE__*/React.createElement(OkButton, {
938
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
939
+ value: 'ExportOutlined'
940
+ }),
941
+ type: "primary",
942
+ onClick: function onClick() {
943
+ var _a;
944
+ if (onExport) {
945
+ onExport(actionCtx);
946
+ } else {
947
+ (_a = myBaseListService.current) === null || _a === void 0 ? void 0 : _a["export"](getSearchParams()).then(function (r) {
948
+ downloadFile(r, "".concat(baseTitle).concat(formatDateTime(), ".xlsx"), 'application/vnd.ms-excel');
949
+ });
950
+ }
951
+ }
952
+ }, '导出') : null, showPrint ? /*#__PURE__*/React.createElement(OkButton, {
953
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
954
+ value: 'ExportOutlined'
955
+ }),
956
+ type: "primary",
957
+ onClick: function onClick() {
958
+ if (onPrint) {
959
+ onPrint(actionCtx);
960
+ } else {
961
+ mchcModal__.open('print_modal', {
962
+ modal_data: {
963
+ requestData: __assign(__assign({
964
+ url: name + 'print'
965
+ }, getSearchParams()), printDefaultConfig)
966
+ }
967
+ });
968
+ }
969
+ }
970
+ }, '打印') : null, showAdd ? /*#__PURE__*/React.createElement(OkButton, {
971
+ disabled: loading,
972
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
973
+ value: 'PlusOutlined'
974
+ }),
975
+ type: "primary",
976
+ onClick: handleAdd
977
+ }, addText || '新增') : null, showSearch ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
978
+ type: 'vertical'
979
+ }), /*#__PURE__*/React.createElement(Button.Group, null, RenderSearchBtns === null || RenderSearchBtns === void 0 ? void 0 : RenderSearchBtns.call(window, actionCtx), /*#__PURE__*/React.createElement(OkButton, {
980
+ htmlType: "reset",
981
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
982
+ value: 'ReloadOutlined'
983
+ }),
984
+ disabled: loading,
985
+ onClick: function onClick() {
986
+ searchForm.resetFields();
987
+ defaultQuery.current = defaultQueryValue;
988
+ setDataSource([]);
989
+ setCurrent(1);
990
+ setPageSize(defaultQueryValue.size);
991
+ handleSearch();
992
+ }
993
+ }, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(OkButton, {
994
+ type: "primary",
995
+ htmlType: "submit",
996
+ disabled: loading,
997
+ onClick: function onClick() {
998
+ return search();
999
+ },
1000
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
1001
+ value: 'SearchOutlined'
1002
+ })
1003
+ }, "\u67E5\u8BE2")))) : null))), /*#__PURE__*/React.createElement(Table_L, {
1004
+ size: 'small',
1005
+ dataSource: dataSource,
1006
+ rowKey: rowKey || 'id',
1007
+ bordered: true,
1008
+ loading: loading,
1009
+ pagination: __pagination,
1010
+ title: undefined,
1011
+ style: {
1012
+ padding: '0 12px',
1013
+ paddingBottom: needPagination ? 0 : 8
1014
+ },
1015
+ components: __components,
1016
+ scroll: {
1017
+ scrollToFirstRowOnChange: true,
1018
+ x: get(otherTableProps, 'scroll.x') || 'calc(100px)',
1019
+ y: get(otherTableProps, 'scroll.y') || tableHeight
1020
+ },
1021
+ columns: mergedColumns,
1022
+ rowSelection: needChecked ? rowSelection : undefined,
1023
+ onRow: function onRow(record) {
1024
+ return {
1025
+ onClick: function onClick(event) {
1026
+ return handleClickRow === null || handleClickRow === void 0 ? void 0 : handleClickRow(record, render_props, event);
1027
+ },
1028
+ onDoubleClick: function onDoubleClick(event) {
1029
+ return handleDoubleClickRow === null || handleDoubleClickRow === void 0 ? void 0 : handleDoubleClickRow(record, render_props, event);
1030
+ },
1031
+ onContextMenu: function onContextMenu(event) {
1032
+ event.preventDefault();
1033
+ }
1034
+ };
1035
+ }
1036
+ }))), /*#__PURE__*/React.createElement(React.Fragment, null, visible && ModalForm && (/*#__PURE__*/React.createElement(ModalForm, {
1037
+ open: visible,
1038
+ editable: editable,
1039
+ id: ___id,
1040
+ extraModalData: extraModalData,
1041
+ onCancel: function onCancel() {
1042
+ handleCancel();
1043
+ handleSearch();
1044
+ },
1045
+ onSearch: handleSearch,
1046
+ onOk: function onOk() {
1047
+ handleCancel();
1048
+ handleSearch();
1049
+ }
1050
+ }))), children);
627
1051
  }
628
- export { HeaderInfoInner as default };
629
- //# sourceMappingURL=.root4.js.map
1052
+ export { _MyBaseList, _MyBaseList as default };