@lm_fe/pages-fubao 0.1.201 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/a_chunks/{.root55.js → CervicalCarcinoma.Screening.form.js} +1 -8
- package/dist/a_chunks/{.root57.js → CervicalCarcinoma.Screening.form2.js} +0 -7
- package/dist/a_chunks/Form.js +3 -5
- package/dist/a_chunks/{.root56.js → MammaryCancer.Screening.form.js} +4 -28
- package/dist/a_chunks/{.root58.js → MammaryCancer.Screening.form2.js} +0 -1
- 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/{.root.js → family-planning.file-management.doctor-desk.js} +241 -281
- package/dist/a_chunks/family-planning.file-management.doctor-desk2.js +18 -0
- package/dist/a_chunks/{.root9.js → family-planning.file-management.list.js} +16 -26
- package/dist/a_chunks/{.root2.js → family-planning.file-management.nurse-desk.js} +22 -30
- package/dist/a_chunks/{.root13.js → family-planning.tracing-management.list.js} +300 -331
- package/dist/a_chunks/folic-acid.file-management.add.js +12 -0
- package/dist/a_chunks/folic-acid.file-management.edit.js +12 -0
- package/dist/a_chunks/{.root16.js → folic-acid.file-management.list.js} +4 -6
- package/dist/a_chunks/{.root17.js → follow-up.positive.premarital.js} +11 -2
- package/dist/a_chunks/{.root18.js → follow-up.positive.progestation.js} +10 -1
- package/dist/a_chunks/form_config.js +11 -130
- package/dist/a_chunks/{.root3.js → fubao.data-report.breast-cancer.js} +4 -6
- package/dist/a_chunks/{.root4.js → fubao.data-report.cervical-cancer.js} +4 -6
- package/dist/a_chunks/{.root5.js → fubao.family-planning.booking-management.js} +3 -3
- package/dist/a_chunks/{.root52.js → fubao.family-planning.booking-management2.js} +167 -219
- package/dist/a_chunks/{.root6.js → fubao.family-planning.curettage-statistics.js} +6 -9
- package/dist/a_chunks/fubao.family-planning.file-management.js +9 -0
- package/dist/a_chunks/{.root10.js → fubao.family-planning.surgery-management.js} +9 -15
- package/dist/a_chunks/{.root11.js → fubao.family-planning.surgery-scheduling.js} +210 -244
- package/dist/a_chunks/fubao.family-planning.tracing-management.js +14 -0
- package/dist/a_chunks/{.root28.js → fubao.gynecological-diseases.pathological-follow-up.js} +11 -15
- package/dist/a_chunks/{.root29.js → fubao.gynecological-diseases.pathological-reminder.js} +11 -15
- package/dist/a_chunks/fubao.gynecological-diseases.two-cancers.js +141 -0
- package/dist/a_chunks/fubao.pre-pregnancy-care.file-management.js +492 -0
- package/dist/a_chunks/{.root44.js → fubao.premarital-care.file-management.js} +13 -19
- package/dist/a_chunks/{.root47.js → fubao.report-entry.patients.js} +5 -8
- package/dist/a_chunks/{.root63.js → fubao.report-entry.patients2.js} +1 -2
- package/dist/a_chunks/{.root40.js → fubao.report-entry.reports.js} +3 -3
- package/dist/a_chunks/{.root62.js → fubao.report-entry.reports2.js} +64 -65
- package/dist/a_chunks/{.root64.js → fubao.report-entry.reports3.js} +0 -1
- package/dist/a_chunks/{.root65.js → fubao.report-entry.reports4.js} +0 -1
- package/dist/a_chunks/fubao.statistic.abnormal-breast-cancer.js +97 -0
- package/dist/a_chunks/fubao.statistic.abnormal-cervical-cancer.js +94 -0
- package/dist/a_chunks/{.root48.js → fubao.statistic.breast-cancer.js} +0 -1
- package/dist/a_chunks/{.root49.js → fubao.statistic.cervical-cancer.js} +0 -1
- package/dist/a_chunks/fubao.statistic.premarital-checkup.js +120 -0
- package/dist/a_chunks/fubao.statistic.progestation-checkup.js +89 -0
- package/dist/a_chunks/{.root19.js → gynecological-diseases.adolescent-management.list.js} +16 -27
- package/dist/a_chunks/gynecological-diseases.breast.edit.js +121 -0
- package/dist/a_chunks/{.root21.js → gynecological-diseases.breast.list.js} +16 -18
- package/dist/a_chunks/{.root24.js → gynecological-diseases.cervical-cancer-report.list.js} +10 -14
- package/dist/a_chunks/gynecological-diseases.cervical.edit.js +121 -0
- package/dist/a_chunks/{.root23.js → gynecological-diseases.cervical.list.js} +16 -18
- package/dist/a_chunks/{.root25.js → gynecological-diseases.hpv-report.list.js} +10 -14
- package/dist/a_chunks/{.root26.js → gynecological-diseases.mammary-cancer-report.list.js} +10 -14
- package/dist/a_chunks/{.root27.js → gynecological-diseases.menopause-management.list.js} +16 -27
- package/dist/a_chunks/{.root30.js → gynecological-diseases.regular-screening.list.js} +9 -14
- package/dist/a_chunks/gynecological-diseases.two-cancers.add.js +12 -0
- package/dist/a_chunks/{.root32.js → gynecological-diseases.two-cancers.edit.js} +11 -19
- package/dist/a_chunks/{.root33.js → gynecological-diseases.two-cancers.exam.js} +309 -336
- package/dist/a_chunks/{.root34.js → gynecological-diseases.two-cancers.followup.js} +1 -2
- 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 +140 -0
- package/dist/a_chunks/index6.js +1169 -0
- package/dist/a_chunks/index7.js +1006 -0
- package/dist/a_chunks/{.root61.js → pages.fubao.premarital-care.js} +4 -5
- package/dist/a_chunks/pages.fubao.premarital-care2.js +114 -0
- package/dist/a_chunks/pages.fubao.premarital-care3.js +132 -0
- package/dist/a_chunks/pre-pregnancy-care.file-management.add.js +12 -0
- package/dist/a_chunks/pre-pregnancy-care.file-management.edit.js +199 -0
- package/dist/a_chunks/pre-pregnancy-care.file-management.edit2.js +830 -0
- package/dist/a_chunks/{.root39.js → pre-pregnancy-care.husband.husband-exam.js} +57 -84
- package/dist/a_chunks/{.root41.js → pre-pregnancy-care.wife.wife-exam.js} +57 -84
- package/dist/a_chunks/premarital-care.file-management.add.js +12 -0
- package/dist/a_chunks/{.root59.js → premarital-care.file-management.config.js} +10 -11
- package/dist/a_chunks/{.root60.js → premarital-care.file-management.config2.js} +0 -1
- package/dist/a_chunks/premarital-care.file-management.edit.js +199 -0
- package/dist/a_chunks/premarital-care.file-management.edit2.js +817 -0
- package/dist/a_chunks/{.root45.js → premarital-care.husband-v2.husband-exam.js} +56 -83
- package/dist/a_chunks/{.root46.js → premarital-care.wife-v2.wife-exam.js} +56 -83
- package/dist/a_chunks/style-inject.es.js +0 -1
- package/dist/a_chunks/tslib.es6.js +1 -2
- package/dist/a_chunks/{.root53.js → two-cancers.edit.form_config.js} +1 -2
- package/dist/a_chunks/{.root54.js → two-cancers.edit.form_config2.js} +4 -5
- package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js +0 -1
- package/dist/index.js +59 -54
- 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/gynecological-diseases/pathological-follow-up/config/table.d.ts +2 -1
- package/dist/pages/fubao/gynecological-diseases/pathological-reminder/config/table.d.ts +2 -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/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 +0 -45
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js +0 -26
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js +0 -26
- 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 +0 -125
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js +0 -125
- 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 +0 -20
- 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 +0 -281
- package/dist/a_chunks/.root35.js.map +0 -1
- package/dist/a_chunks/.root36.js +0 -26
- package/dist/a_chunks/.root36.js.map +0 -1
- package/dist/a_chunks/.root37.js +0 -1497
- package/dist/a_chunks/.root37.js.map +0 -1
- package/dist/a_chunks/.root38.js +0 -2956
- 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 +0 -26
- package/dist/a_chunks/.root42.js.map +0 -1
- package/dist/a_chunks/.root43.js +0 -1542
- 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 +0 -263
- package/dist/a_chunks/.root50.js.map +0 -1
- package/dist/a_chunks/.root51.js +0 -232
- 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 +0 -58
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js +0 -19
- 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/common.js
CHANGED
package/dist/a_chunks/config.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _set from 'lodash/set';
|
|
3
|
-
import _isEqual from 'lodash/isEqual';
|
|
4
|
-
import _get from 'lodash/get';
|
|
5
|
-
import { b as __extends, _ as __awaiter, a as __generator, c as __assign } from './tslib.es6.js';
|
|
6
|
-
import 'antd/es/message/style';
|
|
7
|
-
import _message from 'antd/es/message';
|
|
8
|
-
import 'antd/es/space/style';
|
|
9
|
-
import _Space from 'antd/es/space';
|
|
1
|
+
import { c as __extends, _ as __awaiter, a as __generator, b as __assign } from './tslib.es6.js';
|
|
10
2
|
import { calEddByLmp, BaseEditPanelForm, formDescriptionsWithoutSectionApi, BaseEditPanel } from '@lm_fe/components_m';
|
|
3
|
+
import { Space, message } from 'antd';
|
|
4
|
+
import { get, set, map, dropRight, join, isNil, isEqual, isEmpty } from 'lodash';
|
|
11
5
|
import dayjs from 'dayjs';
|
|
12
6
|
import { SLocal_Calculator } from '@lm_fe/service';
|
|
13
|
-
import _join from 'lodash/join';
|
|
14
|
-
import _dropRight from 'lodash/dropRight';
|
|
15
|
-
import _isNil from 'lodash/isNil';
|
|
16
|
-
import _map from 'lodash/map';
|
|
17
7
|
import { safe_json_parse, formatTime, formatDateTime, safe_json_stringify, fubaoRequest } from '@lm_fe/utils';
|
|
18
8
|
import React$1 from 'react';
|
|
19
9
|
var AdmissionForm$2 = function (_super) {
|
|
@@ -21,7 +11,7 @@ var AdmissionForm$2 = function (_super) {
|
|
|
21
11
|
function AdmissionForm() {
|
|
22
12
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
23
13
|
_this.renderBtns = function () {
|
|
24
|
-
return
|
|
14
|
+
return React.createElement(Space, {
|
|
25
15
|
size: "middle"
|
|
26
16
|
}, _this.renderSubmitBtn(), _this.renderPrintBtn());
|
|
27
17
|
};
|
|
@@ -31,25 +21,25 @@ var AdmissionForm$2 = function (_super) {
|
|
|
31
21
|
return __generator(this, function (_b) {
|
|
32
22
|
_a = this.props, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection, extraEvents = _a.extraEvents;
|
|
33
23
|
form = this.form;
|
|
34
|
-
if (
|
|
35
|
-
if (
|
|
36
|
-
|
|
24
|
+
if (get(allValues, 'earlyPregnancyCheckMedicalHistory.parity')) {
|
|
25
|
+
if (get(allValues, 'earlyPregnancyCheckMedicalHistory.parity') > get(allValues, 'earlyPregnancyCheckMedicalHistory.conceived')) {
|
|
26
|
+
set(formDescriptionsWithoutSection, ['earlyPregnancyCheckMedicalHistory.parity', 'inputProps', 'style'], {
|
|
37
27
|
color: '#ff0000',
|
|
38
28
|
width: 156
|
|
39
29
|
});
|
|
40
30
|
extraEvents.handleChangeRed(formDescriptionsWithoutSection);
|
|
41
|
-
|
|
31
|
+
message.warning('产次>孕次,请检查孕次、产次输入的内容!');
|
|
42
32
|
} else {
|
|
43
|
-
|
|
33
|
+
set(formDescriptionsWithoutSection, ['earlyPregnancyCheckMedicalHistory.parity', 'inputProps', 'style'], {
|
|
44
34
|
color: 'rgba(0,0,0,.85)',
|
|
45
35
|
width: 156
|
|
46
36
|
});
|
|
47
37
|
extraEvents.handleChangeRed(formDescriptionsWithoutSection);
|
|
48
38
|
}
|
|
49
39
|
}
|
|
50
|
-
if (
|
|
51
|
-
dueDate = calEddByLmp(
|
|
52
|
-
gestationalWeek = SLocal_Calculator.calGestationalWeekByLmp(
|
|
40
|
+
if (get(changedValues, 'earlyPregnancyCheckMedicalHistory.lmd')) {
|
|
41
|
+
dueDate = calEddByLmp(get(changedValues, 'earlyPregnancyCheckMedicalHistory.lmd'));
|
|
42
|
+
gestationalWeek = SLocal_Calculator.calGestationalWeekByLmp(get(changedValues, 'earlyPregnancyCheckMedicalHistory.lmd'));
|
|
53
43
|
form && form.setFieldsValue({
|
|
54
44
|
earlyPregnancyCheckMedicalHistory: {
|
|
55
45
|
dueDate: dueDate,
|
|
@@ -57,8 +47,8 @@ var AdmissionForm$2 = function (_super) {
|
|
|
57
47
|
}
|
|
58
48
|
});
|
|
59
49
|
}
|
|
60
|
-
if (
|
|
61
|
-
appointmentWeeksLater =
|
|
50
|
+
if (get(changedValues, 'earlyPregnancyCheckDiagnosisAndTreatment.appointmentWeeksLater')) {
|
|
51
|
+
appointmentWeeksLater = get(changedValues, 'earlyPregnancyCheckDiagnosisAndTreatment.appointmentWeeksLater');
|
|
62
52
|
if (appointmentWeeksLater === 1) {
|
|
63
53
|
appointmentSpecificDate = dayjs().add(7, 'd');
|
|
64
54
|
form && form.setFieldsValue({
|
|
@@ -94,56 +84,56 @@ var AdmissionForm$2 = function (_super) {
|
|
|
94
84
|
}(BaseEditPanelForm);
|
|
95
85
|
var valueToApi = function valueToApi(values, nativeFormDescriptions) {
|
|
96
86
|
var result = {};
|
|
97
|
-
|
|
87
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
98
88
|
var inputType = item.inputType;
|
|
99
|
-
var itemVaule =
|
|
89
|
+
var itemVaule = get(values, key);
|
|
100
90
|
switch (inputType) {
|
|
101
91
|
case 'radio_input':
|
|
102
92
|
var k = key.split('.').pop();
|
|
103
|
-
|
|
104
|
-
|
|
93
|
+
set(result, key, get(itemVaule, "".concat(k)));
|
|
94
|
+
set(result, "".concat(key, "Note"), get(itemVaule, "".concat(k, "Note")));
|
|
105
95
|
break;
|
|
106
96
|
case 'checkbox_with_single_input':
|
|
107
|
-
|
|
108
|
-
|
|
97
|
+
set(result, key, get(itemVaule, 'key'));
|
|
98
|
+
set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
|
|
109
99
|
break;
|
|
110
100
|
case 'single_date_picker':
|
|
111
|
-
|
|
101
|
+
set(result, key, formatDateTime(itemVaule));
|
|
112
102
|
break;
|
|
113
103
|
case 'single_time_picker':
|
|
114
|
-
|
|
104
|
+
set(result, key, formatTime(itemVaule));
|
|
115
105
|
break;
|
|
116
106
|
case 'dictionary_select':
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
set(result, key, get(itemVaule, 'key'));
|
|
108
|
+
set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
|
|
119
109
|
break;
|
|
120
110
|
case 'checkbox_with_input':
|
|
121
111
|
var valueJson = safe_json_parse(itemVaule);
|
|
122
|
-
|
|
123
|
-
|
|
112
|
+
set(result, key, get(valueJson, 'checkedValues.0'));
|
|
113
|
+
set(result, "".concat(key, "Note"), get(valueJson, ['withInputValues', "".concat(get(valueJson, 'checkedValues.0')), 'value', '0']));
|
|
124
114
|
break;
|
|
125
115
|
case 'knowledge_base':
|
|
126
|
-
|
|
127
|
-
|
|
116
|
+
set(result, key, get(itemVaule, 'type'));
|
|
117
|
+
set(result, 'postoperationMissionsContent', get(itemVaule, 'content'));
|
|
128
118
|
break;
|
|
129
119
|
case 'pressure':
|
|
130
120
|
var pressure_arr = key.split('.');
|
|
131
121
|
var pressure_key = void 0;
|
|
132
122
|
if (pressure_arr.length > 1) {
|
|
133
|
-
pressure_arr =
|
|
134
|
-
pressure_key =
|
|
135
|
-
|
|
136
|
-
|
|
123
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
124
|
+
pressure_key = join(pressure_arr, '.');
|
|
125
|
+
set(result, "".concat(pressure_key, ".systolic"), get(itemVaule, 'systolic'));
|
|
126
|
+
set(result, "".concat(pressure_key, ".diastolic"), get(itemVaule, 'diastolic'));
|
|
137
127
|
} else {
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
set(result, 'systolic', get(itemVaule, 'systolic'));
|
|
129
|
+
set(result, 'diastolic', get(itemVaule, 'diastolic'));
|
|
140
130
|
}
|
|
141
131
|
break;
|
|
142
132
|
default:
|
|
143
|
-
if (key === 'postoperationMissionsContent' &&
|
|
144
|
-
|
|
133
|
+
if (key === 'postoperationMissionsContent' && get(result, 'postoperationMissionsContent')) {
|
|
134
|
+
set(result, key, get(result, 'postoperationMissionsContent'));
|
|
145
135
|
} else {
|
|
146
|
-
|
|
136
|
+
set(result, key, itemVaule);
|
|
147
137
|
}
|
|
148
138
|
break;
|
|
149
139
|
}
|
|
@@ -151,61 +141,61 @@ var valueToApi = function valueToApi(values, nativeFormDescriptions) {
|
|
|
151
141
|
return result;
|
|
152
142
|
};
|
|
153
143
|
var valueToForm = function valueToForm(values, nativeFormDescriptions) {
|
|
154
|
-
|
|
144
|
+
map(nativeFormDescriptions, function (item, key) {
|
|
155
145
|
var _a;
|
|
156
146
|
var inputType = item.inputType;
|
|
157
|
-
var itemVaule =
|
|
147
|
+
var itemVaule = get(values, key);
|
|
158
148
|
switch (inputType) {
|
|
159
149
|
case 'checkbox_with_single_input':
|
|
160
|
-
if (!
|
|
161
|
-
|
|
162
|
-
|
|
150
|
+
if (!isNil(itemVaule)) {
|
|
151
|
+
set(values, "".concat(key, ".key"), itemVaule);
|
|
152
|
+
set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
|
|
163
153
|
}
|
|
164
154
|
break;
|
|
165
155
|
case 'dictionary_select':
|
|
166
|
-
if (!
|
|
167
|
-
|
|
168
|
-
|
|
156
|
+
if (!isNil(itemVaule)) {
|
|
157
|
+
set(values, "".concat(key, ".key"), itemVaule);
|
|
158
|
+
set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
|
|
169
159
|
}
|
|
170
160
|
break;
|
|
171
161
|
case 'checkbox_with_input':
|
|
172
|
-
if (!
|
|
162
|
+
if (!isNil(itemVaule)) {
|
|
173
163
|
var checkBoxValue = {
|
|
174
164
|
checkedValues: [itemVaule],
|
|
175
165
|
withInputValues: (_a = {}, _a[itemVaule] = {
|
|
176
166
|
key: itemVaule,
|
|
177
167
|
value: {
|
|
178
|
-
'0':
|
|
168
|
+
'0': get(values, "".concat(key, "Note"))
|
|
179
169
|
}
|
|
180
170
|
}, _a)
|
|
181
171
|
};
|
|
182
|
-
|
|
172
|
+
set(values, key, safe_json_stringify(checkBoxValue));
|
|
183
173
|
}
|
|
184
174
|
break;
|
|
185
175
|
case 'knowledge_base':
|
|
186
|
-
if (!
|
|
187
|
-
|
|
188
|
-
|
|
176
|
+
if (!isNil(itemVaule)) {
|
|
177
|
+
set(values, "".concat(key, ".type"), itemVaule);
|
|
178
|
+
set(values, "".concat(key, ".content"), get(values, 'postoperationMissionsContent'));
|
|
189
179
|
}
|
|
190
180
|
break;
|
|
191
181
|
case 'pressure':
|
|
192
|
-
if (!
|
|
182
|
+
if (!isNil(itemVaule)) {
|
|
193
183
|
var pressure_arr = key.split('.');
|
|
194
184
|
var pressure_key = void 0;
|
|
195
185
|
if (pressure_arr.length > 1) {
|
|
196
|
-
pressure_arr =
|
|
197
|
-
pressure_key =
|
|
198
|
-
|
|
199
|
-
|
|
186
|
+
pressure_arr = dropRight(pressure_arr, 1);
|
|
187
|
+
pressure_key = join(pressure_arr, '.');
|
|
188
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
189
|
+
set(values, "".concat(key, ".diastolic"), get(values, "".concat(pressure_key, ".diastolic")));
|
|
200
190
|
} else {
|
|
201
|
-
|
|
202
|
-
|
|
191
|
+
set(values, "".concat(key, ".systolic"), itemVaule);
|
|
192
|
+
set(values, "".concat(key, ".diastolic"), get(values, "diastolic"));
|
|
203
193
|
}
|
|
204
194
|
}
|
|
205
195
|
break;
|
|
206
196
|
default:
|
|
207
|
-
if (!
|
|
208
|
-
|
|
197
|
+
if (!isNil(itemVaule)) {
|
|
198
|
+
set(values, key, itemVaule);
|
|
209
199
|
}
|
|
210
200
|
break;
|
|
211
201
|
}
|
|
@@ -228,10 +218,7 @@ var form_config$2 = [{
|
|
|
228
218
|
"tranferRules": {
|
|
229
219
|
'path': 'physicalExamMeasure.weight'
|
|
230
220
|
},
|
|
231
|
-
|
|
232
|
-
'required': true,
|
|
233
|
-
'message': '体重(kg)是必填项'
|
|
234
|
-
}],
|
|
221
|
+
required: true,
|
|
235
222
|
"inputProps": {
|
|
236
223
|
'placeholder': '请输入体重',
|
|
237
224
|
'style': {
|
|
@@ -256,10 +243,7 @@ var form_config$2 = [{
|
|
|
256
243
|
"tranferRules": {
|
|
257
244
|
'path': 'physicalExamMeasure.bloodPressure'
|
|
258
245
|
},
|
|
259
|
-
|
|
260
|
-
'required': true,
|
|
261
|
-
'message': '血压(mmHg)是必填项'
|
|
262
|
-
}],
|
|
246
|
+
required: true,
|
|
263
247
|
"inputProps": {
|
|
264
248
|
'style': {
|
|
265
249
|
'width': 156
|
|
@@ -283,10 +267,7 @@ var form_config$2 = [{
|
|
|
283
267
|
"tranferRules": {
|
|
284
268
|
'path': 'physicalExamMeasure.weight'
|
|
285
269
|
},
|
|
286
|
-
|
|
287
|
-
'required': true,
|
|
288
|
-
'message': '体温(°C)是必填项'
|
|
289
|
-
}],
|
|
270
|
+
required: true,
|
|
290
271
|
"inputProps": {
|
|
291
272
|
'placeholder': '请输入体温',
|
|
292
273
|
'style': {
|
|
@@ -820,21 +801,21 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
820
801
|
_a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
821
802
|
basicInfo = this.props.basicInfo;
|
|
822
803
|
values = {};
|
|
823
|
-
if (!
|
|
824
|
-
return [4, fubaoRequest.get("/api/family/planning/getFamilyPlanningEarlyPregnancyCheck?id.equals=".concat(
|
|
804
|
+
if (!get(activeItem, 'id')) return [3, 2];
|
|
805
|
+
return [4, fubaoRequest.get("/api/family/planning/getFamilyPlanningEarlyPregnancyCheck?id.equals=".concat(get(activeItem, 'id'), "&checkType.equals=").concat(get(activeItem, 'checkType'), "&deleteFlag.equals=0"))];
|
|
825
806
|
case 1:
|
|
826
807
|
values = _b.sent().data;
|
|
827
808
|
_b.label = 2;
|
|
828
809
|
case 2:
|
|
829
|
-
values =
|
|
810
|
+
values = get(values, 'data.0');
|
|
830
811
|
data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
|
|
831
|
-
formKey =
|
|
832
|
-
earlyPregnancyCheckDiagnosisInformations =
|
|
812
|
+
formKey = get(data, 'id') || Math.random();
|
|
813
|
+
earlyPregnancyCheckDiagnosisInformations = get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations');
|
|
833
814
|
if (earlyPregnancyCheckDiagnosisInformations) {
|
|
834
|
-
|
|
815
|
+
set(data, "earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations.list", earlyPregnancyCheckDiagnosisInformations);
|
|
835
816
|
}
|
|
836
|
-
if (!
|
|
837
|
-
if (!
|
|
817
|
+
if (!get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.registrationDate')) set(data, 'earlyPregnancyCheckDiagnosisAndTreatment.registrationDate', dayjs(new Date()));
|
|
818
|
+
if (!get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.diagnoseDoctor')) set(data, 'earlyPregnancyCheckDiagnosisAndTreatment.diagnoseDoctor', get(basicInfo, 'firstName'));
|
|
838
819
|
this.setState({
|
|
839
820
|
data: data,
|
|
840
821
|
formKey: formKey
|
|
@@ -852,22 +833,22 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
852
833
|
case 0:
|
|
853
834
|
_a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
|
|
854
835
|
_b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
|
|
855
|
-
earlyPregnancyCheckDiagnosisAndTreatment =
|
|
856
|
-
earlyPregnancyCheckInspection =
|
|
857
|
-
earlyPregnancyCheckMedicalHistory =
|
|
858
|
-
womenHealthcarePhysicalExamination =
|
|
836
|
+
earlyPregnancyCheckDiagnosisAndTreatment = get(data, 'earlyPregnancyCheckDiagnosisAndTreatment');
|
|
837
|
+
earlyPregnancyCheckInspection = get(data, 'earlyPregnancyCheckInspection');
|
|
838
|
+
earlyPregnancyCheckMedicalHistory = get(data, 'earlyPregnancyCheckMedicalHistory');
|
|
839
|
+
womenHealthcarePhysicalExamination = get(data, 'womenHealthcarePhysicalExamination');
|
|
859
840
|
params = valueToApi(values, formDescriptionsWithoutSection);
|
|
860
|
-
earlyPregnancyCheckDiagnosisInformations =
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
841
|
+
earlyPregnancyCheckDiagnosisInformations = get(params, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations.list');
|
|
842
|
+
set(params, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations', earlyPregnancyCheckDiagnosisInformations);
|
|
843
|
+
set(params, 'earlyPregnancyCheckDiagnosisAndTreatment.id', get(earlyPregnancyCheckDiagnosisAndTreatment, 'id'));
|
|
844
|
+
set(params, 'earlyPregnancyCheckInspection.id', get(earlyPregnancyCheckInspection, 'id'));
|
|
845
|
+
set(params, 'earlyPregnancyCheckMedicalHistory.id', get(earlyPregnancyCheckMedicalHistory, 'id'));
|
|
846
|
+
set(params, 'womenHealthcarePhysicalExamination.id', get(womenHealthcarePhysicalExamination, 'id'));
|
|
866
847
|
params = __assign(__assign(__assign({}, data), params), {
|
|
867
848
|
checkType: '早孕检查',
|
|
868
849
|
familyPlanningId: Number(id)
|
|
869
850
|
});
|
|
870
|
-
if (!
|
|
851
|
+
if (!get(values, 'id')) return [3, 2];
|
|
871
852
|
return [4, fubaoRequest.put('/api/family/planning/updateFamilyPlanningEarlyPregnancyCheck', params)];
|
|
872
853
|
case 1:
|
|
873
854
|
_res = _c.sent();
|
|
@@ -890,7 +871,7 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
890
871
|
}
|
|
891
872
|
AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
892
873
|
var activeItem = nextProps.activeItem;
|
|
893
|
-
if (!
|
|
874
|
+
if (!isEqual(activeItem, prevState.activeItem)) {
|
|
894
875
|
return {
|
|
895
876
|
activeItem: activeItem
|
|
896
877
|
};
|
|
@@ -898,7 +879,7 @@ var AdmissionPanel$2 = function (_super) {
|
|
|
898
879
|
return null;
|
|
899
880
|
};
|
|
900
881
|
AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
901
|
-
if (!
|
|
882
|
+
if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
|
|
902
883
|
this.handleInit();
|
|
903
884
|
}
|
|
904
885
|
};
|
|
@@ -936,7 +917,7 @@ var AdmissionForm$1 = function (_super) {
|
|
|
936
917
|
function AdmissionForm() {
|
|
937
918
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
938
919
|
_this.renderBtns = function () {
|
|
939
|
-
return /*#__PURE__*/React$1.createElement(
|
|
920
|
+
return /*#__PURE__*/React$1.createElement(Space, {
|
|
940
921
|
size: "middle"
|
|
941
922
|
}, _this.renderSubmitBtn(), _this.renderPrintBtn());
|
|
942
923
|
};
|
|
@@ -945,8 +926,8 @@ var AdmissionForm$1 = function (_super) {
|
|
|
945
926
|
var form, appointmentWeeksLater, appointmentSpecificDate, appointmentSpecificDate, appointmentSpecificDate;
|
|
946
927
|
return __generator(this, function (_a) {
|
|
947
928
|
form = this.form;
|
|
948
|
-
if (
|
|
949
|
-
appointmentWeeksLater =
|
|
929
|
+
if (get(changedValues, 'earlyPregnancyCheckDiagnosisAndTreatment.appointmentWeeksLater')) {
|
|
930
|
+
appointmentWeeksLater = get(changedValues, 'earlyPregnancyCheckDiagnosisAndTreatment.appointmentWeeksLater');
|
|
950
931
|
if (appointmentWeeksLater === 1) {
|
|
951
932
|
appointmentSpecificDate = dayjs().add(7, 'd');
|
|
952
933
|
form && form.setFieldsValue({
|
|
@@ -1486,21 +1467,21 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1486
1467
|
_a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
1487
1468
|
basicInfo = this.props.basicInfo;
|
|
1488
1469
|
values = {};
|
|
1489
|
-
if (!
|
|
1490
|
-
return [4, fubaoRequest.get("/api/family/planning/getFamilyPlanningEarlyPregnancyCheck?id.equals=".concat(
|
|
1470
|
+
if (!get(activeItem, 'id')) return [3, 2];
|
|
1471
|
+
return [4, fubaoRequest.get("/api/family/planning/getFamilyPlanningEarlyPregnancyCheck?id.equals=".concat(get(activeItem, 'id'), "&checkType.equals=").concat(get(activeItem, 'checkType'), "&deleteFlag.equals=0"))];
|
|
1491
1472
|
case 1:
|
|
1492
1473
|
values = _b.sent().data;
|
|
1493
1474
|
_b.label = 2;
|
|
1494
1475
|
case 2:
|
|
1495
|
-
values =
|
|
1476
|
+
values = get(values, 'data.0');
|
|
1496
1477
|
data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
|
|
1497
|
-
formKey =
|
|
1498
|
-
earlyPregnancyCheckDiagnosisInformations =
|
|
1478
|
+
formKey = get(data, 'id') || Math.random();
|
|
1479
|
+
earlyPregnancyCheckDiagnosisInformations = get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations');
|
|
1499
1480
|
if (earlyPregnancyCheckDiagnosisInformations) {
|
|
1500
|
-
|
|
1481
|
+
set(data, "earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations.list", earlyPregnancyCheckDiagnosisInformations);
|
|
1501
1482
|
}
|
|
1502
|
-
if (!
|
|
1503
|
-
if (!
|
|
1483
|
+
if (!get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.registrationDate')) set(data, 'earlyPregnancyCheckDiagnosisAndTreatment.registrationDate', dayjs(new Date()));
|
|
1484
|
+
if (!get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.diagnoseDoctor')) set(data, 'earlyPregnancyCheckDiagnosisAndTreatment.diagnoseDoctor', get(basicInfo, 'firstName'));
|
|
1504
1485
|
this.setState({
|
|
1505
1486
|
data: data,
|
|
1506
1487
|
formKey: formKey
|
|
@@ -1518,22 +1499,22 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1518
1499
|
case 0:
|
|
1519
1500
|
_a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
|
|
1520
1501
|
_b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
|
|
1521
|
-
earlyPregnancyCheckDiagnosisAndTreatment =
|
|
1522
|
-
earlyPregnancyCheckInspection =
|
|
1523
|
-
earlyPregnancyCheckMedicalHistory =
|
|
1524
|
-
womenHealthcarePhysicalExamination =
|
|
1502
|
+
earlyPregnancyCheckDiagnosisAndTreatment = get(data, 'earlyPregnancyCheckDiagnosisAndTreatment');
|
|
1503
|
+
earlyPregnancyCheckInspection = get(data, 'earlyPregnancyCheckInspection');
|
|
1504
|
+
earlyPregnancyCheckMedicalHistory = get(data, 'earlyPregnancyCheckMedicalHistory');
|
|
1505
|
+
womenHealthcarePhysicalExamination = get(data, 'womenHealthcarePhysicalExamination');
|
|
1525
1506
|
params = valueToApi(values, formDescriptionsWithoutSection);
|
|
1526
|
-
earlyPregnancyCheckDiagnosisInformations =
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1507
|
+
earlyPregnancyCheckDiagnosisInformations = get(params, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations.list');
|
|
1508
|
+
set(params, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations', earlyPregnancyCheckDiagnosisInformations);
|
|
1509
|
+
set(params, 'earlyPregnancyCheckDiagnosisAndTreatment.id', get(earlyPregnancyCheckDiagnosisAndTreatment, 'id'));
|
|
1510
|
+
set(params, 'earlyPregnancyCheckInspection.id', get(earlyPregnancyCheckInspection, 'id'));
|
|
1511
|
+
set(params, 'earlyPregnancyCheckMedicalHistory.id', get(earlyPregnancyCheckMedicalHistory, 'id'));
|
|
1512
|
+
set(params, 'womenHealthcarePhysicalExamination.id', get(womenHealthcarePhysicalExamination, 'id'));
|
|
1532
1513
|
params = __assign(__assign(__assign({}, data), params), {
|
|
1533
1514
|
checkType: '妇科肿瘤',
|
|
1534
1515
|
familyPlanningId: Number(id)
|
|
1535
1516
|
});
|
|
1536
|
-
if (!
|
|
1517
|
+
if (!get(values, 'id')) return [3, 2];
|
|
1537
1518
|
return [4, fubaoRequest.put('/api/family/planning/updateFamilyPlanningEarlyPregnancyCheck', params)];
|
|
1538
1519
|
case 1:
|
|
1539
1520
|
_res = _c.sent();
|
|
@@ -1556,7 +1537,7 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1556
1537
|
}
|
|
1557
1538
|
AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
1558
1539
|
var activeItem = nextProps.activeItem;
|
|
1559
|
-
if (!
|
|
1540
|
+
if (!isEqual(activeItem, prevState.activeItem)) {
|
|
1560
1541
|
return {
|
|
1561
1542
|
activeItem: activeItem
|
|
1562
1543
|
};
|
|
@@ -1564,7 +1545,7 @@ var AdmissionPanel$1 = function (_super) {
|
|
|
1564
1545
|
return null;
|
|
1565
1546
|
};
|
|
1566
1547
|
AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1567
|
-
if (!
|
|
1548
|
+
if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
|
|
1568
1549
|
this.handleInit();
|
|
1569
1550
|
}
|
|
1570
1551
|
};
|
|
@@ -1602,7 +1583,7 @@ var AdmissionForm = function (_super) {
|
|
|
1602
1583
|
function AdmissionForm() {
|
|
1603
1584
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1604
1585
|
_this.renderBtns = function () {
|
|
1605
|
-
return /*#__PURE__*/React$1.createElement(
|
|
1586
|
+
return /*#__PURE__*/React$1.createElement(Space, {
|
|
1606
1587
|
size: "middle"
|
|
1607
1588
|
}, _this.renderSubmitBtn(), _this.renderPrintBtn());
|
|
1608
1589
|
};
|
|
@@ -1611,8 +1592,8 @@ var AdmissionForm = function (_super) {
|
|
|
1611
1592
|
var form, appointmentWeeksLater, appointmentSpecificDate, appointmentSpecificDate, appointmentSpecificDate;
|
|
1612
1593
|
return __generator(this, function (_a) {
|
|
1613
1594
|
form = this.form;
|
|
1614
|
-
if (
|
|
1615
|
-
appointmentWeeksLater =
|
|
1595
|
+
if (get(changedValues, 'earlyPregnancyCheckDiagnosisAndTreatment.appointmentWeeksLater')) {
|
|
1596
|
+
appointmentWeeksLater = get(changedValues, 'earlyPregnancyCheckDiagnosisAndTreatment.appointmentWeeksLater');
|
|
1616
1597
|
if (appointmentWeeksLater === 1) {
|
|
1617
1598
|
appointmentSpecificDate = dayjs().add(7, 'd');
|
|
1618
1599
|
form && form.setFieldsValue({
|
|
@@ -1724,10 +1705,7 @@ var form_config = [{
|
|
|
1724
1705
|
"key": "womenHealthcarePhysicalExamination.weight",
|
|
1725
1706
|
"label": "体重(kg)",
|
|
1726
1707
|
"inputType": "input_number",
|
|
1727
|
-
|
|
1728
|
-
'required': true,
|
|
1729
|
-
'message': '体重(kg)是必填项'
|
|
1730
|
-
}],
|
|
1708
|
+
required: true,
|
|
1731
1709
|
"inputProps": {
|
|
1732
1710
|
'placeholder': '请输入体重',
|
|
1733
1711
|
'style': {
|
|
@@ -1749,10 +1727,7 @@ var form_config = [{
|
|
|
1749
1727
|
"key": "womenHealthcarePhysicalExamination.systolic",
|
|
1750
1728
|
"label": "血压(mmHg)",
|
|
1751
1729
|
"inputType": "pressure",
|
|
1752
|
-
|
|
1753
|
-
'required': true,
|
|
1754
|
-
'message': '血压(mmHg)是必填项'
|
|
1755
|
-
}],
|
|
1730
|
+
required: true,
|
|
1756
1731
|
"inputProps": {
|
|
1757
1732
|
'style': {
|
|
1758
1733
|
'width': 156
|
|
@@ -1773,10 +1748,7 @@ var form_config = [{
|
|
|
1773
1748
|
"key": "womenHealthcarePhysicalExamination.bodyTemperature",
|
|
1774
1749
|
"label": "体温(°C)",
|
|
1775
1750
|
"inputType": "input_number",
|
|
1776
|
-
|
|
1777
|
-
'required': true,
|
|
1778
|
-
'message': '体温(°C)是必填项'
|
|
1779
|
-
}],
|
|
1751
|
+
required: true,
|
|
1780
1752
|
"inputProps": {
|
|
1781
1753
|
'placeholder': '请输入体温',
|
|
1782
1754
|
'style': {
|
|
@@ -2007,21 +1979,21 @@ var AdmissionPanel = function (_super) {
|
|
|
2007
1979
|
_a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
|
|
2008
1980
|
basicInfo = this.props.basicInfo;
|
|
2009
1981
|
values = {};
|
|
2010
|
-
if (!
|
|
2011
|
-
return [4, fubaoRequest.get("/api/family/planning/getFamilyPlanningEarlyPregnancyCheck?id.equals=".concat(
|
|
1982
|
+
if (!get(activeItem, 'id')) return [3, 2];
|
|
1983
|
+
return [4, fubaoRequest.get("/api/family/planning/getFamilyPlanningEarlyPregnancyCheck?id.equals=".concat(get(activeItem, 'id'), "&checkType.equals=").concat(get(activeItem, 'checkType'), "&deleteFlag.equals=0"))];
|
|
2012
1984
|
case 1:
|
|
2013
1985
|
values = _b.sent().data;
|
|
2014
1986
|
_b.label = 2;
|
|
2015
1987
|
case 2:
|
|
2016
|
-
values =
|
|
1988
|
+
values = get(values, 'data.0');
|
|
2017
1989
|
data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
|
|
2018
|
-
formKey =
|
|
2019
|
-
earlyPregnancyCheckDiagnosisInformations =
|
|
1990
|
+
formKey = get(data, 'id') || Math.random();
|
|
1991
|
+
earlyPregnancyCheckDiagnosisInformations = get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations');
|
|
2020
1992
|
if (earlyPregnancyCheckDiagnosisInformations) {
|
|
2021
|
-
|
|
1993
|
+
set(data, "earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations.list", earlyPregnancyCheckDiagnosisInformations);
|
|
2022
1994
|
}
|
|
2023
|
-
if (!
|
|
2024
|
-
if (!
|
|
1995
|
+
if (!get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.registrationDate')) set(data, 'earlyPregnancyCheckDiagnosisAndTreatment.registrationDate', dayjs(new Date()));
|
|
1996
|
+
if (!get(data, 'earlyPregnancyCheckDiagnosisAndTreatment.diagnoseDoctor')) set(data, 'earlyPregnancyCheckDiagnosisAndTreatment.diagnoseDoctor', get(basicInfo, 'firstName'));
|
|
2025
1997
|
this.setState({
|
|
2026
1998
|
data: data,
|
|
2027
1999
|
formKey: formKey
|
|
@@ -2039,22 +2011,22 @@ var AdmissionPanel = function (_super) {
|
|
|
2039
2011
|
case 0:
|
|
2040
2012
|
_a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
|
|
2041
2013
|
_b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
|
|
2042
|
-
earlyPregnancyCheckDiagnosisAndTreatment =
|
|
2043
|
-
earlyPregnancyCheckInspection =
|
|
2044
|
-
earlyPregnancyCheckMedicalHistory =
|
|
2045
|
-
womenHealthcarePhysicalExamination =
|
|
2014
|
+
earlyPregnancyCheckDiagnosisAndTreatment = get(data, 'earlyPregnancyCheckDiagnosisAndTreatment');
|
|
2015
|
+
earlyPregnancyCheckInspection = get(data, 'earlyPregnancyCheckInspection');
|
|
2016
|
+
earlyPregnancyCheckMedicalHistory = get(data, 'earlyPregnancyCheckMedicalHistory');
|
|
2017
|
+
womenHealthcarePhysicalExamination = get(data, 'womenHealthcarePhysicalExamination');
|
|
2046
2018
|
params = valueToApi(values, formDescriptionsWithoutSection);
|
|
2047
|
-
earlyPregnancyCheckDiagnosisInformations =
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2019
|
+
earlyPregnancyCheckDiagnosisInformations = get(params, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations.list');
|
|
2020
|
+
set(params, 'earlyPregnancyCheckDiagnosisAndTreatment.earlyPregnancyCheckDiagnosisInformations', earlyPregnancyCheckDiagnosisInformations);
|
|
2021
|
+
set(params, 'earlyPregnancyCheckDiagnosisAndTreatment.id', get(earlyPregnancyCheckDiagnosisAndTreatment, 'id'));
|
|
2022
|
+
set(params, 'earlyPregnancyCheckInspection.id', get(earlyPregnancyCheckInspection, 'id'));
|
|
2023
|
+
set(params, 'earlyPregnancyCheckMedicalHistory.id', get(earlyPregnancyCheckMedicalHistory, 'id'));
|
|
2024
|
+
set(params, 'womenHealthcarePhysicalExamination.id', get(womenHealthcarePhysicalExamination, 'id'));
|
|
2053
2025
|
params = __assign(__assign(__assign({}, data), params), {
|
|
2054
2026
|
checkType: '常规接诊',
|
|
2055
2027
|
familyPlanningId: Number(id)
|
|
2056
2028
|
});
|
|
2057
|
-
if (!
|
|
2029
|
+
if (!get(values, 'id')) return [3, 2];
|
|
2058
2030
|
return [4, fubaoRequest.put('/api/family/planning/updateFamilyPlanningEarlyPregnancyCheck', params)];
|
|
2059
2031
|
case 1:
|
|
2060
2032
|
_res = _c.sent();
|
|
@@ -2077,7 +2049,7 @@ var AdmissionPanel = function (_super) {
|
|
|
2077
2049
|
}
|
|
2078
2050
|
AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
2079
2051
|
var activeItem = nextProps.activeItem;
|
|
2080
|
-
if (!
|
|
2052
|
+
if (!isEqual(activeItem, prevState.activeItem)) {
|
|
2081
2053
|
return {
|
|
2082
2054
|
activeItem: activeItem
|
|
2083
2055
|
};
|
|
@@ -2085,7 +2057,7 @@ var AdmissionPanel = function (_super) {
|
|
|
2085
2057
|
return null;
|
|
2086
2058
|
};
|
|
2087
2059
|
AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
2088
|
-
if (!
|
|
2060
|
+
if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
|
|
2089
2061
|
this.handleInit();
|
|
2090
2062
|
}
|
|
2091
2063
|
};
|
|
@@ -2143,4 +2115,3 @@ var NurseTypesMapping = {
|
|
|
2143
2115
|
}
|
|
2144
2116
|
};
|
|
2145
2117
|
export { NurseTypesMapping as N };
|
|
2146
|
-
//# sourceMappingURL=config.js.map
|