@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/.root10.js
CHANGED
|
@@ -1,474 +1,506 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
6
|
-
import
|
|
7
|
-
import 'antd
|
|
8
|
-
import
|
|
9
|
-
import { _ as _extends } from './extends.js';
|
|
10
|
-
import 'antd/es/space/style';
|
|
11
|
-
import _Space from 'antd/es/space';
|
|
12
|
-
import 'antd/es/radio/style';
|
|
13
|
-
import _Radio from 'antd/es/radio';
|
|
14
|
-
import 'antd/es/button/style';
|
|
15
|
-
import _Button from 'antd/es/button';
|
|
16
|
-
import 'antd/es/form/style';
|
|
17
|
-
import _Form from 'antd/es/form';
|
|
18
|
-
import 'antd/es/popconfirm/style';
|
|
19
|
-
import _Popconfirm from 'antd/es/popconfirm';
|
|
20
|
-
import 'antd/es/message/style';
|
|
21
|
-
import _message from 'antd/es/message';
|
|
22
|
-
import _map from 'lodash/map';
|
|
23
|
-
import _keys from 'lodash/keys';
|
|
24
|
-
import _keyBy from 'lodash/keyBy';
|
|
25
|
-
import _isNil from 'lodash/isNil';
|
|
26
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
27
|
-
import _indexOf from 'lodash/indexOf';
|
|
28
|
-
import _get from 'lodash/get';
|
|
29
|
-
import _compact from 'lodash/compact';
|
|
30
|
-
import { b as __assign, s as styleInject, d as __rest, _ as __awaiter, a as __generator, c as __spreadArray } from './index.js';
|
|
31
|
-
import { EditOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
32
|
-
import { LazyAntd, SimpleForm } from '@lm_fe/components';
|
|
33
|
-
import { SLocal_State, SMchc_TemplateTrees } from '@lm_fe/service';
|
|
34
|
-
import React, { useState, useEffect } from 'react';
|
|
35
|
-
import { getResourcesByID, createResources, updateResources } from '@lm_fe/components_m';
|
|
36
|
-
import { mchcEnv } from '@lm_fe/env';
|
|
1
|
+
import { mchcEnv, mchcEvent } from '@lm_fe/env';
|
|
2
|
+
import { defineFormConfig, SMchc_Doctor } from '@lm_fe/service';
|
|
3
|
+
import React, { useEffect } from 'react';
|
|
4
|
+
import { B as BF_Form } from './index.js';
|
|
5
|
+
import '@lm_fe/components';
|
|
6
|
+
import '@lm_fe/provoke';
|
|
7
|
+
import 'antd';
|
|
8
|
+
import '@lm_fe/components_m';
|
|
37
9
|
import '@lm_fe/utils';
|
|
38
|
-
import '
|
|
39
|
-
import 'antd/es/list';
|
|
40
|
-
import 'antd/es/tooltip/style';
|
|
41
|
-
import 'antd/es/tooltip';
|
|
10
|
+
import 'lodash';
|
|
42
11
|
import 'classnames';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
key:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
t.value = item.id;
|
|
70
|
-
t.title = item.val;
|
|
71
|
-
t.children = _transferTemplates(templates, item.id);
|
|
72
|
-
if (_isEmpty(t.children)) {
|
|
73
|
-
t.isLeaf = true;
|
|
74
|
-
} else {
|
|
75
|
-
t.isLeaf = false;
|
|
76
|
-
}
|
|
77
|
-
temp.push(t);
|
|
12
|
+
var form_confg = defineFormConfig([{
|
|
13
|
+
"key": "syncDate",
|
|
14
|
+
"label": "上次同步时间",
|
|
15
|
+
"inputType": 'DatePicker',
|
|
16
|
+
"inputProps": {
|
|
17
|
+
'disabled': true,
|
|
18
|
+
showTime: true
|
|
19
|
+
},
|
|
20
|
+
layout: '1/3'
|
|
21
|
+
}, {
|
|
22
|
+
"key": "syncBtn",
|
|
23
|
+
"label": "同步数据",
|
|
24
|
+
"inputType": "MyButton",
|
|
25
|
+
"inputProps": {},
|
|
26
|
+
layout: '1/3'
|
|
27
|
+
}, {
|
|
28
|
+
"key": "partnerBg",
|
|
29
|
+
"label": "男方血型",
|
|
30
|
+
"inputType": "select",
|
|
31
|
+
"inputProps": {
|
|
32
|
+
'options': mchcEnv.get_other_options('aboOptions'),
|
|
33
|
+
marshal: 0,
|
|
34
|
+
'placeholder': 'ABO血型',
|
|
35
|
+
'labelSign': {
|
|
36
|
+
'type': 'iconfont',
|
|
37
|
+
'value': 'icon-number_light'
|
|
78
38
|
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
39
|
+
},
|
|
40
|
+
layout: '1/3',
|
|
41
|
+
isNewRow: 1
|
|
42
|
+
}, {
|
|
43
|
+
"key": "partnerRh",
|
|
44
|
+
"label": "男方RH血型",
|
|
45
|
+
"inputType": "select",
|
|
46
|
+
"inputProps": {
|
|
47
|
+
'warningOption': 1,
|
|
48
|
+
marshal: 0,
|
|
49
|
+
'options': mchcEnv.get_other_options('rhOptions'),
|
|
50
|
+
'style': {
|
|
51
|
+
'marginLeft': '-1px'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
layout: '1/3'
|
|
55
|
+
}, {
|
|
56
|
+
key: "partnerThalassemia__",
|
|
57
|
+
"label": "男方地贫",
|
|
58
|
+
"inputType": "checkbox",
|
|
59
|
+
"inputProps": {
|
|
60
|
+
options: '正常,异常i,未查,其他i',
|
|
61
|
+
'labelSign': {
|
|
62
|
+
'type': 'iconfont',
|
|
63
|
+
'value': 'icon-number_light'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
layout: '1/3'
|
|
67
|
+
}, {
|
|
68
|
+
"key": "personalBg",
|
|
69
|
+
"label": "女方血型",
|
|
70
|
+
"inputType": "select",
|
|
71
|
+
"inputProps": {
|
|
72
|
+
'options': mchcEnv.get_other_options('aboOptions'),
|
|
73
|
+
marshal: 0,
|
|
74
|
+
'disabled': true,
|
|
75
|
+
'labelSign': {
|
|
76
|
+
'type': 'iconfont',
|
|
77
|
+
'value': 'icon-number_light'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
layout: '1/3',
|
|
81
|
+
"isNewRow": 1
|
|
82
|
+
}, {
|
|
83
|
+
"key": "personalRh",
|
|
84
|
+
"label": "女方RH血型",
|
|
85
|
+
"inputType": "select",
|
|
86
|
+
"inputProps": {
|
|
87
|
+
'options': mchcEnv.get_other_options('rhOptions'),
|
|
88
|
+
marshal: 0,
|
|
89
|
+
'warningOption': 1,
|
|
90
|
+
'style': {
|
|
91
|
+
'marginLeft': '-1px'
|
|
92
|
+
},
|
|
93
|
+
'disabled': true
|
|
94
|
+
},
|
|
95
|
+
layout: '1/3'
|
|
96
|
+
}, {
|
|
97
|
+
key: "personalThalassemia__",
|
|
98
|
+
"label": "女方地贫",
|
|
99
|
+
"inputType": "checkbox",
|
|
100
|
+
"inputProps": {
|
|
101
|
+
options: '正常,异常i,未查,其他i'
|
|
102
|
+
},
|
|
103
|
+
layout: '1/3'
|
|
104
|
+
}, {
|
|
105
|
+
"key": "tsh",
|
|
106
|
+
"label": "TSH",
|
|
107
|
+
"inputType": "InputNumber",
|
|
108
|
+
"inputProps": {
|
|
109
|
+
'unit': 'uIU/ml',
|
|
110
|
+
'labelSign': {
|
|
111
|
+
'type': 'iconfont',
|
|
112
|
+
'value': 'icon-number_light'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
layout: '1/3',
|
|
116
|
+
"isNewRow": 1
|
|
117
|
+
}, {
|
|
118
|
+
"key": "t3",
|
|
119
|
+
"label": "游离T3",
|
|
120
|
+
"inputType": "InputNumber",
|
|
121
|
+
"inputProps": {
|
|
122
|
+
'unit': 'pmol/L'
|
|
123
|
+
},
|
|
124
|
+
layout: '1/3'
|
|
125
|
+
}, {
|
|
126
|
+
"key": "t4",
|
|
127
|
+
"label": "游离T4",
|
|
128
|
+
"inputType": "InputNumber",
|
|
129
|
+
"inputProps": {
|
|
130
|
+
'unit': 'pmol/L'
|
|
131
|
+
},
|
|
132
|
+
layout: '1/3'
|
|
133
|
+
}, {
|
|
134
|
+
"key": "hb",
|
|
135
|
+
"label": "HB",
|
|
136
|
+
"inputType": "InputNumber",
|
|
137
|
+
"inputProps": {
|
|
138
|
+
'unit': 'g/L',
|
|
139
|
+
'labelSign': {
|
|
140
|
+
'type': 'iconfont',
|
|
141
|
+
'value': 'icon-number_light'
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
layout: '1/3',
|
|
145
|
+
"isNewRow": 1
|
|
146
|
+
}, {
|
|
147
|
+
"key": "mcv",
|
|
148
|
+
"label": "MCV",
|
|
149
|
+
"inputType": "InputNumber",
|
|
150
|
+
"inputProps": {
|
|
151
|
+
'unit': 'fL'
|
|
152
|
+
},
|
|
153
|
+
layout: '1/3'
|
|
154
|
+
}, {
|
|
155
|
+
"key": "plt",
|
|
156
|
+
"label": "PLT",
|
|
157
|
+
"inputType": "InputNumber",
|
|
158
|
+
"inputProps": {
|
|
159
|
+
'unit': 'x10^9/L'
|
|
160
|
+
},
|
|
161
|
+
layout: '1/3'
|
|
162
|
+
}, {
|
|
163
|
+
key: "urokinase__",
|
|
164
|
+
"label": "尿蛋白",
|
|
165
|
+
"inputType": "checkbox",
|
|
166
|
+
"inputProps": {
|
|
167
|
+
options: '阴性,弱阳性,阳性i,未查,其他i',
|
|
168
|
+
'labelSign': {
|
|
169
|
+
'type': 'iconfont',
|
|
170
|
+
'value': 'icon-number_light'
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
layout: '1/3'
|
|
174
|
+
}, {
|
|
175
|
+
"key": "hbsag",
|
|
176
|
+
"label": "HBsAg",
|
|
177
|
+
"inputType": "autoComplete",
|
|
178
|
+
"inputProps": {
|
|
179
|
+
'labelSign': {
|
|
180
|
+
'type': 'iconfont',
|
|
181
|
+
'value': 'icon-number_light'
|
|
182
|
+
},
|
|
183
|
+
options: mchcEnv.get_other_options('hbOptions'),
|
|
184
|
+
'positiveWarning': true
|
|
185
|
+
},
|
|
186
|
+
layout: '1/3'
|
|
187
|
+
}, {
|
|
188
|
+
"key": "hbsab",
|
|
189
|
+
"label": "HBsAb",
|
|
190
|
+
"inputType": "autoComplete",
|
|
191
|
+
"inputProps": {
|
|
192
|
+
'options': mchcEnv.get_other_options('hbOptions'),
|
|
193
|
+
'positiveWarning': true
|
|
194
|
+
},
|
|
195
|
+
layout: '1/3'
|
|
196
|
+
}, {
|
|
197
|
+
"key": "hbeag",
|
|
198
|
+
"label": "HBeAg",
|
|
199
|
+
"inputType": "autoComplete",
|
|
200
|
+
"inputProps": {
|
|
201
|
+
'options': mchcEnv.get_other_options('hbOptions'),
|
|
202
|
+
'positiveWarning': true
|
|
203
|
+
},
|
|
204
|
+
layout: '1/3'
|
|
205
|
+
}, {
|
|
206
|
+
"key": "hbeab",
|
|
207
|
+
"label": "HBeAb",
|
|
208
|
+
"inputType": "autoComplete",
|
|
209
|
+
"inputProps": {
|
|
210
|
+
'options': mchcEnv.get_other_options('hbOptions'),
|
|
211
|
+
'positiveWarning': true
|
|
212
|
+
},
|
|
213
|
+
layout: '1/3',
|
|
214
|
+
"isNewRow": 1
|
|
215
|
+
}, {
|
|
216
|
+
"key": "hbcab",
|
|
217
|
+
"label": "HBcAb",
|
|
218
|
+
"inputType": "autoComplete",
|
|
219
|
+
"inputProps": {
|
|
220
|
+
'options': mchcEnv.get_other_options('hbOptions'),
|
|
221
|
+
'positiveWarning': true
|
|
222
|
+
},
|
|
223
|
+
layout: '1/3'
|
|
224
|
+
}, {
|
|
225
|
+
"key": "hbvdna",
|
|
226
|
+
"label": "HBV DNA",
|
|
227
|
+
"inputType": "InputNumber",
|
|
228
|
+
"inputProps": {
|
|
229
|
+
'labelSign': {
|
|
230
|
+
'type': 'iconfont',
|
|
231
|
+
'value': 'icon-number_light'
|
|
232
|
+
},
|
|
233
|
+
'unit': 'IU/ml'
|
|
234
|
+
},
|
|
235
|
+
layout: '1/3'
|
|
236
|
+
}, {
|
|
237
|
+
"key": "alt",
|
|
238
|
+
"label": "ALT",
|
|
239
|
+
"inputType": "InputNumber",
|
|
240
|
+
"inputProps": {
|
|
241
|
+
'labelSign': {
|
|
242
|
+
'type': 'iconfont',
|
|
243
|
+
'value': 'icon-number_light'
|
|
244
|
+
},
|
|
245
|
+
'unit': 'U/L'
|
|
246
|
+
},
|
|
247
|
+
layout: '1/3',
|
|
248
|
+
"isNewRow": 1
|
|
249
|
+
}, {
|
|
250
|
+
"key": "ast",
|
|
251
|
+
"label": "AST",
|
|
252
|
+
"inputType": "InputNumber",
|
|
253
|
+
"inputProps": {
|
|
254
|
+
'unit': 'U/L'
|
|
255
|
+
},
|
|
256
|
+
layout: '1/3'
|
|
257
|
+
}, {
|
|
258
|
+
"key": "pt",
|
|
259
|
+
"label": "PT",
|
|
260
|
+
"inputType": "InputNumber",
|
|
261
|
+
"inputProps": {
|
|
262
|
+
'labelSign': {
|
|
263
|
+
'type': 'iconfont',
|
|
264
|
+
'value': 'icon-number_light'
|
|
265
|
+
},
|
|
266
|
+
'unit': 'sec',
|
|
267
|
+
'min': 0,
|
|
268
|
+
'max': 20,
|
|
269
|
+
'disabled': true
|
|
270
|
+
},
|
|
271
|
+
layout: '1/3',
|
|
272
|
+
"isNewRow": 1
|
|
273
|
+
}, {
|
|
274
|
+
"key": "inr",
|
|
275
|
+
"label": "INR",
|
|
276
|
+
"inputType": "InputNumber",
|
|
277
|
+
"inputProps": {
|
|
278
|
+
'min': 0,
|
|
279
|
+
'max': 2,
|
|
280
|
+
'step': 0.1,
|
|
281
|
+
'disabled': true
|
|
282
|
+
},
|
|
283
|
+
layout: '1/3'
|
|
284
|
+
}, {
|
|
285
|
+
"key": "aptt",
|
|
286
|
+
"label": "APTT",
|
|
287
|
+
"inputType": "InputNumber",
|
|
288
|
+
"inputProps": {
|
|
289
|
+
'unit': 'sec',
|
|
290
|
+
'min': 0,
|
|
291
|
+
'max': 50,
|
|
292
|
+
'disabled': true
|
|
293
|
+
},
|
|
294
|
+
layout: '1/3'
|
|
295
|
+
}, {
|
|
296
|
+
"key": "tt",
|
|
297
|
+
"label": "TT",
|
|
298
|
+
"inputType": "InputNumber",
|
|
299
|
+
"inputProps": {
|
|
300
|
+
'unit': 'sec',
|
|
301
|
+
'min': 0,
|
|
302
|
+
'max': 20,
|
|
303
|
+
'disabled': true
|
|
304
|
+
},
|
|
305
|
+
layout: '1/3',
|
|
306
|
+
"isNewRow": 1
|
|
307
|
+
}, {
|
|
308
|
+
"key": "fib",
|
|
309
|
+
"label": "FIB",
|
|
310
|
+
"inputType": "InputNumber",
|
|
311
|
+
"inputProps": {
|
|
312
|
+
'unit': 'g/L',
|
|
313
|
+
'min': 0,
|
|
314
|
+
'max': 5,
|
|
315
|
+
'step': 0.1,
|
|
316
|
+
'disabled': true
|
|
317
|
+
},
|
|
318
|
+
layout: '1/3'
|
|
319
|
+
}, {
|
|
320
|
+
"key": "sf",
|
|
321
|
+
"label": "SF",
|
|
322
|
+
"inputType": "InputNumber",
|
|
323
|
+
"inputProps": {
|
|
324
|
+
'unit': 'ng/ml'
|
|
325
|
+
},
|
|
326
|
+
layout: '1/3'
|
|
327
|
+
}, {
|
|
328
|
+
key: "hcvResult__",
|
|
329
|
+
"label": "丙肝抗体",
|
|
330
|
+
"inputType": "checkbox",
|
|
331
|
+
"inputProps": {
|
|
332
|
+
options: '阴性,阳性i,未查',
|
|
333
|
+
'labelSign': {
|
|
334
|
+
'type': 'iconfont',
|
|
335
|
+
'value': 'icon-number_light'
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
layout: '1/3'
|
|
339
|
+
}, {
|
|
340
|
+
key: "hcvrnaResult__",
|
|
341
|
+
"label": "丙肝RNA",
|
|
342
|
+
"inputType": "checkbox",
|
|
343
|
+
"inputProps": {
|
|
344
|
+
options: '阴性,阳性i,未查',
|
|
345
|
+
'labelSign': {
|
|
346
|
+
'type': 'iconfont',
|
|
347
|
+
'value': 'icon-number_light'
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
layout: '1/3'
|
|
351
|
+
}, {
|
|
352
|
+
key: "syphilisResult__",
|
|
353
|
+
"label": "梅毒",
|
|
354
|
+
"inputType": "checkbox",
|
|
355
|
+
"inputProps": {
|
|
356
|
+
options: '阴性,阳性i,未查',
|
|
357
|
+
'labelSign': {
|
|
358
|
+
'type': 'iconfont',
|
|
359
|
+
'value': 'icon-number_light'
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
layout: '1/3'
|
|
363
|
+
}, {
|
|
364
|
+
key: "hivResult__",
|
|
365
|
+
"label": "HIV",
|
|
366
|
+
"inputType": "checkbox",
|
|
367
|
+
"inputProps": {
|
|
368
|
+
options: '阴性,阳性i,未查',
|
|
369
|
+
'labelSign': {
|
|
370
|
+
'type': 'iconfont',
|
|
371
|
+
'value': 'icon-number_light'
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
layout: '1/3'
|
|
375
|
+
}, {
|
|
376
|
+
key: "gbsResult__",
|
|
377
|
+
"label": "GBS",
|
|
378
|
+
"inputType": "checkbox",
|
|
379
|
+
"inputProps": {
|
|
380
|
+
options: '阴性,阳性i,未查',
|
|
381
|
+
'labelSign': {
|
|
382
|
+
'type': 'iconfont',
|
|
383
|
+
'value': 'icon-number_light'
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
layout: '1/3'
|
|
387
|
+
}, {
|
|
388
|
+
key: "g6pdResult__",
|
|
389
|
+
"label": "G6PD",
|
|
390
|
+
"inputType": "checkbox",
|
|
391
|
+
"inputProps": {
|
|
392
|
+
options: '阴性,阳性i,未查'
|
|
393
|
+
},
|
|
394
|
+
layout: '1/3'
|
|
395
|
+
}, {
|
|
396
|
+
key: "downsScreenEarly",
|
|
397
|
+
"label": "早唐",
|
|
398
|
+
"inputType": "checkbox",
|
|
399
|
+
"inputProps": {
|
|
400
|
+
options: mchcEnv.get_other_options('downsScreenOptions'),
|
|
401
|
+
marshal: 0,
|
|
402
|
+
'labelSign': {
|
|
403
|
+
'type': 'iconfont',
|
|
404
|
+
'value': 'icon-number_light'
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
layout: '1/3'
|
|
408
|
+
}, {
|
|
409
|
+
key: "downsScreenMiddle",
|
|
410
|
+
"label": "中唐",
|
|
411
|
+
"inputType": "checkbox",
|
|
412
|
+
"inputProps": {
|
|
413
|
+
options: mchcEnv.get_other_options('downsScreenOptions'),
|
|
414
|
+
marshal: 0,
|
|
415
|
+
'labelSign': {
|
|
416
|
+
'type': 'iconfont',
|
|
417
|
+
'value': 'icon-number_light'
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
layout: '1/3'
|
|
421
|
+
}, {
|
|
422
|
+
key: "nipt",
|
|
423
|
+
"label": "NIPT",
|
|
424
|
+
"inputType": "checkbox",
|
|
425
|
+
"inputProps": {
|
|
426
|
+
options: mchcEnv.get_other_options('downsScreenOptions'),
|
|
427
|
+
marshal: 0,
|
|
428
|
+
'labelSign': {
|
|
429
|
+
'type': 'iconfont',
|
|
430
|
+
'value': 'icon-number_light'
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
layout: '1/3'
|
|
434
|
+
}, {
|
|
435
|
+
key: "prenatalDiagnosisResult",
|
|
436
|
+
"label": "产前诊断",
|
|
437
|
+
"inputType": "checkbox",
|
|
438
|
+
"inputProps": {
|
|
439
|
+
options: mchcEnv.get_other_options('prenatalDiagnosisOptions'),
|
|
440
|
+
marshal: 0,
|
|
441
|
+
'labelSign': {
|
|
442
|
+
'type': 'iconfont',
|
|
443
|
+
'value': 'icon-number_light'
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
layout: '1/3'
|
|
447
|
+
}, {
|
|
448
|
+
key: "ogttResult__",
|
|
449
|
+
"label": "OGTT",
|
|
450
|
+
"inputType": "checkbox",
|
|
451
|
+
"inputProps": {
|
|
452
|
+
options: mchcEnv.get_other_options('ogttOptions'),
|
|
453
|
+
'labelSign': {
|
|
454
|
+
'type': 'iconfont',
|
|
455
|
+
'value': 'icon-number_light'
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
layout: '1/3'
|
|
459
|
+
}, {
|
|
460
|
+
"key": "other",
|
|
461
|
+
"label": "其他",
|
|
462
|
+
"inputType": "input",
|
|
463
|
+
layout: '1/3'
|
|
464
|
+
}, {
|
|
465
|
+
"key": "id",
|
|
466
|
+
"inputType": "input",
|
|
467
|
+
form_hidden: true
|
|
468
|
+
}]);
|
|
469
|
+
function DoctorEnd_检验检查_History(props) {
|
|
470
|
+
var pregnancyId = props.pregnancyId,
|
|
471
|
+
form = props.form,
|
|
472
|
+
disabled = props.disabled;
|
|
207
473
|
useEffect(function () {
|
|
208
|
-
var t = Array.isArray(type) ? type[0].value : type;
|
|
209
|
-
setCurType(t);
|
|
210
474
|
return function () {};
|
|
211
|
-
}, [
|
|
475
|
+
}, []);
|
|
212
476
|
useEffect(function () {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
if (t === void 0) {
|
|
220
|
-
t = curType;
|
|
221
|
-
}
|
|
222
|
-
return __generator(this, function (_a) {
|
|
223
|
-
switch (_a.label) {
|
|
224
|
-
case 0:
|
|
225
|
-
if (t < 0) return [2];
|
|
226
|
-
return [4, SMchc_TemplateTrees.getList({
|
|
227
|
-
params: {
|
|
228
|
-
depid: depid,
|
|
229
|
-
type: t,
|
|
230
|
-
userid: userid,
|
|
231
|
-
size: 99999,
|
|
232
|
-
page: 0
|
|
233
|
-
}
|
|
234
|
-
})];
|
|
235
|
-
case 1:
|
|
236
|
-
result = _a.sent();
|
|
237
|
-
templates = _transferTemplates(result);
|
|
238
|
-
splitTemplates = _compact(_map(templates, function (template) {
|
|
239
|
-
if (_get(template, 'pid') === 0) {
|
|
240
|
-
return __assign(__assign({}, template), {
|
|
241
|
-
children: []
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
}));
|
|
245
|
-
splitTemplatesMapping = _keyBy(splitTemplates, 'id');
|
|
246
|
-
_map(result, function (template) {
|
|
247
|
-
var templatePid = _get(template, 'pid');
|
|
248
|
-
if (_indexOf(_keys(splitTemplatesMapping), String(templatePid)) > -1) {
|
|
249
|
-
splitTemplatesMapping[templatePid]['children'].push(template);
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
setSplitTemplatesMapping(splitTemplatesMapping);
|
|
253
|
-
setResult(result);
|
|
254
|
-
return [2];
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
function handleAddTemplate(e) {
|
|
260
|
-
e.stopPropagation();
|
|
261
|
-
setEditModalVisible(true);
|
|
262
|
-
setActiveTemplate({});
|
|
263
|
-
}
|
|
264
|
-
function handleHideEditModal() {
|
|
265
|
-
setEditModalVisible(false);
|
|
266
|
-
setActiveTemplate({});
|
|
267
|
-
}
|
|
268
|
-
function closeModal() {
|
|
269
|
-
onCancel === null || onCancel === void 0 ? void 0 : onCancel(null);
|
|
270
|
-
setSplitTemplatesMapping({});
|
|
271
|
-
}
|
|
272
|
-
function handleSubmitEditModal(data) {
|
|
273
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
274
|
-
return __generator(this, function (_a) {
|
|
275
|
-
switch (_a.label) {
|
|
276
|
-
case 0:
|
|
277
|
-
data.type = curType;
|
|
278
|
-
data.userid = userid;
|
|
279
|
-
if (!(activeTemplate === null || activeTemplate === void 0 ? void 0 : activeTemplate.id)) return [3, 2];
|
|
280
|
-
return [4, updateResources(DEFAULT_URL, __assign(__assign(__assign({}, activeTemplate), data), {
|
|
281
|
-
depid: depid
|
|
282
|
-
}))];
|
|
283
|
-
case 1:
|
|
284
|
-
_a.sent();
|
|
285
|
-
return [3, 4];
|
|
286
|
-
case 2:
|
|
287
|
-
return [4, createResources(DEFAULT_URL, __assign(__assign({}, data), {
|
|
288
|
-
depid: depid
|
|
289
|
-
}))];
|
|
290
|
-
case 3:
|
|
291
|
-
_a.sent();
|
|
292
|
-
_a.label = 4;
|
|
293
|
-
case 4:
|
|
294
|
-
setEditModalVisible(false);
|
|
295
|
-
setActiveTemplate(undefined);
|
|
296
|
-
_message.success('提交模板成功');
|
|
297
|
-
getTemplateList();
|
|
298
|
-
return [2];
|
|
477
|
+
return mchcEvent.on_rm('my_form', function (e) {
|
|
478
|
+
if (e.type === 'onClick') {
|
|
479
|
+
if (e.btnName === 'syncBtn') {
|
|
480
|
+
SMchc_Doctor.syncPatientReport(pregnancyId).then(function (r) {
|
|
481
|
+
form.setFieldsValue(r);
|
|
482
|
+
});
|
|
299
483
|
}
|
|
300
|
-
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
function handleEditTemplate(template) {
|
|
304
|
-
var _this = this;
|
|
305
|
-
return function (e) {
|
|
306
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
307
|
-
var activeTemplate;
|
|
308
|
-
return __generator(this, function (_a) {
|
|
309
|
-
switch (_a.label) {
|
|
310
|
-
case 0:
|
|
311
|
-
e.stopPropagation();
|
|
312
|
-
return [4, getResourcesByID(DEFAULT_URL, _get(template, 'id'))];
|
|
313
|
-
case 1:
|
|
314
|
-
activeTemplate = _a.sent();
|
|
315
|
-
setEditModalVisible(true);
|
|
316
|
-
setActiveTemplate(activeTemplate);
|
|
317
|
-
return [2];
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
function handleConfirmDelete(template) {
|
|
324
|
-
return function (e) {
|
|
325
|
-
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
326
|
-
deleteResourcesByID(DEFAULT_URL, _get(template, 'id')).then(function () {
|
|
327
|
-
_message.success('删除模板成功');
|
|
328
|
-
getTemplateList();
|
|
329
|
-
});
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
function handleSelectTemplates(checked, e) {
|
|
333
|
-
console.log('check', checked, e);
|
|
334
|
-
var arr = multiple ? checked : checked;
|
|
335
|
-
setSelectedRowKeys(arr);
|
|
336
|
-
setSelectedRows(e.checkedNodes);
|
|
337
|
-
}
|
|
338
|
-
function handleOk() {
|
|
339
|
-
var content = [];
|
|
340
|
-
var treeDataMapping = _keyBy(result, 'id');
|
|
341
|
-
_map(selectedRowKeys, function (selectedKey) {
|
|
342
|
-
var item = _get(treeDataMapping, selectedKey);
|
|
343
|
-
if (!_isEmpty(item) && (_get(item, 'isLeaf') || !hierarchical)) {
|
|
344
|
-
content.push(item);
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
onValueCheck === null || onValueCheck === void 0 ? void 0 : onValueCheck(content);
|
|
348
|
-
onOk === null || onOk === void 0 ? void 0 : onOk(null);
|
|
349
|
-
}
|
|
350
|
-
function renderTreeNode(templatesTree) {
|
|
351
|
-
return _map(templatesTree, function (template) {
|
|
352
|
-
var titleWithOperation = /*#__PURE__*/React.createElement("div", {
|
|
353
|
-
className: styles["template-list-item"]
|
|
354
|
-
}, renderTitle(template), canOperate && /*#__PURE__*/React.createElement("div", {
|
|
355
|
-
className: styles["template-list-item__actions"]
|
|
356
|
-
}, /*#__PURE__*/React.createElement(EditOutlined, {
|
|
357
|
-
className: styles["template-list-item__actions-icon"],
|
|
358
|
-
onClick: handleEditTemplate(template)
|
|
359
|
-
}), /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
360
|
-
title: "\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",
|
|
361
|
-
onConfirm: handleConfirmDelete(template)
|
|
362
|
-
}, /*#__PURE__*/React.createElement(DeleteOutlined, {
|
|
363
|
-
className: styles["template-list-item__actions-icon"]
|
|
364
|
-
}))));
|
|
365
|
-
if (!_isEmpty(_get(template, 'children')) && !_isNil(_get(template, 'children'))) {
|
|
366
|
-
return /*#__PURE__*/React.createElement(Tree.TreeNode, {
|
|
367
|
-
title: titleWithOperation,
|
|
368
|
-
key: _get(template, 'id')
|
|
369
|
-
}, renderTreeNode(_get(template, 'children')));
|
|
484
|
+
return;
|
|
370
485
|
}
|
|
371
|
-
return /*#__PURE__*/React.createElement(Tree.TreeNode, {
|
|
372
|
-
title: titleWithOperation,
|
|
373
|
-
key: _get(template, 'id')
|
|
374
|
-
});
|
|
375
486
|
});
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
386
|
-
var formData;
|
|
387
|
-
return __generator(this, function (_a) {
|
|
388
|
-
switch (_a.label) {
|
|
389
|
-
case 0:
|
|
390
|
-
return [4, modalForm.validateFields()];
|
|
391
|
-
case 1:
|
|
392
|
-
_a.sent();
|
|
393
|
-
formData = modalForm.getFieldsValue();
|
|
394
|
-
handleSubmitEditModal(formData);
|
|
395
|
-
return [2];
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
return /*#__PURE__*/React.createElement(_Modal, _extends({
|
|
401
|
-
className: styles["textarea-with-template__modal"],
|
|
402
|
-
width: 1100,
|
|
403
|
-
onCancel: closeModal,
|
|
404
|
-
onOk: handleOk,
|
|
405
|
-
getContainer: getContainer
|
|
406
|
-
}, others), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
|
|
407
|
-
disabled: !canOperate,
|
|
408
|
-
onClick: handleAddTemplate
|
|
409
|
-
}, "\u6DFB\u52A0"), Array.isArray(type) ? /*#__PURE__*/React.createElement(_Radio.Group, {
|
|
410
|
-
options: type,
|
|
411
|
-
onChange: function onChange(e) {
|
|
412
|
-
return setCurType(e.target.value);
|
|
487
|
+
}, []);
|
|
488
|
+
return /*#__PURE__*/React.createElement(BF_Form, {
|
|
489
|
+
disabled: disabled,
|
|
490
|
+
form: form,
|
|
491
|
+
fallback_init: function fallback_init() {
|
|
492
|
+
return SMchc_Doctor.getLabExamOfOutpatient(pregnancyId);
|
|
493
|
+
},
|
|
494
|
+
fallback_finish: function fallback_finish(v) {
|
|
495
|
+
return SMchc_Doctor.updateLabExamOfOutpatient(v);
|
|
413
496
|
},
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}) : null), /*#__PURE__*/React.createElement(_Row, {
|
|
418
|
-
className: styles["textarea-with-template__modal-body"]
|
|
419
|
-
}, hierarchical ? _map(splitTemplatesMapping, function (templateTree) {
|
|
420
|
-
return /*#__PURE__*/React.createElement(_Col, {
|
|
421
|
-
span: 12
|
|
422
|
-
}, /*#__PURE__*/React.createElement(Tree, _extends({
|
|
423
|
-
checkable: true,
|
|
424
|
-
defaultExpandAll: true,
|
|
425
|
-
selectable: false,
|
|
426
|
-
checkedKeys: selectedRowKeys,
|
|
427
|
-
onCheck: handleSelectTemplates
|
|
428
|
-
}, treeProps, {
|
|
429
|
-
multiple: false
|
|
430
|
-
}), renderTreeNode([templateTree])));
|
|
431
|
-
}) : /*#__PURE__*/React.createElement(_Col, {
|
|
432
|
-
span: 12
|
|
433
|
-
}, result.length ? /*#__PURE__*/React.createElement(Tree, _extends({
|
|
434
|
-
checkable: true,
|
|
435
|
-
defaultExpandAll: true,
|
|
436
|
-
selectable: false,
|
|
437
|
-
checkedKeys: selectedRowKeys,
|
|
438
|
-
onCheck: handleSelectTemplates
|
|
439
|
-
}, treeProps, {
|
|
440
|
-
multiple: false
|
|
441
|
-
}), renderTreeNode(result)) : /*#__PURE__*/React.createElement(_Empty, null))), /*#__PURE__*/React.createElement(_Modal, {
|
|
442
|
-
getContainer: getContainer,
|
|
443
|
-
visible: editModalVisible,
|
|
444
|
-
className: styles["textarea-with-template__modal-edit"],
|
|
445
|
-
onCancel: handleHideEditModal,
|
|
446
|
-
onOk: handleSubmit,
|
|
447
|
-
closable: false,
|
|
448
|
-
width: 680
|
|
449
|
-
}, editModalVisible && /*#__PURE__*/React.createElement(SimpleForm, {
|
|
450
|
-
formProps: {
|
|
451
|
-
labelCol: {
|
|
452
|
-
span: 4
|
|
453
|
-
},
|
|
454
|
-
wrapperCol: {
|
|
455
|
-
span: 14
|
|
456
|
-
},
|
|
457
|
-
layout: 'vertical'
|
|
497
|
+
default_conf: {
|
|
498
|
+
tableColumns: form_confg,
|
|
499
|
+
title: "门诊-检验检查"
|
|
458
500
|
},
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
label: '上级'
|
|
464
|
-
},
|
|
465
|
-
customNode: /*#__PURE__*/React.createElement(TemplateSelect, {
|
|
466
|
-
templateType: curType,
|
|
467
|
-
depid: depid
|
|
468
|
-
}),
|
|
469
|
-
id: ''
|
|
470
|
-
} : null], editFormItems, true)
|
|
471
|
-
}))));
|
|
501
|
+
history_args: {
|
|
502
|
+
relationId: pregnancyId
|
|
503
|
+
}
|
|
504
|
+
});
|
|
472
505
|
}
|
|
473
|
-
export {
|
|
474
|
-
//# sourceMappingURL=.root10.js.map
|
|
506
|
+
export { DoctorEnd_检验检查_History as default };
|