@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
|
@@ -60,11 +60,10 @@ function TowCancerFollowup(props) {
|
|
|
60
60
|
dataIndex: 'followupState',
|
|
61
61
|
inputType: 'MS',
|
|
62
62
|
props: {
|
|
63
|
-
|
|
63
|
+
uniqueKey: '随访状态',
|
|
64
64
|
marshal: 0
|
|
65
65
|
}
|
|
66
66
|
}]
|
|
67
67
|
})));
|
|
68
68
|
}
|
|
69
69
|
export { TowCancerFollowup as default };
|
|
70
|
-
//# sourceMappingURL=.root34.js.map
|
package/dist/a_chunks/index.js
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import _message from 'antd/es/message';
|
|
3
|
-
import _set from 'lodash/set';
|
|
4
|
-
import _map from 'lodash/map';
|
|
5
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
6
|
-
import _get from 'lodash/get';
|
|
7
|
-
import { b as __extends, _ as __awaiter, a as __generator } from './tslib.es6.js';
|
|
1
|
+
import { c as __extends, _ as __awaiter, a as __generator } from './tslib.es6.js';
|
|
8
2
|
import { LazyAntd, fromApi, resolveFubaoPath, BaseEditPanelForm, formDescriptionsWithoutSectionApi, formatTimeToStandard, BaseEditPanel, toApi } from '@lm_fe/components_m';
|
|
9
3
|
import { SLocal_History, SLocal_State } from '@lm_fe/service';
|
|
10
4
|
import { request, safe_json_parse, expect_array, formatDate } from '@lm_fe/utils';
|
|
5
|
+
import { get, cloneDeep, isEmpty, omit, size, map, set } from 'lodash';
|
|
11
6
|
import dayjs from 'dayjs';
|
|
12
|
-
import 'antd/es/space/style';
|
|
13
|
-
import _Space from 'antd/es/space';
|
|
14
|
-
import 'antd/es/button/style';
|
|
15
|
-
import _Button from 'antd/es/button';
|
|
16
|
-
import 'antd/es/modal/style';
|
|
17
|
-
import _Modal from 'antd/es/modal';
|
|
18
|
-
import _size from 'lodash/size';
|
|
19
|
-
import _omit from 'lodash/omit';
|
|
20
|
-
import _cloneDeep from 'lodash/cloneDeep';
|
|
21
7
|
import { CloseOutlined, SaveOutlined } from '@ant-design/icons';
|
|
22
|
-
import { mchcUtils } from '@lm_fe/env';
|
|
8
|
+
import { mchcUtils, mchcEnv } from '@lm_fe/env';
|
|
9
|
+
import { message, Modal, Button, Space } from 'antd';
|
|
23
10
|
import React from 'react';
|
|
24
11
|
var tableColumn = [{
|
|
25
12
|
title: '姓名',
|
|
@@ -51,7 +38,7 @@ var AdmissionForm = function (_super) {
|
|
|
51
38
|
};
|
|
52
39
|
_this.getRegistrationEvents = function () {
|
|
53
40
|
return {
|
|
54
|
-
onBlur:
|
|
41
|
+
onBlur: get(_this.getEvents(), 'handleInputBlur')
|
|
55
42
|
};
|
|
56
43
|
};
|
|
57
44
|
_this.getEvents = function () {
|
|
@@ -64,7 +51,7 @@ var AdmissionForm = function (_super) {
|
|
|
64
51
|
switch (_b.label) {
|
|
65
52
|
case 0:
|
|
66
53
|
data = this.props.data;
|
|
67
|
-
id =
|
|
54
|
+
id = get(data, 'id');
|
|
68
55
|
name = (_a = this.form) === null || _a === void 0 ? void 0 : _a.getFieldValue('name');
|
|
69
56
|
if (!(!id && e.target.id == 'name' && name)) return [3, 2];
|
|
70
57
|
param = {
|
|
@@ -79,9 +66,9 @@ var AdmissionForm = function (_super) {
|
|
|
79
66
|
})];
|
|
80
67
|
case 1:
|
|
81
68
|
data_1 = _b.sent().data;
|
|
82
|
-
if (
|
|
69
|
+
if (get(data_1, 'data.pageData').length > 0) {
|
|
83
70
|
this.setState({
|
|
84
|
-
importData:
|
|
71
|
+
importData: get(data_1, 'data.pageData'),
|
|
85
72
|
renderModal: true
|
|
86
73
|
});
|
|
87
74
|
}
|
|
@@ -98,12 +85,12 @@ var AdmissionForm = function (_super) {
|
|
|
98
85
|
var _a;
|
|
99
86
|
var selectRow = _this.state.selectRow;
|
|
100
87
|
var formDescriptionsWithoutSection = _this.props.formDescriptionsWithoutSection;
|
|
101
|
-
var dd = fromApi(
|
|
102
|
-
if (
|
|
103
|
-
|
|
88
|
+
var dd = fromApi(cloneDeep(selectRow), formDescriptionsWithoutSection);
|
|
89
|
+
if (isEmpty(selectRow)) {
|
|
90
|
+
message.warning('请选择一份档案信息');
|
|
104
91
|
return;
|
|
105
92
|
}
|
|
106
|
-
var omitDd =
|
|
93
|
+
var omitDd = omit(dd, ['filingDate']);
|
|
107
94
|
(_a = _this.form) === null || _a === void 0 ? void 0 : _a.setFieldsValue(omitDd);
|
|
108
95
|
_this.setState({
|
|
109
96
|
renderModal: false
|
|
@@ -113,7 +100,7 @@ var AdmissionForm = function (_super) {
|
|
|
113
100
|
var _a = _this.state,
|
|
114
101
|
renderModal = _a.renderModal,
|
|
115
102
|
importData = _a.importData;
|
|
116
|
-
return /*#__PURE__*/React.createElement(
|
|
103
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
117
104
|
title: "\u5BFC\u5165\u4FE1\u606F",
|
|
118
105
|
width: 520,
|
|
119
106
|
visible: renderModal,
|
|
@@ -144,8 +131,8 @@ var AdmissionForm = function (_super) {
|
|
|
144
131
|
var form, idNO, personal;
|
|
145
132
|
return __generator(this, function (_a) {
|
|
146
133
|
form = this.form;
|
|
147
|
-
if (
|
|
148
|
-
idNO =
|
|
134
|
+
if (get(allValues, 'idType') === 1 && size(get(allValues, 'idNO')) === 18 && (get(changedValues, 'idType') || get(changedValues, 'idNO'))) {
|
|
135
|
+
idNO = get(allValues, 'idNO');
|
|
149
136
|
personal = mchcUtils.checkIdNo(idNO);
|
|
150
137
|
if (personal.status) {
|
|
151
138
|
form && form.setFieldsValue({
|
|
@@ -155,7 +142,7 @@ var AdmissionForm = function (_super) {
|
|
|
155
142
|
age: personal.age
|
|
156
143
|
});
|
|
157
144
|
} else {
|
|
158
|
-
|
|
145
|
+
message.warning("".concat(get(personal, 'message')));
|
|
159
146
|
}
|
|
160
147
|
}
|
|
161
148
|
return [2];
|
|
@@ -168,21 +155,21 @@ var AdmissionForm = function (_super) {
|
|
|
168
155
|
return __generator(this, function (_b) {
|
|
169
156
|
_a = this.props, _a.history, data = _a.data, _a.deleteTab, _a.routerPath, _a.tabs, _a.keepAliveProviderRef, _a.updateTabs;
|
|
170
157
|
form = this.form;
|
|
171
|
-
if (!
|
|
158
|
+
if (!get(data, 'id')) form.resetFields();
|
|
172
159
|
SLocal_History.closeAndPush(resolveFubaoPath("/folic-acid/file-management/list"));
|
|
173
160
|
return [2];
|
|
174
161
|
});
|
|
175
162
|
});
|
|
176
163
|
};
|
|
177
164
|
_this.renderCancelBtn = function () {
|
|
178
|
-
return /*#__PURE__*/React.createElement(
|
|
165
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
179
166
|
size: "large",
|
|
180
167
|
icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
|
|
181
168
|
onClick: _this.handleCancel
|
|
182
169
|
}, "\u5173\u95ED");
|
|
183
170
|
};
|
|
184
171
|
_this.renderCheckBtn = function () {
|
|
185
|
-
return /*#__PURE__*/React.createElement(
|
|
172
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
186
173
|
size: "large",
|
|
187
174
|
type: "primary",
|
|
188
175
|
icon: /*#__PURE__*/React.createElement(SaveOutlined, null),
|
|
@@ -193,7 +180,7 @@ var AdmissionForm = function (_super) {
|
|
|
193
180
|
};
|
|
194
181
|
_this.renderBtns = function () {
|
|
195
182
|
var history = _this.props.history;
|
|
196
|
-
return /*#__PURE__*/React.createElement(
|
|
183
|
+
return /*#__PURE__*/React.createElement(Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
|
|
197
184
|
};
|
|
198
185
|
_this.readIDCard = function () {
|
|
199
186
|
var websocketServices = window.websocketServices;
|
|
@@ -226,7 +213,7 @@ var AdmissionForm = function (_super) {
|
|
|
226
213
|
_this.setState({
|
|
227
214
|
IDCardLoading: false
|
|
228
215
|
});
|
|
229
|
-
return
|
|
216
|
+
return mchcEnv.info("".concat(e.data, "\uFF0C\u8BF7\u91CD\u65B0\u8BFB\u5361"));
|
|
230
217
|
}
|
|
231
218
|
if (e && e.data && e.data.includes('{')) {
|
|
232
219
|
d = JSON.parse(e.data);
|
|
@@ -531,7 +518,7 @@ var FolicAcidNurse = function (_super) {
|
|
|
531
518
|
switch (_d.label) {
|
|
532
519
|
case 0:
|
|
533
520
|
_a = this.props, routerQuery = _a.routerQuery, _a.moduleName, _b = _a.fromApi, fromApi$1 = _b === void 0 ? fromApi : _b;
|
|
534
|
-
id =
|
|
521
|
+
id = get(this.props, 'id') || get(routerQuery, 'id');
|
|
535
522
|
this.setState({
|
|
536
523
|
spinning: false
|
|
537
524
|
});
|
|
@@ -547,24 +534,24 @@ var FolicAcidNurse = function (_super) {
|
|
|
547
534
|
case 3:
|
|
548
535
|
data = _c;
|
|
549
536
|
if (data) {
|
|
550
|
-
data =
|
|
537
|
+
data = get(data, 'data');
|
|
551
538
|
}
|
|
552
539
|
data = id ? fromApi$1(data, formDescriptionsWithoutSection) : {};
|
|
553
|
-
formKey =
|
|
554
|
-
if (!
|
|
540
|
+
formKey = get(data, 'id') || Math.random();
|
|
541
|
+
if (!isEmpty(data)) {
|
|
555
542
|
folateDistributionRecords = data.folateDistributionRecords;
|
|
556
|
-
if (!
|
|
557
|
-
|
|
558
|
-
var effectiveDate =
|
|
543
|
+
if (!isEmpty(folateDistributionRecords)) {
|
|
544
|
+
map(folateDistributionRecords, function (item) {
|
|
545
|
+
var effectiveDate = get(item, 'effectiveDate');
|
|
559
546
|
if (effectiveDate) {
|
|
560
547
|
var effectiveDateArr = effectiveDate.split('~');
|
|
561
|
-
|
|
562
|
-
|
|
548
|
+
set(item, 'effectiveDateBegin', effectiveDateArr[0]);
|
|
549
|
+
set(item, 'effectiveDateEnd', effectiveDateArr[1]);
|
|
563
550
|
}
|
|
564
551
|
});
|
|
565
552
|
}
|
|
566
553
|
}
|
|
567
|
-
if (!
|
|
554
|
+
if (!get(data, 'filingDate')) set(data, 'filingDate', dayjs(new Date()));
|
|
568
555
|
this.setState({
|
|
569
556
|
formDescriptions: form_config,
|
|
570
557
|
formDescriptionsWithoutSection: formDescriptionsWithoutSection,
|
|
@@ -588,19 +575,19 @@ var FolicAcidNurse = function (_super) {
|
|
|
588
575
|
return [4, toApi$1(values, formDescriptionsWithoutSection)];
|
|
589
576
|
case 1:
|
|
590
577
|
params = _d.sent();
|
|
591
|
-
folateDistributionRecords =
|
|
592
|
-
|
|
593
|
-
if (!
|
|
594
|
-
|
|
578
|
+
folateDistributionRecords = get(params, 'folateDistributionRecords');
|
|
579
|
+
map(folateDistributionRecords, function (item) {
|
|
580
|
+
if (!get(item, 'issueDate')) {
|
|
581
|
+
set(item, 'issueDate', formatTimeToStandard(dayjs(new Date()), 'YYYY-MM-DD'));
|
|
595
582
|
}
|
|
596
|
-
if (!
|
|
597
|
-
|
|
583
|
+
if (!get(item, 'registerPerson')) {
|
|
584
|
+
set(item, 'registerPerson', get(user, 'basicInfo.firstName'));
|
|
598
585
|
}
|
|
599
|
-
if (
|
|
600
|
-
|
|
586
|
+
if (get(item, 'effectiveDateBegin') && get(item, 'effectiveDateEnd')) {
|
|
587
|
+
set(item, 'effectiveDate', "".concat(get(item, 'effectiveDateBegin'), "~").concat(get(item, 'effectiveDateEnd')));
|
|
601
588
|
}
|
|
602
589
|
});
|
|
603
|
-
if (!
|
|
590
|
+
if (!get(values, 'id')) return [3, 3];
|
|
604
591
|
return [4, request.put('/api/updateFolateManagementFile', params)];
|
|
605
592
|
case 2:
|
|
606
593
|
_c = _d.sent().data;
|
|
@@ -612,11 +599,11 @@ var FolicAcidNurse = function (_super) {
|
|
|
612
599
|
_d.label = 5;
|
|
613
600
|
case 5:
|
|
614
601
|
res = _c;
|
|
615
|
-
if (
|
|
616
|
-
|
|
602
|
+
if (get(res, 'code') === 1) {
|
|
603
|
+
mchcEnv.success(get(res, 'msg'));
|
|
617
604
|
SLocal_History.closeAndPush('/fubao/folic-acid/file-management/list');
|
|
618
605
|
} else {
|
|
619
|
-
|
|
606
|
+
mchcEnv.warning(get(res, 'msg'));
|
|
620
607
|
}
|
|
621
608
|
return [2];
|
|
622
609
|
}
|
|
@@ -643,4 +630,3 @@ var FolicAcidNurse = function (_super) {
|
|
|
643
630
|
}(BaseEditPanel);
|
|
644
631
|
var FolicAcidNurse$1 = FolicAcidNurse;
|
|
645
632
|
export { FolicAcidNurse$1 as F };
|
|
646
|
-
//# sourceMappingURL=index.js.map
|
package/dist/a_chunks/index2.js
CHANGED
|
@@ -1,66 +1,150 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from './tslib.es6.js';
|
|
2
|
+
import { OkButton } from '@lm_fe/components_m';
|
|
3
|
+
import { mchcModal__ } from '@lm_fe/pages';
|
|
4
|
+
import { safe_async_call, request } from '@lm_fe/utils';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { rt_ctx } from '@lm_fe/env';
|
|
7
|
+
var ctx = rt_ctx;
|
|
8
|
+
var form_config = [{
|
|
9
|
+
label: "档案类型",
|
|
10
|
+
name: "fileType",
|
|
11
|
+
inputType: 'MC',
|
|
12
|
+
inputProps: {
|
|
13
|
+
uniqueKey: '性别2',
|
|
14
|
+
marshal: 0
|
|
15
|
+
},
|
|
16
|
+
layout: '1/1'
|
|
17
|
+
}, {
|
|
18
|
+
label: "女方姓名",
|
|
19
|
+
name: "womanName",
|
|
20
|
+
inputType: 'MA',
|
|
21
|
+
layout: '1/3'
|
|
22
|
+
}, {
|
|
23
|
+
label: "女方年龄",
|
|
24
|
+
name: "womanAge",
|
|
25
|
+
inputType: 'input_number',
|
|
26
|
+
layout: '1/3'
|
|
27
|
+
}, {
|
|
28
|
+
label: "女方电话号码",
|
|
29
|
+
name: "womanTelephone",
|
|
30
|
+
inputType: 'MA',
|
|
31
|
+
layout: '1/3'
|
|
32
|
+
}, {
|
|
33
|
+
label: "男方姓名",
|
|
34
|
+
name: "manName",
|
|
35
|
+
inputType: 'MA',
|
|
36
|
+
layout: '1/3'
|
|
37
|
+
}, {
|
|
38
|
+
label: "男方年龄",
|
|
39
|
+
name: "manAge",
|
|
40
|
+
inputType: 'input_number',
|
|
41
|
+
layout: '1/3'
|
|
42
|
+
}, {
|
|
43
|
+
label: "男方电话号码",
|
|
44
|
+
name: "manTelephone",
|
|
45
|
+
inputType: 'MA',
|
|
46
|
+
layout: '1/3'
|
|
47
|
+
}, {
|
|
48
|
+
label: "追踪随访内容",
|
|
49
|
+
children: [{
|
|
50
|
+
name: "followupRecordVMList",
|
|
51
|
+
inputType: "MyEditTable",
|
|
52
|
+
inputProps: {
|
|
53
|
+
marshal: 0,
|
|
54
|
+
genRowData: function genRowData(list) {
|
|
55
|
+
return {
|
|
56
|
+
followupDate: ctx.utils.formatDate()
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
formDescriptions: [{
|
|
60
|
+
title: '怀孕状态',
|
|
61
|
+
dataIndex: 'pregnancyStatus',
|
|
62
|
+
inputType: 'MS',
|
|
63
|
+
inputProps: {
|
|
64
|
+
uniqueKey: 'Pregnancy.pregnancyStatus',
|
|
65
|
+
marshal: 0
|
|
22
66
|
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
var classes = '';
|
|
40
|
-
for (var key in arg) {
|
|
41
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
42
|
-
classes = appendClass(classes, key);
|
|
67
|
+
}, {
|
|
68
|
+
title: '传染病内容',
|
|
69
|
+
dataIndex: 'infectionContent',
|
|
70
|
+
inputType: 'Input'
|
|
71
|
+
}, {
|
|
72
|
+
title: '随访内容',
|
|
73
|
+
dataIndex: 'followupContent',
|
|
74
|
+
inputType: 'Input'
|
|
75
|
+
}, {
|
|
76
|
+
title: '随访状态',
|
|
77
|
+
dataIndex: 'followupState',
|
|
78
|
+
inputType: 'MS',
|
|
79
|
+
inputProps: {
|
|
80
|
+
uniqueKey: '随访状态',
|
|
81
|
+
marshal: 0
|
|
43
82
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
83
|
+
}]
|
|
84
|
+
},
|
|
85
|
+
layout: '1/1'
|
|
86
|
+
}]
|
|
87
|
+
}];
|
|
88
|
+
var opt_url = '/api/premarital/check/followup/premaritalCheckFollowupCase';
|
|
89
|
+
function Follow_up_btn_婚前(props) {
|
|
90
|
+
var handleSearch = props.handleSearch,
|
|
91
|
+
_a = props.rowData,
|
|
92
|
+
rowData = _a === void 0 ? {} : _a;
|
|
93
|
+
var premaritalCheckArchivesId = rowData.premaritalCheckArchivesId,
|
|
94
|
+
fileType = rowData.fileType;
|
|
95
|
+
function showView() {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
+
var record;
|
|
98
|
+
return __generator(this, function (_a) {
|
|
99
|
+
switch (_a.label) {
|
|
100
|
+
case 0:
|
|
101
|
+
return [4, request.get("/api/premarital/check/followup/premaritalCheckFollowup", {
|
|
102
|
+
params: {
|
|
103
|
+
premaritalCheckArchivesId: premaritalCheckArchivesId,
|
|
104
|
+
fileType: fileType
|
|
105
|
+
},
|
|
106
|
+
unboxing: true,
|
|
107
|
+
ignore_usr: true
|
|
108
|
+
})];
|
|
109
|
+
case 1:
|
|
110
|
+
record = _a.sent();
|
|
111
|
+
mchcModal__.open('modal_form', {
|
|
112
|
+
modal_data: {
|
|
113
|
+
bf_title: '婚前检查-随访',
|
|
114
|
+
formDescriptions: form_config,
|
|
115
|
+
getInitialData: function getInitialData() {
|
|
116
|
+
return record.data;
|
|
117
|
+
},
|
|
118
|
+
onSubmit: function onSubmit(data) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
120
|
+
var fn;
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0:
|
|
124
|
+
fn = data.id ? request.put : request.post;
|
|
125
|
+
return [4, fn(opt_url, data, {
|
|
126
|
+
successText: '操作成功',
|
|
127
|
+
ignore_usr: true
|
|
128
|
+
})];
|
|
129
|
+
case 1:
|
|
130
|
+
_a.sent();
|
|
131
|
+
safe_async_call(handleSearch);
|
|
132
|
+
return [2, 1];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
return [2];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
return /*#__PURE__*/React.createElement(OkButton, {
|
|
145
|
+
type: "link",
|
|
146
|
+
size: "small",
|
|
147
|
+
onClick: showView
|
|
148
|
+
}, "\u968F\u8BBF");
|
|
149
|
+
}
|
|
150
|
+
export { Follow_up_btn_婚前 as F };
|