@lm_fe/pages 0.1.201 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
- package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
- package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
- package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
- package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
- package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +1049 -286
- package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
- package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
- package/dist/a_chunks/modals.entries.box.js +23 -0
- package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
- package/dist/a_chunks/modals.entries.modal_page.js +143 -0
- package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
- package/dist/a_chunks/modals.entries.result_template.js +201 -0
- package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
- package/dist/a_chunks/modals.entries.test.js +30 -0
- package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
- package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
- package/dist/a_chunks/{.root18.js → modals.entries./345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250.js} +68 -93
- package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
- package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
- package/dist/a_chunks/{.root20.js → modals.entries./346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250.js} +144 -154
- package/dist/a_chunks/{.root21.js → modals.entries./347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250.js} +27 -48
- package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
- package/dist/a_chunks/{.root23.js → modals.entries./351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257.js} +127 -172
- package/dist/a_chunks/{.root24.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +438 -336
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
- package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
- package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
- package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
- package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
- package/dist/a_chunks/src.components.Login.js +151 -0
- package/dist/a_chunks/src.components.MenuSearch.js +106 -0
- package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
- package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
- 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/HighRiskTableEntry/utils.d.ts +4 -3
- 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/FetusCanvas/use_fetus.d.ts +33 -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/BmiCanvas/index.d.ts +23 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -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/components-new/FetusCanvasNICHD/index.d.ts +21 -0
- package/dist/curve/components-new/Pregnogram/index.d.ts +13 -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/hooks/use_duck_form.d.ts +18 -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/StupidTemplateModal2/methods/index.d.ts +7 -1
- 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 +6 -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/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -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 +4 -1
- package/dist/modals/meta.d.ts +4 -1
- 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 +0 -245
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js +0 -474
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js +0 -200
- 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 +0 -58
- 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 +0 -76
- 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 +0 -281
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js +0 -629
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js +0 -164
- 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 +0 -69
- 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//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,58 +1,14 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import 'antd/es/button/style';
|
|
3
|
-
import _Button from 'antd/es/button';
|
|
4
|
-
import 'antd/es/tabs/style';
|
|
5
|
-
import _Tabs from 'antd/es/tabs';
|
|
6
|
-
import 'antd/es/checkbox/style';
|
|
7
|
-
import _Checkbox from 'antd/es/checkbox';
|
|
8
|
-
import 'antd/es/empty/style';
|
|
9
|
-
import _Empty from 'antd/es/empty';
|
|
10
|
-
import 'antd/es/modal/style';
|
|
11
|
-
import _Modal from 'antd/es/modal';
|
|
12
|
-
import 'antd/es/message/style';
|
|
13
|
-
import _message from 'antd/es/message';
|
|
14
|
-
import _size from 'lodash/size';
|
|
15
|
-
import _set from 'lodash/set';
|
|
16
|
-
import _map from 'lodash/map';
|
|
17
|
-
import _get from 'lodash/get';
|
|
18
|
-
import _findIndex from 'lodash/findIndex';
|
|
19
|
-
import _filter from 'lodash/filter';
|
|
20
|
-
import _cloneDeep from 'lodash/cloneDeep';
|
|
21
|
-
import { s as styleInject, d as __rest, _ as __awaiter, a as __generator, c as __spreadArray, b as __assign } from './index.js';
|
|
1
|
+
import { s as styleInject, d as __rest, b as __awaiter, c as __generator, _ as __spreadArray, a as __assign } from './index.js';
|
|
22
2
|
import { SMchc_Doctor, SMchc_TemplateTrees } from '@lm_fe/service';
|
|
23
3
|
import { formatDate } from '@lm_fe/utils';
|
|
4
|
+
import { Input, message, Modal, Tabs, Empty, Button, Checkbox } from 'antd';
|
|
24
5
|
import classnames from 'classnames';
|
|
6
|
+
import { map, get, isString, size, set, cloneDeep, forEach, find, filter, findIndex } from 'lodash';
|
|
25
7
|
import React$1, { useRef, useState, useEffect } from 'react';
|
|
26
|
-
import '
|
|
27
|
-
import _Input from 'antd/es/input';
|
|
28
|
-
import _isString from 'lodash/isString';
|
|
29
|
-
import _forEach from 'lodash/forEach';
|
|
30
|
-
import { mchcEvent } from '@lm_fe/env';
|
|
31
|
-
import _find from 'lodash/find';
|
|
8
|
+
import { mchcEnv, mchcEvent } from '@lm_fe/env';
|
|
32
9
|
import { CustomIcon } from '@lm_fe/components_m';
|
|
33
10
|
import { LazyAntd } from '@lm_fe/components';
|
|
34
|
-
import '
|
|
35
|
-
import 'antd/es/row';
|
|
36
|
-
import 'antd/es/col/style';
|
|
37
|
-
import 'antd/es/col';
|
|
38
|
-
import 'antd/es/list/style';
|
|
39
|
-
import 'antd/es/list';
|
|
40
|
-
import 'antd/es/tooltip/style';
|
|
41
|
-
import 'antd/es/tooltip';
|
|
42
|
-
import '@ant-design/icons';
|
|
43
|
-
import 'antd/es/spin/style';
|
|
44
|
-
import 'antd/es/spin';
|
|
45
|
-
import 'antd/es/form/style';
|
|
46
|
-
import 'antd/es/form';
|
|
47
|
-
import 'antd/es/result/style';
|
|
48
|
-
import 'antd/es/result';
|
|
49
|
-
import 'antd/es/menu/style';
|
|
50
|
-
import 'antd/es/menu';
|
|
51
|
-
import 'antd/es/space/style';
|
|
52
|
-
import 'antd/es/space';
|
|
53
|
-
import 'lodash/keys';
|
|
54
|
-
import 'antd/es/divider/style';
|
|
55
|
-
import 'antd/es/divider';
|
|
11
|
+
import '@lm_fe/provoke';
|
|
56
12
|
var css_248z$1 = ".index-module_diagnones-container__7xI2U {\n background-color: #f9f9f9;\n padding: 0 20px;\n margin-top: 10px;\n}\n.index-module_diagnones-container__7xI2U .index-module_ant-btn-primary__oGIkA {\n background-color: #292961;\n}\n.index-module_diagnones-container__7xI2U .index-module_ant-input-group-wrapper__lggOS {\n width: 60%;\n padding: 10px 0;\n}\n.index-module_diagnones-container__7xI2U .index-module_diag-tiem__XUolV:hover {\n background-color: white;\n cursor: pointer;\n}\n";
|
|
57
13
|
var styles$1 = {
|
|
58
14
|
"diagnones-container": "index-module_diagnones-container__7xI2U",
|
|
@@ -75,8 +31,8 @@ function AddDiagnoses(_a) {
|
|
|
75
31
|
}, [diagnosesTemplate]);
|
|
76
32
|
function findMaxSort() {
|
|
77
33
|
var max = 0;
|
|
78
|
-
|
|
79
|
-
var sort =
|
|
34
|
+
map(diagnosesTemplate, function (item) {
|
|
35
|
+
var sort = get(item, "sort");
|
|
80
36
|
if (sort > max) {
|
|
81
37
|
max = sort;
|
|
82
38
|
}
|
|
@@ -96,12 +52,12 @@ function AddDiagnoses(_a) {
|
|
|
96
52
|
clear: true
|
|
97
53
|
};
|
|
98
54
|
if (item) {
|
|
99
|
-
if (!
|
|
100
|
-
if (
|
|
101
|
-
|
|
55
|
+
if (!isString(item) && size(item.children) > 0) return;
|
|
56
|
+
if (isString(item)) {
|
|
57
|
+
set(postdata, "diagnosis", item);
|
|
102
58
|
} else {
|
|
103
|
-
|
|
104
|
-
|
|
59
|
+
set(postdata, 'diagnosis', get(item, 'val'));
|
|
60
|
+
set(postdata, 'diagnosisCode', get(item, 'code'));
|
|
105
61
|
}
|
|
106
62
|
addDiag(postdata);
|
|
107
63
|
}
|
|
@@ -117,7 +73,7 @@ function AddDiagnoses(_a) {
|
|
|
117
73
|
setTemplate(diagnosesTemplate);
|
|
118
74
|
} else {
|
|
119
75
|
var newTemplate = diagnosesTemplate.filter(function (item) {
|
|
120
|
-
var str =
|
|
76
|
+
var str = get(item, 'val');
|
|
121
77
|
return str.search(value) != -1;
|
|
122
78
|
});
|
|
123
79
|
setTemplate(newTemplate);
|
|
@@ -126,8 +82,8 @@ function AddDiagnoses(_a) {
|
|
|
126
82
|
}
|
|
127
83
|
function hasKeyword(val, arr) {
|
|
128
84
|
var bool = false;
|
|
129
|
-
|
|
130
|
-
if (
|
|
85
|
+
forEach(arr, function (item) {
|
|
86
|
+
if (isString(item) && val.indexOf(item) !== -1 || !isString(item) && val.indexOf(item.hasWord) !== -1 && val.indexOf(item.withoutWord) === -1) {
|
|
131
87
|
bool = true;
|
|
132
88
|
}
|
|
133
89
|
});
|
|
@@ -141,7 +97,7 @@ function AddDiagnoses(_a) {
|
|
|
141
97
|
switch (_d.label) {
|
|
142
98
|
case 0:
|
|
143
99
|
_a = props.diagnosesList, diagnosesList = _a === void 0 ? [] : _a, headerInfo = props.headerInfo, setDiagnosesList = props.setDiagnosesList, page = props.page;
|
|
144
|
-
diag = (_b =
|
|
100
|
+
diag = (_b = get(diagnosisObj, 'diagnosis')) !== null && _b !== void 0 ? _b : '';
|
|
145
101
|
if (!(diagnosesList.filter(function (item) {
|
|
146
102
|
return item.diagnosis === diag;
|
|
147
103
|
}).length === 0)) return [3, 2];
|
|
@@ -149,20 +105,20 @@ function AddDiagnoses(_a) {
|
|
|
149
105
|
case 1:
|
|
150
106
|
res = _d.sent();
|
|
151
107
|
data = res || diagnosisObj;
|
|
152
|
-
|
|
108
|
+
mchcEnv.success('添加成功!');
|
|
153
109
|
mchcEvent.emit('outpatient', {
|
|
154
110
|
type: '添加修改诊断',
|
|
155
111
|
diagnoses: data
|
|
156
112
|
});
|
|
157
113
|
handelProcess(diagId);
|
|
158
|
-
newList =
|
|
114
|
+
newList = cloneDeep(diagnosesList);
|
|
159
115
|
setDiagnosesList === null || setDiagnosesList === void 0 ? void 0 : setDiagnosesList(__spreadArray(__spreadArray([], newList, true), [data], false));
|
|
160
116
|
mchcEvent.emit('outpatient', {
|
|
161
117
|
type: '刷新头部',
|
|
162
118
|
pregnancyId: headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id
|
|
163
119
|
});
|
|
164
120
|
if (diag === '瘢痕子宫' || diag === '疤痕子宫') {
|
|
165
|
-
currentGestationalWeek = parseInt((_c =
|
|
121
|
+
currentGestationalWeek = parseInt((_c = get(headerInfo, 'gesweek')) !== null && _c !== void 0 ? _c : '');
|
|
166
122
|
if (currentGestationalWeek >= 32) {
|
|
167
123
|
mchcEvent.emit('outpatient', {
|
|
168
124
|
type: '弹窗',
|
|
@@ -216,7 +172,7 @@ function AddDiagnoses(_a) {
|
|
|
216
172
|
}
|
|
217
173
|
return [3, 3];
|
|
218
174
|
case 2:
|
|
219
|
-
|
|
175
|
+
message.warning('添加诊断重复!');
|
|
220
176
|
_d.label = 3;
|
|
221
177
|
case 3:
|
|
222
178
|
return [2];
|
|
@@ -224,22 +180,22 @@ function AddDiagnoses(_a) {
|
|
|
224
180
|
});
|
|
225
181
|
});
|
|
226
182
|
}
|
|
227
|
-
return
|
|
183
|
+
return React.createElement("div", {
|
|
228
184
|
className: styles$1["diagnones-container"]
|
|
229
|
-
},
|
|
185
|
+
}, React.createElement(Input, {
|
|
230
186
|
className: styles$1["diag-ipt"],
|
|
231
187
|
placeholder: "\u8BF7\u8F93\u5165\u7B5B\u9009\u8FC7\u6EE4\u8BCA\u65AD\u4FE1\u606F",
|
|
232
188
|
onChange: handleChange
|
|
233
|
-
}),
|
|
189
|
+
}), React.createElement("div", {
|
|
234
190
|
className: styles$1["diagnoses-content"]
|
|
235
|
-
},
|
|
236
|
-
return
|
|
191
|
+
}, map(template, function (item, index) {
|
|
192
|
+
return React.createElement("p", {
|
|
237
193
|
className: styles$1["diag-tiem"]
|
|
238
|
-
},
|
|
194
|
+
}, React.createElement("span", {
|
|
239
195
|
onClick: function onClick() {
|
|
240
196
|
return handleSure(item);
|
|
241
197
|
}
|
|
242
|
-
},
|
|
198
|
+
}, get(item, 'code') ? '(icd)' : null, get(item, 'val')));
|
|
243
199
|
})));
|
|
244
200
|
}
|
|
245
201
|
var css_248z = ".index-module_high-risk-warn-container__f1b-P .index-module_content__gkB8G {\n height: 500px;\n padding-top: 5px;\n padding-bottom: 50px;\n overflow: auto;\n}\n.index-module_high-risk-warn-container__f1b-P .ant-tabs-content-holder {\n overflow: auto;\n}\n.index-module_high-risk-warn-container__f1b-P .ant-modal-content {\n max-height: 600px;\n}\n.index-module_high-risk-warn-container__f1b-P .ant-tabs > .ant-tabs-nav {\n margin-bottom: 0;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tree-title__UjVb8 {\n width: 100%;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tree-title__UjVb8 > .ant-tree-switcher,\n.index-module_high-risk-warn-container__f1b-P .index-module_tree-title__UjVb8 > .ant-tree-checkbox {\n display: none;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tree-title__UjVb8 > .ant-tree-node-content-wrapper {\n width: 100%;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .ant-tree-switcher {\n width: 0px;\n}\n.index-module_high-risk-warn-container__f1b-P .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {\n background-color: #fff;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_high-risk-warn-container__f1b-P .index-module_tree-title__UjVb8 > .ant-tree-node-content-wrapper {\n color: #383f4a;\n font-weight: 600;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a {\n display: flex;\n margin-top: 12px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_col-name__Qf--6 {\n position: relative;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n width: 130px;\n color: #150f55;\n font-weight: 500;\n font-size: 18px;\n text-align: center;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_col-name__Qf--6::before {\n position: absolute;\n top: 14px;\n left: 20px;\n width: 3px;\n height: 12px;\n background-color: #150f55;\n transform: translateY(-50%);\n content: ' ';\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v {\n display: flex;\n flex: 1;\n flex-wrap: wrap;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj {\n display: flex;\n margin-right: 20px;\n margin-bottom: 10px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj .index-module_item-title__Hkpij {\n position: relative;\n display: flex;\n align-items: center;\n width: 116px;\n padding-left: 25px;\n color: #150f55;\n font-size: 14px;\n background: #ffffff;\n border: 1px solid #edeef5;\n border-radius: 4px 0px 0px 4px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj .index-module_item-title__Hkpij::before {\n position: absolute;\n top: 50%;\n left: 10px;\n width: 8px;\n height: 8px;\n background-color: #d7dce7;\n border-radius: 50%;\n transform: translateY(-50%);\n content: ' ';\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj .index-module_data-content__3oFUi {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 330px;\n background-color: #fbeaea;\n border-radius: 0px 4px 4px 0px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj .index-module_data-content__3oFUi .index-module_item-event__iuWtR {\n display: flex;\n justify-content: space-between;\n padding: 0 10px;\n line-height: 34px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj .index-module_data-content__3oFUi .index-module_item-event__iuWtR .index-module_event__UUjVs {\n color: #ff0061;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_risk-mian-content__ty-2a .index-module_news-content__mvF2v .index-module_item-content__iGiTj .index-module_data-content__3oFUi .index-module_item-event__iuWtR .index-module_date__H92IG {\n color: #535881;\n font-size: 12px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tab-content__Cs7Nb {\n display: flex;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tab-content__Cs7Nb .index-module_tab-btn2__0bTBt {\n display: flex;\n align-items: center;\n justify-content: space-around;\n width: 106px;\n height: 32px;\n margin-right: 20px;\n color: #828c99;\n font-size: 14px;\n border: 1px solid #828c99;\n border-radius: 6px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tab-content__Cs7Nb .index-module_tab-btn2__0bTBt .index-module_icon__tCMe7 {\n font-size: 14px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_tab-content__Cs7Nb .index-module_active__X6Sw- {\n color: #fff;\n background-color: #292961;\n border: none;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_foot__rFhoq {\n position: absolute;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n padding: 10px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_foot__rFhoq .index-module_button-noremind__JIUWT {\n margin-right: 20px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_remind-item__o57sP {\n height: 50px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_remind-item__o57sP .index-module_reminder-msg__p-qyN {\n margin-bottom: 10px;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_remind-item__o57sP .index-module_reminder-diag__jX3-g {\n color: red;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz {\n padding: 15px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .ant-checkbox + span {\n display: inline-block;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .ant-checkbox-wrapper {\n width: 100%;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .ant-checkbox-wrapper .ant-checkbox-checked + span {\n display: inline-block;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .index-module_checkbox-item__21rg9 {\n display: flex;\n flex-direction: column;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .index-module_checkbox-item__21rg9 .index-module_item-key__0nzgA {\n color: #fd617f;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .index-module_checkbox-item__21rg9 .index-module_item-content__iGiTj {\n color: #383f4a;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .index-module_handle-time__I0qOh {\n position: absolute;\n top: 20px;\n right: 20px;\n color: #fd617f;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz .index-module_icon-laber__8-GAm {\n position: absolute;\n top: 0;\n right: 100px;\n color: #fd617f;\n font-size: 60px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_checkbox-content__ogFRz {\n position: relative;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_handle-time__I0qOh {\n position: absolute;\n top: 20px;\n right: 20px;\n color: #fd617f;\n font-size: 16px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_icon-laber__8-GAm {\n position: absolute;\n top: 0;\n right: 100px;\n color: #fd617f;\n font-size: 60px;\n}\n.index-module_high-risk-warn-container__f1b-P .index-module_treeData__Pt0UY {\n position: relative;\n}\n";
|
|
@@ -304,7 +260,7 @@ var transferData = function transferData(data, tabKey, handleTime, id, ignoreRis
|
|
|
304
260
|
obj2.disabled = true;
|
|
305
261
|
}
|
|
306
262
|
if (tabKey == handleType.ignore) {
|
|
307
|
-
var arr =
|
|
263
|
+
var arr = get(find(ignoreRiskMark, function (item) {
|
|
308
264
|
return item.id == id;
|
|
309
265
|
}), 'data.highriskTree') || [];
|
|
310
266
|
for (var i = 0; i < arr.length; i++) {
|
|
@@ -332,7 +288,7 @@ var transferData = function transferData(data, tabKey, handleTime, id, ignoreRis
|
|
|
332
288
|
};
|
|
333
289
|
var transferdataRemind = function transferdataRemind(data, tabKey) {
|
|
334
290
|
var treeData = [];
|
|
335
|
-
|
|
291
|
+
map(data, function (item, index) {
|
|
336
292
|
var obj = __assign({}, item);
|
|
337
293
|
var key1 = item.data.key + '~' + item.data.content;
|
|
338
294
|
obj.title = item.data.key + '(' + item.data.content + ')';
|
|
@@ -458,13 +414,13 @@ function HighRiskWarn(_a) {
|
|
|
458
414
|
useEffect(function () {
|
|
459
415
|
console.log('----------触发');
|
|
460
416
|
if (tabBtn == handleType.process) {
|
|
461
|
-
if (
|
|
417
|
+
if (size(processRemind) == 0 && size(processRiskMark) > 0) {
|
|
462
418
|
setInsideActive(riskType.RiskMark);
|
|
463
419
|
} else {
|
|
464
420
|
setInsideActive(riskType.DiagnosisRemind);
|
|
465
421
|
}
|
|
466
422
|
} else if (tabBtn == handleType.noprocess) {
|
|
467
|
-
if (
|
|
423
|
+
if (size(noProcessRemind) == 0 && size(noProcessRiskMark) > 0) {
|
|
468
424
|
setInsideActive(riskType.RiskMark);
|
|
469
425
|
} else {
|
|
470
426
|
if (jump == true) {
|
|
@@ -472,7 +428,7 @@ function HighRiskWarn(_a) {
|
|
|
472
428
|
}
|
|
473
429
|
}
|
|
474
430
|
} else {
|
|
475
|
-
if (
|
|
431
|
+
if (size(ignoreRemind) == 0 && size(ignoreRiskMark) > 0) {
|
|
476
432
|
setInsideActive(riskType.RiskMark);
|
|
477
433
|
} else {
|
|
478
434
|
if (jump == true || true) {
|
|
@@ -482,7 +438,7 @@ function HighRiskWarn(_a) {
|
|
|
482
438
|
}
|
|
483
439
|
}, [noProcessRiskMark, noProcessRemind, processRiskMark, processRemind, ignoreRemind, ignoreRiskMark, tabBtn]);
|
|
484
440
|
useEffect(function () {
|
|
485
|
-
if (highriskWarn.tabKey == '2' &&
|
|
441
|
+
if (highriskWarn.tabKey == '2' && size(warnDataByBoProcess()) == 0) {
|
|
486
442
|
setActiveKey('2');
|
|
487
443
|
}
|
|
488
444
|
}, [highriskWarn]);
|
|
@@ -517,7 +473,7 @@ function HighRiskWarn(_a) {
|
|
|
517
473
|
}
|
|
518
474
|
}, [processRiskMark, noProcessRiskMark, ignoreRiskMark]);
|
|
519
475
|
useEffect(function () {
|
|
520
|
-
if (
|
|
476
|
+
if (size(warnDataByBoProcess()) > 0) {
|
|
521
477
|
setActiveKey('1');
|
|
522
478
|
}
|
|
523
479
|
initSelectRiskMark();
|
|
@@ -538,7 +494,7 @@ function HighRiskWarn(_a) {
|
|
|
538
494
|
if (data === void 0) {
|
|
539
495
|
data = websocketData;
|
|
540
496
|
}
|
|
541
|
-
var postData =
|
|
497
|
+
var postData = filter(data, function (item) {
|
|
542
498
|
if (messageType) {
|
|
543
499
|
return item.type == messageType && item.level == process;
|
|
544
500
|
}
|
|
@@ -550,16 +506,16 @@ function HighRiskWarn(_a) {
|
|
|
550
506
|
return filterWsData(handleType.noprocess);
|
|
551
507
|
}
|
|
552
508
|
function initSelectRiskMark() {
|
|
553
|
-
var newData =
|
|
509
|
+
var newData = filter(websocketData, function (item) {
|
|
554
510
|
return item.type == riskType.RiskMark && (item.level == tabBtn || item.level == "".concat(tabBtn, "read"));
|
|
555
511
|
});
|
|
556
512
|
var data = [];
|
|
557
|
-
|
|
558
|
-
var highriskTree =
|
|
559
|
-
|
|
560
|
-
var children =
|
|
561
|
-
|
|
562
|
-
if (
|
|
513
|
+
map(newData, function (item, index) {
|
|
514
|
+
var highriskTree = get(item, "data.highriskTree");
|
|
515
|
+
map(highriskTree, function (treeItem, ind) {
|
|
516
|
+
var children = get(treeItem, "children");
|
|
517
|
+
map(children, function (childrenItem, i) {
|
|
518
|
+
if (get(childrenItem, "selected")) {
|
|
563
519
|
data.push(item);
|
|
564
520
|
}
|
|
565
521
|
});
|
|
@@ -577,15 +533,15 @@ function HighRiskWarn(_a) {
|
|
|
577
533
|
postData = insideActive == riskType.DiagnosisRemind ? selectRemind : selectRiskMark;
|
|
578
534
|
setJump(true);
|
|
579
535
|
}
|
|
580
|
-
var _postData =
|
|
581
|
-
if (
|
|
582
|
-
|
|
536
|
+
var _postData = cloneDeep(postData);
|
|
537
|
+
if (size(_postData) == 0) {
|
|
538
|
+
message.info('请先选择标记');
|
|
583
539
|
return;
|
|
584
540
|
}
|
|
585
541
|
if (insideActive == riskType.RiskMark && type == 'yes') {
|
|
586
542
|
var hasNoSelect = judgeSelect(noProcessRiskMark);
|
|
587
543
|
if (hasNoSelect) {
|
|
588
|
-
|
|
544
|
+
Modal.confirm({
|
|
589
545
|
title: '提示',
|
|
590
546
|
content: '是否确认忽略其他为勾选项?',
|
|
591
547
|
onOk: function onOk() {
|
|
@@ -603,9 +559,9 @@ function HighRiskWarn(_a) {
|
|
|
603
559
|
};
|
|
604
560
|
function submitData(_postData, type) {
|
|
605
561
|
var level = type == 'no' ? 0 : 9;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
562
|
+
map(_postData, function (item, index) {
|
|
563
|
+
set(item, "handleType", type);
|
|
564
|
+
set(item, "level", level);
|
|
609
565
|
});
|
|
610
566
|
makeSure(_postData);
|
|
611
567
|
setSelectRiskMark([]);
|
|
@@ -616,21 +572,21 @@ function HighRiskWarn(_a) {
|
|
|
616
572
|
console.log({
|
|
617
573
|
dataArr: dataArr
|
|
618
574
|
});
|
|
619
|
-
|
|
620
|
-
var highriskTree =
|
|
621
|
-
|
|
622
|
-
var children =
|
|
575
|
+
map(dataArr, function (item, index) {
|
|
576
|
+
var highriskTree = get(item, "data.highriskTree");
|
|
577
|
+
map(highriskTree, function (treeItem, ind) {
|
|
578
|
+
var children = get(treeItem, "children");
|
|
623
579
|
var count = 0;
|
|
624
|
-
for (var i = 0; i <
|
|
580
|
+
for (var i = 0; i < size(children); i++) {
|
|
625
581
|
var childrenItem = children[i];
|
|
626
|
-
if (
|
|
582
|
+
if (get(childrenItem, "selected")) {
|
|
627
583
|
break;
|
|
628
584
|
}
|
|
629
|
-
if (!
|
|
585
|
+
if (!get(childrenItem, "selected")) {
|
|
630
586
|
count++;
|
|
631
587
|
}
|
|
632
588
|
}
|
|
633
|
-
if (count ==
|
|
589
|
+
if (count == size(children)) {
|
|
634
590
|
bool = true;
|
|
635
591
|
}
|
|
636
592
|
});
|
|
@@ -638,12 +594,12 @@ function HighRiskWarn(_a) {
|
|
|
638
594
|
return bool;
|
|
639
595
|
}
|
|
640
596
|
function setAllSelectFalse(dataArr) {
|
|
641
|
-
|
|
642
|
-
var highriskTree =
|
|
643
|
-
|
|
644
|
-
var children =
|
|
645
|
-
|
|
646
|
-
|
|
597
|
+
map(dataArr, function (item, index) {
|
|
598
|
+
var highriskTree = get(item, "data.highriskTree");
|
|
599
|
+
map(highriskTree, function (treeItem, ind) {
|
|
600
|
+
var children = get(treeItem, "children");
|
|
601
|
+
map(children, function (childrenItem, i) {
|
|
602
|
+
set(childrenItem, "selected", false);
|
|
647
603
|
});
|
|
648
604
|
});
|
|
649
605
|
});
|
|
@@ -658,9 +614,9 @@ function HighRiskWarn(_a) {
|
|
|
658
614
|
level = '1';
|
|
659
615
|
}
|
|
660
616
|
var postData = insideActive == riskType.DiagnosisRemind ? selectRemind : selectRiskMark;
|
|
661
|
-
var postDataclone =
|
|
662
|
-
|
|
663
|
-
|
|
617
|
+
var postDataclone = cloneDeep(postData);
|
|
618
|
+
map(postDataclone, function (item) {
|
|
619
|
+
set(item, 'level', level);
|
|
664
620
|
});
|
|
665
621
|
console.log({
|
|
666
622
|
postDataclone: postDataclone
|
|
@@ -672,35 +628,35 @@ function HighRiskWarn(_a) {
|
|
|
672
628
|
};
|
|
673
629
|
}
|
|
674
630
|
function handleProcess(diagId) {
|
|
675
|
-
var selectRemindArr =
|
|
631
|
+
var selectRemindArr = filter(selectRemind, function (item) {
|
|
676
632
|
return item.id == diagId;
|
|
677
633
|
});
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
634
|
+
map(selectRemindArr, function (item, index) {
|
|
635
|
+
set(item, "handleType", 'yes');
|
|
636
|
+
set(item, "level", 9);
|
|
681
637
|
});
|
|
682
638
|
makeSure(selectRemindArr);
|
|
683
639
|
setSelectRiskMark([]);
|
|
684
640
|
setSelectRemind([]);
|
|
685
641
|
}
|
|
686
642
|
var handleCheck = function handleCheck(checkedKeys) {
|
|
687
|
-
var newwebsocketData =
|
|
688
|
-
var checkedArr =
|
|
643
|
+
var newwebsocketData = cloneDeep(websocketData);
|
|
644
|
+
var checkedArr = get(checkedKeys, "checked") || [];
|
|
689
645
|
var data = [];
|
|
690
|
-
|
|
691
|
-
var highriskTree =
|
|
692
|
-
if (
|
|
693
|
-
|
|
694
|
-
var children =
|
|
695
|
-
|
|
646
|
+
map(newwebsocketData, function (item, index) {
|
|
647
|
+
var highriskTree = get(item, "data.highriskTree");
|
|
648
|
+
if (get(item, 'level') == tabBtn) {
|
|
649
|
+
map(highriskTree, function (treeItem, ind) {
|
|
650
|
+
var children = get(treeItem, "children");
|
|
651
|
+
map(children, function (childrenItem, i) {
|
|
696
652
|
var keyStr = (childrenItem.key || i.toString()) + '~' + childrenItem.value;
|
|
697
|
-
if (
|
|
653
|
+
if (get(childrenItem, "selected")) {
|
|
698
654
|
if (!checkedArr.includes(keyStr)) {
|
|
699
|
-
|
|
655
|
+
set(childrenItem, "selected", false);
|
|
700
656
|
}
|
|
701
657
|
}
|
|
702
658
|
if (checkedArr.includes(keyStr)) {
|
|
703
|
-
|
|
659
|
+
set(childrenItem, "selected", true);
|
|
704
660
|
data.push(item);
|
|
705
661
|
}
|
|
706
662
|
});
|
|
@@ -720,7 +676,7 @@ function HighRiskWarn(_a) {
|
|
|
720
676
|
switch (_b.label) {
|
|
721
677
|
case 0:
|
|
722
678
|
newSelectRemind = __spreadArray([], selectRemind, true);
|
|
723
|
-
ind =
|
|
679
|
+
ind = findIndex(newSelectRemind, function (value) {
|
|
724
680
|
return value.id == item.id;
|
|
725
681
|
});
|
|
726
682
|
if (e.target.checked) {
|
|
@@ -747,20 +703,20 @@ function HighRiskWarn(_a) {
|
|
|
747
703
|
};
|
|
748
704
|
};
|
|
749
705
|
function renderRiskMark() {
|
|
750
|
-
var newData =
|
|
706
|
+
var newData = filter(websocketData, function (item) {
|
|
751
707
|
return item.type == riskType.RiskMark && (item.level == tabBtn || item.level == "".concat(tabBtn, "read"));
|
|
752
708
|
});
|
|
753
|
-
if (
|
|
754
|
-
return /*#__PURE__*/React$1.createElement(
|
|
709
|
+
if (size(newData) == 0) {
|
|
710
|
+
return /*#__PURE__*/React$1.createElement(Empty, null);
|
|
755
711
|
}
|
|
756
712
|
var treeDataArr = [],
|
|
757
713
|
selectkeyArr = [],
|
|
758
714
|
openKeyArr = [];
|
|
759
|
-
|
|
715
|
+
map(newData, function (item) {
|
|
760
716
|
var _a;
|
|
761
717
|
if (item.type !== 'RiskMark') return;
|
|
762
718
|
var highriskTree = (_a = item.data.highriskTree) !== null && _a !== void 0 ? _a : [];
|
|
763
|
-
var _b = transferData(highriskTree, tabBtn,
|
|
719
|
+
var _b = transferData(highriskTree, tabBtn, get(item, "handleTime"), get(item, 'id'), ignoreRiskMarkInit),
|
|
764
720
|
treeData = _b.treeData,
|
|
765
721
|
selectkey = _b.selectkey,
|
|
766
722
|
openKey = _b.openKey;
|
|
@@ -790,30 +746,30 @@ function HighRiskWarn(_a) {
|
|
|
790
746
|
}
|
|
791
747
|
}
|
|
792
748
|
function titleRender(treeData) {
|
|
793
|
-
return /*#__PURE__*/React$1.createElement("div", null,
|
|
749
|
+
return /*#__PURE__*/React$1.createElement("div", null, get(treeData, "title"), tabBtn == handleType.process && treeData.children && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", {
|
|
794
750
|
className: styles["handle-time"]
|
|
795
|
-
}, formatDate(
|
|
751
|
+
}, formatDate(get(treeData, "handleTime"))), /*#__PURE__*/React$1.createElement(CustomIcon, {
|
|
796
752
|
type: "icon-laber",
|
|
797
753
|
className: styles["icon-laber"]
|
|
798
|
-
})), tabBtn == handleType.ignore && treeData.children && /*#__PURE__*/React$1.createElement("span", {
|
|
754
|
+
}))), tabBtn == handleType.ignore && treeData.children && (/*#__PURE__*/React$1.createElement("span", {
|
|
799
755
|
className: styles["handle-time"]
|
|
800
|
-
}, formatDate(
|
|
756
|
+
}, formatDate(get(treeData, "handleTime")))));
|
|
801
757
|
}
|
|
802
758
|
function renderRemine() {
|
|
803
|
-
var newData =
|
|
759
|
+
var newData = filter(websocketData, function (item) {
|
|
804
760
|
return item.type == riskType.DiagnosisRemind && (item.level == tabBtn || item.level == "".concat(tabBtn, "read"));
|
|
805
761
|
});
|
|
806
|
-
if (
|
|
807
|
-
return /*#__PURE__*/React$1.createElement(
|
|
762
|
+
if (size(newData) == 0) {
|
|
763
|
+
return /*#__PURE__*/React$1.createElement(Empty, null);
|
|
808
764
|
}
|
|
809
765
|
var treeData = transferdataRemind(newData);
|
|
810
|
-
return
|
|
811
|
-
var chenked =
|
|
766
|
+
return map(treeData, function (item, index) {
|
|
767
|
+
var chenked = findIndex(selectRemind, function (value) {
|
|
812
768
|
return value.id == item.id;
|
|
813
769
|
}) == -1 ? false : true;
|
|
814
770
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
815
771
|
className: styles["checkbox-content"]
|
|
816
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
772
|
+
}, /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
817
773
|
checked: tabBtn == handleType.process ? true : chenked,
|
|
818
774
|
disabled: item.disabled,
|
|
819
775
|
onChange: CheckboxOnChange(item),
|
|
@@ -826,14 +782,14 @@ function HighRiskWarn(_a) {
|
|
|
826
782
|
className: styles["item-key"]
|
|
827
783
|
}, item.data.key), /*#__PURE__*/React$1.createElement("span", {
|
|
828
784
|
className: styles["item-content"]
|
|
829
|
-
}, item.data.content)), tabBtn == handleType.process && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", {
|
|
785
|
+
}, item.data.content)), tabBtn == handleType.process && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", {
|
|
830
786
|
className: styles["handle-time"]
|
|
831
|
-
}, formatDate(
|
|
787
|
+
}, formatDate(get(item, "handleTime"))), /*#__PURE__*/React$1.createElement(CustomIcon, {
|
|
832
788
|
type: "icon-laber",
|
|
833
789
|
className: styles["icon-laber"]
|
|
834
|
-
})), tabBtn == handleType.ignore && /*#__PURE__*/React$1.createElement("span", {
|
|
790
|
+
}))), tabBtn == handleType.ignore && (/*#__PURE__*/React$1.createElement("span", {
|
|
835
791
|
className: styles["handle-time"]
|
|
836
|
-
}, formatDate(
|
|
792
|
+
}, formatDate(get(item, "handleTime"))))), chenked && tabBtn == handleType.noprocess && (/*#__PURE__*/React$1.createElement(AddDiagnoses, {
|
|
837
793
|
headerInfo: headerInfo,
|
|
838
794
|
diagnosesTemplate: diagnoses[item.id],
|
|
839
795
|
diagId: item.id,
|
|
@@ -841,56 +797,56 @@ function HighRiskWarn(_a) {
|
|
|
841
797
|
diagnosesList: [],
|
|
842
798
|
page: page,
|
|
843
799
|
setDiagnosesList: setDiagnosesList
|
|
844
|
-
}));
|
|
800
|
+
})));
|
|
845
801
|
});
|
|
846
802
|
}
|
|
847
803
|
function getDataByTab(type) {
|
|
848
|
-
var postData =
|
|
804
|
+
var postData = filter(websocketData, function (item) {
|
|
849
805
|
return item.type == insideActive && item.level == type;
|
|
850
806
|
});
|
|
851
807
|
return postData;
|
|
852
808
|
}
|
|
853
809
|
function isDisabled() {
|
|
854
810
|
var data = insideActive == riskType.RiskMark ? selectRiskMark : selectRemind;
|
|
855
|
-
var bool =
|
|
811
|
+
var bool = size(data) == 0;
|
|
856
812
|
return bool;
|
|
857
813
|
}
|
|
858
814
|
function sizeData(type) {
|
|
859
815
|
if (type == 'parent') {
|
|
860
816
|
if (tabBtn == handleType.process) {
|
|
861
|
-
return
|
|
817
|
+
return size(processData);
|
|
862
818
|
} else if (tabBtn == handleType.noprocess) {
|
|
863
|
-
return
|
|
819
|
+
return size(noProcessData);
|
|
864
820
|
} else {
|
|
865
|
-
return
|
|
821
|
+
return size(ignoreData);
|
|
866
822
|
}
|
|
867
823
|
} else if (type == 'riskMark') {
|
|
868
824
|
if (tabBtn == handleType.process) {
|
|
869
|
-
return
|
|
825
|
+
return size(processRiskMark);
|
|
870
826
|
} else if (tabBtn == handleType.noprocess) {
|
|
871
|
-
return
|
|
827
|
+
return size(noProcessRiskMark);
|
|
872
828
|
} else {
|
|
873
|
-
return
|
|
829
|
+
return size(ignoreRiskMark);
|
|
874
830
|
}
|
|
875
831
|
} else {
|
|
876
832
|
if (tabBtn == handleType.process) {
|
|
877
|
-
return
|
|
833
|
+
return size(processRemind);
|
|
878
834
|
} else if (tabBtn == handleType.noprocess) {
|
|
879
|
-
return
|
|
835
|
+
return size(noProcessRemind);
|
|
880
836
|
} else {
|
|
881
|
-
return
|
|
837
|
+
return size(ignoreRemind);
|
|
882
838
|
}
|
|
883
839
|
}
|
|
884
840
|
}
|
|
885
|
-
return /*#__PURE__*/React$1.createElement(
|
|
841
|
+
return /*#__PURE__*/React$1.createElement(Modal, __assign({}, others, {
|
|
886
842
|
width: 1095,
|
|
887
843
|
visible: true,
|
|
888
844
|
footer: null,
|
|
889
845
|
className: styles["high-risk-warn-container"]
|
|
890
|
-
}), /*#__PURE__*/React$1.createElement(
|
|
846
|
+
}), /*#__PURE__*/React$1.createElement(Tabs, {
|
|
891
847
|
onChange: tabsOnChange,
|
|
892
848
|
activeKey: activeKey
|
|
893
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
849
|
+
}, /*#__PURE__*/React$1.createElement(Tabs.TabPane, {
|
|
894
850
|
tab: "\u9884\u8B66\u63D0\u9192",
|
|
895
851
|
key: "1"
|
|
896
852
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -921,39 +877,38 @@ function HighRiskWarn(_a) {
|
|
|
921
877
|
className: 'icon'
|
|
922
878
|
}), " ", /*#__PURE__*/React$1.createElement("span", {
|
|
923
879
|
className: styles["btn-name"]
|
|
924
|
-
}, " \u5DF2\u5FFD\u7565"))), sizeData('parent') > 0 ? /*#__PURE__*/React$1.createElement(
|
|
880
|
+
}, " \u5DF2\u5FFD\u7565"))), sizeData('parent') > 0 ? (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
925
881
|
type: "card",
|
|
926
882
|
activeKey: insideActive,
|
|
927
883
|
className: styles["inside-content"],
|
|
928
884
|
onChange: function onChange(key) {
|
|
929
885
|
setInsideActive(key);
|
|
930
886
|
}
|
|
931
|
-
}, sizeData('remind') > 0 && /*#__PURE__*/React$1.createElement(
|
|
887
|
+
}, sizeData('remind') > 0 && (/*#__PURE__*/React$1.createElement(Tabs.TabPane, {
|
|
932
888
|
tab: "\u6F0F\u8BCA\u63D0\u9192(".concat(sizeData('remind'), ")"),
|
|
933
889
|
key: riskType.DiagnosisRemind
|
|
934
|
-
}, renderRemine()), sizeData('riskMark') > 0 && /*#__PURE__*/React$1.createElement(
|
|
935
|
-
tab: "\u9AD8\u5371\u56E0\u7D20\u63D0\u9192(".concat(
|
|
890
|
+
}, renderRemine())), sizeData('riskMark') > 0 && (/*#__PURE__*/React$1.createElement(Tabs.TabPane, {
|
|
891
|
+
tab: "\u9AD8\u5371\u56E0\u7D20\u63D0\u9192(".concat(get((_e = {}, _e[handleType.process] = processRiskMarkLength, _e[handleType.noprocess] = noProcessRiskMarklength, _e[handleType.ignore] = ignoreRiskMarkLength, _e), tabBtn), ")"),
|
|
936
892
|
key: riskType.RiskMark
|
|
937
|
-
}, renderRiskMark())) : /*#__PURE__*/React$1.createElement(
|
|
893
|
+
}, renderRiskMark())))) : (/*#__PURE__*/React$1.createElement(Empty, null)), size(getDataByTab(handleType.noprocess)) > 0 && tabBtn == handleType.noprocess && (/*#__PURE__*/React$1.createElement("div", {
|
|
938
894
|
className: styles["foot"]
|
|
939
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
895
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
940
896
|
className: styles["button-noremind"],
|
|
941
897
|
onClick: handleIgnore('yes'),
|
|
942
898
|
disabled: isDisabled()
|
|
943
|
-
}, "\u5FFD\u7565"), /*#__PURE__*/React$1.createElement(
|
|
899
|
+
}, "\u5FFD\u7565"), /*#__PURE__*/React$1.createElement(Button, {
|
|
944
900
|
className: styles["button-noremind"],
|
|
945
901
|
onClick: handleSure('no')
|
|
946
|
-
}, "\u5FFD\u7565\u5168\u90E8,\u4E0D\u518D\u63D0\u9192"), insideActive == riskType.RiskMark && /*#__PURE__*/React$1.createElement(
|
|
902
|
+
}, "\u5FFD\u7565\u5168\u90E8,\u4E0D\u518D\u63D0\u9192"), insideActive == riskType.RiskMark && (/*#__PURE__*/React$1.createElement(Button, {
|
|
947
903
|
type: "primary",
|
|
948
904
|
onClick: handleSure('yes'),
|
|
949
905
|
disabled: isDisabled()
|
|
950
|
-
}, "\u786E\u5B9A")), tabBtn == handleType.ignore && /*#__PURE__*/React$1.createElement("div", {
|
|
906
|
+
}, "\u786E\u5B9A")))), tabBtn == handleType.ignore && (/*#__PURE__*/React$1.createElement("div", {
|
|
951
907
|
className: styles["foot"]
|
|
952
|
-
}, /*#__PURE__*/React$1.createElement("div", null, "\u53D6\u6D88\u5FFD\u7565\u540E\uFF0C\u5C06\u6062\u590D\u5BF9\u5E94\u9009\u9879\u7684\u63D0\u9192\u529F\u80FD\uFF01"), /*#__PURE__*/React$1.createElement(
|
|
908
|
+
}, /*#__PURE__*/React$1.createElement("div", null, "\u53D6\u6D88\u5FFD\u7565\u540E\uFF0C\u5C06\u6062\u590D\u5BF9\u5E94\u9009\u9879\u7684\u63D0\u9192\u529F\u80FD\uFF01"), /*#__PURE__*/React$1.createElement(Button, {
|
|
953
909
|
type: "primary",
|
|
954
910
|
onClick: handleIgnore('no'),
|
|
955
911
|
disabled: isDisabled()
|
|
956
|
-
}, "\u53D6\u6D88\u5FFD\u7565"))))));
|
|
912
|
+
}, "\u53D6\u6D88\u5FFD\u7565")))))));
|
|
957
913
|
}
|
|
958
914
|
export { HighRiskWarn as default };
|
|
959
|
-
//# sourceMappingURL=.root23.js.map
|