@lm_fe/pages-fubao 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 +4 -2
- package/dist/a_chunks/.root.js +240 -280
- package/dist/a_chunks/.root10.js +9 -15
- package/dist/a_chunks/.root11.js +210 -244
- package/dist/a_chunks/.root12.js +2 -33
- package/dist/a_chunks/.root13.js +300 -331
- package/dist/a_chunks/.root14.js +2 -16
- package/dist/a_chunks/.root15.js +2 -16
- package/dist/a_chunks/.root16.js +4 -6
- package/dist/a_chunks/.root17.js +11 -2
- package/dist/a_chunks/.root18.js +10 -1
- package/dist/a_chunks/.root19.js +16 -27
- package/dist/a_chunks/.root2.js +22 -30
- package/dist/a_chunks/.root20.js +34 -38
- package/dist/a_chunks/.root21.js +16 -18
- package/dist/a_chunks/.root22.js +34 -38
- package/dist/a_chunks/.root23.js +16 -18
- package/dist/a_chunks/.root24.js +10 -14
- package/dist/a_chunks/.root25.js +10 -14
- package/dist/a_chunks/.root26.js +10 -14
- package/dist/a_chunks/.root27.js +16 -27
- package/dist/a_chunks/.root28.js +15 -19
- package/dist/a_chunks/.root29.js +15 -19
- package/dist/a_chunks/.root3.js +4 -6
- package/dist/a_chunks/.root30.js +9 -14
- package/dist/a_chunks/.root31.js +2 -10
- package/dist/a_chunks/.root32.js +11 -19
- package/dist/a_chunks/.root33.js +308 -335
- package/dist/a_chunks/.root34.js +1 -2
- package/dist/a_chunks/.root35.js +14 -154
- package/dist/a_chunks/.root36.js +7 -21
- package/dist/a_chunks/.root37.js +183 -1481
- package/dist/a_chunks/.root38.js +32 -2496
- package/dist/a_chunks/.root39.js +56 -83
- package/dist/a_chunks/.root4.js +4 -6
- package/dist/a_chunks/.root40.js +3 -3
- package/dist/a_chunks/.root41.js +56 -83
- package/dist/a_chunks/.root42.js +6 -20
- package/dist/a_chunks/.root43.js +183 -1526
- package/dist/a_chunks/.root44.js +13 -19
- package/dist/a_chunks/.root45.js +55 -82
- package/dist/a_chunks/.root46.js +55 -82
- package/dist/a_chunks/.root47.js +5 -8
- package/dist/a_chunks/.root48.js +30 -22
- package/dist/a_chunks/.root49.js +30 -43
- package/dist/a_chunks/.root5.js +3 -3
- package/dist/a_chunks/.root50.js +53 -226
- package/dist/a_chunks/.root51.js +64 -188
- package/dist/a_chunks/.root52.js +113 -3122
- package/dist/a_chunks/.root53.js +85 -134
- package/dist/a_chunks/.root54.js +3071 -175
- package/dist/a_chunks/.root55.js +127 -478
- package/dist/a_chunks/.root56.js +170 -910
- package/dist/a_chunks/.root57.js +376 -399
- package/dist/a_chunks/.root58.js +808 -687
- package/dist/a_chunks/.root59.js +495 -118
- package/dist/a_chunks/.root6.js +6 -9
- package/dist/a_chunks/.root60.js +773 -45
- package/dist/a_chunks/.root61.js +738 -97
- package/dist/a_chunks/.root62.js +105 -273
- package/dist/a_chunks/.root63.js +38 -22
- package/dist/a_chunks/.root64.js +184 -16
- package/dist/a_chunks/.root65.js +107 -241
- package/dist/a_chunks/.root66.js +132 -0
- package/dist/a_chunks/.root67.js +286 -0
- package/dist/a_chunks/.root68.js +817 -0
- package/dist/a_chunks/.root69.js +28 -0
- package/dist/a_chunks/.root7.js +2 -42
- package/dist/a_chunks/.root70.js +19 -0
- package/dist/a_chunks/.root71.js +247 -0
- package/dist/a_chunks/.root8.js +2 -12
- package/dist/a_chunks/.root9.js +16 -26
- package/dist/a_chunks/Form.js +3 -5
- package/dist/a_chunks/ModalForm.js +254 -280
- package/dist/a_chunks/api.js +311 -325
- package/dist/a_chunks/common.js +0 -1
- package/dist/a_chunks/config.js +135 -164
- package/dist/a_chunks/form_config.js +11 -130
- package/dist/a_chunks/index.js +43 -57
- package/dist/a_chunks/index2.js +148 -64
- package/dist/a_chunks/index3.js +131 -1151
- package/dist/a_chunks/index4.js +57 -1040
- package/dist/a_chunks/index5.js +142 -0
- package/dist/a_chunks/index6.js +1169 -0
- package/dist/a_chunks/index7.js +1006 -0
- package/dist/a_chunks/style-inject.es.js +0 -1
- package/dist/a_chunks/tslib.es6.js +1 -2
- package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js +0 -1
- package/dist/index.js +10 -5
- package/dist/pages/fubao/family-planning/file-management/doctor-desk/components/SurgicalRecordv2/Curettage/index.d.ts +1 -1
- package/dist/pages/fubao/family-planning/file-management/doctor-desk/components/VideoReport/method.d.ts +1 -1
- package/dist/pages/fubao/folic-acid/file-management/list/index copy.d.ts +1 -1
- package/dist/pages/fubao/gynecological-diseases/two-cancers/./344/270/244/347/231/214/351/232/217/350/256/277/index.d.ts +1 -1
- package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/form_config.d.ts +2 -1
- package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index copy.d.ts +18 -0
- package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index.d.ts +3 -18
- package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/form_config_nv.d.ts +4 -0
- package/dist/pages/fubao/premarital-care/file-management/config/table.d.ts +1 -1
- package/dist/pages/fubao/premarital-care/file-management/edit/form_config.d.ts +2 -1
- package/dist/pages/fubao/premarital-care/file-management/edit/index copy 2.d.ts +17 -0
- package/dist/pages/fubao/premarital-care/file-management/edit/index.d.ts +3 -17
- package/dist/pages/fubao/statistic/abnormal-breast-cancer/index.d.ts +2 -0
- package/dist/pages/fubao/statistic/abnormal-cervical-cancer/index.d.ts +2 -0
- package/dist/pages/fubao/statistic/premarital-checkup/./345/251/232/346/243/200/351/232/217/350/256/277/index.d.ts +1 -1
- package/dist/pages/fubao/statistic/progestation-checkup/./345/255/225/346/243/200/351/232/217/350/256/277/index.d.ts +1 -1
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/meta.d.ts +2 -0
- package/package.json +19 -14
- 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/.root26.js.map +0 -1
- package/dist/a_chunks/.root27.js.map +0 -1
- package/dist/a_chunks/.root28.js.map +0 -1
- package/dist/a_chunks/.root29.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root30.js.map +0 -1
- package/dist/a_chunks/.root31.js.map +0 -1
- package/dist/a_chunks/.root32.js.map +0 -1
- package/dist/a_chunks/.root33.js.map +0 -1
- package/dist/a_chunks/.root34.js.map +0 -1
- package/dist/a_chunks/.root35.js.map +0 -1
- package/dist/a_chunks/.root36.js.map +0 -1
- package/dist/a_chunks/.root37.js.map +0 -1
- package/dist/a_chunks/.root38.js.map +0 -1
- package/dist/a_chunks/.root39.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root40.js.map +0 -1
- package/dist/a_chunks/.root41.js.map +0 -1
- package/dist/a_chunks/.root42.js.map +0 -1
- package/dist/a_chunks/.root43.js.map +0 -1
- package/dist/a_chunks/.root44.js.map +0 -1
- package/dist/a_chunks/.root45.js.map +0 -1
- package/dist/a_chunks/.root46.js.map +0 -1
- package/dist/a_chunks/.root47.js.map +0 -1
- package/dist/a_chunks/.root48.js.map +0 -1
- package/dist/a_chunks/.root49.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root50.js.map +0 -1
- package/dist/a_chunks/.root51.js.map +0 -1
- package/dist/a_chunks/.root52.js.map +0 -1
- package/dist/a_chunks/.root53.js.map +0 -1
- package/dist/a_chunks/.root54.js.map +0 -1
- package/dist/a_chunks/.root55.js.map +0 -1
- package/dist/a_chunks/.root56.js.map +0 -1
- package/dist/a_chunks/.root57.js.map +0 -1
- package/dist/a_chunks/.root58.js.map +0 -1
- package/dist/a_chunks/.root59.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root60.js.map +0 -1
- package/dist/a_chunks/.root61.js.map +0 -1
- package/dist/a_chunks/.root62.js.map +0 -1
- package/dist/a_chunks/.root63.js.map +0 -1
- package/dist/a_chunks/.root64.js.map +0 -1
- package/dist/a_chunks/.root65.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/Form.js.map +0 -1
- package/dist/a_chunks/ModalForm.js.map +0 -1
- package/dist/a_chunks/api.js.map +0 -1
- package/dist/a_chunks/common.js.map +0 -1
- package/dist/a_chunks/config.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/form_config.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/a_chunks/index2.js.map +0 -1
- package/dist/a_chunks/index3.js.map +0 -1
- package/dist/a_chunks/index4.js.map +0 -1
- package/dist/a_chunks/style-inject.es.js.map +0 -1
- package/dist/a_chunks/tslib.es6.js.map +0 -1
- package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/pages/fubao/pre-pregnancy-care/.public-exam/config/adapter.d.ts +0 -2
- package/dist/pages/fubao/premarital-care/.public-exam/config/adapter.d.ts +0 -2
- /package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/{form_config.d.ts → form_config_nan.d.ts} +0 -0
package/dist/a_chunks/.root33.js
CHANGED
|
@@ -1,52 +1,22 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import _Result from 'antd/es/result';
|
|
3
|
-
import _get from 'lodash/get';
|
|
4
|
-
import { _ as __awaiter, a as __generator, c as __assign, b as __extends } from './tslib.es6.js';
|
|
1
|
+
import { _ as __awaiter, a as __generator, b as __assign, c as __extends } from './tslib.es6.js';
|
|
5
2
|
import { BaseEditPanelFormFC, BaseEditPanelForm, formDescriptionsWithoutSectionApi, BaseEditPanel, PanelWithChildFC, PanelWithChild, LoadingPlaceholder } from '@lm_fe/components_m';
|
|
6
3
|
import React$1, { useState, useEffect } from 'react';
|
|
7
4
|
import Pregnancies from './.root32.js';
|
|
8
|
-
import 'antd/es/row/style';
|
|
9
|
-
import _Row from 'antd/es/row';
|
|
10
|
-
import 'antd/es/modal/style';
|
|
11
|
-
import _Modal from 'antd/es/modal';
|
|
12
|
-
import 'antd/es/button/style';
|
|
13
|
-
import _Button from 'antd/es/button';
|
|
14
|
-
import 'antd/es/col/style';
|
|
15
|
-
import _Col from 'antd/es/col';
|
|
16
|
-
import { _ as _extends } from './extends.js';
|
|
17
|
-
import 'antd/es/card/style';
|
|
18
|
-
import _Card from 'antd/es/card';
|
|
19
|
-
import 'antd/es/popconfirm/style';
|
|
20
|
-
import _Popconfirm from 'antd/es/popconfirm';
|
|
21
|
-
import 'antd/es/message/style';
|
|
22
|
-
import _message from 'antd/es/message';
|
|
23
|
-
import _set from 'lodash/set';
|
|
24
|
-
import _map from 'lodash/map';
|
|
25
|
-
import _cloneDeep from 'lodash/cloneDeep';
|
|
26
5
|
import { PlusCircleOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons';
|
|
27
6
|
import { SFubao_CervicalCancerScreening, SFubao_CervicalCancerRecord, SFubao_BreastCancerScreening, SMchc_FormDescriptions } from '@lm_fe/service';
|
|
28
7
|
import { request, safe_json_parse, formatDateTime, safe_json_stringify, formatDate, fubaoRequest, getSearchParamsValue, getSearchParamsAll, sleep } from '@lm_fe/utils';
|
|
29
|
-
import {
|
|
30
|
-
import '
|
|
31
|
-
import
|
|
8
|
+
import { Form, Button, Space, Row, Col, Modal, message, Card, Popconfirm, Result } from 'antd';
|
|
9
|
+
import { c as classnames } from './index4.js';
|
|
10
|
+
import { get, set, map, dropRight, join, isNil, isEqual, isEmpty, cloneDeep } from 'lodash';
|
|
32
11
|
import { BF_Wrap2, mchcModal__ } from '@lm_fe/pages';
|
|
33
12
|
import dayjs from 'dayjs';
|
|
34
13
|
import { mchcEnv, mchcLogger } from '@lm_fe/env';
|
|
35
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
36
|
-
import _isEqual from 'lodash/isEqual';
|
|
37
|
-
import 'antd/es/space/style';
|
|
38
|
-
import _Space from 'antd/es/space';
|
|
39
|
-
import _join from 'lodash/join';
|
|
40
|
-
import _dropRight from 'lodash/dropRight';
|
|
41
|
-
import _isNil from 'lodash/isNil';
|
|
42
14
|
import { s as styleInject } from './style-inject.es.js';
|
|
43
15
|
import { DoctorEnd_SurveyReport, DoctorEnd_ImageReport } from '@lm_fe/pages-mchc';
|
|
44
|
-
import 'lodash/values';
|
|
45
|
-
import 'lodash/keys';
|
|
46
16
|
import './Form.js';
|
|
47
17
|
function form_config$2() {
|
|
48
|
-
if (mchcEnv.is('建瓯')) return import('./.
|
|
49
|
-
return import('./.
|
|
18
|
+
if (mchcEnv.is('建瓯')) return import('./.root57.js');
|
|
19
|
+
return import('./.root59.js');
|
|
50
20
|
}
|
|
51
21
|
function Form_宫颈癌筛查(props) {
|
|
52
22
|
var _this = this;
|
|
@@ -64,9 +34,9 @@ function Form_宫颈癌筛查(props) {
|
|
|
64
34
|
}),
|
|
65
35
|
config = _b.config,
|
|
66
36
|
Wrap = _b.Wrap;
|
|
67
|
-
var form =
|
|
68
|
-
var active_id =
|
|
69
|
-
var active_screen_id =
|
|
37
|
+
var form = Form.useForm()[0];
|
|
38
|
+
var active_id = get(activeItem, 'id');
|
|
39
|
+
var active_screen_id = get(activeItem, 'cervicalCancerScreeningId');
|
|
70
40
|
useEffect(function () {
|
|
71
41
|
handleInit();
|
|
72
42
|
return function () {};
|
|
@@ -86,12 +56,12 @@ function Form_宫颈癌筛查(props) {
|
|
|
86
56
|
values = _b.sent();
|
|
87
57
|
return [3, 3];
|
|
88
58
|
case 2:
|
|
89
|
-
|
|
59
|
+
set(values, 'womenHealthcareMenstrualHistory', __assign({}, get(basicData, 'womenHealthcareMenstrualHistory')));
|
|
90
60
|
_b.label = 3;
|
|
91
61
|
case 3:
|
|
92
|
-
if (!
|
|
93
|
-
if (!
|
|
94
|
-
if (!
|
|
62
|
+
if (!get(values, 'cervicalCancerDiagnosisAndGuidance.checkUnit')) set(values, 'cervicalCancerDiagnosisAndGuidance.checkUnit', get(system, 'config.hospitalName'));
|
|
63
|
+
if (!get(values, 'cervicalCancerDiagnosisAndGuidance.checkDate')) set(values, 'cervicalCancerDiagnosisAndGuidance.checkDate', dayjs(new Date()));
|
|
64
|
+
if (!get(values, 'cervicalCancerDiagnosisAndGuidance.checkDoctorName')) set(values, 'cervicalCancerDiagnosisAndGuidance.checkDoctorName', get(basicInfo, 'firstName'));
|
|
95
65
|
setdata(values);
|
|
96
66
|
form.setFieldsValue(values);
|
|
97
67
|
return [2];
|
|
@@ -105,7 +75,11 @@ function Form_宫颈癌筛查(props) {
|
|
|
105
75
|
return __generator(this, function (_a) {
|
|
106
76
|
switch (_a.label) {
|
|
107
77
|
case 0:
|
|
108
|
-
|
|
78
|
+
mchcLogger.log('handleSubmit', {
|
|
79
|
+
values: values,
|
|
80
|
+
data: data
|
|
81
|
+
});
|
|
82
|
+
if (!get(data, 'id')) return [3, 2];
|
|
109
83
|
params = __assign(__assign(__assign({}, data), values), {
|
|
110
84
|
screeningType: '宫颈癌筛查'
|
|
111
85
|
});
|
|
@@ -129,14 +103,10 @@ function Form_宫颈癌筛查(props) {
|
|
|
129
103
|
return [4, SFubao_CervicalCancerScreening.postOrPut(params)];
|
|
130
104
|
case 3:
|
|
131
105
|
_a.sent();
|
|
132
|
-
console.log('values', {
|
|
133
|
-
values: values,
|
|
134
|
-
data: data,
|
|
135
|
-
params: params
|
|
136
|
-
});
|
|
137
106
|
onRefresh && onRefresh('Screening', activeItem, true);
|
|
138
107
|
_a.label = 4;
|
|
139
108
|
case 4:
|
|
109
|
+
mchcEnv.success('操作成功');
|
|
140
110
|
return [2];
|
|
141
111
|
}
|
|
142
112
|
});
|
|
@@ -144,8 +114,8 @@ function Form_宫颈癌筛查(props) {
|
|
|
144
114
|
}
|
|
145
115
|
return /*#__PURE__*/React$1.createElement(Wrap, null, /*#__PURE__*/React$1.createElement(BaseEditPanelFormFC, {
|
|
146
116
|
renderExtraBtns: function renderExtraBtns(form) {
|
|
147
|
-
return /*#__PURE__*/React$1.createElement(
|
|
148
|
-
size:
|
|
117
|
+
return /*#__PURE__*/React$1.createElement(Button, {
|
|
118
|
+
size: 'large',
|
|
149
119
|
onClick: function onClick() {
|
|
150
120
|
request.post('/api/dataReport/reportCervicalCancerRecord', {
|
|
151
121
|
ids: [active_id]
|
|
@@ -179,7 +149,7 @@ var AdmissionForm$2 = function (_super) {
|
|
|
179
149
|
function AdmissionForm() {
|
|
180
150
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
181
151
|
_this.renderBtns = function () {
|
|
182
|
-
return
|
|
152
|
+
return React.createElement(Space, {
|
|
183
153
|
size: "middle"
|
|
184
154
|
}, _this.renderSubmitBtn(), _this.renderPrintBtn());
|
|
185
155
|
};
|
|
@@ -189,91 +159,91 @@ var AdmissionForm$2 = function (_super) {
|
|
|
189
159
|
}(BaseEditPanelForm);
|
|
190
160
|
var valueToApi$2 = function valueToApi$2(values, nativeFormDescriptions) {
|
|
191
161
|
var result = {};
|
|
192
|
-
|
|
162
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
193
163
|
var inputType = item.inputType;
|
|
194
|
-
var itemVaule =
|
|
164
|
+
var itemVaule = get(values, key);
|
|
195
165
|
switch (inputType) {
|
|
196
166
|
case 'radio_input':
|
|
197
167
|
var k = key.split('.').pop();
|
|
198
|
-
|
|
199
|
-
|
|
168
|
+
set(result, key, get(itemVaule, "".concat(k)));
|
|
169
|
+
set(result, "".concat(key, "Note"), get(itemVaule, "".concat(k, "Note")));
|
|
200
170
|
break;
|
|
201
171
|
case 'checkbox_with_single_input':
|
|
202
|
-
|
|
203
|
-
|
|
172
|
+
set(result, key, get(itemVaule, 'key'));
|
|
173
|
+
set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
|
|
204
174
|
break;
|
|
205
175
|
case 'single_date_picker':
|
|
206
|
-
|
|
176
|
+
set(result, key, formatDateTime(itemVaule));
|
|
207
177
|
break;
|
|
208
178
|
case 'checkbox_with_input':
|
|
209
179
|
var valueJson = safe_json_parse(itemVaule);
|
|
210
|
-
|
|
211
|
-
|
|
180
|
+
set(result, key, get(valueJson, 'checkedValues.0'));
|
|
181
|
+
set(result, "".concat(key, "Note"), get(valueJson, ['withInputValues', "".concat(get(valueJson, 'checkedValues.0')), 'value', '0']));
|
|
212
182
|
break;
|
|
213
183
|
case 'pressure':
|
|
214
184
|
var pressure_arr = key.split('.');
|
|
215
185
|
var pressure_key = void 0;
|
|
216
186
|
if (pressure_arr.length > 1) {
|
|
217
|
-
pressure_arr =
|
|
218
|
-
pressure_key =
|
|
219
|
-
|
|
220
|
-
|
|
187
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
188
|
+
pressure_key = join(pressure_arr, '.');
|
|
189
|
+
set(result, "".concat(pressure_key, ".systolic"), get(itemVaule, 'systolic'));
|
|
190
|
+
set(result, "".concat(pressure_key, ".diastolic"), get(itemVaule, 'diastolic'));
|
|
221
191
|
} else {
|
|
222
|
-
|
|
223
|
-
|
|
192
|
+
set(result, 'systolic', get(itemVaule, 'systolic'));
|
|
193
|
+
set(result, 'diastolic', get(itemVaule, 'diastolic'));
|
|
224
194
|
}
|
|
225
195
|
break;
|
|
226
196
|
default:
|
|
227
|
-
|
|
197
|
+
set(result, key, itemVaule);
|
|
228
198
|
break;
|
|
229
199
|
}
|
|
230
200
|
});
|
|
231
201
|
return result;
|
|
232
202
|
};
|
|
233
203
|
var valueToForm$2 = function valueToForm$2(values, nativeFormDescriptions) {
|
|
234
|
-
|
|
204
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
235
205
|
var _a;
|
|
236
206
|
var inputType = item.inputType;
|
|
237
|
-
var itemVaule =
|
|
207
|
+
var itemVaule = get(values, key);
|
|
238
208
|
switch (inputType) {
|
|
239
209
|
case 'checkbox_with_single_input':
|
|
240
|
-
if (!
|
|
241
|
-
|
|
242
|
-
|
|
210
|
+
if (!isNil(itemVaule)) {
|
|
211
|
+
set(values, "".concat(key, ".key"), itemVaule);
|
|
212
|
+
set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
|
|
243
213
|
}
|
|
244
214
|
break;
|
|
245
215
|
case 'checkbox_with_input':
|
|
246
|
-
if (!
|
|
216
|
+
if (!isNil(itemVaule)) {
|
|
247
217
|
var checkBoxValue = {
|
|
248
218
|
checkedValues: [itemVaule],
|
|
249
219
|
withInputValues: (_a = {}, _a[itemVaule] = {
|
|
250
220
|
key: itemVaule,
|
|
251
221
|
value: {
|
|
252
|
-
'0':
|
|
222
|
+
'0': get(values, "".concat(key, "Note"))
|
|
253
223
|
}
|
|
254
224
|
}, _a)
|
|
255
225
|
};
|
|
256
|
-
|
|
226
|
+
set(values, key, safe_json_stringify(checkBoxValue));
|
|
257
227
|
}
|
|
258
228
|
break;
|
|
259
229
|
case 'pressure':
|
|
260
|
-
if (!
|
|
230
|
+
if (!isNil(itemVaule)) {
|
|
261
231
|
var pressure_arr = key.split('.');
|
|
262
232
|
var pressure_key = void 0;
|
|
263
233
|
if (pressure_arr.length > 1) {
|
|
264
|
-
pressure_arr =
|
|
265
|
-
pressure_key =
|
|
266
|
-
|
|
267
|
-
|
|
234
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
235
|
+
pressure_key = join(pressure_arr, '.');
|
|
236
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
237
|
+
set(values, "".concat(key, ".diastolic"), get(values, "".concat(pressure_key, ".diastolic")));
|
|
268
238
|
} else {
|
|
269
|
-
|
|
270
|
-
|
|
239
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
240
|
+
set(values, "".concat(key, ".diastolic"), get(values, "diastolic"));
|
|
271
241
|
}
|
|
272
242
|
}
|
|
273
243
|
break;
|
|
274
244
|
default:
|
|
275
|
-
if (!
|
|
276
|
-
|
|
245
|
+
if (!isNil(itemVaule)) {
|
|
246
|
+
set(values, key, itemVaule);
|
|
277
247
|
}
|
|
278
248
|
break;
|
|
279
249
|
}
|
|
@@ -702,22 +672,22 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
702
672
|
_a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
703
673
|
_b = this.props, basicInfo = _b.basicInfo, system = _b.system;
|
|
704
674
|
values = {};
|
|
705
|
-
if (!
|
|
706
|
-
if (!(
|
|
707
|
-
return [4, fubaoRequest.get("/api/two/cancer/screening/getCervicalCancerBiopsy?id.equals=".concat(
|
|
675
|
+
if (!get(activeItem, 'cervicalCancerBiopsyId')) return [3, 3];
|
|
676
|
+
if (!(get(activeItem, 'cervicalCancerBiopsyId') != -1)) return [3, 2];
|
|
677
|
+
return [4, fubaoRequest.get("/api/two/cancer/screening/getCervicalCancerBiopsy?id.equals=".concat(get(activeItem, 'cervicalCancerBiopsyId'), "&deleteFlag.equals=0"))];
|
|
708
678
|
case 1:
|
|
709
679
|
values = _c.sent();
|
|
710
680
|
_c.label = 2;
|
|
711
681
|
case 2:
|
|
712
|
-
cervicalCancerRecordId =
|
|
682
|
+
cervicalCancerRecordId = get(activeItem, 'id');
|
|
713
683
|
_c.label = 3;
|
|
714
684
|
case 3:
|
|
715
|
-
values =
|
|
685
|
+
values = get(values, 'data.0');
|
|
716
686
|
data = values ? valueToForm$2(values, formDescriptionsWithoutSection) : {};
|
|
717
|
-
formKey =
|
|
718
|
-
if (!
|
|
719
|
-
if (!
|
|
720
|
-
if (!
|
|
687
|
+
formKey = get(data, 'id') || Math.random();
|
|
688
|
+
if (!get(data, 'cervicalCancerDiagnosisAndGuidance.checkUnit')) set(data, 'cervicalCancerDiagnosisAndGuidance.checkUnit', get(system, 'config.hospitalName'));
|
|
689
|
+
if (!get(data, 'cervicalCancerDiagnosisAndGuidance.checkDate')) set(data, 'cervicalCancerDiagnosisAndGuidance.checkDate', dayjs(new Date()));
|
|
690
|
+
if (!get(data, 'cervicalCancerDiagnosisAndGuidance.checkDoctorName')) set(data, 'cervicalCancerDiagnosisAndGuidance.checkDoctorName', get(basicInfo, 'firstName'));
|
|
721
691
|
this.setState({
|
|
722
692
|
data: data,
|
|
723
693
|
formKey: formKey,
|
|
@@ -741,7 +711,7 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
741
711
|
cervicalCancerRecordId: Number(cervicalCancerRecordId),
|
|
742
712
|
screeningType: '宫颈癌筛查'
|
|
743
713
|
});
|
|
744
|
-
if (!
|
|
714
|
+
if (!get(values, 'id')) return [3, 2];
|
|
745
715
|
return [4, fubaoRequest.put('/api/two/cancer/screening/updateCervicalCancerBiopsy', params)];
|
|
746
716
|
case 1:
|
|
747
717
|
_c.sent();
|
|
@@ -762,7 +732,7 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
762
732
|
}
|
|
763
733
|
AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
764
734
|
var activeItem = nextProps.activeItem;
|
|
765
|
-
if (!
|
|
735
|
+
if (!isEqual(activeItem, prevState.activeItem)) {
|
|
766
736
|
return {
|
|
767
737
|
activeItem: activeItem
|
|
768
738
|
};
|
|
@@ -770,7 +740,7 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
770
740
|
return null;
|
|
771
741
|
};
|
|
772
742
|
AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
773
|
-
if (!
|
|
743
|
+
if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
|
|
774
744
|
this.handleInit();
|
|
775
745
|
}
|
|
776
746
|
};
|
|
@@ -845,7 +815,7 @@ function Nursing(props) {
|
|
|
845
815
|
}
|
|
846
816
|
function handleClickListItem(item, code) {
|
|
847
817
|
return function () {
|
|
848
|
-
var temp =
|
|
818
|
+
var temp = get(NurseTypesMapping$1, "".concat(code, ".key"));
|
|
849
819
|
set_activeItem(item);
|
|
850
820
|
set_activeTemplate(temp);
|
|
851
821
|
};
|
|
@@ -859,8 +829,8 @@ function Nursing(props) {
|
|
|
859
829
|
return __generator(this, function (_a) {
|
|
860
830
|
switch (_a.label) {
|
|
861
831
|
case 0:
|
|
862
|
-
id =
|
|
863
|
-
cervicalCancerScreeningId =
|
|
832
|
+
id = get(props, 'id');
|
|
833
|
+
cervicalCancerScreeningId = get(props, 'cervicalCancerScreeningId');
|
|
864
834
|
return [4, SFubao_CervicalCancerRecord.getList({
|
|
865
835
|
params: {
|
|
866
836
|
'fileId.equals': id
|
|
@@ -901,21 +871,21 @@ function Nursing(props) {
|
|
|
901
871
|
switch (_a.label) {
|
|
902
872
|
case 0:
|
|
903
873
|
if (!(code === 'Screening')) return [3, 3];
|
|
904
|
-
id =
|
|
874
|
+
id = get(item, 'cervicalCancerScreeningId');
|
|
905
875
|
return [4, fubaoRequest["delete"]("/api/two/cancer/screening/deleteCervicalCancerScreening/".concat(id))];
|
|
906
876
|
case 1:
|
|
907
877
|
res = _a.sent().data;
|
|
908
|
-
if (
|
|
878
|
+
if (get(res, 'code') === 1) ;
|
|
909
879
|
return [4, handleInit()];
|
|
910
880
|
case 2:
|
|
911
881
|
_a.sent();
|
|
912
882
|
return [3, 6];
|
|
913
883
|
case 3:
|
|
914
|
-
id =
|
|
884
|
+
id = get(item, 'cervicalCancerBiopsyId');
|
|
915
885
|
return [4, fubaoRequest["delete"]("/api/two/cancer/screening/deleteCervicalCancerBiopsy/".concat(id))];
|
|
916
886
|
case 4:
|
|
917
887
|
res = _a.sent().data;
|
|
918
|
-
if (
|
|
888
|
+
if (get(res, 'code') === 1) ;
|
|
919
889
|
return [4, handleInit()];
|
|
920
890
|
case 5:
|
|
921
891
|
_a.sent();
|
|
@@ -929,18 +899,18 @@ function Nursing(props) {
|
|
|
929
899
|
}
|
|
930
900
|
function handleChooseTemplate(xxType) {
|
|
931
901
|
return function () {
|
|
932
|
-
var newSiderPanels =
|
|
902
|
+
var newSiderPanels = cloneDeep(siderPanels);
|
|
933
903
|
var listData = newSiderPanels[newSiderPanels.length - 1];
|
|
934
904
|
if (xxType !== 'Screening') {
|
|
935
|
-
if (
|
|
936
|
-
|
|
905
|
+
if (get(listData, 'cervicalCancerBiopsyId')) ;else {
|
|
906
|
+
set(listData, 'cervicalCancerBiopsyId', -1);
|
|
937
907
|
set_siderPanels(newSiderPanels);
|
|
938
908
|
}
|
|
939
909
|
set_activeTemplate(xxType);
|
|
940
910
|
set_activeItem(listData);
|
|
941
911
|
} else {
|
|
942
|
-
if (
|
|
943
|
-
|
|
912
|
+
if (get(listData, 'cervicalCancerScreeningId') === -1) {
|
|
913
|
+
message.warning('请先保存上一次筛查!');
|
|
944
914
|
return;
|
|
945
915
|
}
|
|
946
916
|
var newImte = {
|
|
@@ -955,7 +925,7 @@ function Nursing(props) {
|
|
|
955
925
|
};
|
|
956
926
|
}
|
|
957
927
|
function renderSider() {
|
|
958
|
-
return /*#__PURE__*/React$1.createElement(
|
|
928
|
+
return /*#__PURE__*/React$1.createElement(Card, {
|
|
959
929
|
size: "small",
|
|
960
930
|
bordered: false,
|
|
961
931
|
style: {
|
|
@@ -965,15 +935,15 @@ function Nursing(props) {
|
|
|
965
935
|
extra: /*#__PURE__*/React$1.createElement(PlusCircleOutlined, {
|
|
966
936
|
onClick: handleAdd
|
|
967
937
|
})
|
|
968
|
-
},
|
|
938
|
+
}, map(siderPanels, function (item, index) {
|
|
969
939
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
970
940
|
key: item.id,
|
|
971
941
|
className: "two-cancers-list"
|
|
972
942
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
973
943
|
className: "two-cancers-doctor-desk-first-visit-sider-list_title"
|
|
974
|
-
}, "\u7B2C".concat(index + 1, "\u6B21\u7B5B\u67E5")),
|
|
944
|
+
}, "\u7B2C".concat(index + 1, "\u6B21\u7B5B\u67E5")), get(item, 'cervicalCancerScreeningId') && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
975
945
|
className: "doctor-desk-first-visit-sider-list__item",
|
|
976
|
-
style:
|
|
946
|
+
style: get(activeItem, 'id') === get(item, 'id') && activeTemplate === 'Screening' ? {
|
|
977
947
|
background: '#eaf4fd'
|
|
978
948
|
} : {
|
|
979
949
|
background: 'none'
|
|
@@ -981,11 +951,11 @@ function Nursing(props) {
|
|
|
981
951
|
onClick: handleClickListItem(item, 'Screening')
|
|
982
952
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
983
953
|
className: "doctor-desk-first-visit-sider-list__item-title"
|
|
984
|
-
}, "\u7B5B\u67E5", ' ',
|
|
954
|
+
}, "\u7B5B\u67E5", ' ', get(item, 'cervicalCancerScreeningCheckDate') && '(' + get(item, 'cervicalCancerScreeningCheckDate') + ')'), get(item, 'cervicalCancerScreeningScreeningSuggest') && (/*#__PURE__*/React$1.createElement("span", {
|
|
985
955
|
className: classnames('label-result', {
|
|
986
|
-
red:
|
|
956
|
+
red: get(item, 'cervicalCancerScreeningScreeningSuggest') === '可疑'
|
|
987
957
|
})
|
|
988
|
-
},
|
|
958
|
+
}, get(item, 'cervicalCancerScreeningScreeningSuggest'))), get(item, 'cervicalCancerScreeningId') && get(item, 'cervicalCancerScreeningId') != -1 ? (/*#__PURE__*/React$1.createElement(Popconfirm, {
|
|
989
959
|
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u75C5\u5386\u5417?",
|
|
990
960
|
onConfirm: handleDelete(item, 'Screening'),
|
|
991
961
|
okText: "\u786E\u5B9A",
|
|
@@ -996,15 +966,15 @@ function Nursing(props) {
|
|
|
996
966
|
"float": 'right',
|
|
997
967
|
marginTop: 2
|
|
998
968
|
}
|
|
999
|
-
})) : /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
969
|
+
}))) : (/*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
1000
970
|
style: {
|
|
1001
971
|
color: 'rgb(24, 144, 255)',
|
|
1002
972
|
"float": 'right',
|
|
1003
973
|
marginTop: 2
|
|
1004
974
|
}
|
|
1005
|
-
}))),
|
|
975
|
+
}))))), get(item, 'cervicalCancerBiopsyId') && (/*#__PURE__*/React$1.createElement("div", {
|
|
1006
976
|
className: "doctor-desk-first-visit-sider-list__item",
|
|
1007
|
-
style:
|
|
977
|
+
style: get(activeItem, 'id') === get(item, 'id') && activeTemplate === 'PathologicalBiopsy' ? {
|
|
1008
978
|
background: '#eaf4fd'
|
|
1009
979
|
} : {
|
|
1010
980
|
background: 'none'
|
|
@@ -1012,11 +982,11 @@ function Nursing(props) {
|
|
|
1012
982
|
onClick: handleClickListItem(item, 'PathologicalBiopsy')
|
|
1013
983
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
1014
984
|
className: "doctor-desk-first-visit-sider-list__item-title"
|
|
1015
|
-
}, "\u75C5\u7406\u6D3B\u68C0", ' ',
|
|
985
|
+
}, "\u75C5\u7406\u6D3B\u68C0", ' ', get(item, 'cervicalCancerBiopsyCheckDate') && '(' + get(item, 'cervicalCancerBiopsyCheckDate') + ')'), get(item, 'cervicalCancerBiopsyScreeningSuggest') && (/*#__PURE__*/React$1.createElement("span", {
|
|
1016
986
|
className: classnames('label-result', {
|
|
1017
|
-
red:
|
|
987
|
+
red: get(item, 'cervicalCancerBiopsyScreeningSuggest') === '治疗'
|
|
1018
988
|
})
|
|
1019
|
-
},
|
|
989
|
+
}, get(item, 'cervicalCancerBiopsyScreeningSuggest'))), get(item, 'cervicalCancerBiopsyId') && get(item, 'cervicalCancerBiopsyId') != -1 ? (/*#__PURE__*/React$1.createElement(Popconfirm, {
|
|
1020
990
|
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u75C5\u5386\u5417?",
|
|
1021
991
|
onConfirm: handleDelete(item, 'PathologicalBiopsy'),
|
|
1022
992
|
okText: "\u786E\u5B9A",
|
|
@@ -1027,20 +997,20 @@ function Nursing(props) {
|
|
|
1027
997
|
"float": 'right',
|
|
1028
998
|
marginTop: 2
|
|
1029
999
|
}
|
|
1030
|
-
})) : /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
1000
|
+
}))) : (/*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
1031
1001
|
style: {
|
|
1032
1002
|
color: 'rgb(24, 144, 255)',
|
|
1033
1003
|
"float": 'right',
|
|
1034
1004
|
marginTop: 2
|
|
1035
1005
|
}
|
|
1036
|
-
})));
|
|
1006
|
+
})))));
|
|
1037
1007
|
}));
|
|
1038
1008
|
}
|
|
1039
1009
|
function renderContent() {
|
|
1040
1010
|
var reload = props.reload;
|
|
1041
1011
|
if (NurseTypesMapping$1[activeTemplate]) {
|
|
1042
1012
|
var Component = NurseTypesMapping$1[activeTemplate]['component'];
|
|
1043
|
-
return /*#__PURE__*/React$1.createElement(Component,
|
|
1013
|
+
return /*#__PURE__*/React$1.createElement(Component, __assign({}, props, {
|
|
1044
1014
|
activeItem: activeItem,
|
|
1045
1015
|
onRefresh: handleInit,
|
|
1046
1016
|
reload: reload,
|
|
@@ -1051,30 +1021,30 @@ function Nursing(props) {
|
|
|
1051
1021
|
}
|
|
1052
1022
|
}
|
|
1053
1023
|
console.log('zzx item', activeItem);
|
|
1054
|
-
return /*#__PURE__*/React$1.createElement(
|
|
1024
|
+
return /*#__PURE__*/React$1.createElement(Row, {
|
|
1055
1025
|
style: {
|
|
1056
1026
|
height: '100%'
|
|
1057
1027
|
}
|
|
1058
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
1028
|
+
}, /*#__PURE__*/React$1.createElement(Col, {
|
|
1059
1029
|
style: {
|
|
1060
1030
|
height: '100%',
|
|
1061
1031
|
width: 290,
|
|
1062
|
-
overflow: '
|
|
1032
|
+
overflow: 'auto',
|
|
1063
1033
|
backgroundColor: '#fff'
|
|
1064
1034
|
}
|
|
1065
|
-
}, renderSider()), /*#__PURE__*/React$1.createElement(
|
|
1035
|
+
}, renderSider()), /*#__PURE__*/React$1.createElement(Col, {
|
|
1066
1036
|
style: {
|
|
1067
1037
|
height: '100%',
|
|
1068
1038
|
width: 'calc(100% - 290px)',
|
|
1069
|
-
overflow: '
|
|
1039
|
+
overflow: 'auto'
|
|
1070
1040
|
}
|
|
1071
|
-
}, renderContent()), /*#__PURE__*/React$1.createElement(
|
|
1072
|
-
|
|
1041
|
+
}, renderContent()), /*#__PURE__*/React$1.createElement(Modal, {
|
|
1042
|
+
open: visible,
|
|
1073
1043
|
onCancel: function onCancel() {
|
|
1074
1044
|
set_visible(false);
|
|
1075
1045
|
}
|
|
1076
|
-
},
|
|
1077
|
-
return /*#__PURE__*/React$1.createElement(
|
|
1046
|
+
}, map(NurseTypesMapping$1, function (nurseType, key) {
|
|
1047
|
+
return /*#__PURE__*/React$1.createElement(Button, {
|
|
1078
1048
|
style: {
|
|
1079
1049
|
margin: 8
|
|
1080
1050
|
},
|
|
@@ -1084,8 +1054,8 @@ function Nursing(props) {
|
|
|
1084
1054
|
})));
|
|
1085
1055
|
}
|
|
1086
1056
|
function form_config() {
|
|
1087
|
-
if (mchcEnv.is('建瓯')) return import('./.
|
|
1088
|
-
return import('./.
|
|
1057
|
+
if (mchcEnv.is('建瓯')) return import('./.root58.js');
|
|
1058
|
+
return import('./.root60.js');
|
|
1089
1059
|
}
|
|
1090
1060
|
function Form_乳腺癌筛查(props) {
|
|
1091
1061
|
var _this = this;
|
|
@@ -1103,9 +1073,9 @@ function Form_乳腺癌筛查(props) {
|
|
|
1103
1073
|
}),
|
|
1104
1074
|
config = _b.config,
|
|
1105
1075
|
Wrap = _b.Wrap;
|
|
1106
|
-
var form =
|
|
1107
|
-
var active_id =
|
|
1108
|
-
var active_screen_id =
|
|
1076
|
+
var form = Form.useForm()[0];
|
|
1077
|
+
var active_id = get(activeItem, 'id');
|
|
1078
|
+
var active_screen_id = get(activeItem, 'breastCancerScreeningId');
|
|
1109
1079
|
useEffect(function () {
|
|
1110
1080
|
handleInit();
|
|
1111
1081
|
return function () {};
|
|
@@ -1125,12 +1095,12 @@ function Form_乳腺癌筛查(props) {
|
|
|
1125
1095
|
values = _b.sent();
|
|
1126
1096
|
return [3, 3];
|
|
1127
1097
|
case 2:
|
|
1128
|
-
|
|
1098
|
+
set(values, 'womenHealthcareMenstrualHistory', __assign({}, get(basicData, 'womenHealthcareMenstrualHistory')));
|
|
1129
1099
|
_b.label = 3;
|
|
1130
1100
|
case 3:
|
|
1131
|
-
if (!
|
|
1132
|
-
if (!
|
|
1133
|
-
if (!
|
|
1101
|
+
if (!get(values, 'breastCancerDiagnosisAndGuidance.checkUnit')) set(values, 'breastCancerDiagnosisAndGuidance.checkUnit', get(system, 'config.hospitalName'));
|
|
1102
|
+
if (!get(values, 'breastCancerDiagnosisAndGuidance.checkDate')) set(values, 'breastCancerDiagnosisAndGuidance.checkDate', dayjs(new Date()));
|
|
1103
|
+
if (!get(values, 'breastCancerDiagnosisAndGuidance.checkDoctor')) set(values, 'breastCancerDiagnosisAndGuidance.checkDoctor', get(basicInfo, 'firstName'));
|
|
1134
1104
|
setdata(values);
|
|
1135
1105
|
form.setFieldsValue(values);
|
|
1136
1106
|
return [2];
|
|
@@ -1144,8 +1114,12 @@ function Form_乳腺癌筛查(props) {
|
|
|
1144
1114
|
return __generator(this, function (_a) {
|
|
1145
1115
|
switch (_a.label) {
|
|
1146
1116
|
case 0:
|
|
1117
|
+
mchcLogger.log('handleSubmit', {
|
|
1118
|
+
values: values,
|
|
1119
|
+
data: data
|
|
1120
|
+
});
|
|
1147
1121
|
params = values;
|
|
1148
|
-
if (!
|
|
1122
|
+
if (!get(data, 'id')) return [3, 2];
|
|
1149
1123
|
params = __assign(__assign(__assign({}, data), params), {
|
|
1150
1124
|
screeningType: '乳腺癌筛查'
|
|
1151
1125
|
});
|
|
@@ -1167,6 +1141,7 @@ function Form_乳腺癌筛查(props) {
|
|
|
1167
1141
|
onRefresh && onRefresh('Screening', activeItem, true);
|
|
1168
1142
|
_a.label = 4;
|
|
1169
1143
|
case 4:
|
|
1144
|
+
mchcEnv.success('操作成功');
|
|
1170
1145
|
return [2];
|
|
1171
1146
|
}
|
|
1172
1147
|
});
|
|
@@ -1176,8 +1151,8 @@ function Form_乳腺癌筛查(props) {
|
|
|
1176
1151
|
form: form,
|
|
1177
1152
|
formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns,
|
|
1178
1153
|
renderExtraBtns: function renderExtraBtns(form) {
|
|
1179
|
-
return /*#__PURE__*/React$1.createElement(
|
|
1180
|
-
size:
|
|
1154
|
+
return /*#__PURE__*/React$1.createElement(Button, {
|
|
1155
|
+
size: 'large',
|
|
1181
1156
|
onClick: function onClick() {
|
|
1182
1157
|
request.post('/api/dataReport/reportBreastCancerRecord', {
|
|
1183
1158
|
ids: [active_id]
|
|
@@ -1209,7 +1184,7 @@ var AdmissionForm$1 = function (_super) {
|
|
|
1209
1184
|
function AdmissionForm() {
|
|
1210
1185
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1211
1186
|
_this.renderBtns = function () {
|
|
1212
|
-
return
|
|
1187
|
+
return React.createElement(Space, {
|
|
1213
1188
|
size: "middle"
|
|
1214
1189
|
}, _this.renderSubmitBtn(), _this.renderPrintBtn());
|
|
1215
1190
|
};
|
|
@@ -1219,91 +1194,91 @@ var AdmissionForm$1 = function (_super) {
|
|
|
1219
1194
|
}(BaseEditPanelForm);
|
|
1220
1195
|
var valueToApi$1 = function valueToApi$1(values, nativeFormDescriptions) {
|
|
1221
1196
|
var result = {};
|
|
1222
|
-
|
|
1197
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
1223
1198
|
var inputType = item.inputType;
|
|
1224
|
-
var itemVaule =
|
|
1199
|
+
var itemVaule = get(values, key);
|
|
1225
1200
|
switch (inputType) {
|
|
1226
1201
|
case 'radio_input':
|
|
1227
1202
|
var k = key.split('.').pop();
|
|
1228
|
-
|
|
1229
|
-
|
|
1203
|
+
set(result, key, get(itemVaule, "".concat(k)));
|
|
1204
|
+
set(result, "".concat(key, "Note"), get(itemVaule, "".concat(k, "Note")));
|
|
1230
1205
|
break;
|
|
1231
1206
|
case 'checkbox_with_single_input':
|
|
1232
|
-
|
|
1233
|
-
|
|
1207
|
+
set(result, key, get(itemVaule, 'key'));
|
|
1208
|
+
set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
|
|
1234
1209
|
break;
|
|
1235
1210
|
case 'single_date_picker':
|
|
1236
|
-
|
|
1211
|
+
set(result, key, formatDateTime(itemVaule));
|
|
1237
1212
|
break;
|
|
1238
1213
|
case 'checkbox_with_input':
|
|
1239
1214
|
var valueJson = safe_json_parse(itemVaule);
|
|
1240
|
-
|
|
1241
|
-
|
|
1215
|
+
set(result, key, get(valueJson, 'checkedValues.0'));
|
|
1216
|
+
set(result, "".concat(key, "Note"), get(valueJson, ['withInputValues', "".concat(get(valueJson, 'checkedValues.0')), 'value', '0']));
|
|
1242
1217
|
break;
|
|
1243
1218
|
case 'pressure':
|
|
1244
1219
|
var pressure_arr = key.split('.');
|
|
1245
1220
|
var pressure_key = void 0;
|
|
1246
1221
|
if (pressure_arr.length > 1) {
|
|
1247
|
-
pressure_arr =
|
|
1248
|
-
pressure_key =
|
|
1249
|
-
|
|
1250
|
-
|
|
1222
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
1223
|
+
pressure_key = join(pressure_arr, '.');
|
|
1224
|
+
set(result, "".concat(pressure_key, ".systolic"), get(itemVaule, 'systolic'));
|
|
1225
|
+
set(result, "".concat(pressure_key, ".diastolic"), get(itemVaule, 'diastolic'));
|
|
1251
1226
|
} else {
|
|
1252
|
-
|
|
1253
|
-
|
|
1227
|
+
set(result, 'systolic', get(itemVaule, 'systolic'));
|
|
1228
|
+
set(result, 'diastolic', get(itemVaule, 'diastolic'));
|
|
1254
1229
|
}
|
|
1255
1230
|
break;
|
|
1256
1231
|
default:
|
|
1257
|
-
|
|
1232
|
+
set(result, key, itemVaule);
|
|
1258
1233
|
break;
|
|
1259
1234
|
}
|
|
1260
1235
|
});
|
|
1261
1236
|
return result;
|
|
1262
1237
|
};
|
|
1263
1238
|
var valueToForm$1 = function valueToForm$1(values, nativeFormDescriptions) {
|
|
1264
|
-
|
|
1239
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
1265
1240
|
var _a;
|
|
1266
1241
|
var inputType = item.inputType;
|
|
1267
|
-
var itemVaule =
|
|
1242
|
+
var itemVaule = get(values, key);
|
|
1268
1243
|
switch (inputType) {
|
|
1269
1244
|
case 'checkbox_with_single_input':
|
|
1270
|
-
if (!
|
|
1271
|
-
|
|
1272
|
-
|
|
1245
|
+
if (!isNil(itemVaule)) {
|
|
1246
|
+
set(values, "".concat(key, ".key"), itemVaule);
|
|
1247
|
+
set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
|
|
1273
1248
|
}
|
|
1274
1249
|
break;
|
|
1275
1250
|
case 'checkbox_with_input':
|
|
1276
|
-
if (!
|
|
1251
|
+
if (!isNil(itemVaule)) {
|
|
1277
1252
|
var checkBoxValue = {
|
|
1278
1253
|
checkedValues: [itemVaule],
|
|
1279
1254
|
withInputValues: (_a = {}, _a[itemVaule] = {
|
|
1280
1255
|
key: itemVaule,
|
|
1281
1256
|
value: {
|
|
1282
|
-
'0':
|
|
1257
|
+
'0': get(values, "".concat(key, "Note"))
|
|
1283
1258
|
}
|
|
1284
1259
|
}, _a)
|
|
1285
1260
|
};
|
|
1286
|
-
|
|
1261
|
+
set(values, key, safe_json_stringify(checkBoxValue));
|
|
1287
1262
|
}
|
|
1288
1263
|
break;
|
|
1289
1264
|
case 'pressure':
|
|
1290
|
-
if (!
|
|
1265
|
+
if (!isNil(itemVaule)) {
|
|
1291
1266
|
var pressure_arr = key.split('.');
|
|
1292
1267
|
var pressure_key = void 0;
|
|
1293
1268
|
if (pressure_arr.length > 1) {
|
|
1294
|
-
pressure_arr =
|
|
1295
|
-
pressure_key =
|
|
1296
|
-
|
|
1297
|
-
|
|
1269
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
1270
|
+
pressure_key = join(pressure_arr, '.');
|
|
1271
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
1272
|
+
set(values, "".concat(key, ".diastolic"), get(values, "".concat(pressure_key, ".diastolic")));
|
|
1298
1273
|
} else {
|
|
1299
|
-
|
|
1300
|
-
|
|
1274
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
1275
|
+
set(values, "".concat(key, ".diastolic"), get(values, "diastolic"));
|
|
1301
1276
|
}
|
|
1302
1277
|
}
|
|
1303
1278
|
break;
|
|
1304
1279
|
default:
|
|
1305
|
-
if (!
|
|
1306
|
-
|
|
1280
|
+
if (!isNil(itemVaule)) {
|
|
1281
|
+
set(values, key, itemVaule);
|
|
1307
1282
|
}
|
|
1308
1283
|
break;
|
|
1309
1284
|
}
|
|
@@ -1331,22 +1306,22 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1331
1306
|
_a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
1332
1307
|
_b = this.props, basicInfo = _b.basicInfo, system = _b.system;
|
|
1333
1308
|
values = {};
|
|
1334
|
-
if (!
|
|
1335
|
-
if (!(
|
|
1336
|
-
return [4, fubaoRequest.get("/api/two/cancer/screening/getBreastCancerBiopsy?id.equals=".concat(
|
|
1309
|
+
if (!get(activeItem, 'breastCancerBiopsyId')) return [3, 3];
|
|
1310
|
+
if (!(get(activeItem, 'breastCancerBiopsyId') != -1)) return [3, 2];
|
|
1311
|
+
return [4, fubaoRequest.get("/api/two/cancer/screening/getBreastCancerBiopsy?id.equals=".concat(get(activeItem, 'breastCancerBiopsyId'), "&deleteFlag.equals=0"))];
|
|
1337
1312
|
case 1:
|
|
1338
1313
|
values = _c.sent();
|
|
1339
1314
|
_c.label = 2;
|
|
1340
1315
|
case 2:
|
|
1341
|
-
breastCancerRecordId =
|
|
1316
|
+
breastCancerRecordId = get(activeItem, 'id');
|
|
1342
1317
|
_c.label = 3;
|
|
1343
1318
|
case 3:
|
|
1344
|
-
values =
|
|
1319
|
+
values = get(values, 'data.0');
|
|
1345
1320
|
data = values ? valueToForm$1(values, formDescriptionsWithoutSection) : {};
|
|
1346
|
-
formKey =
|
|
1347
|
-
if (!
|
|
1348
|
-
if (!
|
|
1349
|
-
if (!
|
|
1321
|
+
formKey = get(data, 'id') || Math.random();
|
|
1322
|
+
if (!get(data, 'breastCancerDiagnosisAndGuidance.checkUnit')) set(data, 'breastCancerDiagnosisAndGuidance.checkUnit', get(system, 'config.hospitalName'));
|
|
1323
|
+
if (!get(data, 'breastCancerDiagnosisAndGuidance.checkDate')) set(data, 'breastCancerDiagnosisAndGuidance.checkDate', dayjs(new Date()));
|
|
1324
|
+
if (!get(data, 'breastCancerDiagnosisAndGuidance.checkDoctor')) set(data, 'breastCancerDiagnosisAndGuidance.checkDoctor', get(basicInfo, 'firstName'));
|
|
1350
1325
|
this.setState({
|
|
1351
1326
|
data: data,
|
|
1352
1327
|
formKey: formKey,
|
|
@@ -1370,7 +1345,7 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1370
1345
|
breastCancerRecordId: Number(breastCancerRecordId),
|
|
1371
1346
|
screeningType: '乳腺癌筛查'
|
|
1372
1347
|
});
|
|
1373
|
-
if (!
|
|
1348
|
+
if (!get(values, 'id')) return [3, 2];
|
|
1374
1349
|
return [4, fubaoRequest.put('/api/two/cancer/screening/updateBreastCancerBiopsy', params)];
|
|
1375
1350
|
case 1:
|
|
1376
1351
|
_c.sent();
|
|
@@ -1391,7 +1366,7 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1391
1366
|
}
|
|
1392
1367
|
AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
1393
1368
|
var activeItem = nextProps.activeItem;
|
|
1394
|
-
if (!
|
|
1369
|
+
if (!isEqual(activeItem, prevState.activeItem)) {
|
|
1395
1370
|
return {
|
|
1396
1371
|
activeItem: activeItem
|
|
1397
1372
|
};
|
|
@@ -1399,7 +1374,7 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1399
1374
|
return null;
|
|
1400
1375
|
};
|
|
1401
1376
|
AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1402
|
-
if (!
|
|
1377
|
+
if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
|
|
1403
1378
|
this.handleInit();
|
|
1404
1379
|
}
|
|
1405
1380
|
};
|
|
@@ -1451,7 +1426,7 @@ var AdmissionForm = function (_super) {
|
|
|
1451
1426
|
function AdmissionForm() {
|
|
1452
1427
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1453
1428
|
_this.renderBtns = function () {
|
|
1454
|
-
return
|
|
1429
|
+
return React.createElement(Space, {
|
|
1455
1430
|
size: "middle"
|
|
1456
1431
|
}, _this.renderSubmitBtn(), _this.renderPrintBtn());
|
|
1457
1432
|
};
|
|
@@ -1461,11 +1436,11 @@ var AdmissionForm = function (_super) {
|
|
|
1461
1436
|
return __generator(this, function (_b) {
|
|
1462
1437
|
_a = this.props, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection, extraEvents = _a.extraEvents;
|
|
1463
1438
|
form = this.form;
|
|
1464
|
-
if (
|
|
1465
|
-
checkedValue =
|
|
1466
|
-
if (
|
|
1467
|
-
|
|
1468
|
-
|
|
1439
|
+
if (get(changedValues, 'breastCancerAuxiliaryExamination.breastUltrasoundExamination')) {
|
|
1440
|
+
checkedValue = get(changedValues, 'breastCancerAuxiliaryExamination.breastUltrasoundExamination');
|
|
1441
|
+
if (get(checkedValue, 'key') === 2) {
|
|
1442
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.leftBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1443
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.rightBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1469
1444
|
extraEvents.handleDisabled(formDescriptionsWithoutSection);
|
|
1470
1445
|
form && form.setFieldsValue({
|
|
1471
1446
|
breastCancerAuxiliaryExamination: {
|
|
@@ -1478,8 +1453,8 @@ var AdmissionForm = function (_super) {
|
|
|
1478
1453
|
}
|
|
1479
1454
|
});
|
|
1480
1455
|
} else {
|
|
1481
|
-
|
|
1482
|
-
|
|
1456
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.leftBiRadsClassification', 'inputProps', 'disabled'], false);
|
|
1457
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.rightBiRadsClassification', 'inputProps', 'disabled'], false);
|
|
1483
1458
|
extraEvents.handleDisabled(formDescriptionsWithoutSection);
|
|
1484
1459
|
form && form.setFieldsValue({
|
|
1485
1460
|
breastCancerAuxiliaryExamination: {
|
|
@@ -1493,11 +1468,11 @@ var AdmissionForm = function (_super) {
|
|
|
1493
1468
|
});
|
|
1494
1469
|
}
|
|
1495
1470
|
}
|
|
1496
|
-
if (
|
|
1497
|
-
checkedValue =
|
|
1498
|
-
if (
|
|
1499
|
-
|
|
1500
|
-
|
|
1471
|
+
if (get(changedValues, 'breastCancerAuxiliaryExamination.breastXBiRadsExamination')) {
|
|
1472
|
+
checkedValue = get(changedValues, 'breastCancerAuxiliaryExamination.breastXBiRadsExamination');
|
|
1473
|
+
if (get(checkedValue, 'key') === 2) {
|
|
1474
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.leftBreastXBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1475
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.rightBreastXBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1501
1476
|
extraEvents.handleDisabled(formDescriptionsWithoutSection);
|
|
1502
1477
|
form && form.setFieldsValue({
|
|
1503
1478
|
breastCancerAuxiliaryExamination: {
|
|
@@ -1510,8 +1485,8 @@ var AdmissionForm = function (_super) {
|
|
|
1510
1485
|
}
|
|
1511
1486
|
});
|
|
1512
1487
|
} else {
|
|
1513
|
-
|
|
1514
|
-
|
|
1488
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.leftBreastXBiRadsClassification', 'inputProps', 'disabled'], false);
|
|
1489
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.rightBreastXBiRadsClassification', 'inputProps', 'disabled'], false);
|
|
1515
1490
|
extraEvents.handleDisabled(formDescriptionsWithoutSection);
|
|
1516
1491
|
form && form.setFieldsValue({
|
|
1517
1492
|
breastCancerAuxiliaryExamination: {
|
|
@@ -1555,16 +1530,16 @@ var AdmissionForm = function (_super) {
|
|
|
1555
1530
|
formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
1556
1531
|
this.form = this.formRef.current;
|
|
1557
1532
|
this.form && this.form.setFieldsValue(data);
|
|
1558
|
-
if (
|
|
1559
|
-
if (
|
|
1560
|
-
|
|
1561
|
-
|
|
1533
|
+
if (get(data, 'breastCancerAuxiliaryExamination.breastUltrasoundExamination')) {
|
|
1534
|
+
if (get(data, 'breastCancerAuxiliaryExamination.breastUltrasoundExamination.key') === 2) {
|
|
1535
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.leftBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1536
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.rightBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1562
1537
|
}
|
|
1563
1538
|
}
|
|
1564
|
-
if (
|
|
1565
|
-
if (
|
|
1566
|
-
|
|
1567
|
-
|
|
1539
|
+
if (get(data, 'breastCancerAuxiliaryExamination.breastXBiRadsExamination')) {
|
|
1540
|
+
if (get(data, 'breastCancerAuxiliaryExamination.breastXBiRadsExamination.key') === 2) {
|
|
1541
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.leftBreastXBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1542
|
+
set(formDescriptionsWithoutSection, ['breastCancerAuxiliaryExamination.rightBreastXBiRadsClassification', 'inputProps', 'disabled'], true);
|
|
1568
1543
|
}
|
|
1569
1544
|
}
|
|
1570
1545
|
this.renderEditItem = this.generateRenderEditItem(formDescriptionsWithoutSection, {
|
|
@@ -1576,91 +1551,91 @@ var AdmissionForm = function (_super) {
|
|
|
1576
1551
|
}(BaseEditPanelForm);
|
|
1577
1552
|
var valueToApi = function valueToApi(values, nativeFormDescriptions) {
|
|
1578
1553
|
var result = {};
|
|
1579
|
-
|
|
1554
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
1580
1555
|
var inputType = item.inputType;
|
|
1581
|
-
var itemVaule =
|
|
1556
|
+
var itemVaule = get(values, key);
|
|
1582
1557
|
switch (inputType) {
|
|
1583
1558
|
case 'radio_input':
|
|
1584
1559
|
var k = key.split('.').pop();
|
|
1585
|
-
|
|
1586
|
-
|
|
1560
|
+
set(result, key, get(itemVaule, "".concat(k)));
|
|
1561
|
+
set(result, "".concat(key, "Note"), get(itemVaule, "".concat(k, "Note")));
|
|
1587
1562
|
break;
|
|
1588
1563
|
case 'checkbox_with_single_input':
|
|
1589
|
-
|
|
1590
|
-
|
|
1564
|
+
set(result, key, get(itemVaule, 'key'));
|
|
1565
|
+
set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
|
|
1591
1566
|
break;
|
|
1592
1567
|
case 'single_date_picker':
|
|
1593
|
-
|
|
1568
|
+
set(result, key, formatDateTime(itemVaule));
|
|
1594
1569
|
break;
|
|
1595
1570
|
case 'checkbox_with_input':
|
|
1596
1571
|
var valueJson = safe_json_parse(itemVaule);
|
|
1597
|
-
|
|
1598
|
-
|
|
1572
|
+
set(result, key, get(valueJson, 'checkedValues.0'));
|
|
1573
|
+
set(result, "".concat(key, "Note"), get(valueJson, ['withInputValues', "".concat(get(valueJson, 'checkedValues.0')), 'value', '0']));
|
|
1599
1574
|
break;
|
|
1600
1575
|
case 'pressure':
|
|
1601
1576
|
var pressure_arr = key.split('.');
|
|
1602
1577
|
var pressure_key = void 0;
|
|
1603
1578
|
if (pressure_arr.length > 1) {
|
|
1604
|
-
pressure_arr =
|
|
1605
|
-
pressure_key =
|
|
1606
|
-
|
|
1607
|
-
|
|
1579
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
1580
|
+
pressure_key = join(pressure_arr, '.');
|
|
1581
|
+
set(result, "".concat(pressure_key, ".systolic"), get(itemVaule, 'systolic'));
|
|
1582
|
+
set(result, "".concat(pressure_key, ".diastolic"), get(itemVaule, 'diastolic'));
|
|
1608
1583
|
} else {
|
|
1609
|
-
|
|
1610
|
-
|
|
1584
|
+
set(result, 'systolic', get(itemVaule, 'systolic'));
|
|
1585
|
+
set(result, 'diastolic', get(itemVaule, 'diastolic'));
|
|
1611
1586
|
}
|
|
1612
1587
|
break;
|
|
1613
1588
|
default:
|
|
1614
|
-
|
|
1589
|
+
set(result, key, itemVaule);
|
|
1615
1590
|
break;
|
|
1616
1591
|
}
|
|
1617
1592
|
});
|
|
1618
1593
|
return result;
|
|
1619
1594
|
};
|
|
1620
1595
|
var valueToForm = function valueToForm(values, nativeFormDescriptions) {
|
|
1621
|
-
|
|
1596
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
1622
1597
|
var _a;
|
|
1623
1598
|
var inputType = item.inputType;
|
|
1624
|
-
var itemVaule =
|
|
1599
|
+
var itemVaule = get(values, key);
|
|
1625
1600
|
switch (inputType) {
|
|
1626
1601
|
case 'checkbox_with_single_input':
|
|
1627
|
-
if (!
|
|
1628
|
-
|
|
1629
|
-
|
|
1602
|
+
if (!isNil(itemVaule)) {
|
|
1603
|
+
set(values, "".concat(key, ".key"), itemVaule);
|
|
1604
|
+
set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
|
|
1630
1605
|
}
|
|
1631
1606
|
break;
|
|
1632
1607
|
case 'checkbox_with_input':
|
|
1633
|
-
if (!
|
|
1608
|
+
if (!isNil(itemVaule)) {
|
|
1634
1609
|
var checkBoxValue = {
|
|
1635
1610
|
checkedValues: [itemVaule],
|
|
1636
1611
|
withInputValues: (_a = {}, _a[itemVaule] = {
|
|
1637
1612
|
key: itemVaule,
|
|
1638
1613
|
value: {
|
|
1639
|
-
'0':
|
|
1614
|
+
'0': get(values, "".concat(key, "Note"))
|
|
1640
1615
|
}
|
|
1641
1616
|
}, _a)
|
|
1642
1617
|
};
|
|
1643
|
-
|
|
1618
|
+
set(values, key, safe_json_stringify(checkBoxValue));
|
|
1644
1619
|
}
|
|
1645
1620
|
break;
|
|
1646
1621
|
case 'pressure':
|
|
1647
|
-
if (!
|
|
1622
|
+
if (!isNil(itemVaule)) {
|
|
1648
1623
|
var pressure_arr = key.split('.');
|
|
1649
1624
|
var pressure_key = void 0;
|
|
1650
1625
|
if (pressure_arr.length > 1) {
|
|
1651
|
-
pressure_arr =
|
|
1652
|
-
pressure_key =
|
|
1653
|
-
|
|
1654
|
-
|
|
1626
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
1627
|
+
pressure_key = join(pressure_arr, '.');
|
|
1628
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
1629
|
+
set(values, "".concat(key, ".diastolic"), get(values, "".concat(pressure_key, ".diastolic")));
|
|
1655
1630
|
} else {
|
|
1656
|
-
|
|
1657
|
-
|
|
1631
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
1632
|
+
set(values, "".concat(key, ".diastolic"), get(values, "diastolic"));
|
|
1658
1633
|
}
|
|
1659
1634
|
}
|
|
1660
1635
|
break;
|
|
1661
1636
|
default:
|
|
1662
|
-
if (!
|
|
1663
|
-
|
|
1637
|
+
if (!isNil(itemVaule)) {
|
|
1638
|
+
set(values, key, itemVaule);
|
|
1664
1639
|
}
|
|
1665
1640
|
break;
|
|
1666
1641
|
}
|
|
@@ -1695,34 +1670,34 @@ var AdmissionPanel = function (_super) {
|
|
|
1695
1670
|
_a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
1696
1671
|
_b = this.props, basicInfo = _b.basicInfo, system = _b.system;
|
|
1697
1672
|
values = {};
|
|
1698
|
-
if (!
|
|
1699
|
-
if (!(
|
|
1700
|
-
return [4, fubaoRequest.get("/api/two/cancer/screening/getBreastCancerXRay?id.equals=".concat(
|
|
1673
|
+
if (!get(activeItem, 'breastCancerXRayId')) return [3, 3];
|
|
1674
|
+
if (!(get(activeItem, 'breastCancerXRayId') != -1)) return [3, 2];
|
|
1675
|
+
return [4, fubaoRequest.get("/api/two/cancer/screening/getBreastCancerXRay?id.equals=".concat(get(activeItem, 'breastCancerXRayId'), "&deleteFlag.equals=0"))];
|
|
1701
1676
|
case 1:
|
|
1702
1677
|
values = _c.sent().data;
|
|
1703
1678
|
_c.label = 2;
|
|
1704
1679
|
case 2:
|
|
1705
|
-
breastCancerRecordId =
|
|
1680
|
+
breastCancerRecordId = get(activeItem, 'id');
|
|
1706
1681
|
_c.label = 3;
|
|
1707
1682
|
case 3:
|
|
1708
|
-
values =
|
|
1683
|
+
values = get(values, 'data.0');
|
|
1709
1684
|
data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
|
|
1710
|
-
formKey =
|
|
1711
|
-
if (!
|
|
1712
|
-
|
|
1685
|
+
formKey = get(data, 'id') || Math.random();
|
|
1686
|
+
if (!get(data, 'breastCancerAuxiliaryExamination.breastUltrasoundExamination')) {
|
|
1687
|
+
set(data, 'breastCancerAuxiliaryExamination.breastUltrasoundExamination', {
|
|
1713
1688
|
key: 2,
|
|
1714
1689
|
keyNote: undefined
|
|
1715
1690
|
});
|
|
1716
1691
|
}
|
|
1717
|
-
if (!
|
|
1718
|
-
|
|
1692
|
+
if (!get(data, 'breastCancerAuxiliaryExamination.breastXBiRadsExamination')) {
|
|
1693
|
+
set(data, 'breastCancerAuxiliaryExamination.breastXBiRadsExamination', {
|
|
1719
1694
|
key: 2,
|
|
1720
1695
|
keyNote: undefined
|
|
1721
1696
|
});
|
|
1722
1697
|
}
|
|
1723
|
-
if (!
|
|
1724
|
-
if (!
|
|
1725
|
-
if (!
|
|
1698
|
+
if (!get(data, 'breastCancerDiagnosisAndGuidance.checkUnit')) set(data, 'breastCancerDiagnosisAndGuidance.checkUnit', get(system, 'config.hospitalName'));
|
|
1699
|
+
if (!get(data, 'breastCancerDiagnosisAndGuidance.checkDate')) set(data, 'breastCancerDiagnosisAndGuidance.checkDate', dayjs(new Date()));
|
|
1700
|
+
if (!get(data, 'breastCancerDiagnosisAndGuidance.checkDoctor')) set(data, 'breastCancerDiagnosisAndGuidance.checkDoctor', get(basicInfo, 'firstName'));
|
|
1726
1701
|
this.setState({
|
|
1727
1702
|
data: data,
|
|
1728
1703
|
formKey: formKey,
|
|
@@ -1746,7 +1721,7 @@ var AdmissionPanel = function (_super) {
|
|
|
1746
1721
|
breastCancerRecordId: Number(breastCancerRecordId),
|
|
1747
1722
|
screeningType: '乳腺癌筛查'
|
|
1748
1723
|
});
|
|
1749
|
-
if (!
|
|
1724
|
+
if (!get(values, 'id')) return [3, 2];
|
|
1750
1725
|
return [4, fubaoRequest.put('/api/two/cancer/screening/updateBreastCancerXRay', params)];
|
|
1751
1726
|
case 1:
|
|
1752
1727
|
_c.sent();
|
|
@@ -1767,7 +1742,7 @@ var AdmissionPanel = function (_super) {
|
|
|
1767
1742
|
}
|
|
1768
1743
|
AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
1769
1744
|
var activeItem = nextProps.activeItem;
|
|
1770
|
-
if (!
|
|
1745
|
+
if (!isEqual(activeItem, prevState.activeItem)) {
|
|
1771
1746
|
return {
|
|
1772
1747
|
activeItem: activeItem
|
|
1773
1748
|
};
|
|
@@ -1775,7 +1750,7 @@ var AdmissionPanel = function (_super) {
|
|
|
1775
1750
|
return null;
|
|
1776
1751
|
};
|
|
1777
1752
|
AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1778
|
-
if (!
|
|
1753
|
+
if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
|
|
1779
1754
|
this.handleInit();
|
|
1780
1755
|
}
|
|
1781
1756
|
};
|
|
@@ -1868,7 +1843,7 @@ function MammaryCancer(props) {
|
|
|
1868
1843
|
}
|
|
1869
1844
|
function handleClickListItem(item, code) {
|
|
1870
1845
|
return function () {
|
|
1871
|
-
var activeTemplate =
|
|
1846
|
+
var activeTemplate = get(NurseTypesMapping, "".concat(code, ".key"));
|
|
1872
1847
|
set_activeItem(item);
|
|
1873
1848
|
set_activeTemplate(activeTemplate);
|
|
1874
1849
|
set_activeType(code);
|
|
@@ -1880,20 +1855,20 @@ function MammaryCancer(props) {
|
|
|
1880
1855
|
return __generator(this, function (_a) {
|
|
1881
1856
|
switch (_a.label) {
|
|
1882
1857
|
case 0:
|
|
1883
|
-
id =
|
|
1884
|
-
breastCancerScreeningId =
|
|
1885
|
-
breastCancerXRayId =
|
|
1858
|
+
id = get(props, 'id');
|
|
1859
|
+
breastCancerScreeningId = get(props, 'breastCancerScreeningId');
|
|
1860
|
+
breastCancerXRayId = get(props, 'breastCancerXRayId');
|
|
1886
1861
|
return [4, fubaoRequest.get("/api/two/cancer/screening/getBreastCancerRecord?fileId.equals=".concat(id, "&deleteFlag.equals=0"))];
|
|
1887
1862
|
case 1:
|
|
1888
1863
|
data = _a.sent().data;
|
|
1889
1864
|
breastCancerRecord = [];
|
|
1890
|
-
if (
|
|
1891
|
-
breastCancerRecord =
|
|
1865
|
+
if (get(data, 'data')) {
|
|
1866
|
+
breastCancerRecord = get(data, 'data.breastCancerRecord');
|
|
1892
1867
|
}
|
|
1893
1868
|
if (breastCancerRecord.length > 0) {
|
|
1894
1869
|
if (breastCancerScreeningId) {
|
|
1895
|
-
|
|
1896
|
-
if (Number(breastCancerScreeningId) ===
|
|
1870
|
+
map(breastCancerRecord, function (item, index) {
|
|
1871
|
+
if (Number(breastCancerScreeningId) === get(item, 'breastCancerScreeningId')) {
|
|
1897
1872
|
set_siderPanels(breastCancerRecord);
|
|
1898
1873
|
set_activeItem(item);
|
|
1899
1874
|
set_activeType('Screening');
|
|
@@ -1901,19 +1876,19 @@ function MammaryCancer(props) {
|
|
|
1901
1876
|
}
|
|
1902
1877
|
});
|
|
1903
1878
|
} else if (breastCancerXRayId) {
|
|
1904
|
-
|
|
1905
|
-
if (Number(breastCancerXRayId) ===
|
|
1879
|
+
map(breastCancerRecord, function (item, index) {
|
|
1880
|
+
if (Number(breastCancerXRayId) === get(item, 'breastCancerXRayId')) {
|
|
1906
1881
|
set_siderPanels(breastCancerRecord);
|
|
1907
1882
|
set_activeItem(item);
|
|
1908
1883
|
set_activeType('Mammography');
|
|
1909
|
-
set_activeTemplate(
|
|
1884
|
+
set_activeTemplate(get(NurseTypesMapping, "Mammography.key"));
|
|
1910
1885
|
}
|
|
1911
1886
|
});
|
|
1912
1887
|
} else {
|
|
1913
1888
|
set_siderPanels(breastCancerRecord);
|
|
1914
1889
|
set_activeItem(activeItem && !isAdd ? activeItem : breastCancerRecord[breastCancerRecord.length - 1]);
|
|
1915
1890
|
set_activeType(activeType ? activeType : 'Screening');
|
|
1916
|
-
set_activeTemplate(activeType ?
|
|
1891
|
+
set_activeTemplate(activeType ? get(NurseTypesMapping, "".concat(activeType, ".key")) : DEFAULT_ACTIVE_TEMPLETE);
|
|
1917
1892
|
}
|
|
1918
1893
|
} else {
|
|
1919
1894
|
breastCancerRecord.push({
|
|
@@ -1935,32 +1910,32 @@ function MammaryCancer(props) {
|
|
|
1935
1910
|
switch (_a.label) {
|
|
1936
1911
|
case 0:
|
|
1937
1912
|
if (!(code === 'Screening')) return [3, 3];
|
|
1938
|
-
id =
|
|
1913
|
+
id = get(item, 'breastCancerScreeningId');
|
|
1939
1914
|
return [4, fubaoRequest["delete"]("/api/two/cancer/screening/deleteBreastCancerScreening/".concat(id))];
|
|
1940
1915
|
case 1:
|
|
1941
1916
|
res = _a.sent().data;
|
|
1942
|
-
if (
|
|
1917
|
+
if (get(res, 'code') === 1) ;
|
|
1943
1918
|
return [4, handleInit()];
|
|
1944
1919
|
case 2:
|
|
1945
1920
|
_a.sent();
|
|
1946
1921
|
return [3, 9];
|
|
1947
1922
|
case 3:
|
|
1948
1923
|
if (!(code === 'Mammography')) return [3, 6];
|
|
1949
|
-
id =
|
|
1924
|
+
id = get(item, 'breastCancerXRayId');
|
|
1950
1925
|
return [4, fubaoRequest["delete"]("/api/two/cancer/screening/deleteBreastCancerXRay/".concat(id))];
|
|
1951
1926
|
case 4:
|
|
1952
1927
|
res = _a.sent().data;
|
|
1953
|
-
if (
|
|
1928
|
+
if (get(res, 'code') === 1) ;
|
|
1954
1929
|
return [4, handleInit()];
|
|
1955
1930
|
case 5:
|
|
1956
1931
|
_a.sent();
|
|
1957
1932
|
return [3, 9];
|
|
1958
1933
|
case 6:
|
|
1959
|
-
id =
|
|
1934
|
+
id = get(item, 'breastCancerBiopsyId');
|
|
1960
1935
|
return [4, fubaoRequest["delete"]("/api/two/cancer/screening/deleteBreastCancerBiopsy/".concat(id))];
|
|
1961
1936
|
case 7:
|
|
1962
1937
|
res = _a.sent().data;
|
|
1963
|
-
if (
|
|
1938
|
+
if (get(res, 'code') === 1) ;
|
|
1964
1939
|
return [4, handleInit()];
|
|
1965
1940
|
case 8:
|
|
1966
1941
|
_a.sent();
|
|
@@ -1974,12 +1949,12 @@ function MammaryCancer(props) {
|
|
|
1974
1949
|
}
|
|
1975
1950
|
function handleChooseTemplate(nurseType) {
|
|
1976
1951
|
return function () {
|
|
1977
|
-
var clickTempKey =
|
|
1978
|
-
var newSiderPanels =
|
|
1952
|
+
var clickTempKey = get(nurseType, 'key');
|
|
1953
|
+
var newSiderPanels = cloneDeep(siderPanels);
|
|
1979
1954
|
var listData = newSiderPanels[newSiderPanels.length - 1];
|
|
1980
1955
|
if (clickTempKey === 'Screening') {
|
|
1981
|
-
if (
|
|
1982
|
-
|
|
1956
|
+
if (get(listData, 'breastCancerScreeningId') === -1) {
|
|
1957
|
+
message.warning('请先保存上一次筛查!');
|
|
1983
1958
|
return;
|
|
1984
1959
|
}
|
|
1985
1960
|
var newImte = {
|
|
@@ -1987,34 +1962,34 @@ function MammaryCancer(props) {
|
|
|
1987
1962
|
};
|
|
1988
1963
|
newSiderPanels.push(newImte);
|
|
1989
1964
|
set_siderPanels(newSiderPanels);
|
|
1990
|
-
set_activeTemplate(
|
|
1965
|
+
set_activeTemplate(get(nurseType, 'key'));
|
|
1991
1966
|
set_visible(false);
|
|
1992
1967
|
set_activeItem(newImte);
|
|
1993
1968
|
set_activeType(clickTempKey);
|
|
1994
1969
|
} else if (clickTempKey === 'Mammography') {
|
|
1995
|
-
if (
|
|
1996
|
-
set_activeTemplate(
|
|
1970
|
+
if (get(listData, 'breastCancerXRayId')) {
|
|
1971
|
+
set_activeTemplate(get(nurseType, 'key'));
|
|
1997
1972
|
set_visible(false);
|
|
1998
1973
|
set_activeItem(listData);
|
|
1999
1974
|
set_activeType(clickTempKey);
|
|
2000
1975
|
} else {
|
|
2001
|
-
|
|
1976
|
+
set(listData, 'breastCancerXRayId', -1);
|
|
2002
1977
|
set_siderPanels(newSiderPanels);
|
|
2003
|
-
set_activeTemplate(
|
|
1978
|
+
set_activeTemplate(get(nurseType, 'key'));
|
|
2004
1979
|
set_visible(false);
|
|
2005
1980
|
set_activeItem(listData);
|
|
2006
1981
|
set_activeType(clickTempKey);
|
|
2007
1982
|
}
|
|
2008
1983
|
} else {
|
|
2009
|
-
if (
|
|
2010
|
-
set_activeTemplate(
|
|
1984
|
+
if (get(listData, 'breastCancerBiopsyId')) {
|
|
1985
|
+
set_activeTemplate(get(nurseType, 'key'));
|
|
2011
1986
|
set_visible(false);
|
|
2012
1987
|
set_activeItem(listData);
|
|
2013
1988
|
set_activeType(clickTempKey);
|
|
2014
1989
|
} else {
|
|
2015
|
-
|
|
1990
|
+
set(listData, 'breastCancerBiopsyId', -1);
|
|
2016
1991
|
set_siderPanels(newSiderPanels);
|
|
2017
|
-
set_activeTemplate(
|
|
1992
|
+
set_activeTemplate(get(nurseType, 'key'));
|
|
2018
1993
|
set_visible(false);
|
|
2019
1994
|
set_activeItem(listData);
|
|
2020
1995
|
set_activeType(clickTempKey);
|
|
@@ -2023,7 +1998,7 @@ function MammaryCancer(props) {
|
|
|
2023
1998
|
};
|
|
2024
1999
|
}
|
|
2025
2000
|
function renderSider() {
|
|
2026
|
-
return /*#__PURE__*/React$1.createElement(
|
|
2001
|
+
return /*#__PURE__*/React$1.createElement(Card, {
|
|
2027
2002
|
size: "small",
|
|
2028
2003
|
bordered: false,
|
|
2029
2004
|
style: {
|
|
@@ -2033,15 +2008,15 @@ function MammaryCancer(props) {
|
|
|
2033
2008
|
extra: /*#__PURE__*/React$1.createElement(PlusCircleOutlined, {
|
|
2034
2009
|
onClick: handleAdd
|
|
2035
2010
|
})
|
|
2036
|
-
},
|
|
2011
|
+
}, map(siderPanels, function (data, index) {
|
|
2037
2012
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
2038
2013
|
key: data.id,
|
|
2039
2014
|
className: "two-cancers-list"
|
|
2040
2015
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2041
2016
|
className: "two-cancers-doctor-desk-first-visit-sider-list_title"
|
|
2042
|
-
}, "\u7B2C".concat(index + 1, "\u6B21\u7B5B\u67E5")),
|
|
2017
|
+
}, "\u7B2C".concat(index + 1, "\u6B21\u7B5B\u67E5")), get(data, 'breastCancerScreeningId') && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
2043
2018
|
className: "doctor-desk-first-visit-sider-list__item",
|
|
2044
|
-
style:
|
|
2019
|
+
style: get(activeItem, 'id') === get(data, 'id') && activeType === 'Screening' ? {
|
|
2045
2020
|
background: '#eaf4fd'
|
|
2046
2021
|
} : {
|
|
2047
2022
|
background: 'none'
|
|
@@ -2049,11 +2024,11 @@ function MammaryCancer(props) {
|
|
|
2049
2024
|
onClick: handleClickListItem(data, 'Screening')
|
|
2050
2025
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2051
2026
|
className: "doctor-desk-first-visit-sider-list__item-title"
|
|
2052
|
-
}, "\u7B5B\u67E5", ' ',
|
|
2027
|
+
}, "\u7B5B\u67E5", ' ', get(data, 'breastCancerScreeningCheckDate') && '(' + get(data, 'breastCancerScreeningCheckDate') + ')'), get(data, 'breastCancerScreeningScreeningSuggest') && (/*#__PURE__*/React$1.createElement("span", {
|
|
2053
2028
|
className: classnames('label-result', {
|
|
2054
|
-
red:
|
|
2029
|
+
red: get(data, 'breastCancerScreeningScreeningSuggest') === '复查乳腺X线'
|
|
2055
2030
|
})
|
|
2056
|
-
},
|
|
2031
|
+
}, get(data, 'breastCancerScreeningScreeningSuggest'))), get(data, 'breastCancerScreeningId') && get(data, 'breastCancerScreeningId') != -1 ? (/*#__PURE__*/React$1.createElement(Popconfirm, {
|
|
2057
2032
|
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u75C5\u5386\u5417?",
|
|
2058
2033
|
onConfirm: handleDelete(data, 'Screening'),
|
|
2059
2034
|
okText: "\u786E\u5B9A",
|
|
@@ -2064,15 +2039,15 @@ function MammaryCancer(props) {
|
|
|
2064
2039
|
"float": 'right',
|
|
2065
2040
|
marginTop: 2
|
|
2066
2041
|
}
|
|
2067
|
-
})) : /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2042
|
+
}))) : (/*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2068
2043
|
style: {
|
|
2069
2044
|
color: 'rgb(24, 144, 255)',
|
|
2070
2045
|
"float": 'right',
|
|
2071
2046
|
marginTop: 2
|
|
2072
2047
|
}
|
|
2073
|
-
}))),
|
|
2048
|
+
}))))), get(data, 'breastCancerXRayId') && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
2074
2049
|
className: "doctor-desk-first-visit-sider-list__item",
|
|
2075
|
-
style:
|
|
2050
|
+
style: get(activeItem, 'id') === get(data, 'id') && activeType === 'Mammography' ? {
|
|
2076
2051
|
background: '#eaf4fd'
|
|
2077
2052
|
} : {
|
|
2078
2053
|
background: 'none'
|
|
@@ -2080,11 +2055,11 @@ function MammaryCancer(props) {
|
|
|
2080
2055
|
onClick: handleClickListItem(data, 'Mammography')
|
|
2081
2056
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2082
2057
|
className: "doctor-desk-first-visit-sider-list__item-title"
|
|
2083
|
-
}, "\u4E73\u817AX\u7EBF", ' ',
|
|
2058
|
+
}, "\u4E73\u817AX\u7EBF", ' ', get(data, 'breastCancerXRayCheckDate') && '(' + get(data, 'breastCancerXRayCheckDate') + ')'), get(data, 'breastCancerXRayScreeningSuggest') && (/*#__PURE__*/React$1.createElement("span", {
|
|
2084
2059
|
className: classnames('label-result', {
|
|
2085
|
-
red:
|
|
2060
|
+
red: get(data, 'breastCancerXRayScreeningSuggest') === '复查乳腺X线'
|
|
2086
2061
|
})
|
|
2087
|
-
},
|
|
2062
|
+
}, get(data, 'breastCancerXRayScreeningSuggest'))), get(data, 'breastCancerXRayId') && get(data, 'breastCancerXRayId') != -1 ? (/*#__PURE__*/React$1.createElement(Popconfirm, {
|
|
2088
2063
|
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u75C5\u5386\u5417?",
|
|
2089
2064
|
onConfirm: handleDelete(data, 'Mammography'),
|
|
2090
2065
|
okText: "\u786E\u5B9A",
|
|
@@ -2095,15 +2070,15 @@ function MammaryCancer(props) {
|
|
|
2095
2070
|
"float": 'right',
|
|
2096
2071
|
marginTop: 2
|
|
2097
2072
|
}
|
|
2098
|
-
})) : /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2073
|
+
}))) : (/*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2099
2074
|
style: {
|
|
2100
2075
|
color: 'rgb(24, 144, 255)',
|
|
2101
2076
|
"float": 'right',
|
|
2102
2077
|
marginTop: 2
|
|
2103
2078
|
}
|
|
2104
|
-
}))),
|
|
2079
|
+
}))))), get(data, 'breastCancerBiopsyId') && (/*#__PURE__*/React$1.createElement("div", {
|
|
2105
2080
|
className: "doctor-desk-first-visit-sider-list__item",
|
|
2106
|
-
style:
|
|
2081
|
+
style: get(activeItem, 'id') === get(data, 'id') && activeType === 'PathologicalBiopsy' ? {
|
|
2107
2082
|
background: '#eaf4fd'
|
|
2108
2083
|
} : {
|
|
2109
2084
|
background: 'none'
|
|
@@ -2111,11 +2086,11 @@ function MammaryCancer(props) {
|
|
|
2111
2086
|
onClick: handleClickListItem(data, 'PathologicalBiopsy')
|
|
2112
2087
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2113
2088
|
className: "doctor-desk-first-visit-sider-list__item-title"
|
|
2114
|
-
}, "\u75C5\u7406\u6D3B\u68C0", ' ',
|
|
2089
|
+
}, "\u75C5\u7406\u6D3B\u68C0", ' ', get(data, 'breastCancerBiopsyCheckDate') && '(' + get(data, 'breastCancerBiopsyCheckDate') + ')'), get(data, 'breastCancerBiopsyScreeningSuggest') && (/*#__PURE__*/React$1.createElement("span", {
|
|
2115
2090
|
className: classnames('label-result', {
|
|
2116
|
-
red:
|
|
2091
|
+
red: get(data, 'breastCancerBiopsyScreeningSuggest') === '治疗'
|
|
2117
2092
|
})
|
|
2118
|
-
},
|
|
2093
|
+
}, get(data, 'breastCancerBiopsyScreeningSuggest'))), get(data, 'breastCancerBiopsyId') && get(data, 'breastCancerBiopsyId') != -1 ? (/*#__PURE__*/React$1.createElement(Popconfirm, {
|
|
2119
2094
|
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u75C5\u5386\u5417?",
|
|
2120
2095
|
onConfirm: handleDelete(data, 'PathologicalBiopsy'),
|
|
2121
2096
|
okText: "\u786E\u5B9A",
|
|
@@ -2126,20 +2101,20 @@ function MammaryCancer(props) {
|
|
|
2126
2101
|
"float": 'right',
|
|
2127
2102
|
marginTop: 2
|
|
2128
2103
|
}
|
|
2129
|
-
})) : /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2104
|
+
}))) : (/*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2130
2105
|
style: {
|
|
2131
2106
|
color: 'rgb(24, 144, 255)',
|
|
2132
2107
|
"float": 'right',
|
|
2133
2108
|
marginTop: 2
|
|
2134
2109
|
}
|
|
2135
|
-
})));
|
|
2110
|
+
})))));
|
|
2136
2111
|
}));
|
|
2137
2112
|
}
|
|
2138
2113
|
function renderContent() {
|
|
2139
2114
|
var reload = props.reload;
|
|
2140
2115
|
if (NurseTypesMapping[activeTemplate]) {
|
|
2141
2116
|
var Component = NurseTypesMapping[activeTemplate]['component'];
|
|
2142
|
-
return /*#__PURE__*/React$1.createElement(Component,
|
|
2117
|
+
return /*#__PURE__*/React$1.createElement(Component, __assign({}, props, {
|
|
2143
2118
|
activeItem: activeItem,
|
|
2144
2119
|
onRefresh: handleInit,
|
|
2145
2120
|
reload: reload,
|
|
@@ -2150,33 +2125,33 @@ function MammaryCancer(props) {
|
|
|
2150
2125
|
}
|
|
2151
2126
|
}
|
|
2152
2127
|
console.log('zzx item', activeItem);
|
|
2153
|
-
return /*#__PURE__*/React$1.createElement(
|
|
2128
|
+
return /*#__PURE__*/React$1.createElement(Row, {
|
|
2154
2129
|
style: {
|
|
2155
2130
|
height: '100%'
|
|
2156
2131
|
}
|
|
2157
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
2132
|
+
}, /*#__PURE__*/React$1.createElement(Col, {
|
|
2158
2133
|
style: {
|
|
2159
2134
|
height: '100%',
|
|
2160
2135
|
width: 290,
|
|
2161
|
-
overflow: '
|
|
2136
|
+
overflow: 'auto',
|
|
2162
2137
|
backgroundColor: '#fff'
|
|
2163
2138
|
}
|
|
2164
|
-
}, renderSider()), /*#__PURE__*/React$1.createElement(
|
|
2139
|
+
}, renderSider()), /*#__PURE__*/React$1.createElement(Col, {
|
|
2165
2140
|
style: {
|
|
2166
2141
|
height: '100%',
|
|
2167
2142
|
width: 'calc(100% - 290px)',
|
|
2168
|
-
overflow: '
|
|
2143
|
+
overflow: 'auto'
|
|
2169
2144
|
}
|
|
2170
|
-
}, renderContent()), /*#__PURE__*/React$1.createElement(
|
|
2171
|
-
|
|
2145
|
+
}, renderContent()), /*#__PURE__*/React$1.createElement(Modal, {
|
|
2146
|
+
open: visible,
|
|
2172
2147
|
onCancel: function onCancel() {
|
|
2173
2148
|
set_visible(false);
|
|
2174
2149
|
},
|
|
2175
2150
|
onOk: function onOk() {
|
|
2176
2151
|
set_visible(false);
|
|
2177
2152
|
}
|
|
2178
|
-
},
|
|
2179
|
-
return /*#__PURE__*/React$1.createElement(
|
|
2153
|
+
}, map(NurseTypesMapping, function (nurseType, key) {
|
|
2154
|
+
return /*#__PURE__*/React$1.createElement(Button, {
|
|
2180
2155
|
style: {
|
|
2181
2156
|
margin: 8
|
|
2182
2157
|
},
|
|
@@ -2217,10 +2192,10 @@ function TowCancerExam(props) {
|
|
|
2217
2192
|
_d.label = 3;
|
|
2218
2193
|
case 3:
|
|
2219
2194
|
_data = _a;
|
|
2220
|
-
return [2, (_b =
|
|
2195
|
+
return [2, (_b = get(_data, 'pageData.0')) !== null && _b !== void 0 ? _b : {}];
|
|
2221
2196
|
case 4:
|
|
2222
2197
|
if (!__DEV__) return [3, 6];
|
|
2223
|
-
return [4, sleep(2)];
|
|
2198
|
+
return [4, sleep(2 * 1000)];
|
|
2224
2199
|
case 5:
|
|
2225
2200
|
_d.sent();
|
|
2226
2201
|
return [2, null];
|
|
@@ -2241,26 +2216,25 @@ function TowCancerExam(props) {
|
|
|
2241
2216
|
});
|
|
2242
2217
|
return function () {};
|
|
2243
2218
|
}, []);
|
|
2244
|
-
var empty_node = loading ? /*#__PURE__*/React$1.createElement(LoadingPlaceholder, null) : /*#__PURE__*/React$1.createElement(
|
|
2219
|
+
var empty_node = loading ? /*#__PURE__*/React$1.createElement(LoadingPlaceholder, null) : /*#__PURE__*/React$1.createElement(Result, {
|
|
2245
2220
|
status: "warning",
|
|
2246
2221
|
title: "\u8BF7\u5148\u5EFA\u6863",
|
|
2247
2222
|
extra: null
|
|
2248
2223
|
});
|
|
2249
2224
|
return data ? /*#__PURE__*/React$1.createElement("div", {
|
|
2250
2225
|
style: {
|
|
2251
|
-
height: '100%'
|
|
2252
|
-
overflowY: 'scroll'
|
|
2226
|
+
height: '100%'
|
|
2253
2227
|
}
|
|
2254
2228
|
}, /*#__PURE__*/React$1.createElement(PanelWithChildFC, {
|
|
2255
2229
|
headerItems: [{
|
|
2256
2230
|
title: '姓名',
|
|
2257
|
-
value:
|
|
2231
|
+
value: get(data, 'name')
|
|
2258
2232
|
}, {
|
|
2259
2233
|
title: '年龄',
|
|
2260
|
-
value:
|
|
2234
|
+
value: get(data, 'age')
|
|
2261
2235
|
}, {
|
|
2262
2236
|
title: '门诊号',
|
|
2263
|
-
value:
|
|
2237
|
+
value: get(data, 'outpatientNo')
|
|
2264
2238
|
}],
|
|
2265
2239
|
tabItems: [{
|
|
2266
2240
|
key: 'CervicalCarcinoma',
|
|
@@ -2302,4 +2276,3 @@ function TowCancerExam(props) {
|
|
|
2302
2276
|
})) : empty_node;
|
|
2303
2277
|
}
|
|
2304
2278
|
export { TowCancerExam as default };
|
|
2305
|
-
//# sourceMappingURL=.root33.js.map
|