@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.
- package/README.md +0 -0
- package/dist/a_chunks/.root.js +1610 -222
- package/dist/a_chunks/.root10.js +494 -462
- package/dist/a_chunks/.root11.js +231 -159
- package/dist/a_chunks/.root12.js +245 -186
- package/dist/a_chunks/.root13.js +1898 -104
- package/dist/a_chunks/.root14.js +147 -716
- package/dist/a_chunks/.root15.js +27 -44
- package/dist/a_chunks/.root16.js +18 -168
- package/dist/a_chunks/.root17.js +20 -255
- package/dist/a_chunks/.root18.js +168 -385
- package/dist/a_chunks/.root19.js +119 -403
- package/dist/a_chunks/.root2.js +101 -73
- package/dist/a_chunks/.root20.js +74 -945
- package/dist/a_chunks/.root21.js +168 -202
- package/dist/a_chunks/.root22.js +677 -144
- package/dist/a_chunks/.root23.js +27 -956
- package/dist/a_chunks/.root24.js +126 -742
- package/dist/a_chunks/.root25.js +214 -265
- package/dist/a_chunks/.root26.js +391 -0
- package/dist/a_chunks/.root27.js +395 -0
- package/dist/a_chunks/.root28.js +948 -0
- package/dist/a_chunks/.root29.js +214 -0
- package/dist/a_chunks/.root3.js +56 -1044
- package/dist/a_chunks/.root30.js +130 -0
- package/dist/a_chunks/.root31.js +914 -0
- package/dist/a_chunks/.root32.js +860 -0
- package/dist/a_chunks/.root33.js +102 -0
- package/dist/a_chunks/.root34.js +157 -0
- package/dist/a_chunks/.root4.js +1004 -581
- package/dist/a_chunks/.root5.js +610 -1414
- package/dist/a_chunks/.root6.js +1399 -155
- package/dist/a_chunks/.root7.js +151 -123
- package/dist/a_chunks/.root8.js +82 -504
- package/dist/a_chunks/.root9.js +97 -60
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +942 -265
- package/dist/a_chunks/use_fetus.js +138 -0
- package/dist/a_chunks/utils.js +100 -0
- package/dist/a_chunks/utils2.js +36 -0
- package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
- package/dist/components/BF_Form/Wrap.d.ts +2 -2
- package/dist/components/BF_Form/index.d.ts +4 -2
- package/dist/components/BF_Form/types.d.ts +7 -0
- package/dist/components/BF_Form/use_table_config.d.ts +1 -5
- package/dist/components/Base_List/Helper.d.ts +0 -5
- package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
- package/dist/components/Base_List/index.d.ts +2 -1
- package/dist/components/Base_List/types.d.ts +6 -3
- package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
- package/dist/components/Base_List/utils.d.ts +11 -0
- package/dist/components/IdNOButton/index copy.d.ts +1 -1
- package/dist/components/Layout_Sider/Inner.d.ts +2 -4
- package/dist/components/Layout_Sider/index.d.ts +2 -2
- package/dist/components/Layout_Sider/utils.d.ts +13 -0
- package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
- package/dist/components/Layout_TabButton/index.d.ts +3 -8
- package/dist/components/Layout_TabButton/types.d.ts +8 -0
- package/dist/components/Login/Inner.d.ts +0 -1
- package/dist/components/Login/index.d.ts +2 -1
- package/dist/components/MenuSearch/Inner.d.ts +6 -0
- package/dist/components/MenuSearch/index.d.ts +2 -0
- package/dist/components/QuickDocButton/index.d.ts +5 -1
- package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
- package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
- package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
- package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
- package/dist/components/exception/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
- package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
- package/dist/curve/components/Pregnogram/index.d.ts +11 -0
- package/dist/curve/components/api.d.ts +17 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/data.d.ts +125 -0
- package/dist/curve/func.d.ts +12 -0
- package/dist/curve/func.test.d.ts +1 -0
- package/dist/curve/index.d.ts +7 -0
- package/dist/curve/intro-steps.d.ts +7 -0
- package/dist/curve/utils.d.ts +8 -0
- package/dist/form_config/conceiveMode.d.ts +2 -0
- package/dist/form_config/index.d.ts +4 -0
- package/dist/form_config/mlUltrasounds.d.ts +2 -0
- package/dist/form_config/not_yes_input.d.ts +4 -0
- package/dist/form_config/pressure.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -33
- package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
- package/dist/modals/entries/box/index.d.ts +6 -0
- package/dist/modals/entries/modal_form/index.d.ts +1 -1
- package/dist/modals/entries/result_template/index.d.ts +24 -0
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
- package/dist/modals/entries/template_modal3/index.d.ts +5 -3
- package/dist/modals/entries/text_search/index.d.ts +1 -1
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
- package/dist/modals/index.d.ts +2 -0
- package/dist/modals/meta.d.ts +2 -0
- package/dist/pages/doc_record/index.d.ts +1 -1
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/questionnaire/Inner.d.ts +4 -0
- package/dist/pages/questionnaire/Qn.d.ts +3 -0
- package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
- package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
- package/dist/pages/questionnaire/create/common.d.ts +46 -0
- package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
- package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
- package/dist/pages/questionnaire/create/step1.d.ts +12 -0
- package/dist/pages/questionnaire/create/step2.d.ts +10 -0
- package/dist/pages/questionnaire/create/step3.d.ts +8 -0
- package/dist/pages/questionnaire/create/step4.d.ts +8 -0
- package/dist/pages/questionnaire/index.d.ts +3 -0
- package/dist/pages/questionnaire/types.d.ts +10 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +34 -16
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
- 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
- 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
package/dist/a_chunks/.root18.js
CHANGED
|
@@ -1,416 +1,199 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import '
|
|
5
|
-
import
|
|
6
|
-
import '
|
|
7
|
-
import
|
|
8
|
-
import '
|
|
9
|
-
import
|
|
10
|
-
import '
|
|
11
|
-
import _Button from 'antd/es/button';
|
|
12
|
-
import _split from 'lodash/split';
|
|
13
|
-
import _orderBy from 'lodash/orderBy';
|
|
14
|
-
import _last from 'lodash/last';
|
|
15
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
16
|
-
import _includes from 'lodash/includes';
|
|
17
|
-
import _get from 'lodash/get';
|
|
18
|
-
import _forEach from 'lodash/forEach';
|
|
19
|
-
import _floor from 'lodash/floor';
|
|
20
|
-
import _filter from 'lodash/filter';
|
|
21
|
-
import { s as styleInject, d as __rest, _ as __awaiter, a as __generator } from './index.js';
|
|
22
|
-
import { SMchc_Doctor, SMchc_TemplateTrees } from '@lm_fe/service';
|
|
23
|
-
import { getSearchParamsValue } from '@lm_fe/utils';
|
|
24
|
-
import dayjs from 'dayjs';
|
|
25
|
-
import React, { useRef, useState, useEffect } from 'react';
|
|
26
|
-
import ReactToPrint from 'react-to-print';
|
|
27
|
-
import { mchcEnv } from '@lm_fe/env';
|
|
28
|
-
import { LazyAntd } from '@lm_fe/components';
|
|
29
|
-
import 'antd/es/list/style';
|
|
30
|
-
import 'antd/es/list';
|
|
31
|
-
import 'antd/es/tooltip/style';
|
|
32
|
-
import 'antd/es/tooltip';
|
|
33
|
-
import '@ant-design/icons';
|
|
1
|
+
import { d as __rest, i as BF_Wrap2, b as __awaiter, c as __generator, a as __assign, E as ErrorBoundarySmall } from './index.js';
|
|
2
|
+
import { validate_form } from '@lm_fe/components';
|
|
3
|
+
import { Form, Modal } from 'antd';
|
|
4
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
5
|
+
import { mchcLogger, mchcDriver, mchcEvent } from '@lm_fe/env';
|
|
6
|
+
import { FormSection } from '@lm_fe/components_m';
|
|
7
|
+
import { noop, safe_async_call, sleep } from '@lm_fe/utils';
|
|
8
|
+
import '@lm_fe/provoke';
|
|
9
|
+
import '@lm_fe/service';
|
|
10
|
+
import 'lodash';
|
|
34
11
|
import 'classnames';
|
|
35
|
-
|
|
36
|
-
import 'antd/es/spin';
|
|
37
|
-
import '@lm_fe/components_m';
|
|
38
|
-
import 'antd/es/form/style';
|
|
39
|
-
import 'antd/es/form';
|
|
40
|
-
import 'antd/es/result/style';
|
|
41
|
-
import 'antd/es/result';
|
|
42
|
-
import 'antd/es/menu/style';
|
|
43
|
-
import 'antd/es/menu';
|
|
44
|
-
import 'antd/es/message/style';
|
|
45
|
-
import 'antd/es/message';
|
|
46
|
-
import 'lodash/keys';
|
|
47
|
-
import 'antd/es/divider/style';
|
|
48
|
-
import 'antd/es/divider';
|
|
49
|
-
var css_248z = "@media print {\n html,\n body {\n background-color: #fff !important;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye {\n width: 100%;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-switcher,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-switcher,\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-checkbox,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-checkbox {\n display: none;\n }\n html .index-module_printPreeclampsia__6nw-U .ant-tree-checkbox-checked .ant-tree-checkbox-inner,\n body .index-module_printPreeclampsia__6nw-U .ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n background-color: red;\n border-color: red;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #e6f7ff;\n border-bottom: 3px solid #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode {\n width: 100%;\n white-space: pre-wrap;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(6),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(6),\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(13),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(13) {\n margin-bottom: 8px;\n padding-bottom: 8px;\n border-bottom: 1px dashed #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode,\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode {\n width: 100%;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(2),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(2),\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 45px;\n padding: 60px 0;\n border-bottom: 1px dashed #6699ff;\n }\n html .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3),\n body .index-module_printPreeclampsia__6nw-U .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 80px;\n padding-bottom: 103px;\n }\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye {\n width: 100%;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-switcher,\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-checkbox {\n display: none;\n}\n.index-module_preeclampsia-modal__6Zi23 .ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n background-color: red;\n border-color: red;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-title__jYmye > .ant-tree-node-content-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #e6f7ff;\n border-bottom: 3px solid #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode {\n width: 100%;\n white-space: pre-wrap;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(7),\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-left__FxlAh .ant-tree-treenode:nth-child(13) {\n margin-bottom: 8px;\n padding-bottom: 8px;\n border-bottom: 1px dashed #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode {\n width: 100%;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(2),\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 45px;\n padding: 60px 0;\n border-bottom: 1px dashed #6699ff;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_tree-right__C11MH .ant-tree-treenode:nth-child(3) {\n margin-bottom: 80px;\n padding-bottom: 103px;\n}\n.index-module_preeclampsia-modal__6Zi23 .index-module_footer-tips__6vi0d {\n float: left;\n width: 680px;\n color: #666;\n font-size: 12px;\n text-align: left;\n}\n";
|
|
50
|
-
var styles = {
|
|
51
|
-
"printPreeclampsia": "index-module_printPreeclampsia__6nw-U",
|
|
52
|
-
"tree-title": "index-module_tree-title__jYmye",
|
|
53
|
-
"tree-left": "index-module_tree-left__FxlAh",
|
|
54
|
-
"tree-right": "index-module_tree-right__C11MH",
|
|
55
|
-
"preeclampsia-modal": "index-module_preeclampsia-modal__6Zi23",
|
|
56
|
-
"footer-tips": "index-module_footer-tips__6vi0d"
|
|
57
|
-
};
|
|
58
|
-
styleInject(css_248z);
|
|
59
|
-
var Tree = LazyAntd.Tree;
|
|
60
|
-
LazyAntd.TreeSelect;
|
|
61
|
-
LazyAntd.Select;
|
|
62
|
-
LazyAntd.Table;
|
|
63
|
-
LazyAntd.Dropdown;
|
|
64
|
-
LazyAntd.Pagination;
|
|
65
|
-
function getDiffYears(date, preDate) {
|
|
66
|
-
return dayjs(date).diff(dayjs(preDate), 'years', true);
|
|
67
|
-
}
|
|
68
|
-
function Preeclampsia(props) {
|
|
12
|
+
function MyModalForm(_a) {
|
|
69
13
|
var _this = this;
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
case 3:
|
|
104
|
-
selecteGuide = _a.sent();
|
|
105
|
-
return [4, SMchc_Doctor.getPreRiskAssessmentInfo(pregnancyId)];
|
|
106
|
-
case 4:
|
|
107
|
-
res = _a.sent();
|
|
108
|
-
factorValue = _get(selecteFactor, 'value') || [];
|
|
109
|
-
factorKeys = [];
|
|
110
|
-
_forEach(factorValue, function (item) {
|
|
111
|
-
return factorKeys.push(String(item.id));
|
|
112
|
-
});
|
|
113
|
-
guideValue = _get(selecteGuide, 'value') || [];
|
|
114
|
-
guideKeys = [];
|
|
115
|
-
_forEach(guideValue, function (item) {
|
|
116
|
-
return guideKeys.push(String(item.id));
|
|
117
|
-
});
|
|
118
|
-
newKeys = getTreeFactor(treeFactor, factorKeys, res);
|
|
119
|
-
setTreeFactor(treeFactor);
|
|
120
|
-
setFactorKeys(newKeys);
|
|
121
|
-
setGuideKeys(guideKeys);
|
|
122
|
-
return [2];
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
})();
|
|
127
|
-
}, []);
|
|
128
|
-
function getTreeFactor(treeFactor, factorKeys, data) {
|
|
129
|
-
var _pregnancyData = data;
|
|
130
|
-
var _diagnosesList = _pregnancyData.diagnoses;
|
|
131
|
-
var pregnancyHistories = _orderBy(_get(_pregnancyData, 'pregnancymh'), ['gravidityindex'], ['asc']) || [];
|
|
132
|
-
var gravidity = _get(_pregnancyData, 'gravidity');
|
|
133
|
-
var bmi = _get(_pregnancyData, 'bmi');
|
|
134
|
-
var familyHistoryOtherNote = _get(_pregnancyData, 'familyHistoryOrderNote') || '';
|
|
135
|
-
var allergyHistoryOtherNote = _get(_pregnancyData, 'allergyDrugNote') || '';
|
|
136
|
-
_get(_pregnancyData, 'sureEdd') || '';
|
|
137
|
-
_get(_pregnancyData, 'dob') || '';
|
|
138
|
-
var futureAge = _get(_pregnancyData, 'eddAge');
|
|
139
|
-
var lastPregnancyHistory = _last(pregnancyHistories);
|
|
140
|
-
_forEach(pregnancyHistories, function (item) {
|
|
141
|
-
if (item.exceptionalcase && item.exceptionalcase.indexOf('子痫前期') !== -1) {
|
|
142
|
-
factorKeys.push(getTreeId('子痫前期史, 尤其合并不良妊娠结局', treeFactor));
|
|
143
|
-
}
|
|
144
|
-
_forEach(_get(item, 'children'), function (subItem) {
|
|
145
|
-
if (subItem.neonateWeight < 2.5) {
|
|
146
|
-
factorKeys.push(getTreeId('个人既往史因素(如: 低出生体重, 妊娠年龄偏小, 前次不良妊娠结局, 超过10年以上的妊娠间隔)', treeFactor));
|
|
14
|
+
var _b;
|
|
15
|
+
var modal_data = _a.modal_data,
|
|
16
|
+
_onOk = _a.onOk,
|
|
17
|
+
_c = _a.bodyStyle,
|
|
18
|
+
bodyStyle = _c === void 0 ? {} : _c,
|
|
19
|
+
width = _a.width,
|
|
20
|
+
others = __rest(_a, ["modal_data", "onOk", "bodyStyle", "width"]);
|
|
21
|
+
var _d = modal_data.title,
|
|
22
|
+
title = _d === void 0 ? "" : _d,
|
|
23
|
+
bf_title = modal_data.bf_title,
|
|
24
|
+
_e = modal_data.formDescriptions,
|
|
25
|
+
formDescriptions = _e === void 0 ? [] : _e,
|
|
26
|
+
_f = modal_data.targetLabelCol,
|
|
27
|
+
targetLabelCol = _f === void 0 ? 4 : _f,
|
|
28
|
+
defaultFormItemLayout = modal_data.defaultFormItemLayout,
|
|
29
|
+
_onFieldsChange = modal_data.onFieldsChange,
|
|
30
|
+
_onValuesChange = modal_data.onValuesChange,
|
|
31
|
+
onSubmit = modal_data.onSubmit,
|
|
32
|
+
getInitialData = modal_data.getInitialData,
|
|
33
|
+
disableAll = modal_data.disableAll,
|
|
34
|
+
_g = modal_data.modalFormSize,
|
|
35
|
+
modalFormSize = _g === void 0 ? 'middle' : _g;
|
|
36
|
+
var _form = Form.useForm()[0];
|
|
37
|
+
var form = (_b = modal_data.form) !== null && _b !== void 0 ? _b : _form;
|
|
38
|
+
var _h = useState({}),
|
|
39
|
+
data = _h[0],
|
|
40
|
+
setData = _h[1];
|
|
41
|
+
var _j = BF_Wrap2({
|
|
42
|
+
default_conf: {
|
|
43
|
+
title: bf_title,
|
|
44
|
+
tableColumns: formDescriptions,
|
|
45
|
+
handleBeforePopup: function handleBeforePopup(values) {
|
|
46
|
+
return values !== null && values !== void 0 ? values : {};
|
|
147
47
|
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
function hasCode(diagnosisObj) {
|
|
151
|
-
var arr = ['N00', 'N01', 'N02', 'N03', 'N04', 'N05', 'N06', 'N07', 'N08', 'N09', 'N010', 'N11', 'N12', 'N14', 'N15', 'N16', 'N17', 'N18', 'N19', 'N25', 'N26', 'N27'];
|
|
152
|
-
var code = _get(diagnosisObj, 'diagnosisCode');
|
|
153
|
-
var codeArr = _split(code, '.');
|
|
154
|
-
var bool = _includes(arr, _get(codeArr, '[0]'));
|
|
155
|
-
if (bool) return bool;
|
|
156
|
-
if (_get(codeArr, '[0]') == 'N28') {
|
|
157
|
-
var codeNum = _floor(_get(codeArr, "[1]"));
|
|
158
|
-
if (codeNum <= 820) return true;
|
|
159
|
-
}
|
|
160
|
-
return bool;
|
|
161
|
-
}
|
|
162
|
-
_forEach(_diagnosesList, function (item) {
|
|
163
|
-
if (item.diagnosis.indexOf('双胎妊娠') !== -1 || item.diagnosis.indexOf('多胎妊娠') !== -1 || item.diagnosis.indexOf('胎妊娠') !== -1) {
|
|
164
|
-
factorKeys.push(getTreeId('多胎妊娠', treeFactor));
|
|
165
48
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (hasCode(item)) {
|
|
179
|
-
factorKeys.push(getTreeId('肾病', treeFactor));
|
|
180
|
-
}
|
|
181
|
-
if (item.diagnosis.indexOf('SLE') !== -1 || item.diagnosis.indexOf('红斑狼疮') !== -1 || item.diagnosis.indexOf('抗磷脂综合征') !== -1) {
|
|
182
|
-
factorKeys.push(getTreeId('自身免疫性疾病(系统性红斑狼疮, 抗磷脂综合症)', treeFactor));
|
|
183
|
-
}
|
|
184
|
-
if (item.diagnosis.indexOf('异位妊娠') != -1 || item.diagnosis.indexOf('葡萄胎') != -1 || item.diagnosis.indexOf('绒毛膜上皮性疾病') != -1) {
|
|
185
|
-
factorKeys.push(getTreeId('个人既往史因素(如: 低出生体重, 妊娠年龄偏小, 前次不良妊娠结局, 超过10年以上的妊娠间隔)', treeFactor));
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
if (gravidity === 1) factorKeys.push(getTreeId('初次妊娠', treeFactor));
|
|
189
|
-
if (bmi > 30) factorKeys.push(getTreeId('肥胖(BMI > 30kg/㎡)', treeFactor));
|
|
190
|
-
if (familyHistoryOtherNote.indexOf('子痫前期') !== -1) {
|
|
191
|
-
factorKeys.push(getTreeId('子痫前期家族史', treeFactor));
|
|
192
|
-
}
|
|
193
|
-
if (futureAge >= 35) factorKeys.push(getTreeId('妊娠年龄超过35岁', treeFactor));
|
|
194
|
-
if (allergyHistoryOtherNote.indexOf('阿司匹林') !== -1) {
|
|
195
|
-
factorKeys.push(getTreeId('阿司匹林过敏史(荨麻疹等症状)', treeFactor));
|
|
196
|
-
}
|
|
197
|
-
if (allergyHistoryOtherNote.indexOf('水杨酸') !== -1) {
|
|
198
|
-
factorKeys.push(getTreeId('对其他水杨酸类药物过敏(以防交叉过敏)', treeFactor));
|
|
199
|
-
}
|
|
200
|
-
if (allergyHistoryOtherNote.indexOf('NSAIDs') !== -1 || allergyHistoryOtherNote.indexOf('非甾体类消炎药') !== -1) {
|
|
201
|
-
factorKeys.push(getTreeId('对NSAIDs过敏', treeFactor));
|
|
202
|
-
}
|
|
203
|
-
if (futureAge < 18 || isBool(lastPregnancyHistory) || _get(lastPregnancyHistory, 'fetusdeath') || (lastPregnancyHistory === null || lastPregnancyHistory === void 0 ? void 0 : lastPregnancyHistory.year) && getDiffYears(dayjs(new Date()).format('YYYY-MM-DD'), lastPregnancyHistory === null || lastPregnancyHistory === void 0 ? void 0 : lastPregnancyHistory.year) > 10) {
|
|
204
|
-
factorKeys.push(getTreeId('个人既往史因素(如: 低出生体重, 妊娠年龄偏小, 前次不良妊娠结局, 超过10年以上的妊娠间隔)', treeFactor));
|
|
205
|
-
}
|
|
206
|
-
function isBool(lastPregnancyHistory) {
|
|
207
|
-
var bool = false;
|
|
208
|
-
var exceptionalcase = _get(lastPregnancyHistory, 'exceptionalcase') || '';
|
|
209
|
-
var naturalAbortion = _get(lastPregnancyHistory, 'naturalAbortion');
|
|
210
|
-
var biochemicalAbortion = _get(lastPregnancyHistory, 'biochemicalAbortion');
|
|
211
|
-
var fetusdeath = _get(lastPregnancyHistory, 'fetusdeath');
|
|
212
|
-
var preterm = _get(lastPregnancyHistory, 'preterm');
|
|
213
|
-
if (exceptionalcase.indexOf('异位妊娠') != -1 || exceptionalcase.indexOf('滋养细胞') != -1 || exceptionalcase.indexOf('葡萄胎') != -1 || exceptionalcase.indexOf('出生缺陷') != -1 || exceptionalcase.indexOf('新生儿缺陷') != -1 || exceptionalcase.indexOf('胚胎停育') != -1 || exceptionalcase.indexOf('胎停') != -1 || exceptionalcase.indexOf('绒毛摸上皮性疾病') != -1 || naturalAbortion || biochemicalAbortion || fetusdeath || preterm) {
|
|
214
|
-
bool = true;
|
|
215
|
-
}
|
|
216
|
-
return bool;
|
|
49
|
+
}),
|
|
50
|
+
Wrap = _j.Wrap,
|
|
51
|
+
config = _j.config;
|
|
52
|
+
var inited = useRef(false);
|
|
53
|
+
var _k = useState(false),
|
|
54
|
+
loading = _k[0],
|
|
55
|
+
setLoading = _k[1];
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
if (inited.current) return noop;
|
|
58
|
+
if (!bf_title) {
|
|
59
|
+
base_int().then(finish_init);
|
|
60
|
+
return noop;
|
|
217
61
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
});
|
|
225
|
-
return String(treeId);
|
|
226
|
-
}
|
|
227
|
-
function handleCheckFactor(keys) {
|
|
228
|
-
_forEach(treeFactor, function (item) {
|
|
229
|
-
if (keys.includes(String(item.id))) {
|
|
230
|
-
item.selected = true;
|
|
62
|
+
if (config) {
|
|
63
|
+
mchcLogger.log('modal_form config', {
|
|
64
|
+
config: config
|
|
65
|
+
});
|
|
66
|
+
if (config.handleBeforePopup) {
|
|
67
|
+
base_int().then(config.handleBeforePopup).then(finish_init);
|
|
231
68
|
} else {
|
|
232
|
-
|
|
69
|
+
base_int().then(finish_init);
|
|
233
70
|
}
|
|
71
|
+
}
|
|
72
|
+
return noop;
|
|
73
|
+
}, [bf_title, config]);
|
|
74
|
+
function base_int() {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
return [2, safe_async_call(function () {
|
|
78
|
+
return getInitialData === null || getInitialData === void 0 ? void 0 : getInitialData();
|
|
79
|
+
}).then(function (v) {
|
|
80
|
+
var init_data = v !== null && v !== void 0 ? v : {};
|
|
81
|
+
return init_data;
|
|
82
|
+
})];
|
|
83
|
+
});
|
|
234
84
|
});
|
|
235
|
-
setFactorKeys(keys);
|
|
236
|
-
setTreeFactor(treeFactor);
|
|
237
85
|
}
|
|
238
|
-
function
|
|
239
|
-
|
|
240
|
-
if (
|
|
241
|
-
|
|
242
|
-
} else {
|
|
243
|
-
item.selected = null;
|
|
86
|
+
function finish_init() {
|
|
87
|
+
return __awaiter(this, arguments, void 0, function (base) {
|
|
88
|
+
if (base === void 0) {
|
|
89
|
+
base = {};
|
|
244
90
|
}
|
|
245
|
-
});
|
|
246
|
-
setGuideKeys(keys);
|
|
247
|
-
setTreeGuide(treeGuide);
|
|
248
|
-
}
|
|
249
|
-
function handleOk() {
|
|
250
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
251
|
-
var pregnancyId, filterFactor, factorData, filterGuide, guideData;
|
|
252
91
|
return __generator(this, function (_a) {
|
|
253
92
|
switch (_a.label) {
|
|
254
93
|
case 0:
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
});
|
|
259
|
-
factorData = {
|
|
260
|
-
pregnancyId: pregnancyId,
|
|
261
|
-
type: 34,
|
|
262
|
-
value: filterFactor,
|
|
263
|
-
templateId: null
|
|
264
|
-
};
|
|
265
|
-
filterGuide = _filter(treeGuide, function (item) {
|
|
266
|
-
return _includes(guideKeys, String(item.id));
|
|
267
|
-
});
|
|
268
|
-
guideData = {
|
|
269
|
-
pregnancyId: pregnancyId,
|
|
270
|
-
type: 35,
|
|
271
|
-
value: filterGuide,
|
|
272
|
-
templateId: null
|
|
273
|
-
};
|
|
274
|
-
if (!(guideData.value.length == 0 && factorData.value.length == 0)) return [3, 3];
|
|
275
|
-
return [4, SMchc_TemplateTrees.deleteHighrisk(guideData)];
|
|
94
|
+
inited.current = true;
|
|
95
|
+
setData(base);
|
|
96
|
+
return [4, sleep(400)];
|
|
276
97
|
case 1:
|
|
277
98
|
_a.sent();
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
case 4:
|
|
285
|
-
_a.sent();
|
|
286
|
-
return [4, SMchc_TemplateTrees.saveAlertAssessment(guideData)];
|
|
287
|
-
case 5:
|
|
288
|
-
_a.sent();
|
|
289
|
-
_a.label = 6;
|
|
290
|
-
case 6:
|
|
291
|
-
close === null || close === void 0 ? void 0 : close(false);
|
|
99
|
+
mchcLogger.log('modal_form init', {
|
|
100
|
+
base: base,
|
|
101
|
+
form: form,
|
|
102
|
+
xx: form.getFieldsValue()
|
|
103
|
+
});
|
|
104
|
+
form.setFieldsValue(base);
|
|
292
105
|
return [2];
|
|
293
106
|
}
|
|
294
107
|
});
|
|
295
108
|
});
|
|
296
109
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
item.title = item.val;
|
|
306
|
-
item.key = String(item.id);
|
|
307
|
-
item.children = transferTemplateData(data, item.id);
|
|
308
|
-
if (_isEmpty(item.children)) {
|
|
309
|
-
item.isLeaf = true;
|
|
310
|
-
} else {
|
|
311
|
-
item.isLeaf = false;
|
|
312
|
-
}
|
|
313
|
-
treeData.push(item);
|
|
110
|
+
useEffect(function () {
|
|
111
|
+
return mchcDriver.on_rm('data', function (e) {
|
|
112
|
+
if (e.type === 'ReadCard') {
|
|
113
|
+
var res = e.data;
|
|
114
|
+
form.setFieldsValue({
|
|
115
|
+
idNO: res.idNO,
|
|
116
|
+
name: res.name
|
|
117
|
+
});
|
|
314
118
|
}
|
|
315
119
|
});
|
|
316
|
-
|
|
120
|
+
}, []);
|
|
121
|
+
function renderEditContent() {
|
|
122
|
+
if (bf_title) return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(FormSection, {
|
|
123
|
+
formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns,
|
|
124
|
+
disableAll: disableAll,
|
|
125
|
+
defaultFormItemLayout: defaultFormItemLayout,
|
|
126
|
+
targetLabelCol: targetLabelCol,
|
|
127
|
+
form: form
|
|
128
|
+
}), ";");
|
|
129
|
+
return /*#__PURE__*/React.createElement(FormSection, {
|
|
130
|
+
formDescriptions: formDescriptions,
|
|
131
|
+
disableAll: disableAll,
|
|
132
|
+
defaultFormItemLayout: defaultFormItemLayout,
|
|
133
|
+
targetLabelCol: targetLabelCol,
|
|
134
|
+
form: form
|
|
135
|
+
});
|
|
317
136
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}, mchcEnv.is('郫都') ? '参考指南:子痫前期的预防及预测指南(2025)' : '参考指南:2018美国妇产科医师协会“妊娠期低剂量阿司匹林的应用”'), /*#__PURE__*/React.createElement(_Space, {
|
|
323
|
-
style: {
|
|
324
|
-
display: 'flex',
|
|
325
|
-
alignItems: 'center',
|
|
326
|
-
justifyContent: 'center'
|
|
327
|
-
}
|
|
328
|
-
}, /*#__PURE__*/React.createElement(_Button, {
|
|
329
|
-
onClick: function onClick() {
|
|
330
|
-
return close === null || close === void 0 ? void 0 : close();
|
|
331
|
-
}
|
|
332
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(_Button, {
|
|
333
|
-
type: "primary",
|
|
334
|
-
onClick: handleOk
|
|
335
|
-
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(ReactToPrint, {
|
|
336
|
-
trigger: function trigger() {
|
|
337
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Button, {
|
|
338
|
-
type: "primary"
|
|
339
|
-
}, "\u6253\u5370"));
|
|
137
|
+
return /*#__PURE__*/React.createElement(Modal, __assign({
|
|
138
|
+
title: (data === null || data === void 0 ? void 0 : data.id) ? "\u4FEE\u6539".concat(title) : "\u6DFB\u52A0".concat(title),
|
|
139
|
+
okButtonProps: {
|
|
140
|
+
loading: loading
|
|
340
141
|
},
|
|
341
|
-
|
|
142
|
+
centered: true,
|
|
143
|
+
destroyOnHidden: true,
|
|
144
|
+
width: width !== null && width !== void 0 ? width : "60vw",
|
|
145
|
+
styles: {
|
|
146
|
+
body: __assign({
|
|
147
|
+
height: '70vh',
|
|
148
|
+
overflowY: 'auto',
|
|
149
|
+
overflowX: 'hidden'
|
|
150
|
+
}, bodyStyle)
|
|
151
|
+
},
|
|
152
|
+
onOk: function onOk(e) {
|
|
342
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
154
|
+
var formData;
|
|
343
155
|
return __generator(this, function (_a) {
|
|
344
|
-
|
|
345
|
-
|
|
156
|
+
switch (_a.label) {
|
|
157
|
+
case 0:
|
|
158
|
+
return [4, validate_form(form)];
|
|
159
|
+
case 1:
|
|
160
|
+
formData = _a.sent();
|
|
161
|
+
if (!formData) return [2];
|
|
162
|
+
setLoading(true);
|
|
163
|
+
safe_async_call(onSubmit, __assign(__assign({}, data), formData), data).then(function (a) {
|
|
164
|
+
if (!a) return;
|
|
165
|
+
_onOk === null || _onOk === void 0 ? void 0 : _onOk(e);
|
|
166
|
+
})["finally"](function () {
|
|
167
|
+
return setLoading(false);
|
|
168
|
+
});
|
|
169
|
+
return [2];
|
|
170
|
+
}
|
|
346
171
|
});
|
|
347
172
|
});
|
|
348
|
-
},
|
|
349
|
-
content: function content() {
|
|
350
|
-
return printTableRef.current;
|
|
351
|
-
}
|
|
352
|
-
})))];
|
|
353
|
-
return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
|
|
354
|
-
className: styles["preeclampsia-modal"],
|
|
355
|
-
title: "\u5B50\u75EB\u524D\u671F\u98CE\u9669\u8BC4\u4F30\u8868",
|
|
356
|
-
width: 900,
|
|
357
|
-
footer: footer,
|
|
358
|
-
maskClosable: false
|
|
359
|
-
}), /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
|
|
360
|
-
span: 12,
|
|
361
|
-
className: styles["tree-left"]
|
|
362
|
-
}, /*#__PURE__*/React.createElement(Tree, {
|
|
363
|
-
key: treeFactorNodes,
|
|
364
|
-
checkable: true,
|
|
365
|
-
defaultExpandAll: true,
|
|
366
|
-
checkedKeys: factorKeys,
|
|
367
|
-
onCheck: handleCheckFactor,
|
|
368
|
-
treeData: treeFactorNodes
|
|
369
|
-
})), /*#__PURE__*/React.createElement(_Col, {
|
|
370
|
-
span: 11,
|
|
371
|
-
offset: 1,
|
|
372
|
-
className: styles["tree-right"]
|
|
373
|
-
}, /*#__PURE__*/React.createElement(Tree, {
|
|
374
|
-
key: treeGuideNodes,
|
|
375
|
-
checkable: true,
|
|
376
|
-
defaultExpandAll: true,
|
|
377
|
-
checkedKeys: guideKeys,
|
|
378
|
-
onCheck: handleCheckGuide,
|
|
379
|
-
treeData: treeGuideNodes
|
|
380
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
381
|
-
style: {
|
|
382
|
-
display: 'none'
|
|
383
173
|
}
|
|
384
|
-
}, /*#__PURE__*/React.createElement(
|
|
385
|
-
|
|
386
|
-
|
|
174
|
+
}, others), /*#__PURE__*/React.createElement(ErrorBoundarySmall, null, /*#__PURE__*/React.createElement(Form, {
|
|
175
|
+
size: modalFormSize,
|
|
176
|
+
onFieldsChange: function onFieldsChange(a, b) {
|
|
177
|
+
_onFieldsChange === null || _onFieldsChange === void 0 ? void 0 : _onFieldsChange(a, b, form);
|
|
387
178
|
},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}, /*#__PURE__*/React.createElement(Tree, {
|
|
408
|
-
key: treeGuideNodes,
|
|
409
|
-
checkable: true,
|
|
410
|
-
defaultExpandAll: true,
|
|
411
|
-
checkedKeys: guideKeys,
|
|
412
|
-
treeData: treeGuideNodes
|
|
413
|
-
}))))));
|
|
179
|
+
onValuesChange: function onValuesChange(changedValues, b) {
|
|
180
|
+
var k = Object.keys(changedValues)[0];
|
|
181
|
+
var v = changedValues[k];
|
|
182
|
+
_onValuesChange === null || _onValuesChange === void 0 ? void 0 : _onValuesChange(changedValues, b, form);
|
|
183
|
+
mchcEvent.emit('my_form', {
|
|
184
|
+
type: 'onChange',
|
|
185
|
+
name: k,
|
|
186
|
+
value: v,
|
|
187
|
+
values: b,
|
|
188
|
+
form: form,
|
|
189
|
+
setValue: function setValue(name, value) {
|
|
190
|
+
var _a;
|
|
191
|
+
form.setFieldsValue((_a = {}, _a[name] = value, _a));
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
},
|
|
195
|
+
autoComplete: "off",
|
|
196
|
+
form: form
|
|
197
|
+
}, renderEditContent())));
|
|
414
198
|
}
|
|
415
|
-
export {
|
|
416
|
-
//# sourceMappingURL=.root18.js.map
|
|
199
|
+
export { MyModalForm as default };
|