@lm_fe/pages 0.1.201 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
  3. package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
  4. package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
  5. package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
  6. package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
  7. package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
  8. package/dist/a_chunks/data.js +572 -0
  9. package/dist/a_chunks/func.js +86 -0
  10. package/dist/a_chunks/index.js +1049 -286
  11. package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
  12. package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
  13. package/dist/a_chunks/modals.entries.box.js +23 -0
  14. package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
  15. package/dist/a_chunks/modals.entries.modal_page.js +143 -0
  16. package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
  17. package/dist/a_chunks/modals.entries.result_template.js +201 -0
  18. package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
  19. package/dist/a_chunks/modals.entries.test.js +30 -0
  20. package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
  21. package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
  22. package/dist/a_chunks/{.root18.js → modals.entries./345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250.js} +68 -93
  23. package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
  24. package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
  25. package/dist/a_chunks/{.root20.js → modals.entries./346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250.js} +144 -154
  26. package/dist/a_chunks/{.root21.js → modals.entries./347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250.js} +27 -48
  27. package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
  28. package/dist/a_chunks/{.root23.js → modals.entries./351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257.js} +127 -172
  29. package/dist/a_chunks/{.root24.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +438 -336
  30. package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
  31. package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
  32. package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
  33. package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
  34. package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
  35. package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
  36. package/dist/a_chunks/src.components.Login.js +151 -0
  37. package/dist/a_chunks/src.components.MenuSearch.js +106 -0
  38. package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
  39. package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
  40. package/dist/a_chunks/use_fetus.js +138 -0
  41. package/dist/a_chunks/utils.js +100 -0
  42. package/dist/a_chunks/utils2.js +36 -0
  43. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  44. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  45. package/dist/components/BF_Form/index.d.ts +4 -2
  46. package/dist/components/BF_Form/types.d.ts +7 -0
  47. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  48. package/dist/components/Base_List/Helper.d.ts +0 -5
  49. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  50. package/dist/components/Base_List/index.d.ts +2 -1
  51. package/dist/components/Base_List/types.d.ts +6 -3
  52. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  53. package/dist/components/Base_List/utils.d.ts +11 -0
  54. package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
  55. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  56. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  57. package/dist/components/Layout_Sider/index.d.ts +2 -2
  58. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  59. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  60. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  61. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  62. package/dist/components/Login/Inner.d.ts +0 -1
  63. package/dist/components/Login/index.d.ts +2 -1
  64. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  65. package/dist/components/MenuSearch/index.d.ts +2 -0
  66. package/dist/components/QuickDocButton/index.d.ts +5 -1
  67. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  68. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  69. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  70. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  71. package/dist/components/exception/index.d.ts +1 -0
  72. package/dist/components/index.d.ts +1 -0
  73. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  74. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  75. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  76. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  77. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  78. package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
  79. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  80. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  81. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  82. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  83. package/dist/curve/components/api.d.ts +17 -0
  84. package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
  85. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  86. package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
  87. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  88. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  89. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  90. package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
  91. package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
  92. package/dist/curve/data.d.ts +125 -0
  93. package/dist/curve/func.d.ts +12 -0
  94. package/dist/curve/func.test.d.ts +1 -0
  95. package/dist/curve/index.d.ts +7 -0
  96. package/dist/curve/intro-steps.d.ts +7 -0
  97. package/dist/curve/utils.d.ts +8 -0
  98. package/dist/form_config/conceiveMode.d.ts +2 -0
  99. package/dist/form_config/index.d.ts +4 -0
  100. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  101. package/dist/form_config/not_yes_input.d.ts +4 -0
  102. package/dist/form_config/pressure.d.ts +4 -0
  103. package/dist/hooks/index.d.ts +1 -0
  104. package/dist/hooks/use_duck_form.d.ts +18 -0
  105. package/dist/index.d.ts +2 -0
  106. package/dist/index.js +8 -33
  107. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  109. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +7 -1
  110. package/dist/modals/entries/box/index.d.ts +6 -0
  111. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  112. package/dist/modals/entries/result_template/index.d.ts +24 -0
  113. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  114. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  115. package/dist/modals/entries/template_modal3/index.d.ts +6 -3
  116. package/dist/modals/entries/text_search/index.d.ts +1 -1
  117. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  118. package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
  119. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
  120. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
  121. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
  122. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
  123. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
  124. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
  125. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
  126. package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
  127. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
  128. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
  129. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
  130. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
  131. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  132. package/dist/modals/index.d.ts +4 -1
  133. package/dist/modals/meta.d.ts +4 -1
  134. package/dist/pages/doc_record/index.d.ts +1 -1
  135. package/dist/pages/index.d.ts +1 -0
  136. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  137. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  138. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  139. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  140. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  141. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  142. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  143. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  144. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  145. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  146. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  147. package/dist/pages/questionnaire/index.d.ts +3 -0
  148. package/dist/pages/questionnaire/types.d.ts +10 -0
  149. package/dist/utils/helper.d.ts +5 -0
  150. package/dist/utils/index.d.ts +2 -1
  151. package/package.json +34 -16
  152. package/dist/a_chunks/.root.js +0 -245
  153. package/dist/a_chunks/.root.js.map +0 -1
  154. package/dist/a_chunks/.root10.js +0 -474
  155. package/dist/a_chunks/.root10.js.map +0 -1
  156. package/dist/a_chunks/.root11.js.map +0 -1
  157. package/dist/a_chunks/.root12.js +0 -200
  158. package/dist/a_chunks/.root12.js.map +0 -1
  159. package/dist/a_chunks/.root13.js.map +0 -1
  160. package/dist/a_chunks/.root14.js.map +0 -1
  161. package/dist/a_chunks/.root15.js +0 -58
  162. package/dist/a_chunks/.root15.js.map +0 -1
  163. package/dist/a_chunks/.root16.js.map +0 -1
  164. package/dist/a_chunks/.root17.js.map +0 -1
  165. package/dist/a_chunks/.root18.js.map +0 -1
  166. package/dist/a_chunks/.root19.js.map +0 -1
  167. package/dist/a_chunks/.root2.js +0 -76
  168. package/dist/a_chunks/.root2.js.map +0 -1
  169. package/dist/a_chunks/.root20.js.map +0 -1
  170. package/dist/a_chunks/.root21.js.map +0 -1
  171. package/dist/a_chunks/.root22.js.map +0 -1
  172. package/dist/a_chunks/.root23.js.map +0 -1
  173. package/dist/a_chunks/.root24.js.map +0 -1
  174. package/dist/a_chunks/.root25.js +0 -281
  175. package/dist/a_chunks/.root25.js.map +0 -1
  176. package/dist/a_chunks/.root3.js.map +0 -1
  177. package/dist/a_chunks/.root4.js +0 -629
  178. package/dist/a_chunks/.root4.js.map +0 -1
  179. package/dist/a_chunks/.root5.js.map +0 -1
  180. package/dist/a_chunks/.root6.js +0 -164
  181. package/dist/a_chunks/.root6.js.map +0 -1
  182. package/dist/a_chunks/.root7.js.map +0 -1
  183. package/dist/a_chunks/.root8.js.map +0 -1
  184. package/dist/a_chunks/.root9.js +0 -69
  185. package/dist/a_chunks/.root9.js.map +0 -1
  186. package/dist/a_chunks/extends.js +0 -11
  187. package/dist/a_chunks/extends.js.map +0 -1
  188. package/dist/a_chunks/index.js.map +0 -1
  189. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  190. package/dist/index.js.map +0 -1
  191. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
@@ -1,37 +1,14 @@
1
- import 'antd/es/row/style';
2
- import _Row from 'antd/es/row';
3
- import 'antd/es/col/style';
4
- import _Col from 'antd/es/col';
5
- import 'antd/es/list/style';
6
- import _List from 'antd/es/list';
7
- import 'antd/es/tooltip/style';
8
- import _Tooltip from 'antd/es/tooltip';
9
- import _get from 'lodash/get';
10
- import { PrinterOutlined, InfoCircleOutlined, BuildOutlined, UserAddOutlined, DownOutlined, ScanOutlined, DisconnectOutlined, UploadOutlined, TableOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import { GlobalModal, MountGlobalModal, MyIcon as MyIcon$1, MyMonaco, MyLazyComponent as MyLazyComponent$1, LazyAntd, useMchcDriverStatus } from '@lm_fe/components';
3
+ import { request, getSearchParamsValue, genHappyPath, copyText, expect_array, confirm_operation, getSearchParamsAll, isObject, debounce, safe_json_parse_arr, calc_edd_by_IVF, calc_edd_by_ntExam, diff_between, identity, formatDate } from '@lm_fe/utils';
4
+ import { Spin, Button, Row, Col, List, Tooltip, Result, Space, message, Form, Menu, Divider } from 'antd';
11
5
  import classnames from 'classnames';
6
+ import { get, keys, isString } from 'lodash';
12
7
  import React, { lazy, useState, useEffect, useRef, useMemo } from 'react';
13
- import 'antd/es/button/style';
14
- import _Button from 'antd/es/button';
15
- import 'antd/es/spin/style';
16
- import _Spin from 'antd/es/spin';
17
- import { PDFPreview_View, LazyAntd, LoadingPlaceholder, MyLazyComponent, OkButton, FormSectionForm } from '@lm_fe/components_m';
18
- import { request, getSearchParamsValue, genHappyPath, copyText, expect_array, confirm_operation, getSearchParamsAll, set } from '@lm_fe/utils';
19
- import { GlobalModal, MountGlobalModal, MyMonaco, MyLazyComponent as MyLazyComponent$1, LazyAntd as LazyAntd$1, useMchcDriverStatus } from '@lm_fe/components';
20
- import 'antd/es/form/style';
21
- import _Form from 'antd/es/form';
22
- import 'antd/es/result/style';
23
- import _Result from 'antd/es/result';
24
- import 'antd/es/menu/style';
25
- import _Menu from 'antd/es/menu';
26
- import { SLocal_History, SMchc_TableConfig, SLocal_State, SLocal_Calculator, mchcEnums } from '@lm_fe/service';
27
- import 'antd/es/message/style';
28
- import _message from 'antd/es/message';
29
- import 'antd/es/space/style';
30
- import _Space from 'antd/es/space';
31
- import { mchcEvent, mchcLogger, mchcEnv, mchcDriver } from '@lm_fe/env';
32
- import _keys from 'lodash/keys';
33
- import 'antd/es/divider/style';
34
- import _Divider from 'antd/es/divider';
8
+ import { PDFPreview_View, MyIcon, OkButton, MySwitch, LoadingPlaceholder, MyLazyComponent, Dropdown_L, FormSectionForm, MyFormSectionForm } from '@lm_fe/components_m';
9
+ import { mchcEnv, mchcEvent, mchcLogger, mchcDriver } from '@lm_fe/env';
10
+ import { use_provoke, calc_colors, peek_provoke } from '@lm_fe/provoke';
11
+ import { SLocal_History, SMchc_TableConfig, SLocal_Calculator, SLocal_State, mchcEnums, defineFormConfig, ModelService } from '@lm_fe/service';
35
12
 
36
13
  /******************************************************************************
37
14
  Copyright (c) Microsoft Corporation.
@@ -233,59 +210,68 @@ function styleInject(css, ref) {
233
210
  style.appendChild(document.createTextNode(css));
234
211
  }
235
212
  }
236
- var css_248z$3 = ".nuser-record {\n border-bottom: 1px solid #ccc;\n}\n.nuser-record .ant-menu-submenu-title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px !important;\n}\n.nuser-record .menu-btn-span {\n display: inline-block;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.doctor-desk-first-visit-sider-list__item-title {\n width: 180px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.nur-form-container .ant-input[disabled] {\n color: rgba(0, 0, 0, 0.85);\n}\n.nur-form-container .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n color: rgba(0, 0, 0, 0.85);\n}\n";
237
- styleInject(css_248z$3);
213
+ var css_248z$2 = ".nuser-record {\n border-bottom: 1px solid #ccc;\n}\n.nuser-record .ant-menu-submenu-title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px !important;\n}\n.nuser-record .menu-btn-span {\n display: inline-block;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.doctor-desk-first-visit-sider-list__item-title {\n width: 180px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.nur-form-container .ant-input[disabled] {\n color: rgba(0, 0, 0, 0.85);\n}\n.nur-form-container .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n color: rgba(0, 0, 0, 0.85);\n}\n";
214
+ styleInject(css_248z$2);
238
215
  var routesData = {
239
216
  "bf_form": /*#__PURE__*/lazy(function () {
240
- return import('./.root9.js');
217
+ return import('./modals.entries.BF_Form.js');
241
218
  }),
242
- "stupidtemplatemodal2": /*#__PURE__*/lazy(function () {
243
- return import('./.root10.js');
219
+ "box": /*#__PURE__*/lazy(function () {
220
+ return import('./modals.entries.box.js');
244
221
  }),
245
222
  "modal_form": /*#__PURE__*/lazy(function () {
246
- return import('./.root11.js');
223
+ return import('./modals.entries.modal_form.js');
247
224
  }),
248
225
  "modal_page": /*#__PURE__*/lazy(function () {
249
- return import('./.root12.js');
226
+ return import('./modals.entries.modal_page.js');
250
227
  }),
251
228
  "print_modal": /*#__PURE__*/lazy(function () {
252
- return import('./.root13.js');
229
+ return import('./modals.entries.print_modal.js');
230
+ }),
231
+ "result_template": /*#__PURE__*/lazy(function () {
232
+ return import('./modals.entries.result_template.js');
233
+ }),
234
+ "stupidtemplatemodal2": /*#__PURE__*/lazy(function () {
235
+ return import('./modals.entries.StupidTemplateModal2.js');
253
236
  }),
254
237
  "template_modal3": /*#__PURE__*/lazy(function () {
255
- return import('./.root14.js');
238
+ return import('./modals.entries.template_modal3.js');
256
239
  }),
257
240
  "test": /*#__PURE__*/lazy(function () {
258
- return import('./.root15.js');
241
+ return import('./modals.entries.test.js');
259
242
  }),
260
243
  "text_search": /*#__PURE__*/lazy(function () {
261
- return import('./.root16.js');
244
+ return import('./modals.entries.text_search.js');
262
245
  }),
263
246
  "乙肝管理": /*#__PURE__*/lazy(function () {
264
- return import('./.root17.js');
247
+ return import('./modals.entries.乙肝管理.js');
265
248
  }),
266
249
  "子痫前期风险评估表": /*#__PURE__*/lazy(function () {
267
- return import('./.root18.js');
250
+ return import('./modals.entries.子痫前期风险评估表.js');
251
+ }),
252
+ "拓展量表": /*#__PURE__*/lazy(function () {
253
+ return import('./modals.entries.拓展量表.js');
268
254
  }),
269
255
  "梅毒管理": /*#__PURE__*/lazy(function () {
270
- return import('./.root19.js');
256
+ return import('./modals.entries.梅毒管理.js');
271
257
  }),
272
258
  "深静脉血栓高危因素孕期用药筛查表": /*#__PURE__*/lazy(function () {
273
- return import('./.root20.js');
259
+ return import('./modals.entries.深静脉血栓高危因素孕期用药筛查表.js');
274
260
  }),
275
261
  "瘢痕子宫阴道试产表": /*#__PURE__*/lazy(function () {
276
- return import('./.root21.js');
262
+ return import('./modals.entries.瘢痕子宫阴道试产表.js');
277
263
  }),
278
264
  "诊断历史": /*#__PURE__*/lazy(function () {
279
- return import('./.root22.js');
265
+ return import('./modals.entries.诊断历史.js');
280
266
  }),
281
267
  "预警提醒_高危快讯": /*#__PURE__*/lazy(function () {
282
- return import('./.root23.js');
268
+ return import('./modals.entries.预警提醒_高危快讯.js');
283
269
  }),
284
270
  "高危因素管理": /*#__PURE__*/lazy(function () {
285
- return import('./.root24.js');
271
+ return import('./modals.entries.高危因素管理.js');
286
272
  }),
287
273
  "高危随访": /*#__PURE__*/lazy(function () {
288
- return import('./.root25.js');
274
+ return import('./modals.entries.高危随访.js');
289
275
  })
290
276
  };
291
277
  var mchcModal__ = new GlobalModal();
@@ -350,7 +336,7 @@ function Right(props) {
350
336
  style: {
351
337
  height: '90%'
352
338
  }
353
- }, loading ? /*#__PURE__*/React.createElement(_Spin, {
339
+ }, loading ? /*#__PURE__*/React.createElement(Spin, {
354
340
  className: "spin",
355
341
  style: {
356
342
  marginTop: 64
@@ -360,10 +346,12 @@ function Right(props) {
360
346
  file: pdfUrl
361
347
  }), /*#__PURE__*/React.createElement("div", {
362
348
  className: "right-bottom-btns"
363
- }, /*#__PURE__*/React.createElement(_Button, {
349
+ }, /*#__PURE__*/React.createElement(Button, {
364
350
  type: "primary",
365
351
  size: "large",
366
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
352
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
353
+ value: 'PrinterOutlined'
354
+ }),
367
355
  onClick: function onClick() {
368
356
  mchcModal__.open('print_modal', {
369
357
  modal_data: {
@@ -417,27 +405,28 @@ function Page_DocRecord(props) {
417
405
  });
418
406
  }
419
407
  function renderSider() {
420
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_List, {
408
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(List, {
421
409
  size: "small",
422
410
  dataSource: siderPanels,
423
411
  renderItem: function renderItem(item) {
424
- return /*#__PURE__*/React.createElement(_List.Item, {
412
+ return /*#__PURE__*/React.createElement(List.Item, {
425
413
  className: classnames('doctor-desk-first-visit-sider-list__item', {
426
- 'doctor-desk-first-visit-sider-list__item_active': _get(activeItem, 'code') === _get(item, 'code')
414
+ 'doctor-desk-first-visit-sider-list__item_active': get(activeItem, 'code') === get(item, 'code')
427
415
  }),
428
- style: _get(activeItem, 'code') === _get(item, 'code') ? {
416
+ style: get(activeItem, 'code') === get(item, 'code') ? {
429
417
  background: '#eaf4fd'
430
418
  } : {
431
419
  background: 'none'
432
420
  },
433
421
  onClick: handleClickListItem(item),
434
422
  key: item.code
435
- }, /*#__PURE__*/React.createElement(_Tooltip, {
423
+ }, /*#__PURE__*/React.createElement(Tooltip, {
436
424
  title: item.name,
437
425
  placement: "left"
438
426
  }, /*#__PURE__*/React.createElement("span", {
439
427
  className: "doctor-desk-first-visit-sider-list__item-title"
440
- }, item.code ? '' : /*#__PURE__*/React.createElement(InfoCircleOutlined, {
428
+ }, item.code ? '' : /*#__PURE__*/React.createElement(MyIcon$1, {
429
+ value: 'InfoCircleOutlined',
441
430
  style: {
442
431
  marginRight: 4
443
432
  }
@@ -451,39 +440,124 @@ function Page_DocRecord(props) {
451
440
  activeItem: activeItem
452
441
  });
453
442
  }
454
- return /*#__PURE__*/React.createElement(_Row, {
443
+ return /*#__PURE__*/React.createElement(Row, {
455
444
  style: {
456
445
  height: '100%'
457
446
  },
458
447
  className: "nuser-record"
459
- }, /*#__PURE__*/React.createElement(_Col, {
448
+ }, /*#__PURE__*/React.createElement(Col, {
460
449
  style: {
461
450
  height: '100%',
462
451
  width: 300,
463
- overflow: 'scroll'
452
+ overflow: 'auto'
464
453
  }
465
- }, renderSider()), /*#__PURE__*/React.createElement(_Col, {
454
+ }, renderSider()), /*#__PURE__*/React.createElement(Col, {
466
455
  style: {
467
456
  height: '100%',
468
457
  width: 'calc(100% - 300px)',
469
- overflow: 'scroll'
458
+ overflow: 'auto'
470
459
  },
471
460
  className: "nur-form-container"
472
461
  }, renderContent()));
473
462
  }
463
+ var Questionnaire = /*#__PURE__*/lazy(function () {
464
+ return import('./src.pages.questionnaire.js');
465
+ });
466
+ function Inner$1(_a) {
467
+ var onChange = _a.onChange;
468
+ var _b = useState([]),
469
+ arr = _b[0],
470
+ setarr = _b[1];
471
+ var _c = useState(false),
472
+ multiple = _c[0],
473
+ setmultiple = _c[1];
474
+ return /*#__PURE__*/React.createElement("div", {
475
+ style: {
476
+ height: '100%',
477
+ position: 'relative'
478
+ }
479
+ }, /*#__PURE__*/React.createElement(MySwitch, {
480
+ value: multiple,
481
+ onChange: function onChange(v) {
482
+ return setmultiple(v);
483
+ },
484
+ checkedChildren: "\u591A\u9009",
485
+ unCheckedChildren: "\u5355\u9009",
486
+ style: {
487
+ position: 'absolute',
488
+ left: 24,
489
+ top: 24
490
+ }
491
+ }), /*#__PURE__*/React.createElement(Questionnaire, {
492
+ selected: arr,
493
+ onSelect: function onSelect(qs) {
494
+ var selected_idx = arr.findIndex(function (s) {
495
+ return s.id === (qs === null || qs === void 0 ? void 0 : qs.id);
496
+ });
497
+ var _arr = __spreadArray([], arr, true);
498
+ if (selected_idx > -1) {
499
+ _arr.splice(selected_idx, 1);
500
+ } else {
501
+ if (multiple) {
502
+ _arr.push(qs);
503
+ } else {
504
+ _arr = [qs];
505
+ }
506
+ }
507
+ setarr(_arr);
508
+ onChange(_arr);
509
+ }
510
+ }));
511
+ }
512
+ function QuestionnaireButton(props) {
513
+ var _a;
514
+ var title = (_a = props.btn_text) !== null && _a !== void 0 ? _a : '选择问卷';
515
+ var arr = useRef([]);
516
+ return /*#__PURE__*/React.createElement(OkButton, _assign({}, props, {
517
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
518
+ value: 'SendOutlined'
519
+ }),
520
+ btn_text: title,
521
+ onClick: function onClick() {
522
+ mchcModal__.open('box', {
523
+ title: title,
524
+ modal_data: {
525
+ content: /*#__PURE__*/React.createElement(Inner$1, {
526
+ onChange: function onChange(data) {
527
+ return arr.current = data;
528
+ }
529
+ })
530
+ },
531
+ width: '80vw',
532
+ styles: {
533
+ body: {
534
+ height: '80vh'
535
+ }
536
+ },
537
+ onClose: function onClose(status) {
538
+ var _a;
539
+ if (status) (_a = props.onOk) === null || _a === void 0 ? void 0 : _a.call(props, arr.current);
540
+ }
541
+ });
542
+ }
543
+ }));
544
+ }
474
545
  var collapsedWidth = 50;
475
546
  var width = 232;
476
- var Layout_Sider = /*#__PURE__*/lazy(function () {
477
- return import('./.root.js');
547
+ var Inner = /*#__PURE__*/lazy(function () {
548
+ return import('./src.components.Layout_Sider.js');
478
549
  });
550
+ function Layout_Sider(props) {
551
+ return /*#__PURE__*/React.createElement(Inner, _assign({}, props));
552
+ }
479
553
  var Layout_TabButton = /*#__PURE__*/lazy(function () {
480
- return import('./.root2.js');
554
+ return import('./src.components.Layout_TabButton.js');
481
555
  });
482
556
  var MyBaseList = /*#__PURE__*/lazy(function () {
483
- return import('./.root3.js');
557
+ return import('./src.components.Base_List.js');
484
558
  });
485
- var css_248z$2 = ".error-boundary {\n height: calc(100vh - 108px);\n}\n.error-boundary .react-codemirror2:nth-of-type(2) {\n height: calc(100% - 300px);\n}\n.error-boundary .react-codemirror2:nth-of-type(2) .CodeMirror {\n height: 100%;\n}\n.error-boundary .CodeMirror-scroll {\n padding-bottom: 0;\n}\n.select-tip {\n width: 100%;\n height: 100%;\n background: #ffffff;\n}\n.select-tip img {\n height: 143px;\n width: auto;\n}\n.select-tip .ant-result-title {\n font-size: 16px;\n}\n.custom-result {\n height: 100%;\n}\n.custom-result .ant-result-extra {\n margin-top: 12px;\n}\n";
486
- styleInject(css_248z$2);
559
+ var css_248z$1 = ".error-boundary {\n height: calc(100vh - 108px);\n}\n.error-boundary .react-codemirror2:nth-of-type(2) {\n height: calc(100% - 300px);\n}\n.error-boundary .react-codemirror2:nth-of-type(2) .CodeMirror {\n height: 100%;\n}\n.error-boundary .CodeMirror-scroll {\n padding-bottom: 0;\n}\n.select-tip {\n width: 100%;\n height: 100%;\n}\n.select-tip img {\n height: 143px;\n width: auto;\n}\n.select-tip .ant-result-title {\n font-size: 16px;\n}\n.custom-result {\n height: 100%;\n}\n.custom-result .ant-result-extra {\n margin-top: 12px;\n}\n";
560
+ styleInject(css_248z$1);
487
561
  var transformErrorMessage = function transformErrorMessage(err) {
488
562
  if (!err) {
489
563
  return [];
@@ -498,7 +572,7 @@ var ErrorBoundarySmall = function (_super) {
498
572
  _this.extra = function (stack) {
499
573
  var _a, _b;
500
574
  var text = transformErrorMessage(stack)[0];
501
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, text, /*#__PURE__*/React.createElement(_Button, {
575
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, text, /*#__PURE__*/React.createElement(Button, {
502
576
  type: "link",
503
577
  onClick: function onClick() {
504
578
  return _this.setState({
@@ -510,9 +584,9 @@ var ErrorBoundarySmall = function (_super) {
510
584
  marginTop: '8px',
511
585
  textAlign: 'left'
512
586
  }
513
- }, !_this.state.collapsed && /*#__PURE__*/React.createElement(MyMonaco, {
587
+ }, !_this.state.collapsed && (/*#__PURE__*/React.createElement(MyMonaco, {
514
588
  value: (_b = (_a = _this.state.error) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : ''
515
- })));
589
+ }))));
516
590
  };
517
591
  _this.state = {
518
592
  collapsed: true,
@@ -538,7 +612,7 @@ var ErrorBoundarySmall = function (_super) {
538
612
  hasError = _a.hasError,
539
613
  error = _a.error;
540
614
  if (hasError) {
541
- return /*#__PURE__*/React.createElement(_Result, {
615
+ return /*#__PURE__*/React.createElement(Result, {
542
616
  style: {
543
617
  padding: 0,
544
618
  margin: 0
@@ -561,7 +635,7 @@ var config_table_fd = function config_table_fd(props) {
561
635
  inputType: 'MyMonaco',
562
636
  inputProps: {
563
637
  language: 'javascript',
564
- height: '70vh'
638
+ height: '74vh'
565
639
  },
566
640
  dataIndex: 'tableColumns'
567
641
  }]
@@ -609,28 +683,37 @@ var config_table_fd = function config_table_fd(props) {
609
683
  inputType: 'MyInput',
610
684
  dataIndex: 'dept'
611
685
  }, {
612
- title: '表单联动设置',
686
+ title: '标签宽度',
687
+ layout: '1/3',
688
+ inputType: 'InputNumber',
689
+ inputProps: {
690
+ min: 2,
691
+ max: 20
692
+ },
693
+ dataIndex: 'targetLabelCol'
694
+ }, {
695
+ title: '表单回选前钩子',
613
696
  hidden: true,
614
697
  containerType: 'tabs',
615
698
  children: [{
616
699
  inputType: 'MyMonaco',
617
700
  inputProps: {
618
701
  language: 'javascript',
619
- height: '50vh'
702
+ height: '56vh'
620
703
  },
621
- dataIndex: 'watchScript'
704
+ dataIndex: 'handleBeforePopup'
622
705
  }]
623
706
  }, {
624
- title: '表单回选前钩子',
707
+ title: '表单联动设置',
625
708
  hidden: true,
626
709
  containerType: 'tabs',
627
710
  children: [{
628
711
  inputType: 'MyMonaco',
629
712
  inputProps: {
630
713
  language: 'javascript',
631
- height: '50vh'
714
+ height: '56vh'
632
715
  },
633
- dataIndex: 'handleBeforePopup'
716
+ dataIndex: 'watchScript'
634
717
  }]
635
718
  }, {
636
719
  title: '表单提交前钩子',
@@ -640,7 +723,7 @@ var config_table_fd = function config_table_fd(props) {
640
723
  inputType: 'MyMonaco',
641
724
  inputProps: {
642
725
  language: 'javascript',
643
- height: '50vh'
726
+ height: '56vh'
644
727
  },
645
728
  dataIndex: 'beforeSubmit'
646
729
  }]
@@ -651,14 +734,14 @@ var config_table_fd = function config_table_fd(props) {
651
734
  dataIndex: 'id',
652
735
  render: function render(value, record, index) {
653
736
  var p = genHappyPath('/config-table/list', [value]);
654
- return /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement("a", {
737
+ return /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement("a", {
655
738
  target: "blank",
656
739
  onClick: function onClick() {
657
740
  return SLocal_History.safe_history_push(p, props);
658
741
  }
659
742
  }, "\u6253\u5F00"), /*#__PURE__*/React.createElement("a", {
660
743
  onClick: function onClick() {
661
- return copyText(p) && _message.success('复制成功!');
744
+ return copyText(p) && mchcEnv.success('复制成功!');
662
745
  }
663
746
  }, "\u590D\u5236\u5730\u5740"));
664
747
  }
@@ -668,14 +751,14 @@ var config_table_fd = function config_table_fd(props) {
668
751
  dataIndex: 'id',
669
752
  render: function render(value, record, index) {
670
753
  var p = genHappyPath('/config-table/panel', [value], "?id=1");
671
- return /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement("a", {
754
+ return /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement("a", {
672
755
  target: "blank",
673
756
  onClick: function onClick() {
674
757
  return SLocal_History.safe_history_push(p, props);
675
758
  }
676
759
  }, "\u6253\u5F00"), /*#__PURE__*/React.createElement("a", {
677
760
  onClick: function onClick() {
678
- return copyText(p) && _message.success('复制成功!');
761
+ return copyText(p) && mchcEnv.success('复制成功!');
679
762
  }
680
763
  }, "\u590D\u5236\u5730\u5740"));
681
764
  }
@@ -687,7 +770,7 @@ var config_table_fd = function config_table_fd(props) {
687
770
  title: '显示默认操作列',
688
771
  inputType: 'MyCheckbox',
689
772
  inputProps: {
690
- optionKey: '否是',
773
+ uniqueKey: '否是',
691
774
  marshal: 0
692
775
  },
693
776
  dataIndex: 'showAction',
@@ -697,7 +780,7 @@ var config_table_fd = function config_table_fd(props) {
697
780
  title: '显示添加按钮',
698
781
  inputType: 'MyCheckbox',
699
782
  inputProps: {
700
- optionKey: '否是',
783
+ uniqueKey: '否是',
701
784
  marshal: 0
702
785
  },
703
786
  dataIndex: 'showAdd',
@@ -707,7 +790,7 @@ var config_table_fd = function config_table_fd(props) {
707
790
  title: '显示行打印按钮',
708
791
  inputType: 'MyCheckbox',
709
792
  inputProps: {
710
- optionKey: '否是',
793
+ uniqueKey: '否是',
711
794
  marshal: 0
712
795
  },
713
796
  dataIndex: 'showRowPrintBtn',
@@ -717,7 +800,7 @@ var config_table_fd = function config_table_fd(props) {
717
800
  title: '显示导出按钮',
718
801
  inputType: 'MyCheckbox',
719
802
  inputProps: {
720
- optionKey: '否是',
803
+ uniqueKey: '否是',
721
804
  marshal: 0
722
805
  },
723
806
  dataIndex: 'showExport',
@@ -727,7 +810,7 @@ var config_table_fd = function config_table_fd(props) {
727
810
  title: '显示打印按钮',
728
811
  inputType: 'MyCheckbox',
729
812
  inputProps: {
730
- optionKey: '否是',
813
+ uniqueKey: '否是',
731
814
  marshal: 0
732
815
  },
733
816
  dataIndex: 'showPrint',
@@ -740,28 +823,28 @@ var config_table_fd = function config_table_fd(props) {
740
823
  dataIndex: 'rowKey',
741
824
  hidden: true
742
825
  }, {
743
- title: '静态查询参数',
826
+ title: '查询配置',
744
827
  containerType: 'tabs',
745
828
  hidden: true,
746
829
  children: [{
747
830
  inputType: 'MyMonaco',
748
831
  inputProps: {
749
832
  language: 'javascript',
750
- height: '50vh'
833
+ height: '56vh'
751
834
  },
752
- dataIndex: 'searchParams'
835
+ dataIndex: 'searchConfig'
753
836
  }]
754
837
  }, {
755
- title: '查询配置',
838
+ title: '静态查询参数',
756
839
  containerType: 'tabs',
757
840
  hidden: true,
758
841
  children: [{
759
842
  inputType: 'MyMonaco',
760
843
  inputProps: {
761
844
  language: 'javascript',
762
- height: '50vh'
845
+ height: '56vh'
763
846
  },
764
- dataIndex: 'searchConfig'
847
+ dataIndex: 'searchParams'
765
848
  }]
766
849
  }, {
767
850
  title: '默认查询参数',
@@ -771,7 +854,7 @@ var config_table_fd = function config_table_fd(props) {
771
854
  inputType: 'MyMonaco',
772
855
  inputProps: {
773
856
  language: 'javascript',
774
- height: '50vh'
857
+ height: '56vh'
775
858
  },
776
859
  dataIndex: 'initialSearchValue'
777
860
  }]
@@ -783,7 +866,7 @@ var config_table_fd = function config_table_fd(props) {
783
866
  inputType: 'MyMonaco',
784
867
  inputProps: {
785
868
  language: 'javascript',
786
- height: '50vh'
869
+ height: '56vh'
787
870
  },
788
871
  dataIndex: 'genColumns'
789
872
  }]
@@ -795,7 +878,7 @@ var config_table_fd = function config_table_fd(props) {
795
878
  inputType: 'MyMonaco',
796
879
  inputProps: {
797
880
  language: 'javascript',
798
- height: '50vh'
881
+ height: '56vh'
799
882
  },
800
883
  dataIndex: 'RenderBtns'
801
884
  }]
@@ -808,7 +891,7 @@ var config_table_fd = function config_table_fd(props) {
808
891
  title: '打印',
809
892
  inputType: 'MyCheckbox',
810
893
  inputProps: {
811
- optionKey: '否是',
894
+ uniqueKey: '否是',
812
895
  marshal: 0
813
896
  },
814
897
  dataIndex: 'needPrint',
@@ -818,7 +901,7 @@ var config_table_fd = function config_table_fd(props) {
818
901
  title: '同步',
819
902
  inputType: 'MyCheckbox',
820
903
  inputProps: {
821
- optionKey: '否是',
904
+ uniqueKey: '否是',
822
905
  marshal: 0
823
906
  },
824
907
  dataIndex: 'needSync',
@@ -828,12 +911,21 @@ var config_table_fd = function config_table_fd(props) {
828
911
  title: '导入',
829
912
  inputType: 'MyCheckbox',
830
913
  inputProps: {
831
- optionKey: '否是',
914
+ uniqueKey: '否是',
832
915
  marshal: 0
833
916
  },
834
917
  dataIndex: 'needImport',
835
918
  hidden: true,
836
919
  layout: '1/3'
920
+ }, {
921
+ title: '初始值',
922
+ inputType: 'MyMonaco',
923
+ inputProps: {
924
+ language: 'javascript',
925
+ height: '70vh'
926
+ },
927
+ dataIndex: 'initialValues',
928
+ layout: '1/3'
837
929
  }]
838
930
  }];
839
931
  };
@@ -847,13 +939,13 @@ function use_table_config(setting, props) {
847
939
  config = _b[0],
848
940
  setConfig = _b[1];
849
941
  var config_raw = useRef();
850
- function fetch_config() {
942
+ function _fetch_conf() {
851
943
  return __awaiter(this, void 0, void 0, function () {
852
944
  var __title, res, arr, _config;
853
945
  return __generator(this, function (_a) {
854
946
  switch (_a.label) {
855
947
  case 0:
856
- __title = default_conf_ref.current.title;
948
+ __title = default_conf.title;
857
949
  if (!__title) return [2];
858
950
  setLoading(true);
859
951
  return [4, SMchc_TableConfig.page({
@@ -869,9 +961,13 @@ function use_table_config(setting, props) {
869
961
  res = _a.sent();
870
962
  arr = expect_array(res.data);
871
963
  if (arr.length > 1) {
872
- _message.warning('存在多份配置');
964
+ message.warning('存在多份配置');
873
965
  }
874
966
  _config = arr[0];
967
+ if (!_config) {
968
+ setConfig(undefined);
969
+ return [2];
970
+ }
875
971
  config_raw.current = _assign({}, _config);
876
972
  if (!(_config === null || _config === void 0 ? void 0 : _config.tableColumns)) return [2];
877
973
  setConfig(SMchc_TableConfig.process_remote(_config, props));
@@ -894,6 +990,7 @@ function use_table_config(setting, props) {
894
990
  is_recover = false;
895
991
  }
896
992
  mchcModal__.open('modal_form', {
993
+ title: is_recover ? '恢复初始化' : '',
897
994
  width: '90vw',
898
995
  maskClosable: false,
899
996
  bodyStyle: {
@@ -914,7 +1011,7 @@ function use_table_config(setting, props) {
914
1011
  case 0:
915
1012
  if (is_recover) {
916
1013
  if (!confirm_operation()) {
917
- _message.warning('输入错误');
1014
+ message.warning('输入错误');
918
1015
  return [2, 0];
919
1016
  }
920
1017
  }
@@ -933,7 +1030,7 @@ function use_table_config(setting, props) {
933
1030
  _a.sent();
934
1031
  _a.label = 4;
935
1032
  case 4:
936
- return [4, fetch_config()];
1033
+ return [4, _fetch_conf()];
937
1034
  case 5:
938
1035
  _a.sent();
939
1036
  return [2, 1];
@@ -946,14 +1043,28 @@ function use_table_config(setting, props) {
946
1043
  });
947
1044
  }
948
1045
  useEffect(function () {
949
- if (default_conf.title && !config_raw.current) {
1046
+ var _a, _b, _c, _d, _e;
1047
+ if (default_conf.title) {
1048
+ default_conf.handleBeforePopup = (_a = default_conf.handleBeforePopup) !== null && _a !== void 0 ? _a : function (values) {
1049
+ return values;
1050
+ };
1051
+ default_conf.beforeSubmit = (_b = default_conf.beforeSubmit) !== null && _b !== void 0 ? _b : function (new_values, old_values) {
1052
+ return new_values;
1053
+ };
1054
+ default_conf.watchScript = (_c = default_conf.watchScript) !== null && _c !== void 0 ? _c : function (changed, values, form) {};
1055
+ default_conf.initialSearchValue = (_d = default_conf.initialSearchValue) !== null && _d !== void 0 ? _d : function () {
1056
+ return {};
1057
+ };
1058
+ default_conf.searchParams = (_e = default_conf.searchParams) !== null && _e !== void 0 ? _e : function () {
1059
+ return {};
1060
+ };
950
1061
  SMchc_TableConfig.process_local(default_conf).then(function (r) {
951
1062
  default_conf_ref.current = r;
952
- fetch_config();
1063
+ _fetch_conf();
953
1064
  });
954
1065
  }
955
1066
  return function () {};
956
- }, []);
1067
+ }, [default_conf.title]);
957
1068
  return {
958
1069
  config: config,
959
1070
  init_config: init_config,
@@ -962,17 +1073,13 @@ function use_table_config(setting, props) {
962
1073
  recover_config: recover_config
963
1074
  };
964
1075
  }
965
- var css_248z$1 = ".wrap-module_edit-btn__Pqh0P {\n position: absolute;\n top: 6px;\n right: 6px;\n opacity: 0.5;\n width: auto;\n}\n.wrap-module_edit-btn__Pqh0P:hover {\n opacity: 1;\n}\n";
966
- var styles$1 = {
967
- "edit-btn": "wrap-module_edit-btn__Pqh0P"
968
- };
969
- styleInject(css_248z$1);
970
- LazyAntd.Tree;
971
- LazyAntd.TreeSelect;
972
- LazyAntd.Select;
973
- LazyAntd.Table;
974
- var Dropdown$1 = LazyAntd.Dropdown;
975
- LazyAntd.Pagination;
1076
+ var items = [{
1077
+ label: '初始',
1078
+ key: 'init',
1079
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
1080
+ value: 'UndoOutlined'
1081
+ })
1082
+ }];
976
1083
  function BF_Wrap2(setting, props) {
977
1084
  var _a = use_table_config(setting, props),
978
1085
  config = _a.config,
@@ -980,35 +1087,54 @@ function BF_Wrap2(setting, props) {
980
1087
  init_config = _a.init_config,
981
1088
  loading = _a.loading,
982
1089
  recover_config = _a.recover_config;
1090
+ var sys_theme = use_provoke(function (s) {
1091
+ return s.sys_theme;
1092
+ });
1093
+ var handleMenuClick = function handleMenuClick(e) {
1094
+ if (e.key === 'edit') {
1095
+ edit_config();
1096
+ }
1097
+ if (e.key === 'init') {
1098
+ recover_config();
1099
+ }
1100
+ };
1101
+ var menuProps = {
1102
+ items: items,
1103
+ onClick: handleMenuClick
1104
+ };
983
1105
  var Wrap = useMemo(function () {
984
1106
  return function (_a) {
985
1107
  var children = _a.children,
986
1108
  _b = _a.style,
987
1109
  style = _b === void 0 ? {} : _b;
988
1110
  if (loading) return /*#__PURE__*/React.createElement(LoadingPlaceholder, null);
989
- var menu = /*#__PURE__*/React.createElement(_Menu, null, /*#__PURE__*/React.createElement(_Menu.Item, {
990
- onClick: function onClick() {
991
- return edit_config();
992
- }
993
- }, "\u7F16\u8F91"), /*#__PURE__*/React.createElement(_Menu.Item, {
994
- onClick: function onClick() {
995
- return recover_config();
996
- }
997
- }, "\u521D\u59CB"));
998
- var isAdmin = SLocal_State.isAdmin;
1111
+ var isAdmin = mchcEnv.isAdmin || __DEV__;
999
1112
  return /*#__PURE__*/React.createElement("div", {
1000
1113
  style: _assign(_assign({}, style), {
1001
- background: '#fff',
1002
1114
  position: 'relative',
1003
- border: isAdmin ? '1px dashed red' : 'none'
1115
+ border: isAdmin && !__DEV__ ? "1px dashed ".concat(sys_theme.colorPrimary) : 'none'
1004
1116
  })
1005
- }, config ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorBoundarySmall, null, /*#__PURE__*/React.createElement(MyLazyComponent, null, children)), isAdmin ? /*#__PURE__*/React.createElement(Dropdown$1.Button, {
1006
- icon: /*#__PURE__*/React.createElement(BuildOutlined, null),
1007
- className: styles$1['edit-btn'],
1008
- size: "small",
1009
- overlay: menu,
1117
+ }, config ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ErrorBoundarySmall, null, /*#__PURE__*/React.createElement(MyLazyComponent, null, children)), isAdmin ? /*#__PURE__*/React.createElement(Dropdown_L, {
1118
+ menu: menuProps,
1010
1119
  trigger: ['hover']
1011
- }) : null) : /*#__PURE__*/React.createElement(_Result, {
1120
+ }, /*#__PURE__*/React.createElement(Button, {
1121
+ onClick: function onClick() {
1122
+ return edit_config();
1123
+ },
1124
+ size: 'small',
1125
+ shape: 'circle',
1126
+ type: 'primary',
1127
+ style: {
1128
+ position: 'absolute',
1129
+ top: 6,
1130
+ right: 6,
1131
+ opacity: .8,
1132
+ width: 'auto'
1133
+ },
1134
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
1135
+ value: 'AppstoreOutlined'
1136
+ })
1137
+ })) : null) : /*#__PURE__*/React.createElement(Result, {
1012
1138
  status: "warning",
1013
1139
  title: "\u914D\u7F6E\u7F3A\u5931",
1014
1140
  subTitle: "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u521D\u59CB\u5316[".concat(setting.default_conf.title, "]"),
@@ -1023,9 +1149,12 @@ function BF_Wrap2(setting, props) {
1023
1149
  Wrap: Wrap
1024
1150
  };
1025
1151
  }
1152
+ Object.assign(window, {
1153
+ BF_Wrap2: BF_Wrap2
1154
+ });
1026
1155
  function get_bf_default() {
1027
1156
  var config = {
1028
- "tableColumns": "// ctx 上下文\r\n// ui 组件, goTo 跳转函数, createElement 创建元素\r\n// request 请求库, message 消息提示, mchcEnv 环境相关\r\n\r\nconst { React, ui, goTo, request, message, mchcEnv } = ctx\r\nconst { Button, Space } = ui\r\nconst c = React.createElement\r\n\r\nret = function () {\r\n return data\r\n}\r\nvar data = [\r\n {\r\n title: \"一、基本情况\",\r\n hidden: true,\r\n inputType: \"title\"\r\n },\r\n {\r\n title: \"孕妇的姓名\",\r\n dataIndex: \"name\",\r\n inputType: \"MyInput\",\r\n layout: \"1/3\"\r\n },\r\n {\r\n title: \"测试Checkbox\",\r\n dataIndex: \"name\",\r\n inputType: \"Checkbox\",\r\n props: {\r\n options: 'a,b,b,d,无',\r\n type:'multiple',\r\n marshal:false\r\n }\r\n },\r\n {\r\n title: \"测试Checkbox\",\r\n dataIndex: \"name\",\r\n inputType: \"Checkbox\",\r\n props: {\r\n options: [\r\n {\r\n label: 'a', value: 1, inputType: 'Checkbox', props: {\r\n options: [\r\n {\r\n label: 'b', value: 1,\r\n },\r\n {\r\n label: 'b', value: 2, inputType: 'ArrayInput', props: {\r\n options: [\r\n {\r\n inputType: 'MyInput',\r\n prefix: '前前前'\r\n },\r\n {\r\n inputType: 'MyInput',\r\n prefix: 'aaa',\r\n suffix: 'bbb'\r\n },\r\n ]\r\n }\r\n },\r\n ]\r\n }, prefix: '前', suffix: '后', parentheses: true\r\n },\r\n { label: 'b', value: 2 },\r\n { label: 'sb', value: 99, exclusive: true }\r\n ],\r\n 'optionKey': '分娩方式',\r\n\r\n\r\n }\r\n },\r\n {\r\n title: \"孕妇的年龄\",\r\n dataIndex: \"age\",\r\n inputType: \"InputNumber\",\r\n layout: \"1/3\"\r\n },\r\n {\r\n title: \"日期\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n },\r\n {\r\n title: \"日期+时间\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n showTime: true,\r\n format: \"YYYY-MM-DD HH-mm\"\r\n }\r\n },\r\n {\r\n title: \"日期不详\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n unknown: true,\r\n }\r\n },\r\n {\r\n title: \"一个按钮2\",\r\n dataIndex: \"aBtn\",\r\n hidden: true,\r\n inputType: \"MyButton\",\r\n inputProps: {\r\n btnText: \"增加年龄\"\r\n }\r\n },\r\n {\r\n title: \"标题11\",\r\n dataIndex: \"education\",\r\n children: [\r\n {\r\n title: \"文化程度\",\r\n dataIndex: \"education\",\r\n inputType: \"MyCheckbox\",\r\n inputProps: {\r\n optionKey: \"文化程度\",\r\n marshal: false\r\n }\r\n },\r\n {\r\n title: \"一个按钮\",\r\n dataIndex: \"aBtn\",\r\n hidden: true,\r\n inputType: \"MyButton\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n btnText: \"增加年龄\"\r\n }\r\n }\r\n ]\r\n }\r\n]"
1157
+ "tableColumns": "// ctx 上下文\r\n// ui 组件, goTo 跳转函数, createElement 创建元素\r\n// request 请求库, message 消息提示, mchcEnv 环境相关\r\n\r\nconst { React, ui, goTo, request, message, mchcEnv } = ctx\r\nconst { Button, Space } = ui\r\nconst c = React.createElement\r\n\r\nret = function () {\r\n return data\r\n}\r\nvar data = [\r\n {\r\n title: \"一、基本情况\",\r\n hidden: true,\r\n inputType: \"title\"\r\n },\r\n {\r\n title: \"孕妇的姓名\",\r\n dataIndex: \"name\",\r\n inputType: \"MyInput\",\r\n layout: \"1/3\"\r\n },\r\n {\r\n title: \"测试Checkbox\",\r\n dataIndex: \"name\",\r\n inputType: \"Checkbox\",\r\n props: {\r\n options: 'a,b,b,d,无',\r\n type:'multiple',\r\n marshal:false\r\n }\r\n },\r\n {\r\n title: \"测试Checkbox\",\r\n dataIndex: \"name\",\r\n inputType: \"Checkbox\",\r\n props: {\r\n options: [\r\n {\r\n label: 'a', value: 1, inputType: 'Checkbox', props: {\r\n options: [\r\n {\r\n label: 'b', value: 1,\r\n },\r\n {\r\n label: 'b', value: 2, inputType: 'ArrayInput', props: {\r\n options: [\r\n {\r\n inputType: 'MyInput',\r\n prefix: '前前前'\r\n },\r\n {\r\n inputType: 'MyInput',\r\n prefix: 'aaa',\r\n suffix: 'bbb'\r\n },\r\n ]\r\n }\r\n },\r\n ]\r\n }, prefix: '前', suffix: '后', parentheses: true\r\n },\r\n { label: 'b', value: 2 },\r\n { label: 'sb', value: 99, exclusive: true }\r\n ],\r\n 'uniqueKey': '分娩方式',\r\n\r\n\r\n }\r\n },\r\n {\r\n title: \"孕妇的年龄\",\r\n dataIndex: \"age\",\r\n inputType: \"InputNumber\",\r\n layout: \"1/3\"\r\n },\r\n {\r\n title: \"日期\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n },\r\n {\r\n title: \"日期+时间\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n showTime: true,\r\n format: \"YYYY-MM-DD HH-mm\"\r\n }\r\n },\r\n {\r\n title: \"日期不详\",\r\n dataIndex: \"age\",\r\n inputType: \"DatePicker\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n unknown: true,\r\n }\r\n },\r\n {\r\n title: \"一个按钮2\",\r\n dataIndex: \"aBtn\",\r\n hidden: true,\r\n inputType: \"MyButton\",\r\n inputProps: {\r\n btn_text: \"增加年龄\"\r\n }\r\n },\r\n {\r\n title: \"标题11\",\r\n dataIndex: \"education\",\r\n children: [\r\n {\r\n title: \"文化程度\",\r\n dataIndex: \"education\",\r\n inputType: \"MyCheckbox\",\r\n inputProps: {\r\n uniqueKey: \"文化程度\",\r\n marshal: false\r\n }\r\n },\r\n {\r\n title: \"一个按钮\",\r\n dataIndex: \"aBtn\",\r\n hidden: true,\r\n inputType: \"MyButton\",\r\n layout: \"1/3\",\r\n inputProps: {\r\n btn_text: \"增加年龄\"\r\n }\r\n }\r\n ]\r\n }\r\n]"
1029
1158
  };
1030
1159
  return config;
1031
1160
  }
@@ -1033,10 +1162,11 @@ function BF_Form(props) {
1033
1162
  var _a;
1034
1163
  var history_args = props.history_args,
1035
1164
  fallback_finish = props.fallback_finish,
1036
- fallback_init = props.fallback_init;
1037
- var _form = _Form.useForm()[0];
1165
+ fallback_init = props.fallback_init,
1166
+ disabled = props.disabled;
1167
+ var _form = Form.useForm()[0];
1038
1168
  var history_url = useRef();
1039
- var _form_first = _Form.useForm()[0];
1169
+ var _form_first = Form.useForm()[0];
1040
1170
  var _b = BF_Wrap2(props),
1041
1171
  config = _b.config,
1042
1172
  Wrap = _b.Wrap;
@@ -1105,19 +1235,21 @@ function BF_Form(props) {
1105
1235
  return __generator(this, function (_a) {
1106
1236
  switch (_a.label) {
1107
1237
  case 0:
1108
- if (!history_url.current) return [3, 1];
1238
+ if (!history_url.current) return [3, 2];
1109
1239
  submitData = _assign(_assign({}, remote_data.current), v);
1110
1240
  mchcLogger.log('submitData', submitData);
1111
- request.put(history_url.current, submitData, {
1241
+ return [4, request.put(history_url.current, submitData, {
1112
1242
  successText: '操作成功'
1113
- });
1114
- return [3, 3];
1243
+ })];
1115
1244
  case 1:
1116
- return [4, fallback_finish(v)];
1117
- case 2:
1118
1245
  _a.sent();
1119
- _a.label = 3;
1246
+ return [3, 4];
1247
+ case 2:
1248
+ return [4, fallback_finish(v)];
1120
1249
  case 3:
1250
+ _a.sent();
1251
+ _a.label = 4;
1252
+ case 4:
1121
1253
  mchcEvent.emit('custom_msg', {
1122
1254
  type: 'BF_Form',
1123
1255
  data: config === null || config === void 0 ? void 0 : config.title
@@ -1135,150 +1267,185 @@ function BF_Form(props) {
1135
1267
  }
1136
1268
  });
1137
1269
  }, [config]);
1138
- return /*#__PURE__*/React.createElement(Wrap, null, first ? /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
1270
+ return /*#__PURE__*/React.createElement(Wrap, null, first ? /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
1139
1271
  span: 14
1140
1272
  }, /*#__PURE__*/React.createElement(FormSectionForm, {
1273
+ disableAll: disabled,
1274
+ size: 'small',
1141
1275
  targetLabelCol: first ? 2 : 2,
1142
1276
  onFinish: update,
1143
1277
  form: form,
1144
1278
  formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1145
- })), /*#__PURE__*/React.createElement(_Col, {
1279
+ })), /*#__PURE__*/React.createElement(Col, {
1146
1280
  span: 10
1147
- }, /*#__PURE__*/React.createElement(FormSectionForm, {
1148
- targetLabelCol: first ? 2 : 2,
1149
- disableAll: true,
1150
- form: _form_first,
1151
- formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1152
- }))) : /*#__PURE__*/React.createElement(FormSectionForm, {
1281
+ }, /*#__PURE__*/React.createElement(FormSectionForm, _defineProperty(_defineProperty(_defineProperty({
1282
+ disableAll: disabled,
1283
+ size: 'small',
1284
+ targetLabelCol: first ? 2 : 2
1285
+ }, "disableAll", true), "form", _form_first), "formDescriptions", config === null || config === void 0 ? void 0 : config.tableColumns)))) : /*#__PURE__*/React.createElement(FormSectionForm, {
1286
+ disableAll: disabled,
1287
+ size: 'small',
1153
1288
  onFinish: update,
1154
1289
  form: form,
1155
1290
  formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1156
1291
  }));
1157
1292
  }
1293
+ function use_headinfo_color(highriskLable) {
1294
+ var _a = use_provoke('可选传染病', '可选高危等级', 'sys_theme'),
1295
+ 可选传染病 = _a.可选传染病,
1296
+ 可选高危等级 = _a.可选高危等级,
1297
+ sys_theme = _a.sys_theme;
1298
+ var is_dark = sys_theme.darkTheme;
1299
+ var cur = 可选高危等级 === null || 可选高危等级 === void 0 ? void 0 : 可选高危等级.find(function (_) {
1300
+ return _.levelText === highriskLable;
1301
+ });
1302
+ var colors = calc_colors(cur === null || cur === void 0 ? void 0 : cur.color);
1303
+ var 高危背景 = is_dark ? sys_theme.bg_color : colors === null || colors === void 0 ? void 0 : colors.light[2];
1304
+ var 高危文字颜色 = is_dark ? colors === null || colors === void 0 ? void 0 : colors.primary : colors === null || colors === void 0 ? void 0 : colors.dark[1];
1305
+ return {
1306
+ 高危颜色: cur === null || cur === void 0 ? void 0 : cur.color,
1307
+ 高危文字: cur === null || cur === void 0 ? void 0 : cur.colorText,
1308
+ 高危文字颜色: 高危文字颜色,
1309
+ 高危背景: 高危背景,
1310
+ 传染病颜色: 可选传染病 === null || 可选传染病 === void 0 ? void 0 : 可选传染病.color
1311
+ };
1312
+ }
1158
1313
  var HeaderInfoInner = /*#__PURE__*/lazy(function () {
1159
- return import('./.root4.js');
1314
+ return import('./components.doctor_end.HeaderInfo.js');
1160
1315
  });
1161
1316
  function DoctorEnd_HeaderInfo(props) {
1162
1317
  return /*#__PURE__*/React.createElement(MyLazyComponent$1, {
1163
- size: "tiny"
1164
- }, /*#__PURE__*/React.createElement(HeaderInfoInner, props));
1318
+ size: 'tiny'
1319
+ }, /*#__PURE__*/React.createElement(HeaderInfoInner, _assign({}, props)));
1165
1320
  }
1166
1321
  var DoctorEnd_HeaderInfoLayout = function HeaderInfoLayout(props) {
1167
1322
  return /*#__PURE__*/React.createElement("div", {
1168
1323
  style: {
1169
1324
  height: '100%'
1170
1325
  }
1171
- }, /*#__PURE__*/React.createElement(DoctorEnd_HeaderInfo, props), /*#__PURE__*/React.createElement("div", {
1326
+ }, /*#__PURE__*/React.createElement(DoctorEnd_HeaderInfo, _assign({}, props)), /*#__PURE__*/React.createElement("div", {
1172
1327
  style: {
1173
1328
  height: "calc(100% - 84px)"
1174
1329
  }
1175
1330
  }, props.children));
1176
1331
  };
1177
1332
  var DoctorEnd_ExemplaryCase = /*#__PURE__*/lazy(function () {
1178
- return import('./.root5.js');
1333
+ return import('./components.doctor_end.ExemplaryCase.js');
1179
1334
  });
1180
1335
  var SelectTip = function SelectTip() {
1181
- return /*#__PURE__*/React.createElement(_Result, {
1336
+ return /*#__PURE__*/React.createElement(Result, {
1182
1337
  className: "select-tip",
1183
1338
  title: "\u8BF7\u5728\u5DE6\u4FA7\u5217\u8868\u9009\u62E9\u6216\u65B0\u5EFA"
1184
1339
  });
1185
1340
  };
1186
1341
  var Mchc_Login = /*#__PURE__*/lazy(function () {
1187
- return import('./.root6.js');
1342
+ return import('./src.components.Login.js');
1188
1343
  });
1189
- function QuickDocButton(props) {
1190
- var page_type = props.page_type;
1344
+ function quick_doc(page_type, _onSubmit) {
1345
+ if (_onSubmit === void 0) {
1346
+ _onSubmit = function onSubmit(data) {};
1347
+ }
1191
1348
  var single = page_type === '单页';
1192
- function quick_doc() {
1193
- mchcModal__.open('modal_form', {
1194
- title: "".concat(page_type, "\u5FEB\u6377\u5EFA\u6863"),
1195
- modal_data: {
1196
- bf_title: "\u95E8\u8BCA-\u5FEB\u6377\u5EFA\u6863".concat(single ? '' : '非单页'),
1197
- getInitialData: function getInitialData() {
1198
- return __awaiter(this, void 0, void 0, function () {
1199
- var res;
1200
- return __generator(this, function (_a) {
1201
- switch (_a.label) {
1202
- case 0:
1203
- if (!single) return [2, {}];
1204
- return [4, request.post('/api/doctor/initPregnancyForQuickDocument', getSearchParamsAll(), {
1205
- unboxing: true
1206
- })];
1207
- case 1:
1208
- res = _a.sent();
1209
- return [2, res.data];
1210
- }
1211
- });
1349
+ mchcModal__.open('modal_form', {
1350
+ title: "".concat(page_type, "\u5FEB\u6377\u5EFA\u6863"),
1351
+ modal_data: {
1352
+ bf_title: "\u95E8\u8BCA-\u5FEB\u6377\u5EFA\u6863".concat(single ? '' : '非单页'),
1353
+ getInitialData: function getInitialData() {
1354
+ return __awaiter(this, void 0, void 0, function () {
1355
+ var res;
1356
+ return __generator(this, function (_a) {
1357
+ switch (_a.label) {
1358
+ case 0:
1359
+ if (!single) return [2, {}];
1360
+ return [4, request.post('/api/doctor/initPregnancyForQuickDocument', getSearchParamsAll(), {
1361
+ unboxing: true
1362
+ })];
1363
+ case 1:
1364
+ res = _a.sent();
1365
+ return [2, res.data];
1366
+ }
1212
1367
  });
1213
- },
1214
- onValuesChange: function onValuesChange(changedValues, values, form) {
1215
- return __awaiter(this, void 0, void 0, function () {
1216
- var __key, is末次月经, lmp, _a, edd, sureEdd, gestationalWeek;
1217
- return __generator(this, function (_b) {
1218
- switch (_b.label) {
1219
- case 0:
1220
- __key = _keys(changedValues)[0];
1221
- is末次月经 = __key === 'lmp';
1222
- if (!is末次月经) return [3, 2];
1223
- lmp = _get(changedValues, 'lmp');
1224
- return [4, SLocal_Calculator.lmp_计算_edd_gestationalWeek(lmp)];
1225
- case 1:
1226
- _a = _b.sent(), edd = _a.edd, sureEdd = _a.sureEdd, gestationalWeek = _a.gestationalWeek;
1227
- console.log({
1228
- edd: edd,
1229
- sureEdd: sureEdd,
1230
- gestationalWeek: gestationalWeek
1231
- });
1232
- form.setFieldsValue({
1233
- edd: edd,
1234
- sureEdd: sureEdd,
1235
- gestationalWeek: gestationalWeek
1236
- });
1237
- _b.label = 2;
1238
- case 2:
1239
- return [2];
1240
- }
1241
- });
1368
+ });
1369
+ },
1370
+ onValuesChange: function onValuesChange(changedValues, values, form) {
1371
+ return __awaiter(this, void 0, void 0, function () {
1372
+ var __key, is末次月经, lmp, _a, edd, sureEdd, gestationalWeek;
1373
+ return __generator(this, function (_b) {
1374
+ switch (_b.label) {
1375
+ case 0:
1376
+ __key = keys(changedValues)[0];
1377
+ is末次月经 = __key === 'lmp';
1378
+ if (!is末次月经) return [3, 2];
1379
+ lmp = get(changedValues, 'lmp');
1380
+ return [4, SLocal_Calculator.lmp_计算_edd_gestationalWeek(lmp)];
1381
+ case 1:
1382
+ _a = _b.sent(), edd = _a.edd, sureEdd = _a.sureEdd, gestationalWeek = _a.gestationalWeek;
1383
+ console.log({
1384
+ edd: edd,
1385
+ sureEdd: sureEdd,
1386
+ gestationalWeek: gestationalWeek
1387
+ });
1388
+ form.setFieldsValue({
1389
+ edd: edd,
1390
+ sureEdd: sureEdd,
1391
+ gestationalWeek: gestationalWeek
1392
+ });
1393
+ _b.label = 2;
1394
+ case 2:
1395
+ return [2];
1396
+ }
1242
1397
  });
1243
- },
1244
- onSubmit: function onSubmit(v) {
1245
- return __awaiter(this, void 0, void 0, function () {
1246
- return __generator(this, function (_a) {
1247
- switch (_a.label) {
1248
- case 0:
1249
- return [4, request.post('/api/pregnancies', set(v, 'fileType', single ? 1 : 2), {
1250
- successText: '操作成功'
1251
- })];
1252
- case 1:
1253
- _a.sent();
1254
- if (single) {
1255
- setTimeout(mchcEnv.reload, 1000);
1256
- } else {
1257
- return [2, true];
1258
- }
1259
- return [2];
1260
- }
1261
- });
1398
+ });
1399
+ },
1400
+ onSubmit: function onSubmit(v) {
1401
+ return __awaiter(this, void 0, void 0, function () {
1402
+ var data, res;
1403
+ return __generator(this, function (_a) {
1404
+ switch (_a.label) {
1405
+ case 0:
1406
+ data = Object.assign(v, {
1407
+ fileType: single ? 1 : 2
1408
+ });
1409
+ return [4, request.post('/api/pregnancies', data, {
1410
+ successText: '操作成功'
1411
+ })];
1412
+ case 1:
1413
+ res = _a.sent();
1414
+ if (single) {
1415
+ setTimeout(mchcEnv.reload, 1000);
1416
+ } else {
1417
+ _onSubmit(res.data);
1418
+ return [2, true];
1419
+ }
1420
+ return [2];
1421
+ }
1262
1422
  });
1263
- },
1264
- formDescriptions: function formDescriptions() {
1265
- return import('./.root7.js');
1266
- }
1423
+ });
1424
+ },
1425
+ formDescriptions: function formDescriptions() {
1426
+ return import('./src.components.QuickDocButton.js');
1267
1427
  }
1268
- });
1269
- }
1428
+ }
1429
+ });
1430
+ }
1431
+ function QuickDocButton(props) {
1432
+ var page_type = props.page_type;
1270
1433
  return /*#__PURE__*/React.createElement(OkButton, {
1271
1434
  primary: true,
1272
- icon: /*#__PURE__*/React.createElement(UserAddOutlined, null),
1273
- onClick: quick_doc
1435
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
1436
+ value: 'UserAddOutlined'
1437
+ }),
1438
+ onClick: function onClick() {
1439
+ return quick_doc(page_type);
1440
+ }
1274
1441
  }, "\u5FEB\u6377\u5EFA\u6863");
1275
1442
  }
1276
- LazyAntd$1.Tree;
1277
- LazyAntd$1.TreeSelect;
1278
- LazyAntd$1.Select;
1279
- LazyAntd$1.Table;
1280
- var Dropdown = LazyAntd$1.Dropdown;
1281
- LazyAntd$1.Pagination;
1443
+ LazyAntd.Tree;
1444
+ LazyAntd.TreeSelect;
1445
+ LazyAntd.Select;
1446
+ LazyAntd.Table;
1447
+ var Dropdown = LazyAntd.Dropdown;
1448
+ LazyAntd.Pagination;
1282
1449
  var readType = {
1283
1450
  身份证: 'ReadCard',
1284
1451
  二维码: 'QRScan'
@@ -1290,10 +1457,10 @@ function IdNOButton(props) {
1290
1457
  target = _a[0],
1291
1458
  setTarget = _a[1];
1292
1459
  var isOpen = useMchcDriverStatus().isOpen;
1293
- var menuProps = /*#__PURE__*/React.createElement(_Menu, {
1460
+ var menuProps = /*#__PURE__*/React.createElement(Menu, {
1294
1461
  onClick: function onClick(e) {}
1295
1462
  }, types.map(function (k) {
1296
- return /*#__PURE__*/React.createElement(_Menu.Item, {
1463
+ return /*#__PURE__*/React.createElement(Menu.Item, {
1297
1464
  onClick: function onClick() {
1298
1465
  setTarget(k);
1299
1466
  send_msg(k);
@@ -1315,12 +1482,17 @@ function IdNOButton(props) {
1315
1482
  color: isOpen ? undefined : 'red'
1316
1483
  },
1317
1484
  type: isOpen ? 'primary' : undefined,
1318
- icon: /*#__PURE__*/React.createElement(DownOutlined, null),
1485
+ icon: /*#__PURE__*/React.createElement(MyIcon$1, {
1486
+ value: 'DownOutlined'
1487
+ }),
1319
1488
  overlay: menuProps,
1320
1489
  onClick: function onClick(e) {
1321
1490
  return send_msg(target);
1322
1491
  }
1323
- }, /*#__PURE__*/React.createElement(_Space, null, isOpen ? /*#__PURE__*/React.createElement(ScanOutlined, null) : /*#__PURE__*/React.createElement(DisconnectOutlined, {
1492
+ }, /*#__PURE__*/React.createElement(Space, null, isOpen ? /*#__PURE__*/React.createElement(MyIcon$1, {
1493
+ value: 'ScanOutlined'
1494
+ }) : /*#__PURE__*/React.createElement(MyIcon$1, {
1495
+ value: 'DisconnectOutlined',
1324
1496
  style: {
1325
1497
  color: 'red'
1326
1498
  }
@@ -1340,9 +1512,11 @@ function SnapButton(props) {
1340
1512
  mchcLogger.log('=======', JSON.stringify(command));
1341
1513
  return mchcDriver.send(command);
1342
1514
  }
1343
- return /*#__PURE__*/React.createElement(_Button, {
1515
+ return /*#__PURE__*/React.createElement(Button, {
1344
1516
  type: "primary",
1345
- icon: /*#__PURE__*/React.createElement(UploadOutlined, null),
1517
+ icon: /*#__PURE__*/React.createElement(MyIcon$1, {
1518
+ value: 'UploadOutlined'
1519
+ }),
1346
1520
  disabled: !isOpen,
1347
1521
  onClick: readSnap
1348
1522
  }, "\u62A5\u544A\u5F55\u5165");
@@ -1377,7 +1551,9 @@ var remindEnum;
1377
1551
  remindEnum[remindEnum["remind"] = isRemid] = "remind";
1378
1552
  remindEnum[remindEnum["no"] = isNoop] = "no";
1379
1553
  })(remindEnum || (remindEnum = {}));
1380
- function highRiskTablePopup(res) {
1554
+ function highRiskTablePopup(res, headerInfo) {
1555
+ var _a, _b;
1556
+ if (peek_provoke().config.禁用量表自动弹出) return;
1381
1557
  var isOpenSCTable = res.isOpenSCTable,
1382
1558
  isOpenEclampsiaTable = res.isOpenEclampsiaTable,
1383
1559
  isOpenVTETable = res.isOpenVTETable;
@@ -1399,94 +1575,681 @@ function highRiskTablePopup(res) {
1399
1575
  modal_name: '深静脉血栓高危因素孕期用药筛查表'
1400
1576
  });
1401
1577
  }
1578
+ var 量表拓展 = (_b = (_a = peek_provoke('config')) === null || _a === void 0 ? void 0 : _a.量表拓展) !== null && _b !== void 0 ? _b : [];
1579
+ Object.keys(res).filter(function (k) {
1580
+ return k.startsWith('isOpen');
1581
+ }).forEach(function (k) {
1582
+ var ext_value = k.replace('isOpen', '');
1583
+ var ext = 量表拓展.find(function (e) {
1584
+ return e.value === ext_value;
1585
+ });
1586
+ if (!ext) return;
1587
+ mchcModal__.open('拓展量表', {
1588
+ modal_data: {
1589
+ headerInfo: headerInfo,
1590
+ ext: ext
1591
+ }
1592
+ });
1593
+ });
1402
1594
  }
1403
1595
  var popupRemindkeyMap = {
1404
1596
  VTE: ['cicatrixLable', 'isOpenVTETable'],
1405
1597
  子痫: ['eclampsiaLable', 'isOpenEclampsiaTable'],
1406
1598
  瘢痕子宫: ['thrombusLable', 'isOpenSCTable']
1407
1599
  };
1408
- function isShowPopupRemind(key, headerInfo, value) {
1600
+ function isShowPopupRemind(key_or_ext, headerInfo, value) {
1409
1601
  if (!headerInfo || !value) return false;
1410
- var item = popupRemindkeyMap[key];
1411
- var valueOfHeaderinfo = headerInfo[item[0]];
1412
- var valueOfRvisit = value[item[1]];
1413
- return !valueOfHeaderinfo && (valueOfRvisit == remindEnum.popup || valueOfRvisit == remindEnum.remind) ? true : false;
1602
+ var head_key;
1603
+ var visit_key;
1604
+ if (isObject(key_or_ext)) {
1605
+ var ext_key = key_or_ext.value;
1606
+ head_key = "".concat(ext_key, "Lable");
1607
+ visit_key = "isOpen".concat(ext_key);
1608
+ } else {
1609
+ var item = popupRemindkeyMap[key_or_ext];
1610
+ head_key = item[0];
1611
+ visit_key = item[1];
1612
+ }
1613
+ var valueOfHeaderinfo = headerInfo[head_key];
1614
+ var valueOfRvisit = value[visit_key];
1615
+ if (valueOfHeaderinfo) return false;
1616
+ return valueOfRvisit == remindEnum.popup || valueOfRvisit == remindEnum.remind;
1414
1617
  }
1618
+ var wraning_color = 'rgb(255, 146, 0)';
1415
1619
  function _HighRiskTableEntry(props) {
1416
1620
  var _a, _b, _c;
1621
+ var _d, _e;
1417
1622
  var headerInfo = props.headerInfo,
1418
1623
  data = props.data;
1624
+ var config = use_provoke('config').config;
1625
+ var ext_arr = (_d = config.量表拓展) !== null && _d !== void 0 ? _d : [];
1626
+ var hiden_old_arr = (_e = config.旧版量表隐藏) !== null && _e !== void 0 ? _e : [];
1419
1627
  useEffect(function () {
1420
1628
  return function () {};
1421
1629
  }, []);
1422
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Space, null, mchcEnv.is('广三') || /*#__PURE__*/React.createElement(_Button, {
1423
- className: classnames(styles['his-btn'], (_a = {}, _a[styles['btn-risk']] = isShowPopupRemind('瘢痕子宫', headerInfo, data), _a)),
1630
+ var show_瘢痕子宫 = isShowPopupRemind('瘢痕子宫', headerInfo, data);
1631
+ var show_子痫 = isShowPopupRemind('子痫', headerInfo, data);
1632
+ var show_VTE = isShowPopupRemind('VTE', headerInfo, data);
1633
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, {
1634
+ style: {
1635
+ flexWrap: 'wrap'
1636
+ }
1637
+ }, /*#__PURE__*/React.createElement(OkButton, {
1638
+ hidden: hiden_old_arr.includes('瘢痕子宫'),
1639
+ style: {
1640
+ borderColor: show_瘢痕子宫 ? wraning_color : undefined
1641
+ },
1642
+ className: classnames(styles['his-btn'], (_a = {}, _a[styles['btn-risk']] = show_瘢痕子宫, _a)),
1424
1643
  type: "dashed",
1425
- icon: /*#__PURE__*/React.createElement(TableOutlined, null),
1644
+ icon: /*#__PURE__*/React.createElement(MyIcon$1, {
1645
+ value: 'TableOutlined'
1646
+ }),
1426
1647
  onClick: function onClick() {
1427
1648
  mchcEvent.emit('outpatient', {
1428
1649
  type: '弹窗',
1429
1650
  modal_name: '瘢痕子宫阴道试产表'
1430
1651
  });
1431
1652
  }
1432
- }, "\u7622\u75D5\u5B50\u5BAB\u9634\u9053\u8BD5\u4EA7\u8868", showRisk('瘢痕子宫', props)), /*#__PURE__*/React.createElement(_Button, {
1433
- className: classnames(styles['his-btn'], (_b = {}, _b[styles['btn-risk']] = isShowPopupRemind('子痫', headerInfo, data), _b)),
1653
+ }, "\u7622\u75D5\u5B50\u5BAB\u9634\u9053\u8BD5\u4EA7\u8868", /*#__PURE__*/React.createElement(ShowRisk, {
1654
+ show: show_瘢痕子宫
1655
+ })), /*#__PURE__*/React.createElement(OkButton, {
1656
+ hidden: hiden_old_arr.includes('子痫'),
1657
+ className: classnames(styles['his-btn'], (_b = {}, _b[styles['btn-risk']] = show_子痫, _b)),
1658
+ style: {
1659
+ borderColor: show_子痫 ? wraning_color : undefined
1660
+ },
1434
1661
  type: "dashed",
1435
- icon: /*#__PURE__*/React.createElement(TableOutlined, null),
1662
+ icon: /*#__PURE__*/React.createElement(MyIcon$1, {
1663
+ value: 'TableOutlined'
1664
+ }),
1436
1665
  onClick: function onClick() {
1437
1666
  mchcEvent.emit('outpatient', {
1438
1667
  type: '弹窗',
1439
1668
  modal_name: '子痫前期风险评估表'
1440
1669
  });
1441
1670
  }
1442
- }, "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868", showRisk('子痫', props)), /*#__PURE__*/React.createElement(_Button, {
1443
- className: classnames(styles['his-btn'], (_c = {}, _c[styles['btn-risk']] = isShowPopupRemind('VTE', headerInfo, data), _c)),
1671
+ }, "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868", /*#__PURE__*/React.createElement(ShowRisk, {
1672
+ show: show_子痫
1673
+ })), /*#__PURE__*/React.createElement(OkButton, {
1674
+ hidden: hiden_old_arr.includes('VTE'),
1675
+ className: classnames(styles['his-btn'], (_c = {}, _c[styles['btn-risk']] = show_VTE, _c)),
1676
+ style: {
1677
+ borderColor: show_VTE ? wraning_color : undefined
1678
+ },
1444
1679
  type: "dashed",
1445
- icon: /*#__PURE__*/React.createElement(TableOutlined, null),
1680
+ icon: /*#__PURE__*/React.createElement(MyIcon$1, {
1681
+ value: 'TableOutlined'
1682
+ }),
1446
1683
  onClick: function onClick() {
1447
1684
  mchcEvent.emit('outpatient', {
1448
1685
  type: '弹窗',
1449
1686
  modal_name: '深静脉血栓高危因素孕期用药筛查表'
1450
1687
  });
1451
1688
  }
1452
- }, "VTE\u9884\u9632\u7528\u836F\u7B5B\u67E5\u8868", showRisk('VTE', props))));
1689
+ }, "VTE\u9884\u9632\u7528\u836F\u7B5B\u67E5\u8868", /*#__PURE__*/React.createElement(ShowRisk, {
1690
+ show: show_VTE
1691
+ })), ext_arr.map(function (ext) {
1692
+ var _a;
1693
+ if (ext.disabled || !ext.value) return null;
1694
+ var show = isShowPopupRemind(ext, headerInfo, data);
1695
+ return /*#__PURE__*/React.createElement(OkButton, {
1696
+ className: classnames(styles['his-btn'], (_a = {}, _a[styles['btn-risk']] = show, _a)),
1697
+ style: {
1698
+ borderColor: show ? wraning_color : undefined
1699
+ },
1700
+ type: "dashed",
1701
+ icon: /*#__PURE__*/React.createElement(MyIcon$1, {
1702
+ value: 'ExceptionOutlined'
1703
+ }),
1704
+ onClick: function onClick() {
1705
+ mchcModal__.open('拓展量表', {
1706
+ modal_data: {
1707
+ headerInfo: headerInfo,
1708
+ ext: ext
1709
+ }
1710
+ });
1711
+ }
1712
+ }, ext.label, /*#__PURE__*/React.createElement(ShowRisk, {
1713
+ show: show
1714
+ }));
1715
+ })));
1453
1716
  }
1454
- function showRisk(type, props) {
1455
- return isShowPopupRemind(type, props.headerInfo, props.data) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Divider, {
1717
+ function ShowRisk(_a) {
1718
+ var show = _a.show;
1719
+ return show ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
1456
1720
  type: "vertical"
1457
1721
  }), /*#__PURE__*/React.createElement("span", {
1458
1722
  style: {}
1459
- }, "\u5B58\u5728\u98CE\u9669 "), /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
1723
+ }, "\u5B58\u5728\u98CE\u9669 "), /*#__PURE__*/React.createElement(MyIcon$1, {
1724
+ value: 'ExclamationCircleOutlined',
1460
1725
  style: {
1461
1726
  fontSize: '14px'
1462
1727
  }
1463
- })) : null;
1728
+ }))) : null;
1464
1729
  }
1465
1730
  var HighRiskTableEntry = Object.assign(_HighRiskTableEntry, {
1466
1731
  highRiskTablePopup: highRiskTablePopup
1467
1732
  });
1468
- function safe_navigate(url_conf, props, params) {
1733
+ var MenuSearch = /*#__PURE__*/lazy(function () {
1734
+ return import('./src.components.MenuSearch.js');
1735
+ });
1736
+ var __conceive_fuck_edd = debounce({
1737
+ delay: 1000
1738
+ }, function (conceive, res, rej) {
1739
+ var _a;
1740
+ var item = safe_json_parse_arr(conceive)[0];
1741
+ if (item.value !== 1) return;
1742
+ var arr_values = safe_json_parse_arr(item.text);
1743
+ var 移植时间 = arr_values[0];
1744
+ var 天数 = (_a = arr_values[1]) !== null && _a !== void 0 ? _a : 0;
1745
+ var edd = calc_edd_by_IVF(移植时间, 天数);
1746
+ if (移植时间 && 天数 && edd) {
1747
+ mchcModal__.open('box', {
1748
+ title: '是否需要纠正 预产期-B超',
1749
+ onClose: function onClose(status) {
1750
+ if (status) {
1751
+ res(edd);
1752
+ } else {
1753
+ rej();
1754
+ }
1755
+ },
1756
+ modal_data: {
1757
+ content: "\u6839\u636E\u80DA\u80CE\u79FB\u690D\u65F6\u95F4\uFF0C\u662F\u5426\u8C03\u6574\u9884\u4EA7\u671FB\u8D85\u65F6\u95F4\u4E3A ".concat(edd, "\uFF1F")
1758
+ }
1759
+ });
1760
+ }
1761
+ });
1762
+ var __nt_fuck_edd = debounce({
1763
+ delay: 1000
1764
+ }, function (item, sureEdd, res, rej) {
1765
+ var target = expect_array(item).map(function (_) {
1766
+ var checkdate = _.checkdate;
1767
+ var ntEdd = calc_edd_by_ntExam(checkdate, _.gestationalWeek);
1768
+ var diff = Math.abs(diff_between(ntEdd, sureEdd, 'days'));
1769
+ return _assign({
1770
+ ntEdd: ntEdd,
1771
+ diff: diff
1772
+ }, _);
1773
+ }).filter(identity).find(function (_) {
1774
+ return _.diff > 7;
1775
+ });
1776
+ var ntEdd = target === null || target === void 0 ? void 0 : target.ntEdd;
1777
+ if (ntEdd) {
1778
+ mchcModal__.open('box', {
1779
+ title: '是否需要纠正 预产期-B超',
1780
+ onClose: function onClose(status) {
1781
+ return __awaiter(this, void 0, void 0, function () {
1782
+ return __generator(this, function (_a) {
1783
+ if (status) {
1784
+ res(ntEdd);
1785
+ } else {
1786
+ rej();
1787
+ }
1788
+ return [2];
1789
+ });
1790
+ });
1791
+ },
1792
+ modal_data: {
1793
+ content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u6839\u636E ", target.checkdate, " NT \u68C0\u67E5\u5982\u5B55\u5468\u6570\uFF0C\u63A8\u6D4B\u9884\u4EA7\u671F-B\u8D85\uFF1A", formatDate(ntEdd)), /*#__PURE__*/React.createElement("div", null, "\u4E0E\u9884\u4EA7\u671F\uFF08", formatDate(sureEdd), "\uFF09\u76F8\u5DEE ", target.diff, " \u5929"))
1794
+ }
1795
+ });
1796
+ }
1797
+ });
1798
+ function conceive_fuck_edd(conceiveMode__) {
1799
+ return new Promise(function (resolve, reject) {
1800
+ __conceive_fuck_edd(conceiveMode__, resolve, reject);
1801
+ });
1802
+ }
1803
+ function nt_fuck_edd(item, sureEdd) {
1804
+ return new Promise(function (resolve, reject) {
1805
+ __nt_fuck_edd(item, sureEdd, resolve, reject);
1806
+ });
1807
+ }
1808
+ function safe_navigate(where, props, params, replace) {
1809
+ if (replace === void 0) {
1810
+ replace = false;
1811
+ }
1812
+ var _url = isString(where) ? where : "".concat(where.pathname).concat(where.search);
1813
+ console.log('ctx safe_navigate', {
1814
+ url_conf: _url,
1815
+ props: props,
1816
+ params: params
1817
+ });
1469
1818
  if (mchcEnv.is_fullscreen) return;
1470
1819
  if (props === null || props === void 0 ? void 0 : props.is_modal) {
1471
1820
  mchcModal__.open('modal_page', {
1472
1821
  modal_data: {
1473
1822
  route_conf: {
1474
- url: url_conf,
1823
+ url: _url,
1475
1824
  params: params
1476
1825
  }
1477
1826
  }
1478
1827
  });
1479
1828
  return;
1480
1829
  }
1481
- if (location.pathname == url_conf) {
1482
- _message.info('已在当前页面');
1830
+ if (location.pathname == _url) {
1831
+ message.info('已在当前页面');
1483
1832
  return;
1484
1833
  }
1485
- return SLocal_History.safe_history_push(url_conf, props);
1834
+ return replace ? SLocal_History.safe_history_replace(_url, props) : SLocal_History.safe_history_push(_url, props);
1486
1835
  }
1487
1836
  window.safe_navigate = safe_navigate;
1837
+ var mlUltrasounds_fd = function mlUltrasounds_fd(conf) {
1838
+ if (conf === void 0) {
1839
+ conf = {};
1840
+ }
1841
+ return defineFormConfig([_assign(_assign({}, conf), {
1842
+ label: '中晚孕超声',
1843
+ name: 'mlUltrasounds',
1844
+ inputType: 'MyEditTable',
1845
+ inputProps: {
1846
+ marshal: 0,
1847
+ formDescriptions: [{
1848
+ label: '孕周',
1849
+ name: 'gestationalWeek',
1850
+ inputType: 'MA'
1851
+ }, {
1852
+ label: '胎儿',
1853
+ name: 'fetal',
1854
+ inputType: 'MA',
1855
+ inputProps: {
1856
+ options: '1,2,3,4,5,6,7,8'
1857
+ }
1858
+ }, {
1859
+ label: 'BPD(mm)',
1860
+ name: 'bpd',
1861
+ inputType: 'input_number'
1862
+ }, {
1863
+ label: 'HC(mm)',
1864
+ name: 'hc',
1865
+ inputType: 'input_number'
1866
+ }, {
1867
+ label: 'AC(mm)',
1868
+ name: 'ac',
1869
+ inputType: 'input_number'
1870
+ }, {
1871
+ label: 'HL(mm)',
1872
+ name: 'hl',
1873
+ inputType: 'input_number'
1874
+ }, {
1875
+ label: 'FL(mm)',
1876
+ name: 'fl',
1877
+ inputType: 'input_number'
1878
+ }, {
1879
+ label: 'AFV(mm)',
1880
+ name: 'afv',
1881
+ inputType: 'input_number'
1882
+ }, {
1883
+ label: 'EFW(g)',
1884
+ name: 'efw',
1885
+ inputType: 'input_number'
1886
+ }, {
1887
+ label: '脐血流',
1888
+ name: 'ubf',
1889
+ inputType: 'input_number'
1890
+ }, {
1891
+ label: '其他异常',
1892
+ name: 'note',
1893
+ inputType: 'MA'
1894
+ }]
1895
+ }
1896
+ })]).__lazy_config[0];
1897
+ };
1898
+ var conceiveMode = function conceiveMode(conf) {
1899
+ if (conf === void 0) {
1900
+ conf = {};
1901
+ }
1902
+ return defineFormConfig([_assign({
1903
+ "key": "pregnancyInfo.conceiveMode__",
1904
+ "label": "受孕方式",
1905
+ "inputType": "MC",
1906
+ required: mchcEnv["in"](['南医增城', '越秀妇幼']) ? false : true,
1907
+ "inputProps": {
1908
+ marshal: 1,
1909
+ options: [{
1910
+ value: 2,
1911
+ label: '自然'
1912
+ }, {
1913
+ value: 1,
1914
+ label: 'IVF',
1915
+ parentheses: true,
1916
+ inputType: 'ArrayInput',
1917
+ props: {
1918
+ options: [{
1919
+ inputType: 'DatePicker',
1920
+ prefix: '移植时间'
1921
+ }, {
1922
+ inputType: 'input_number',
1923
+ prefix: '第',
1924
+ suffix: '天胚胎'
1925
+ }, {
1926
+ inputType: 'input_number',
1927
+ prefix: '胚胎数'
1928
+ }]
1929
+ }
1930
+ }, {
1931
+ "value": 4,
1932
+ "label": "ICSI"
1933
+ }, {
1934
+ "value": 5,
1935
+ "label": "PGT"
1936
+ }, {
1937
+ "value": 6,
1938
+ "label": "AIH"
1939
+ }, {
1940
+ "value": 7,
1941
+ "label": "AID"
1942
+ }, {
1943
+ "value": 3,
1944
+ "label": "其他",
1945
+ inputType: 'Input'
1946
+ }]
1947
+ },
1948
+ layout: '1/1'
1949
+ }, conf)]).__lazy_config[0];
1950
+ };
1951
+ function pressure_fd(conf, systolic_conf, diastolic_conf) {
1952
+ if (conf === void 0) {
1953
+ conf = {};
1954
+ }
1955
+ if (systolic_conf === void 0) {
1956
+ systolic_conf = {};
1957
+ }
1958
+ if (diastolic_conf === void 0) {
1959
+ diastolic_conf = {};
1960
+ }
1961
+ return defineFormConfig([_assign({
1962
+ "label": "血压",
1963
+ "layout": "1/4",
1964
+ "inputType": "straw",
1965
+ 'unit': 'mmHg',
1966
+ "children": [_assign({
1967
+ "name": 'systolic',
1968
+ "inputType": "input_number",
1969
+ checkWarn: function checkWarn(v, f) {
1970
+ return v < 90 || v > 130;
1971
+ },
1972
+ "inputProps": {
1973
+ width: 86,
1974
+ "placeholder": "收缩压请填写"
1975
+ }
1976
+ }, systolic_conf), {
1977
+ "inputType": "input",
1978
+ "processRemote": function processRemote(e) {
1979
+ return '/';
1980
+ },
1981
+ "inputProps": {
1982
+ "disabled": true,
1983
+ "width": 12,
1984
+ "style": {
1985
+ paddingLeft: 2,
1986
+ paddingRight: 2
1987
+ }
1988
+ }
1989
+ }, _assign({
1990
+ "name": 'diastolic',
1991
+ "inputType": "input_number",
1992
+ checkWarn: function checkWarn(v, f) {
1993
+ return v < 60 || v > 90;
1994
+ },
1995
+ "inputProps": {
1996
+ width: 86,
1997
+ "placeholder": "舒张压请填写"
1998
+ }
1999
+ }, diastolic_conf)]
2000
+ }, conf)]).__lazy_config[0];
2001
+ }
2002
+ var trueFalseOptions2 = [{
2003
+ value: false,
2004
+ label: '否'
2005
+ }, {
2006
+ value: true,
2007
+ label: '是',
2008
+ warning: true
2009
+ }];
2010
+ function not_yes_input(key, label, _a, _b, dep_value) {
2011
+ var _c;
2012
+ if (_a === void 0) {
2013
+ _a = {};
2014
+ }
2015
+ var child1_inputProps = _a.inputProps,
2016
+ child1 = __rest(_a, ["inputProps"]);
2017
+ var _d = _b === void 0 ? {} : _b,
2018
+ child2_inputProps = _d.inputProps,
2019
+ child2 = __rest(_d, ["inputProps"]);
2020
+ if (dep_value === void 0) {
2021
+ dep_value = true;
2022
+ }
2023
+ return {
2024
+ label: label,
2025
+ layout: '1/3',
2026
+ inputType: "straw",
2027
+ children: [_assign({
2028
+ name: key,
2029
+ inputType: 'MC',
2030
+ inputProps: _assign({
2031
+ marshal: 0,
2032
+ options: trueFalseOptions2
2033
+ }, child1_inputProps)
2034
+ }, child1), _assign({
2035
+ name: key + 'Note',
2036
+ inputType: "MI",
2037
+ inputProps: _assign({
2038
+ width: 120
2039
+ }, child2_inputProps),
2040
+ checkWarn: function checkWarn(v, form) {
2041
+ return v && 'error';
2042
+ },
2043
+ showDeps: (_c = {}, _c[key] = [dep_value], _c)
2044
+ }, child2)]
2045
+ };
2046
+ }
1488
2047
  var DoctorEnd_检验检查_History = /*#__PURE__*/lazy(function () {
1489
- return import('./.root8.js');
2048
+ return import('./src.block.检验检查.js');
1490
2049
  });
1491
- export { BF_Form as B, DoctorEnd_ExemplaryCase as D, ErrorBoundarySmall as E, HighRiskTableEntry as H, IdNOButton as I, Layout_Sider as L, MountMchcModal as M, Page_DocRecord as P, QuickDocButton as Q, SelectTip as S, __awaiter as _, __generator as a, _assign as b, __spreadArray as c, __rest as d, __extends as e, BF_Wrap2 as f, collapsedWidth as g, Layout_TabButton as h, MyBaseList as i, get_bf_default as j, DoctorEnd_HeaderInfo as k, DoctorEnd_HeaderInfoLayout as l, mchcModal__ as m, Mchc_Login as n, SnapButton as o, safe_navigate as p, config_table_fd as q, DoctorEnd_检验检查_History as r, styleInject as s, useReadIdNO as u, width as w };
1492
- //# sourceMappingURL=index.js.map
2050
+ var curve_api = {
2051
+ getBmi: function getBmi(pregnancyId, queryType) {
2052
+ return __awaiter(void 0, void 0, void 0, function () {
2053
+ return __generator(this, function (_a) {
2054
+ switch (_a.label) {
2055
+ case 0:
2056
+ return [4, request.get("/api/curve/bmi?pregnancyId=".concat(pregnancyId, "&queryType=").concat(queryType))];
2057
+ case 1:
2058
+ return [2, _a.sent().data];
2059
+ }
2060
+ });
2061
+ });
2062
+ },
2063
+ getFundalHeight: function getFundalHeight(pregnancyId) {
2064
+ return __awaiter(void 0, void 0, void 0, function () {
2065
+ return __generator(this, function (_a) {
2066
+ switch (_a.label) {
2067
+ case 0:
2068
+ return [4, request.get("/api/curve/fundalHeight?pregnancyId=".concat(pregnancyId))];
2069
+ case 1:
2070
+ return [2, _a.sent().data];
2071
+ }
2072
+ });
2073
+ });
2074
+ },
2075
+ getGrowth: function getGrowth(pregnancyId) {
2076
+ return __awaiter(void 0, void 0, void 0, function () {
2077
+ return __generator(this, function (_a) {
2078
+ switch (_a.label) {
2079
+ case 0:
2080
+ return [4, request.get("/api/curve/growth?pregnancyId=".concat(pregnancyId), {})];
2081
+ case 1:
2082
+ return [2, _a.sent().data];
2083
+ }
2084
+ });
2085
+ });
2086
+ },
2087
+ updateUltrasounds: function updateUltrasounds(data) {
2088
+ return __awaiter(void 0, void 0, void 0, function () {
2089
+ return __generator(this, function (_a) {
2090
+ switch (_a.label) {
2091
+ case 0:
2092
+ return [4, request.put("/api/ultrasounds", data, {})];
2093
+ case 1:
2094
+ return [2, _a.sent().data];
2095
+ }
2096
+ });
2097
+ });
2098
+ },
2099
+ createUltrasounds: function createUltrasounds(data) {
2100
+ return __awaiter(void 0, void 0, void 0, function () {
2101
+ return __generator(this, function (_a) {
2102
+ switch (_a.label) {
2103
+ case 0:
2104
+ return [4, request.post("/api/ultrasounds", data)];
2105
+ case 1:
2106
+ return [2, _a.sent().data];
2107
+ }
2108
+ });
2109
+ });
2110
+ },
2111
+ deleteUltrasounds: function deleteUltrasounds(id) {
2112
+ return __awaiter(void 0, void 0, void 0, function () {
2113
+ return __generator(this, function (_a) {
2114
+ switch (_a.label) {
2115
+ case 0:
2116
+ return [4, request["delete"]("/api/ultrasounds/".concat(id))];
2117
+ case 1:
2118
+ return [2, _a.sent().data];
2119
+ }
2120
+ });
2121
+ });
2122
+ },
2123
+ further: {
2124
+ getUltrasoundFormConfig: function getUltrasoundFormConfig() {
2125
+ return __awaiter(void 0, void 0, void 0, function () {
2126
+ return __generator(this, function (_a) {
2127
+ switch (_a.label) {
2128
+ case 0:
2129
+ return [4, request.get("/api/form-descriptions?moduleName=prenatal-examination-further-ultrasound")];
2130
+ case 1:
2131
+ return [2, _a.sent().data];
2132
+ }
2133
+ });
2134
+ });
2135
+ }
2136
+ },
2137
+ curve: {
2138
+ getBmi: function getBmi(pregnancyId, queryType) {
2139
+ return __awaiter(void 0, void 0, void 0, function () {
2140
+ return __generator(this, function (_a) {
2141
+ switch (_a.label) {
2142
+ case 0:
2143
+ return [4, request.get("/api/curve/bmi?pregnancyId=".concat(pregnancyId, "&queryType=").concat(queryType))];
2144
+ case 1:
2145
+ return [2, _a.sent().data];
2146
+ }
2147
+ });
2148
+ });
2149
+ },
2150
+ getFundalHeight: function getFundalHeight(pregnancyId) {
2151
+ return __awaiter(void 0, void 0, void 0, function () {
2152
+ return __generator(this, function (_a) {
2153
+ switch (_a.label) {
2154
+ case 0:
2155
+ return [4, request.get("/api/curve/fundalHeight?pregnancyId=".concat(pregnancyId))];
2156
+ case 1:
2157
+ return [2, _a.sent().data];
2158
+ }
2159
+ });
2160
+ });
2161
+ }
2162
+ },
2163
+ getOutpatientFetuGrowsOfOutpatient: function getOutpatientFetuGrowsOfOutpatient(id) {
2164
+ return __awaiter(this, void 0, void 0, function () {
2165
+ var res;
2166
+ return __generator(this, function (_a) {
2167
+ switch (_a.label) {
2168
+ case 0:
2169
+ return [4, request.get('/api/doctor/getOutpatientFetuGrowsOfOutpatient?id=' + id)];
2170
+ case 1:
2171
+ res = _a.sent();
2172
+ return [2, res.data];
2173
+ }
2174
+ });
2175
+ });
2176
+ },
2177
+ updateOutpatientFetuGrowsOfOutpatient: function updateOutpatientFetuGrowsOfOutpatient(data) {
2178
+ return __awaiter(this, void 0, void 0, function () {
2179
+ var res;
2180
+ return __generator(this, function (_a) {
2181
+ switch (_a.label) {
2182
+ case 0:
2183
+ return [4, request.put('/api/doctor/updateOutpatientFetuGrowsOfOutpatient', data)];
2184
+ case 1:
2185
+ res = _a.sent();
2186
+ return [2, res.data];
2187
+ }
2188
+ });
2189
+ });
2190
+ }
2191
+ };
2192
+ var BmiCanvas = /*#__PURE__*/lazy(function () {
2193
+ return import('./curve.components.BmiCanvas.js');
2194
+ });
2195
+ var FetusCanvas = /*#__PURE__*/lazy(function () {
2196
+ return import('./curve.components.FetusCanvas.js');
2197
+ });
2198
+ var FetusCanvasNICHD = /*#__PURE__*/lazy(function () {
2199
+ return import('./curve.components.FetusCanvasNICHD.js');
2200
+ });
2201
+ var Pregnogram = /*#__PURE__*/lazy(function () {
2202
+ return import('./curve.components.Pregnogram.js');
2203
+ });
2204
+ function use_duck_form(props) {
2205
+ var init_values = props.init_values,
2206
+ name = props.name,
2207
+ save_cb = props.save_cb,
2208
+ bf_conf = props.bf_conf;
2209
+ var _a = BF_Wrap2(bf_conf, props),
2210
+ Wrap = _a.Wrap,
2211
+ config = _a.config;
2212
+ var form = Form.useForm()[0];
2213
+ var fetcher = useRef(new ModelService({
2214
+ n: name
2215
+ }));
2216
+ var _b = useState({}),
2217
+ remote_data = _b[0],
2218
+ set_remote_data = _b[1];
2219
+ useEffect(function () {
2220
+ var id = init_values.id;
2221
+ if (id) {
2222
+ fetcher.current.getOne(id).then(function (d) {
2223
+ form.setFieldsValue(d);
2224
+ set_remote_data(d);
2225
+ });
2226
+ } else {
2227
+ form.setFieldsValue(init_values);
2228
+ }
2229
+ return function () {};
2230
+ }, []);
2231
+ function save() {
2232
+ fetcher.current.postOrPut(Object.assign(init_values, remote_data, form.getFieldsValue())).then(function () {
2233
+ return mchcEnv.success('操作成功!');
2234
+ }).then(save_cb);
2235
+ }
2236
+ var node = /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyFormSectionForm, {
2237
+ form: form,
2238
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
2239
+ }), /*#__PURE__*/React.createElement(Space.Compact, {
2240
+ style: {
2241
+ position: 'fixed',
2242
+ right: 24,
2243
+ bottom: 24
2244
+ }
2245
+ }, /*#__PURE__*/React.createElement(OkButton, {
2246
+ btn_text: "\u63D0\u4EA4",
2247
+ onClick: save
2248
+ })));
2249
+ return {
2250
+ node: node,
2251
+ form: form,
2252
+ fetcher: fetcher
2253
+ };
2254
+ }
2255
+ export { conceive_fuck_edd as A, BF_Form as B, nt_fuck_edd as C, DoctorEnd_ExemplaryCase as D, ErrorBoundarySmall as E, config_table_fd as F, conceiveMode as G, HighRiskTableEntry as H, IdNOButton as I, pressure_fd as J, not_yes_input as K, Layout_Sider as L, MountMchcModal as M, DoctorEnd_检验检查_History as N, BmiCanvas as O, Page_DocRecord as P, QuestionnaireButton as Q, FetusCanvas as R, SelectTip as S, FetusCanvasNICHD as T, Pregnogram as U, use_duck_form as V, __spreadArray as _, _assign as a, __awaiter as b, __generator as c, __rest as d, safe_navigate as e, __extends as f, curve_api as g, mlUltrasounds_fd as h, BF_Wrap2 as i, Questionnaire as j, collapsedWidth as k, Layout_TabButton as l, mchcModal__ as m, MyBaseList as n, get_bf_default as o, DoctorEnd_HeaderInfo as p, DoctorEnd_HeaderInfoLayout as q, Mchc_Login as r, styleInject as s, quick_doc as t, use_headinfo_color as u, QuickDocButton as v, width as w, SnapButton as x, useReadIdNO as y, MenuSearch as z };