@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/.root24.js
CHANGED
|
@@ -1,759 +1,143 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import '
|
|
5
|
-
import
|
|
6
|
-
import '
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
import React, { useRef, useState, useEffect } from 'react';
|
|
15
|
-
import 'antd/es/input/style';
|
|
16
|
-
import _Input from 'antd/es/input';
|
|
17
|
-
import 'antd/es/space/style';
|
|
18
|
-
import _Space from 'antd/es/space';
|
|
19
|
-
import 'antd/es/button/style';
|
|
20
|
-
import _Button from 'antd/es/button';
|
|
21
|
-
import 'antd/es/row/style';
|
|
22
|
-
import _Row from 'antd/es/row';
|
|
23
|
-
import 'antd/es/col/style';
|
|
24
|
-
import _Col from 'antd/es/col';
|
|
25
|
-
import _split from 'lodash/split';
|
|
26
|
-
import _sortBy from 'lodash/sortBy';
|
|
27
|
-
import _keys from 'lodash/keys';
|
|
28
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
29
|
-
import _includes from 'lodash/includes';
|
|
30
|
-
import _findIndex from 'lodash/findIndex';
|
|
31
|
-
import _cloneDeep from 'lodash/cloneDeep';
|
|
32
|
-
import { HighRiskGradeSelectPure, MySelect } from '@lm_fe/components_m';
|
|
33
|
-
import { mchcEnv, mchcConfig } from '@lm_fe/env';
|
|
34
|
-
import { LazyAntd } from '@lm_fe/components';
|
|
35
|
-
import 'antd/es/timeline/style';
|
|
36
|
-
import _Timeline from 'antd/es/timeline';
|
|
37
|
-
import 'antd/es/empty/style';
|
|
38
|
-
import _Empty from 'antd/es/empty';
|
|
39
|
-
import _orderBy from 'lodash/orderBy';
|
|
40
|
-
import classnames from 'classnames';
|
|
41
|
-
import 'antd/es/list/style';
|
|
42
|
-
import 'antd/es/list';
|
|
43
|
-
import 'antd/es/tooltip/style';
|
|
44
|
-
import 'antd/es/tooltip';
|
|
45
|
-
import '@ant-design/icons';
|
|
46
|
-
import 'antd/es/spin/style';
|
|
47
|
-
import 'antd/es/spin';
|
|
48
|
-
import 'antd/es/form/style';
|
|
49
|
-
import 'antd/es/form';
|
|
50
|
-
import 'antd/es/result/style';
|
|
51
|
-
import 'antd/es/result';
|
|
52
|
-
import 'antd/es/menu/style';
|
|
53
|
-
import 'antd/es/menu';
|
|
54
|
-
import 'antd/es/divider/style';
|
|
55
|
-
import 'antd/es/divider';
|
|
56
|
-
var css_248z = ".index-module_highrisk-pop__EXrdh .ant-modal-title {\n font-size: 18px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-nav {\n margin-left: 20px;\n margin-bottom: 6px;\n}\n.index-module_highrisk-pop__EXrdh .ant-col {\n margin-bottom: 8px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-content-holder {\n padding: 0 20px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign-content__2OIIR {\n height: 400px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-row {\n margin-bottom: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-form-item {\n margin-bottom: 4px;\n margin-right: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-input,\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-tree {\n font-size: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-select-selection-overflow {\n max-width: 99%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-infec__ioC8F {\n width: 100%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-factor__6Jvpt .ant-select-selector {\n height: 88px;\n overflow-y: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-options__wYFIS {\n height: 350px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm {\n height: 520px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 8px;\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-label {\n width: 120px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-tail {\n left: 132px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-head {\n left: 128px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-left .ant-timeline-item-content {\n left: 124px;\n width: calc(100% - 120px - 20px);\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item {\n padding-bottom: 0;\n margin-bottom: -30px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL {\n position: relative;\n left: -140px;\n top: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-grade__eZRL9 {\n position: relative;\n width: 108px;\n height: 30px;\n line-height: 30px;\n border-radius: 4px;\n text-align: center;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-week__ZM4kc {\n width: 108px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA {\n position: relative;\n top: -60px;\n color: #535881;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_record-item__XQRGF {\n margin: 4px 0;\n padding-right: 6px;\n display: flex;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-label__9G8OI {\n width: 72px;\n text-align: right;\n margin-right: 3px;\n border-radius: 4px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-note__iB4rS {\n flex: 1;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_infectionNote-item__Am1Go .index-module_item-label__9G8OI {\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_infectionNote-item__Am1Go .index-module_item-note__iB4rS {\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_row-content__-A1zS {\n display: flex;\n justify-content: space-between;\n}\n.index-module_highrisk-pop__EXrdh .index-module_col-content__1Z2c3 {\n height: 340px;\n overflow: auto;\n padding-left: 10px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_tree-title__yGg17 {\n font-size: 14px;\n font-weight: 600;\n line-height: 40px;\n}\n";
|
|
1
|
+
import { s as styleInject, d as __rest, _ as __spreadArray, a as __assign } from './index.js';
|
|
2
|
+
import { MyIcon } from '@lm_fe/components';
|
|
3
|
+
import { Modal, Input, Divider, Empty } from 'antd';
|
|
4
|
+
import React, { useState, useEffect } from 'react';
|
|
5
|
+
import store from 'store';
|
|
6
|
+
import '@lm_fe/utils';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import 'lodash';
|
|
9
|
+
import '@lm_fe/components_m';
|
|
10
|
+
import '@lm_fe/env';
|
|
11
|
+
import '@lm_fe/provoke';
|
|
12
|
+
import '@lm_fe/service';
|
|
13
|
+
var css_248z = ".index-module_row-item__AdReQ:hover {\n background: #eee;\n}\n";
|
|
57
14
|
var styles = {
|
|
58
|
-
"
|
|
59
|
-
"highrisk-sign-content": "index-module_highrisk-sign-content__2OIIR",
|
|
60
|
-
"highrisk-sign": "index-module_highrisk-sign__A2COH",
|
|
61
|
-
"highrisk-infec": "index-module_highrisk-infec__ioC8F",
|
|
62
|
-
"highrisk-factor": "index-module_highrisk-factor__6Jvpt",
|
|
63
|
-
"highrisk-options": "index-module_highrisk-options__wYFIS",
|
|
64
|
-
"highrisk-timeline": "index-module_highrisk-timeline__LnCQm",
|
|
65
|
-
"record-left": "index-module_record-left__LUFuL",
|
|
66
|
-
"record-grade": "index-module_record-grade__eZRL9",
|
|
67
|
-
"record-week": "index-module_record-week__ZM4kc",
|
|
68
|
-
"record-right": "index-module_record-right__XQNAA",
|
|
69
|
-
"record-item": "index-module_record-item__XQRGF",
|
|
70
|
-
"item-label": "index-module_item-label__9G8OI",
|
|
71
|
-
"item-note": "index-module_item-note__iB4rS",
|
|
72
|
-
"infectionNote-item": "index-module_infectionNote-item__Am1Go",
|
|
73
|
-
"row-content": "index-module_row-content__-A1zS",
|
|
74
|
-
"col-content": "index-module_col-content__1Z2c3",
|
|
75
|
-
"tree-title": "index-module_tree-title__yGg17"
|
|
15
|
+
"row-item": "index-module_row-item__AdReQ"
|
|
76
16
|
};
|
|
77
17
|
styleInject(css_248z);
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
_h = headerInfo;
|
|
111
|
-
}
|
|
112
|
-
if (!_h) return _h;
|
|
113
|
-
var grade = (_h === null || _h === void 0 ? void 0 : _h.highriskLable) || (_h === null || _h === void 0 ? void 0 : _h.highriskGrade) || '';
|
|
114
|
-
var _data = __assign(__assign({}, _h), {
|
|
115
|
-
infectionNote: (_a = _h === null || _h === void 0 ? void 0 : _h.infectionNote) !== null && _a !== void 0 ? _a : '',
|
|
116
|
-
highriskNote: (_b = _h === null || _h === void 0 ? void 0 : _h.highriskNote) !== null && _b !== void 0 ? _b : '',
|
|
117
|
-
highriskGrade: grade,
|
|
118
|
-
highriskLable: grade
|
|
119
|
-
});
|
|
120
|
-
return _data;
|
|
121
|
-
}
|
|
18
|
+
var TEXTSEARCH_HISTORYLIST = 'TEXTSEARCH_HISTORYLIST';
|
|
19
|
+
function TextSearch(_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var modal_data = _a.modal_data,
|
|
22
|
+
visible = _a.visible,
|
|
23
|
+
onCancel = _a.onCancel,
|
|
24
|
+
close = _a.close;
|
|
25
|
+
__rest(_a, ["modal_data", "visible", "onCancel", "close"]);
|
|
26
|
+
var _c = modal_data.items,
|
|
27
|
+
items = _c === void 0 ? [] : _c,
|
|
28
|
+
_d = modal_data.getLabel,
|
|
29
|
+
getLabel = _d === void 0 ? function () {
|
|
30
|
+
return '';
|
|
31
|
+
} : _d,
|
|
32
|
+
onSelect = modal_data.onSelect;
|
|
33
|
+
var _e = useState(''),
|
|
34
|
+
searchText = _e[0],
|
|
35
|
+
setSearchText = _e[1];
|
|
36
|
+
var _f = useState(false),
|
|
37
|
+
inputShow = _f[0],
|
|
38
|
+
setInputShow = _f[1];
|
|
39
|
+
var _g = useState((_b = store.get(TEXTSEARCH_HISTORYLIST)) !== null && _b !== void 0 ? _b : []),
|
|
40
|
+
historyList = _g[0],
|
|
41
|
+
_setHistoryList = _g[1];
|
|
42
|
+
function setHistoryList(_list) {
|
|
43
|
+
_setHistoryList(_list);
|
|
44
|
+
store.set(TEXTSEARCH_HISTORYLIST, _list);
|
|
45
|
+
}
|
|
46
|
+
var resultArr = items.filter(function (_) {
|
|
47
|
+
var label = getLabel(_);
|
|
48
|
+
return label.includes(searchText);
|
|
49
|
+
});
|
|
122
50
|
useEffect(function () {
|
|
123
|
-
(function () {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var _a, _b, _c, _d;
|
|
127
|
-
return __generator(this, function (_e) {
|
|
128
|
-
if (headerInfo) {
|
|
129
|
-
highRiskTreeDataMapping.current = _keyBy(highriskTreeData, 'id');
|
|
130
|
-
highriskNote_ = (_d = (_c = (_b = (_a = headerInfo.highriskNote) === null || _a === void 0 ? void 0 : _a.split) === null || _b === void 0 ? void 0 : _b.call(_a, ',')) === null || _c === void 0 ? void 0 : _c.filter(function (_) {
|
|
131
|
-
return _;
|
|
132
|
-
})) !== null && _d !== void 0 ? _d : [];
|
|
133
|
-
_selectTree_1 = [];
|
|
134
|
-
highriskNote_.map(function (item) {
|
|
135
|
-
_map(highRiskTreeDataMapping.current, function (v, i) {
|
|
136
|
-
var addNote = getTargetNote(v);
|
|
137
|
-
if (item == addNote) {
|
|
138
|
-
_selectTree_1.push(v);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
set_selectTree(_selectTree_1);
|
|
143
|
-
set_expandedKeys(Object.keys(highRiskTreeDataMapping.current));
|
|
144
|
-
set_initData(getInitData());
|
|
145
|
-
}
|
|
146
|
-
set_currentTreeData(highriskTreeData);
|
|
147
|
-
return [2];
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
})();
|
|
51
|
+
setTimeout(function () {
|
|
52
|
+
setInputShow(true);
|
|
53
|
+
}, 200);
|
|
151
54
|
return function () {};
|
|
152
|
-
}, [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
__highriskTreeData.map(function (item) {
|
|
186
|
-
var _a;
|
|
187
|
-
var val = item.val || '';
|
|
188
|
-
var mnemonic = item.mnemonic || '';
|
|
189
|
-
var pid = item.pid;
|
|
190
|
-
var id = item.id;
|
|
191
|
-
if ((val.indexOf(searchValue_1) > -1 || mnemonic.indexOf(searchValue_1) > -1) && pid === 0 && !_includes(expandedKeys, String(item.id))) {
|
|
192
|
-
treeData.push(item);
|
|
193
|
-
expandedKeys.push(String(item.id));
|
|
194
|
-
_map(__highriskTreeData, function (subItem) {
|
|
195
|
-
if (subItem.pid === id && !_includes(expandedKeys, String(subItem.id))) {
|
|
196
|
-
treeData.push(subItem);
|
|
197
|
-
expandedKeys.push(String(subItem.id));
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
} else if (searchValue_1 && val.indexOf(searchValue_1) > -1 && pid !== 0 && !_includes(expandedKeys, String(item.id))) {
|
|
201
|
-
treeData.push(item);
|
|
202
|
-
expandedKeys.push(String(item.id));
|
|
203
|
-
var _loop_2 = function _loop_2() {
|
|
204
|
-
var bool = false;
|
|
205
|
-
_map(__highriskTreeData, function (subItem) {
|
|
206
|
-
if (subItem.id === pid && !_includes(expandedKeys, String(subItem.id))) {
|
|
207
|
-
treeData.push(subItem);
|
|
208
|
-
expandedKeys.push(String(subItem.id));
|
|
209
|
-
pid = subItem.pid;
|
|
210
|
-
bool = true;
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
if (!bool) pid = 0;
|
|
214
|
-
};
|
|
215
|
-
while (pid != 0) {
|
|
216
|
-
_loop_2();
|
|
217
|
-
}
|
|
218
|
-
var id_1 = _get(item, 'id').toString();
|
|
219
|
-
searchValueArr.push(id_1);
|
|
220
|
-
} else if (searchValue_1 === ((_a = _get(item, 'pid')) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
221
|
-
if (_findIndex(treeData, function (treeValue) {
|
|
222
|
-
return _get(treeValue, 'id') == _get(item, 'id');
|
|
223
|
-
}) == -1) {
|
|
224
|
-
treeData.push(item);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
searchValueArr.shift();
|
|
229
|
-
};
|
|
230
|
-
while (searchValueArr.length > 0) {
|
|
231
|
-
_loop_1();
|
|
232
|
-
}
|
|
233
|
-
var sortTreeData = _sortBy(treeData, function (item) {
|
|
234
|
-
return _get(item, 'id');
|
|
235
|
-
});
|
|
236
|
-
return {
|
|
237
|
-
treeData: sortTreeData,
|
|
238
|
-
expandedKeys: expandedKeys
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
function handleSelectHighrisk(values, e) {
|
|
242
|
-
var arr = [];
|
|
243
|
-
values.forEach(function (k) {
|
|
244
|
-
var _item = highRiskTreeDataMapping.current[k];
|
|
245
|
-
SelectOne(_item, arr);
|
|
246
|
-
});
|
|
247
|
-
calAndSetData(arr);
|
|
248
|
-
set_selectTree(__spreadArray([], arr, true));
|
|
249
|
-
}
|
|
250
|
-
function SelectOne(_item, selectArr) {
|
|
251
|
-
var isIn = selectArr.find(function (_) {
|
|
252
|
-
return _.id === (_item === null || _item === void 0 ? void 0 : _item.id);
|
|
253
|
-
});
|
|
254
|
-
if (isIn) return;
|
|
255
|
-
var pid = _item === null || _item === void 0 ? void 0 : _item.pid;
|
|
256
|
-
if (!pid) return;
|
|
257
|
-
var ind = selectArr.findIndex(function (_) {
|
|
258
|
-
return _.pid == (_item === null || _item === void 0 ? void 0 : _item.pid);
|
|
259
|
-
});
|
|
260
|
-
var isBrotherIn = ind != -1;
|
|
261
|
-
if (isBrotherIn && !multiple) {
|
|
262
|
-
selectArr.splice(ind, 1, _item);
|
|
263
|
-
} else {
|
|
264
|
-
selectArr.push(_item);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
function calAndSetData(selectArr, nodeArr) {
|
|
268
|
-
var _a;
|
|
269
|
-
var _addNoteArr = [],
|
|
270
|
-
__highriskGrade = '';
|
|
271
|
-
var selectTree_ = _cloneDeep(selectArr);
|
|
272
|
-
selectTree_.map(function (_) {
|
|
273
|
-
var code = _.code;
|
|
274
|
-
var addNote = getTargetNote(_);
|
|
275
|
-
if (!_includes(_addNoteArr, addNote)) {
|
|
276
|
-
_addNoteArr.push(addNote);
|
|
277
|
-
}
|
|
278
|
-
if (__highriskGrade == '' || code > __highriskGrade) {
|
|
279
|
-
__highriskGrade = code;
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
console.log('_addNoteArr', _addNoteArr);
|
|
283
|
-
set_initData(Object.assign({}, initData, {
|
|
284
|
-
highriskGrade: __highriskGrade,
|
|
285
|
-
highriskNote: ((_a = nodeArr !== null && nodeArr !== void 0 ? nodeArr : _addNoteArr) !== null && _a !== void 0 ? _a : []).join(',')
|
|
286
|
-
}));
|
|
287
|
-
}
|
|
288
|
-
function transferHighRiskData(data, pid) {
|
|
289
|
-
if (pid === void 0) {
|
|
290
|
-
pid = 0;
|
|
55
|
+
}, []);
|
|
56
|
+
var rowStyle = {
|
|
57
|
+
padding: 6,
|
|
58
|
+
marginBottom: 2,
|
|
59
|
+
textIndent: 24,
|
|
60
|
+
display: 'flex',
|
|
61
|
+
justifyContent: 'space-between',
|
|
62
|
+
cursor: 'pointer'
|
|
63
|
+
};
|
|
64
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
65
|
+
open: visible,
|
|
66
|
+
title: null,
|
|
67
|
+
closeIcon: null,
|
|
68
|
+
width: 512,
|
|
69
|
+
footer: null,
|
|
70
|
+
onCancel: onCancel,
|
|
71
|
+
closable: false,
|
|
72
|
+
style: {
|
|
73
|
+
top: '4px'
|
|
74
|
+
},
|
|
75
|
+
bodyStyle: {},
|
|
76
|
+
destroyOnClose: true
|
|
77
|
+
}, inputShow && /*#__PURE__*/React.createElement(Input, {
|
|
78
|
+
placeholder: "\u8F93\u5165\u83DC\u5355\u540D\u79F0\u641C\u7D22",
|
|
79
|
+
autoFocus: true,
|
|
80
|
+
onChange: function onChange(e) {
|
|
81
|
+
return setSearchText(e.target.value);
|
|
82
|
+
},
|
|
83
|
+
value: searchText
|
|
84
|
+
}), historyList.length ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null, "\u5386\u53F2\u8BB0\u5F55"), /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
style: {
|
|
86
|
+
maxHeight: '20vh',
|
|
87
|
+
overflowY: 'auto'
|
|
291
88
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
_item.children = transferHighRiskData(data, item.id);
|
|
300
|
-
if (_isEmpty(_item.children)) {
|
|
301
|
-
_item.isLeaf = true;
|
|
302
|
-
} else {
|
|
303
|
-
_item.isLeaf = false;
|
|
304
|
-
}
|
|
305
|
-
treeData.push(_item);
|
|
89
|
+
}, historyList.map(function (item) {
|
|
90
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: styles['row-item'],
|
|
92
|
+
style: rowStyle,
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
onSelect(item);
|
|
95
|
+
close === null || close === void 0 ? void 0 : close(true);
|
|
306
96
|
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
}
|
|
310
|
-
function handleExpend(expandedKeys) {
|
|
311
|
-
set_expandedKeys(expandedKeys);
|
|
312
|
-
}
|
|
313
|
-
function handleReset() {
|
|
314
|
-
set_initData(Object.assign({}, initData, {
|
|
315
|
-
highriskGrade: '',
|
|
316
|
-
highriskNote: '',
|
|
317
|
-
infectionNote: ''
|
|
318
|
-
}));
|
|
319
|
-
set_selectTree([]);
|
|
320
|
-
}
|
|
321
|
-
function getGradeColor(grade) {
|
|
322
|
-
grade = grade !== null && grade !== void 0 ? grade : 'I';
|
|
323
|
-
var target = gradeOptions.find(function (_) {
|
|
324
|
-
return _.label === grade;
|
|
325
|
-
});
|
|
326
|
-
return target === null || target === void 0 ? void 0 : target.note;
|
|
327
|
-
}
|
|
328
|
-
function renderColorSpan(label) {
|
|
329
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
97
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(MyIcon, {
|
|
98
|
+
value: 'ClockCircleOutlined',
|
|
330
99
|
style: {
|
|
331
|
-
|
|
332
|
-
display: 'inline-block',
|
|
333
|
-
width: '12px',
|
|
334
|
-
height: '12px',
|
|
335
|
-
margin: '0 10px'
|
|
100
|
+
marginRight: 6
|
|
336
101
|
}
|
|
337
|
-
})
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
return /*#__PURE__*/React.createElement(Tree, {
|
|
343
|
-
multiple: true,
|
|
344
|
-
showLine: {
|
|
345
|
-
showLeafIcon: false
|
|
102
|
+
}), getLabel(item)), /*#__PURE__*/React.createElement(MyIcon, {
|
|
103
|
+
value: 'CloseOutlined',
|
|
104
|
+
title: "\u6E05\u9664",
|
|
105
|
+
style: {
|
|
106
|
+
cursor: 'pointer'
|
|
346
107
|
},
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
titleRender: function titleRender(treeNode) {
|
|
355
|
-
var _a;
|
|
356
|
-
return /*#__PURE__*/React.createElement("div", null, ((_a = treeNode.children) === null || _a === void 0 ? void 0 : _a.length) == 0 && renderColorSpan(treeNode.code), _get(treeNode, "title"));
|
|
108
|
+
onClick: function onClick(e) {
|
|
109
|
+
e.stopPropagation();
|
|
110
|
+
var idx = historyList.findIndex(function (_) {
|
|
111
|
+
return _ === item;
|
|
112
|
+
});
|
|
113
|
+
historyList.splice(idx, 1);
|
|
114
|
+
setHistoryList(__spreadArray([], historyList, true));
|
|
357
115
|
}
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
function renderhiskTree() {
|
|
361
|
-
var treeData__ = transferHighRiskData(currentTreeData);
|
|
362
|
-
var highriskVersion = mchcConfig.get('highriskVersion');
|
|
363
|
-
if (highriskVersion === 23 || mchcEnv.is('华医') || mchcEnv.is('南医增城')) {
|
|
364
|
-
return renderTree({
|
|
365
|
-
treeData: treeData__,
|
|
366
|
-
expandedKeys: expandedKeys
|
|
367
|
-
});
|
|
368
|
-
} else {
|
|
369
|
-
return /*#__PURE__*/React.createElement(_Row, {
|
|
370
|
-
className: styles["row-content"],
|
|
371
|
-
key: searchValue ? searchValue : currentTreeData.length
|
|
372
|
-
}, /*#__PURE__*/React.createElement(_Col, {
|
|
373
|
-
span: 8
|
|
374
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
375
|
-
className: styles["tree-title"]
|
|
376
|
-
}, _get(treeData__, "[0].title")), /*#__PURE__*/React.createElement("div", {
|
|
377
|
-
className: styles["col-content"]
|
|
378
|
-
}, renderTree({
|
|
379
|
-
treeData: _get(treeData__, "[0].children"),
|
|
380
|
-
expandedKeys: expandedKeys
|
|
381
|
-
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
382
|
-
span: 8
|
|
383
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
384
|
-
className: styles["tree-title"]
|
|
385
|
-
}, _get(treeData__, "[1].title")), /*#__PURE__*/React.createElement("div", {
|
|
386
|
-
className: styles["col-content"]
|
|
387
|
-
}, renderTree({
|
|
388
|
-
treeData: _get(treeData__, "[1].children"),
|
|
389
|
-
expandedKeys: expandedKeys
|
|
390
|
-
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
391
|
-
span: 8
|
|
392
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
393
|
-
className: styles["tree-title"]
|
|
394
|
-
}, _get(treeData__, "[2].title")), /*#__PURE__*/React.createElement("div", {
|
|
395
|
-
className: styles["col-content"]
|
|
396
|
-
}, renderTree({
|
|
397
|
-
treeData: _get(treeData__, "[2].children"),
|
|
398
|
-
expandedKeys: expandedKeys
|
|
399
|
-
}))));
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
function getTargetNote(v) {
|
|
403
|
-
var p = _get(highRiskTreeDataMapping.current, v.pid);
|
|
404
|
-
var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol$1).concat(v === null || v === void 0 ? void 0 : v.val);
|
|
405
|
-
return addNote;
|
|
406
|
-
}
|
|
407
|
-
!!(initData === null || initData === void 0 ? void 0 : initData.infectionNote) && contagionOptions.every(function (_) {
|
|
408
|
-
return _.value !== (initData === null || initData === void 0 ? void 0 : initData.infectionNote);
|
|
409
|
-
});
|
|
410
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
411
|
-
className: styles["highrisk-sign"]
|
|
412
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
413
|
-
className: styles["highrisk-sign-header"]
|
|
414
|
-
}, /*#__PURE__*/React.createElement(_Row, {
|
|
415
|
-
gutter: 8
|
|
416
|
-
}, /*#__PURE__*/React.createElement(_Col, {
|
|
417
|
-
span: 2
|
|
418
|
-
}, "\u9AD8\u5371\u7B49\u7EA7:"), /*#__PURE__*/React.createElement(_Col, {
|
|
419
|
-
span: 6
|
|
420
|
-
}, /*#__PURE__*/React.createElement(HighRiskGradeSelectPure, {
|
|
421
|
-
onChange: function onChange(v) {
|
|
422
|
-
set_initData(Object.assign({}, initData, {
|
|
423
|
-
highriskGrade: v
|
|
424
|
-
}));
|
|
425
|
-
},
|
|
426
|
-
value: _get(initData, 'highriskGrade')
|
|
427
|
-
})), /*#__PURE__*/React.createElement(_Col, {
|
|
428
|
-
span: 15,
|
|
429
|
-
style: {
|
|
430
|
-
textAlign: 'right'
|
|
431
|
-
}
|
|
432
|
-
}, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
|
|
433
|
-
onClick: function onClick() {
|
|
434
|
-
set_expandedKeys([]);
|
|
435
|
-
}
|
|
436
|
-
}, "\u5168\u90E8\u6536\u8D77"), /*#__PURE__*/React.createElement(_Button, {
|
|
437
|
-
onClick: function onClick() {
|
|
438
|
-
set_expandedKeys(_keys(highRiskTreeDataMapping.current));
|
|
439
|
-
}
|
|
440
|
-
}, "\u5168\u90E8\u5C55\u5F00"), /*#__PURE__*/React.createElement(_Button, {
|
|
441
|
-
onClick: handleReset
|
|
442
|
-
}, "\u6E05\u7A7A"), /*#__PURE__*/React.createElement(_Button, {
|
|
443
|
-
type: "primary",
|
|
444
|
-
onClick: function onClick() {
|
|
445
|
-
return set_initData(getInitData());
|
|
446
|
-
}
|
|
447
|
-
}, "\u6062\u590D"))), /*#__PURE__*/React.createElement(_Col, {
|
|
448
|
-
span: 2
|
|
449
|
-
}, " \u4F20\u67D3\u75C5", /*#__PURE__*/React.createElement("span", {
|
|
116
|
+
}));
|
|
117
|
+
})))) : null, /*#__PURE__*/React.createElement(Divider, null, "\u641C\u7D22\u7ED3\u679C"), /*#__PURE__*/React.createElement("div", {
|
|
450
118
|
style: {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
fontWeight: 'bold',
|
|
454
|
-
fontSize: 22
|
|
119
|
+
height: '40vh',
|
|
120
|
+
overflowY: 'auto'
|
|
455
121
|
}
|
|
456
|
-
},
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
set_initData(Object.assign({}, initData, {
|
|
469
|
-
infectionNote: v
|
|
470
|
-
}));
|
|
471
|
-
},
|
|
472
|
-
mode: "tags",
|
|
473
|
-
marshal: 0,
|
|
474
|
-
value: initData === null || initData === void 0 ? void 0 : initData.infectionNote
|
|
475
|
-
})), /*#__PURE__*/React.createElement(_Col, {
|
|
476
|
-
span: 2
|
|
477
|
-
}, "\u9AD8\u5371\u56E0\u7D20:"), /*#__PURE__*/React.createElement(_Col, {
|
|
478
|
-
span: 21
|
|
479
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
480
|
-
mode: "tags",
|
|
481
|
-
style: {
|
|
482
|
-
width: '100%'
|
|
483
|
-
},
|
|
484
|
-
className: styles["highrisk-factor"],
|
|
485
|
-
onChange: handleChange,
|
|
486
|
-
value: _get(initData, 'highriskNote', '').split(',').filter(function (_) {
|
|
487
|
-
return _;
|
|
488
|
-
})
|
|
489
|
-
})), /*#__PURE__*/React.createElement(_Col, {
|
|
490
|
-
span: 2
|
|
491
|
-
}, "\u6A21\u7CCA\u67E5\u627E:"), /*#__PURE__*/React.createElement(_Col, {
|
|
492
|
-
span: 21
|
|
493
|
-
}, /*#__PURE__*/React.createElement(_Input, {
|
|
494
|
-
onChange: handleSearch
|
|
495
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
496
|
-
className: styles["highrisk-sign-content"]
|
|
497
|
-
}, renderhiskTree()));
|
|
498
|
-
}
|
|
499
|
-
function HighriskTimeline_高危因素管理(props) {
|
|
500
|
-
var id = props.id,
|
|
501
|
-
gradeOptions = props.gradeOptions,
|
|
502
|
-
contagionColor = props.contagionColor;
|
|
503
|
-
var _a = useState([]),
|
|
504
|
-
riskRecords = _a[0],
|
|
505
|
-
set_riskRecords = _a[1];
|
|
506
|
-
useEffect(function () {
|
|
507
|
-
SMchc_Doctor.getRiskRecordsOfOutpatient(id !== null && id !== void 0 ? id : getSearchParamsValue('id')).then(set_riskRecords);
|
|
508
|
-
return function () {};
|
|
509
|
-
}, []);
|
|
510
|
-
function getGradeColor(grade) {
|
|
511
|
-
grade = grade !== null && grade !== void 0 ? grade : 'I';
|
|
512
|
-
var target = gradeOptions.find(function (_) {
|
|
513
|
-
return _.label === grade;
|
|
514
|
-
});
|
|
515
|
-
return target === null || target === void 0 ? void 0 : target.note;
|
|
516
|
-
}
|
|
517
|
-
function getGradeColorText(grade) {
|
|
518
|
-
grade = grade !== null && grade !== void 0 ? grade : 'I';
|
|
519
|
-
var target = gradeOptions.find(function (_) {
|
|
520
|
-
return _.label === grade;
|
|
521
|
-
});
|
|
522
|
-
return target === null || target === void 0 ? void 0 : target.colorText;
|
|
523
|
-
}
|
|
524
|
-
var newRiskRecords = _cloneDeep(riskRecords);
|
|
525
|
-
newRiskRecords = _orderBy(riskRecords, ['eventDate'], ['desc']);
|
|
526
|
-
return _isEmpty(newRiskRecords) ? /*#__PURE__*/React.createElement(_Empty, {
|
|
527
|
-
description: "\u6682\u65E0\u9AD8\u5371\u8BB0\u5F55"
|
|
528
|
-
}) : /*#__PURE__*/React.createElement(_Timeline, {
|
|
529
|
-
mode: "left",
|
|
530
|
-
className: styles["highrisk-timeline"]
|
|
531
|
-
}, _map(newRiskRecords, function (item) {
|
|
532
|
-
var _a;
|
|
533
|
-
return /*#__PURE__*/React.createElement(_Timeline.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
534
|
-
className: styles["record-left"]
|
|
535
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
536
|
-
className: styles["record-grade"],
|
|
537
|
-
style: {
|
|
538
|
-
background: getGradeColor(item.highriskGrade)
|
|
122
|
+
}, resultArr.length ? (/*#__PURE__*/React.createElement(React.Fragment, null, resultArr.map(function (_) {
|
|
123
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: styles['row-item'],
|
|
125
|
+
style: __assign({}, rowStyle),
|
|
126
|
+
onClick: function onClick() {
|
|
127
|
+
onSelect(_);
|
|
128
|
+
close === null || close === void 0 ? void 0 : close(true);
|
|
129
|
+
if (historyList.some(function (h) {
|
|
130
|
+
return getLabel(h) === getLabel(_);
|
|
131
|
+
})) return;
|
|
132
|
+
var arr = historyList.length >= 5 ? historyList.slice(1, 5) : historyList;
|
|
133
|
+
setHistoryList(__spreadArray(__spreadArray([], arr, true), [_], false));
|
|
539
134
|
}
|
|
540
|
-
},
|
|
541
|
-
className: styles["record-week"]
|
|
542
|
-
}, item.gestationalWeek ? "\u5B55".concat(item.gestationalWeek, "\u5468") : '')), /*#__PURE__*/React.createElement("div", {
|
|
543
|
-
className: styles["record-right"]
|
|
544
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
545
|
-
className: classnames(styles['record-item'], (_a = {}, _a[styles['infectionNote-item']] = !!item.infectionNote, _a))
|
|
546
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
547
|
-
className: styles["item-label"],
|
|
135
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", {
|
|
548
136
|
style: {
|
|
549
|
-
|
|
137
|
+
fontWeight: 'bold',
|
|
138
|
+
marginRight: 6
|
|
550
139
|
}
|
|
551
|
-
}, "\
|
|
552
|
-
|
|
553
|
-
}, item.infectionNote || '无')), /*#__PURE__*/React.createElement("div", {
|
|
554
|
-
className: styles["record-item"]
|
|
555
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
556
|
-
className: styles["item-label"]
|
|
557
|
-
}, "\u9AD8\u5371\u56E0\u7D20\uFF1A"), /*#__PURE__*/React.createElement("div", {
|
|
558
|
-
className: styles["item-note"]
|
|
559
|
-
}, item.highriskNote || '无')), /*#__PURE__*/React.createElement("div", {
|
|
560
|
-
className: styles["record-item"]
|
|
561
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
562
|
-
className: styles["item-label"]
|
|
563
|
-
}, "\u8BC4\u5B9A\u65E5\u671F\uFF1A"), /*#__PURE__*/React.createElement("div", {
|
|
564
|
-
className: styles["item-note"]
|
|
565
|
-
}, formatDate(item.eventDate))), /*#__PURE__*/React.createElement("div", {
|
|
566
|
-
className: styles["record-item"]
|
|
567
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
568
|
-
className: styles["item-label"]
|
|
569
|
-
}, "\u8BC4\u5B9A\u533B\u751F\uFF1A"), /*#__PURE__*/React.createElement("div", {
|
|
570
|
-
className: styles["item-note"]
|
|
571
|
-
}, item.doctor))));
|
|
572
|
-
}));
|
|
573
|
-
}
|
|
574
|
-
var boundSymbol = ':';
|
|
575
|
-
function HighriskFactor(props) {
|
|
576
|
-
var _this = this;
|
|
577
|
-
var modal_data = props.modal_data,
|
|
578
|
-
close = props.close,
|
|
579
|
-
others = __rest(props, ["modal_data", "close"]);
|
|
580
|
-
var data = modal_data.data,
|
|
581
|
-
onFinish = modal_data.onFinish,
|
|
582
|
-
handleSubmit = modal_data.handleSubmit,
|
|
583
|
-
pregnancyId = modal_data.pregnancyId,
|
|
584
|
-
hide高危时间轴 = modal_data.hide高危时间轴,
|
|
585
|
-
hide高危标记 = modal_data.hide高危标记;
|
|
586
|
-
var highRiskTreeDataMapping = useRef({});
|
|
587
|
-
var _a = useState([]),
|
|
588
|
-
highriskTreeData = _a[0],
|
|
589
|
-
set_highriskTreeData = _a[1];
|
|
590
|
-
var _b = useState([]),
|
|
591
|
-
gradeOptions = _b[0],
|
|
592
|
-
set_gradeOptions = _b[1];
|
|
593
|
-
var _c = useState([]),
|
|
594
|
-
contagionOptions = _c[0],
|
|
595
|
-
set_contagionOptions = _c[1];
|
|
596
|
-
var _d = useState(hide高危标记 ? hide高危时间轴 ? '' : '2' : '1'),
|
|
597
|
-
activeTabKey = _d[0],
|
|
598
|
-
set_activeTabKey = _d[1];
|
|
599
|
-
var _e = useState(),
|
|
600
|
-
initData = _e[0],
|
|
601
|
-
set_initData = _e[1];
|
|
602
|
-
var _f = useState(),
|
|
603
|
-
headerInfo = _f[0],
|
|
604
|
-
setHeaderInfo = _f[1];
|
|
605
|
-
useEffect(function () {
|
|
606
|
-
(function () {
|
|
607
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
608
|
-
var h, _a, treeData, highriskNote_, _selectTree_1;
|
|
609
|
-
var _b, _c;
|
|
610
|
-
return __generator(this, function (_d) {
|
|
611
|
-
switch (_d.label) {
|
|
612
|
-
case 0:
|
|
613
|
-
SMchc_Common.getHighriskGradeConfig().then(set_gradeOptions);
|
|
614
|
-
if (!!hide高危标记) return [3, 5];
|
|
615
|
-
if (!(data !== null && data !== void 0)) return [3, 1];
|
|
616
|
-
_a = data;
|
|
617
|
-
return [3, 3];
|
|
618
|
-
case 1:
|
|
619
|
-
return [4, SMchc_Doctor.getOutpatientHeaderInfo(pregnancyId)];
|
|
620
|
-
case 2:
|
|
621
|
-
_a = _d.sent();
|
|
622
|
-
_d.label = 3;
|
|
623
|
-
case 3:
|
|
624
|
-
h = _a;
|
|
625
|
-
setHeaderInfo(h);
|
|
626
|
-
SMchc_Common.getHighriskContagionConfig().then(function (r) {
|
|
627
|
-
set_contagionOptions(r.options);
|
|
628
|
-
});
|
|
629
|
-
return [4, SMchc_Common.getHighriskTree()];
|
|
630
|
-
case 4:
|
|
631
|
-
treeData = _d.sent();
|
|
632
|
-
highRiskTreeDataMapping.current = _keyBy(treeData, 'id');
|
|
633
|
-
highriskNote_ = (_c = (_b = h.highriskNote) === null || _b === void 0 ? void 0 : _b.split(',')) !== null && _c !== void 0 ? _c : [];
|
|
634
|
-
_selectTree_1 = [];
|
|
635
|
-
highriskNote_.map(function (item) {
|
|
636
|
-
_map(highRiskTreeDataMapping.current, function (v, i) {
|
|
637
|
-
var addNote = getTargetNote(v);
|
|
638
|
-
if (item == addNote) {
|
|
639
|
-
_selectTree_1.push(v);
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
});
|
|
643
|
-
set_highriskTreeData(treeData);
|
|
644
|
-
_d.label = 5;
|
|
645
|
-
case 5:
|
|
646
|
-
return [2];
|
|
647
|
-
}
|
|
648
|
-
});
|
|
649
|
-
});
|
|
650
|
-
})();
|
|
651
|
-
return function () {};
|
|
652
|
-
}, []);
|
|
653
|
-
function onOk() {
|
|
654
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
655
|
-
return __generator(this, function (_a) {
|
|
656
|
-
switch (_a.label) {
|
|
657
|
-
case 0:
|
|
658
|
-
if (hide高危标记) {
|
|
659
|
-
close === null || close === void 0 ? void 0 : close(true);
|
|
660
|
-
return [2];
|
|
661
|
-
}
|
|
662
|
-
if (!(initData === null || initData === void 0 ? void 0 : initData.infectionNote)) {
|
|
663
|
-
return [2, _message.info('请选择传染病!')];
|
|
664
|
-
}
|
|
665
|
-
if (initData.highriskGrade && initData.highriskGrade !== ROMAN_NUMERALS[1]) {
|
|
666
|
-
if (!initData.highriskNote) {
|
|
667
|
-
_message.error('请填写高危因素!');
|
|
668
|
-
return [2];
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
if (initData.highriskNote) {
|
|
672
|
-
if (!initData.highriskGrade) {
|
|
673
|
-
_message.error('请填写高危等级!');
|
|
674
|
-
return [2];
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
if (!onFinish) return [3, 1];
|
|
678
|
-
if (headerInfo) {
|
|
679
|
-
onFinish(__assign(__assign({}, headerInfo), initData));
|
|
680
|
-
}
|
|
681
|
-
return [3, 3];
|
|
682
|
-
case 1:
|
|
683
|
-
return [4, updateRiskRecords()];
|
|
684
|
-
case 2:
|
|
685
|
-
_a.sent();
|
|
686
|
-
handleSubmit === null || handleSubmit === void 0 ? void 0 : handleSubmit();
|
|
687
|
-
_a.label = 3;
|
|
688
|
-
case 3:
|
|
689
|
-
close === null || close === void 0 ? void 0 : close(true);
|
|
690
|
-
return [2];
|
|
691
|
-
}
|
|
692
|
-
});
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
function updateRiskRecords() {
|
|
696
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
697
|
-
var postData;
|
|
698
|
-
return __generator(this, function (_a) {
|
|
699
|
-
switch (_a.label) {
|
|
700
|
-
case 0:
|
|
701
|
-
postData = {
|
|
702
|
-
outEmrId: _get(headerInfo, 'id'),
|
|
703
|
-
infectionNote: initData === null || initData === void 0 ? void 0 : initData.infectionNote,
|
|
704
|
-
highriskNote: initData === null || initData === void 0 ? void 0 : initData.highriskNote,
|
|
705
|
-
highriskGrade: initData === null || initData === void 0 ? void 0 : initData.highriskGrade,
|
|
706
|
-
gestationalWeek: _get(headerInfo, "gesweek")
|
|
707
|
-
};
|
|
708
|
-
return [4, request.put('/api/doctor/assessHighRisk', postData)];
|
|
709
|
-
case 1:
|
|
710
|
-
_a.sent();
|
|
711
|
-
_message.success('信息保存成功!');
|
|
712
|
-
return [2];
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
function handleClose() {
|
|
718
|
-
close === null || close === void 0 ? void 0 : close();
|
|
719
|
-
}
|
|
720
|
-
function handleTabChange(key) {
|
|
721
|
-
set_activeTabKey(key);
|
|
722
|
-
}
|
|
723
|
-
function getTargetNote(v) {
|
|
724
|
-
var p = _get(highRiskTreeDataMapping.current, v.pid);
|
|
725
|
-
var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol).concat(v === null || v === void 0 ? void 0 : v.val);
|
|
726
|
-
return addNote;
|
|
727
|
-
}
|
|
728
|
-
return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
|
|
729
|
-
className: styles["highrisk-pop"],
|
|
730
|
-
bodyStyle: {
|
|
731
|
-
padding: 0,
|
|
732
|
-
maxHeight: 700
|
|
733
|
-
},
|
|
734
|
-
width: '70vw',
|
|
735
|
-
onCancel: handleClose,
|
|
736
|
-
onOk: onOk
|
|
737
|
-
}), /*#__PURE__*/React.createElement(_Tabs, {
|
|
738
|
-
activeKey: activeTabKey,
|
|
739
|
-
onChange: handleTabChange
|
|
740
|
-
}, hide高危标记 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
|
|
741
|
-
tab: "\u9AD8\u5371\u6807\u8BB0",
|
|
742
|
-
key: "1"
|
|
743
|
-
}, /*#__PURE__*/React.createElement(HighriskSign_高危因素管理, {
|
|
744
|
-
initData: initData,
|
|
745
|
-
set_initData: set_initData,
|
|
746
|
-
gradeOptions: gradeOptions,
|
|
747
|
-
contagionOptions: contagionOptions,
|
|
748
|
-
highriskTreeData: highriskTreeData,
|
|
749
|
-
headerInfo: headerInfo
|
|
750
|
-
})), hide高危时间轴 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
|
|
751
|
-
tab: "\u9AD8\u5371\u65F6\u95F4\u8F74",
|
|
752
|
-
key: "2"
|
|
753
|
-
}, /*#__PURE__*/React.createElement(HighriskTimeline_高危因素管理, {
|
|
754
|
-
id: pregnancyId !== null && pregnancyId !== void 0 ? pregnancyId : headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id,
|
|
755
|
-
gradeOptions: gradeOptions
|
|
756
|
-
}))));
|
|
140
|
+
}, "\xB7"), getLabel(_)));
|
|
141
|
+
}))) : /*#__PURE__*/React.createElement(Empty, null)));
|
|
757
142
|
}
|
|
758
|
-
export {
|
|
759
|
-
//# sourceMappingURL=.root24.js.map
|
|
143
|
+
export { TextSearch as default };
|