@lm_fe/pages 0.1.201 → 0.2.2

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