@lm_fe/pages 0.1.201 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
- package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
- package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
- package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
- package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
- package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +1049 -286
- package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
- package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
- package/dist/a_chunks/modals.entries.box.js +23 -0
- package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
- package/dist/a_chunks/modals.entries.modal_page.js +143 -0
- package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
- package/dist/a_chunks/modals.entries.result_template.js +201 -0
- package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
- package/dist/a_chunks/modals.entries.test.js +30 -0
- package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
- package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
- package/dist/a_chunks/{.root18.js → modals.entries./345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250.js} +68 -93
- package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
- package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
- package/dist/a_chunks/{.root20.js → modals.entries./346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250.js} +144 -154
- package/dist/a_chunks/{.root21.js → modals.entries./347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250.js} +27 -48
- package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
- package/dist/a_chunks/{.root23.js → modals.entries./351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257.js} +127 -172
- package/dist/a_chunks/{.root24.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +438 -336
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
- package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
- package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
- package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
- package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
- package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
- package/dist/a_chunks/src.components.Login.js +151 -0
- package/dist/a_chunks/src.components.MenuSearch.js +106 -0
- package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
- package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
- package/dist/a_chunks/use_fetus.js +138 -0
- package/dist/a_chunks/utils.js +100 -0
- package/dist/a_chunks/utils2.js +36 -0
- package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
- package/dist/components/BF_Form/Wrap.d.ts +2 -2
- package/dist/components/BF_Form/index.d.ts +4 -2
- package/dist/components/BF_Form/types.d.ts +7 -0
- package/dist/components/BF_Form/use_table_config.d.ts +1 -5
- package/dist/components/Base_List/Helper.d.ts +0 -5
- package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
- package/dist/components/Base_List/index.d.ts +2 -1
- package/dist/components/Base_List/types.d.ts +6 -3
- package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
- package/dist/components/Base_List/utils.d.ts +11 -0
- package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
- package/dist/components/IdNOButton/index copy.d.ts +1 -1
- package/dist/components/Layout_Sider/Inner.d.ts +2 -4
- package/dist/components/Layout_Sider/index.d.ts +2 -2
- package/dist/components/Layout_Sider/utils.d.ts +13 -0
- package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
- package/dist/components/Layout_TabButton/index.d.ts +3 -8
- package/dist/components/Layout_TabButton/types.d.ts +8 -0
- package/dist/components/Login/Inner.d.ts +0 -1
- package/dist/components/Login/index.d.ts +2 -1
- package/dist/components/MenuSearch/Inner.d.ts +6 -0
- package/dist/components/MenuSearch/index.d.ts +2 -0
- package/dist/components/QuickDocButton/index.d.ts +5 -1
- package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
- package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
- package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
- package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
- package/dist/components/exception/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
- package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
- package/dist/curve/components/Pregnogram/index.d.ts +11 -0
- package/dist/curve/components/api.d.ts +17 -0
- package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
- package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
- package/dist/curve/data.d.ts +125 -0
- package/dist/curve/func.d.ts +12 -0
- package/dist/curve/func.test.d.ts +1 -0
- package/dist/curve/index.d.ts +7 -0
- package/dist/curve/intro-steps.d.ts +7 -0
- package/dist/curve/utils.d.ts +8 -0
- package/dist/form_config/conceiveMode.d.ts +2 -0
- package/dist/form_config/index.d.ts +4 -0
- package/dist/form_config/mlUltrasounds.d.ts +2 -0
- package/dist/form_config/not_yes_input.d.ts +4 -0
- package/dist/form_config/pressure.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use_duck_form.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -33
- package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +7 -1
- package/dist/modals/entries/box/index.d.ts +6 -0
- package/dist/modals/entries/modal_form/index.d.ts +1 -1
- package/dist/modals/entries/result_template/index.d.ts +24 -0
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
- package/dist/modals/entries/template_modal3/index.d.ts +6 -3
- package/dist/modals/entries/text_search/index.d.ts +1 -1
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
- package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
- package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
- package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
- package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
- package/dist/modals/index.d.ts +4 -1
- package/dist/modals/meta.d.ts +4 -1
- package/dist/pages/doc_record/index.d.ts +1 -1
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/questionnaire/Inner.d.ts +4 -0
- package/dist/pages/questionnaire/Qn.d.ts +3 -0
- package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
- package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
- package/dist/pages/questionnaire/create/common.d.ts +46 -0
- package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
- package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
- package/dist/pages/questionnaire/create/step1.d.ts +12 -0
- package/dist/pages/questionnaire/create/step2.d.ts +10 -0
- package/dist/pages/questionnaire/create/step3.d.ts +8 -0
- package/dist/pages/questionnaire/create/step4.d.ts +8 -0
- package/dist/pages/questionnaire/index.d.ts +3 -0
- package/dist/pages/questionnaire/types.d.ts +10 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +34 -16
- package/dist/a_chunks/.root.js +0 -245
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js +0 -474
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js +0 -200
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js +0 -58
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js +0 -76
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js +0 -281
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js +0 -629
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js +0 -164
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js +0 -69
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { d as __rest, i as BF_Wrap2, a as __assign, b as __awaiter, c as __generator, m as mchcModal__ } from './index.js';
|
|
2
|
+
import { validate_form } from '@lm_fe/components';
|
|
3
|
+
import { Form, Empty, Row, Col, List, Modal, Space } from 'antd';
|
|
4
|
+
import React, { useState, useEffect } from 'react';
|
|
5
|
+
import { FormSectionForm, OkButton } from '@lm_fe/components_m';
|
|
6
|
+
import { request, get } from '@lm_fe/utils';
|
|
7
|
+
import '@lm_fe/env';
|
|
8
|
+
import '@lm_fe/provoke';
|
|
9
|
+
import '@lm_fe/service';
|
|
10
|
+
import 'lodash';
|
|
11
|
+
import 'classnames';
|
|
12
|
+
function ExtHistory(_a) {
|
|
13
|
+
var _b;
|
|
14
|
+
var ext = _a.ext,
|
|
15
|
+
config = _a.config,
|
|
16
|
+
recordId = _a.recordId;
|
|
17
|
+
var _c = useState([{
|
|
18
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
19
|
+
version: 1,
|
|
20
|
+
modifiedBy: 'admin'
|
|
21
|
+
}, {
|
|
22
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
23
|
+
version: 2,
|
|
24
|
+
modifiedBy: 'admin'
|
|
25
|
+
}, {
|
|
26
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
27
|
+
version: 3,
|
|
28
|
+
modifiedBy: 'admin'
|
|
29
|
+
}, {
|
|
30
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
31
|
+
version: 4,
|
|
32
|
+
modifiedBy: 'admin'
|
|
33
|
+
}, {
|
|
34
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
35
|
+
version: 5,
|
|
36
|
+
modifiedBy: 'admin'
|
|
37
|
+
}, {
|
|
38
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
39
|
+
version: 6,
|
|
40
|
+
modifiedBy: 'admin'
|
|
41
|
+
}, {
|
|
42
|
+
modifiedDate: '2025-10-22 12:44:01',
|
|
43
|
+
version: 7,
|
|
44
|
+
modifiedBy: 'admin'
|
|
45
|
+
}]),
|
|
46
|
+
list = _c[0],
|
|
47
|
+
set_list = _c[1];
|
|
48
|
+
var _d = useState(),
|
|
49
|
+
active = _d[0],
|
|
50
|
+
set_active = _d[1];
|
|
51
|
+
var ext_value = ext.value;
|
|
52
|
+
var base_args = {
|
|
53
|
+
recordId: recordId
|
|
54
|
+
};
|
|
55
|
+
var form = Form.useForm()[0];
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
request.get("/api/assessment/".concat(ext_value, "/historyList"), {
|
|
58
|
+
params: base_args
|
|
59
|
+
}).then(function (res) {
|
|
60
|
+
var arr = res.data;
|
|
61
|
+
set_list(arr);
|
|
62
|
+
if (arr.length) set_active(arr[0]);
|
|
63
|
+
});
|
|
64
|
+
return function () {};
|
|
65
|
+
}, []);
|
|
66
|
+
useEffect(function () {
|
|
67
|
+
if (active) getDetail(active);
|
|
68
|
+
return function () {};
|
|
69
|
+
}, [active]);
|
|
70
|
+
function getDetail(item) {
|
|
71
|
+
request.get("/api/assessment/".concat(ext_value, "/historyDetail"), {
|
|
72
|
+
params: item
|
|
73
|
+
}).then(function (res) {
|
|
74
|
+
return form.setFieldsValue(res.data);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (!list.length) return /*#__PURE__*/React.createElement(Empty, null);
|
|
78
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
79
|
+
style: {
|
|
80
|
+
height: '100%'
|
|
81
|
+
}
|
|
82
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
83
|
+
span: 4,
|
|
84
|
+
style: {
|
|
85
|
+
height: '100%',
|
|
86
|
+
overflow: 'auto'
|
|
87
|
+
}
|
|
88
|
+
}, /*#__PURE__*/React.createElement(List, {
|
|
89
|
+
dataSource: list,
|
|
90
|
+
renderItem: function renderItem(item, index) {
|
|
91
|
+
return /*#__PURE__*/React.createElement(List.Item, {
|
|
92
|
+
onClick: function onClick() {
|
|
93
|
+
return set_active(item);
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/React.createElement(List.Item.Meta, {
|
|
96
|
+
style: {
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
background: item.version === (active === null || active === void 0 ? void 0 : active.version) ? '#ddd' : ''
|
|
99
|
+
},
|
|
100
|
+
title: item.modifiedDate,
|
|
101
|
+
description: item.modifiedBy
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
})), /*#__PURE__*/React.createElement(Col, {
|
|
105
|
+
span: 20,
|
|
106
|
+
style: {
|
|
107
|
+
height: '100%',
|
|
108
|
+
overflow: 'auto'
|
|
109
|
+
}
|
|
110
|
+
}, /*#__PURE__*/React.createElement(FormSectionForm, {
|
|
111
|
+
targetLabelCol: (_b = config === null || config === void 0 ? void 0 : config.targetLabelCol) !== null && _b !== void 0 ? _b : 8,
|
|
112
|
+
form: form,
|
|
113
|
+
bf_config: config
|
|
114
|
+
})));
|
|
115
|
+
}
|
|
116
|
+
function Index(props) {
|
|
117
|
+
var _a;
|
|
118
|
+
var modal_data = props.modal_data;
|
|
119
|
+
props.close;
|
|
120
|
+
var others = __rest(props, ["modal_data", "close"]);
|
|
121
|
+
var headerInfo = modal_data.headerInfo,
|
|
122
|
+
ext = modal_data.ext;
|
|
123
|
+
var ext_value = ext.value;
|
|
124
|
+
var ext_label = ext.label;
|
|
125
|
+
if (!ext_label || !ext_label || !headerInfo) return /*#__PURE__*/React.createElement(Empty, null);
|
|
126
|
+
var _b = useState({}),
|
|
127
|
+
data = _b[0],
|
|
128
|
+
setData = _b[1];
|
|
129
|
+
var relationId = headerInfo.id;
|
|
130
|
+
var form = Form.useForm()[0];
|
|
131
|
+
var _c = BF_Wrap2({
|
|
132
|
+
default_conf: {
|
|
133
|
+
title: "\u62D3\u5C55\u91CF\u8868-".concat(ext.value)
|
|
134
|
+
}
|
|
135
|
+
}),
|
|
136
|
+
config = _c.config,
|
|
137
|
+
Wrap = _c.Wrap;
|
|
138
|
+
var base_args = {
|
|
139
|
+
relationId: relationId
|
|
140
|
+
};
|
|
141
|
+
function fetch_data() {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
+
var res;
|
|
144
|
+
return __generator(this, function (_a) {
|
|
145
|
+
switch (_a.label) {
|
|
146
|
+
case 0:
|
|
147
|
+
return [4, request.get("/api/assessment/".concat(ext_value), {
|
|
148
|
+
params: base_args
|
|
149
|
+
})];
|
|
150
|
+
case 1:
|
|
151
|
+
res = _a.sent();
|
|
152
|
+
setData(res.data);
|
|
153
|
+
return [2];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
useEffect(function () {
|
|
159
|
+
fetch_data();
|
|
160
|
+
return function () {};
|
|
161
|
+
}, []);
|
|
162
|
+
useEffect(function () {
|
|
163
|
+
form.setFieldsValue(data);
|
|
164
|
+
return function () {};
|
|
165
|
+
}, [data]);
|
|
166
|
+
var data_id = get(data, 'id');
|
|
167
|
+
function handleOk() {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
+
var values, res;
|
|
170
|
+
return __generator(this, function (_a) {
|
|
171
|
+
switch (_a.label) {
|
|
172
|
+
case 0:
|
|
173
|
+
return [4, validate_form(form)];
|
|
174
|
+
case 1:
|
|
175
|
+
values = _a.sent();
|
|
176
|
+
if (!values) return [3, 3];
|
|
177
|
+
return [4, request.put("/api/assessment/".concat(ext_value), values, {
|
|
178
|
+
successText: '操作成功'
|
|
179
|
+
})];
|
|
180
|
+
case 2:
|
|
181
|
+
res = _a.sent();
|
|
182
|
+
setData(res.data);
|
|
183
|
+
_a.label = 3;
|
|
184
|
+
case 3:
|
|
185
|
+
return [2];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function open_history() {
|
|
191
|
+
mchcModal__.open('box', {
|
|
192
|
+
footer: null,
|
|
193
|
+
title: '历史记录',
|
|
194
|
+
width: '90vw',
|
|
195
|
+
styles: {
|
|
196
|
+
body: {
|
|
197
|
+
height: '80vh',
|
|
198
|
+
overflow: 'auto'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
modal_data: {
|
|
202
|
+
content: /*#__PURE__*/React.createElement(ExtHistory, {
|
|
203
|
+
ext: ext,
|
|
204
|
+
recordId: data_id,
|
|
205
|
+
config: config
|
|
206
|
+
})
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
function renderFooter() {
|
|
211
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
212
|
+
style: {
|
|
213
|
+
display: 'flex',
|
|
214
|
+
alignItems: 'center',
|
|
215
|
+
justifyContent: 'center'
|
|
216
|
+
}
|
|
217
|
+
}, /*#__PURE__*/React.createElement(OkButton, {
|
|
218
|
+
hidden: !data_id,
|
|
219
|
+
onClick: open_history
|
|
220
|
+
}, "\u67E5\u770B\u5386\u53F2"), /*#__PURE__*/React.createElement(OkButton, {
|
|
221
|
+
hidden: !data_id,
|
|
222
|
+
onClick: function onClick() {
|
|
223
|
+
return mchcModal__.open('print_modal', {
|
|
224
|
+
modal_data: {
|
|
225
|
+
requestData: {
|
|
226
|
+
url: "/api/assessment/".concat(ext_value, "/print"),
|
|
227
|
+
template: ext_value,
|
|
228
|
+
relationId: relationId,
|
|
229
|
+
id: data_id
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}, "\u6253\u5370"), /*#__PURE__*/React.createElement(OkButton, {
|
|
235
|
+
type: "primary",
|
|
236
|
+
onClick: handleOk
|
|
237
|
+
}, "\u786E\u5B9A"));
|
|
238
|
+
}
|
|
239
|
+
return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
|
|
240
|
+
title: ext_label,
|
|
241
|
+
width: '70vw',
|
|
242
|
+
styles: {
|
|
243
|
+
body: {
|
|
244
|
+
height: '80vh',
|
|
245
|
+
overflow: 'auto'
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
onOk: handleOk,
|
|
249
|
+
maskClosable: false,
|
|
250
|
+
footer: renderFooter()
|
|
251
|
+
}), /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(FormSectionForm, {
|
|
252
|
+
targetLabelCol: (_a = config === null || config === void 0 ? void 0 : config.targetLabelCol) !== null && _a !== void 0 ? _a : 8,
|
|
253
|
+
form: form,
|
|
254
|
+
bf_config: config
|
|
255
|
+
})));
|
|
256
|
+
}
|
|
257
|
+
export { Index as default };
|
|
@@ -1,51 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import _size from 'lodash/size';
|
|
4
|
-
import _set from 'lodash/set';
|
|
5
|
-
import _orderBy from 'lodash/orderBy';
|
|
6
|
-
import _get from 'lodash/get';
|
|
7
|
-
import _forEach from 'lodash/forEach';
|
|
8
|
-
import _cloneDeep from 'lodash/cloneDeep';
|
|
9
|
-
import { s as styleInject, d as __rest, _ as __awaiter, a as __generator } from './index.js';
|
|
1
|
+
import { s as styleInject, d as __rest, b as __awaiter, c as __generator, a as __assign } from './index.js';
|
|
2
|
+
import { get, size, forEach, orderBy, set, cloneDeep, without } from 'lodash';
|
|
10
3
|
import React, { useState, useEffect } from 'react';
|
|
11
|
-
import { LazyAntd } from '@lm_fe/components';
|
|
4
|
+
import { Modal_L, LazyAntd } from '@lm_fe/components';
|
|
12
5
|
import { SMchc_SyphilisManage } from '@lm_fe/service';
|
|
13
6
|
import { getSearchParamsValue } from '@lm_fe/utils';
|
|
14
7
|
import { otherOptions } from '@lm_fe/env';
|
|
15
8
|
import { getGesWeek, MyForm, getFormData } from '@lm_fe/components_m';
|
|
16
|
-
import 'antd
|
|
17
|
-
import 'antd/es/row';
|
|
18
|
-
import 'antd/es/col/style';
|
|
19
|
-
import 'antd/es/col';
|
|
20
|
-
import 'antd/es/list/style';
|
|
21
|
-
import 'antd/es/list';
|
|
22
|
-
import 'antd/es/tooltip/style';
|
|
23
|
-
import 'antd/es/tooltip';
|
|
24
|
-
import '@ant-design/icons';
|
|
9
|
+
import 'antd';
|
|
25
10
|
import 'classnames';
|
|
26
|
-
import '
|
|
27
|
-
import 'antd/es/button';
|
|
28
|
-
import 'antd/es/spin/style';
|
|
29
|
-
import 'antd/es/spin';
|
|
30
|
-
import 'antd/es/form/style';
|
|
31
|
-
import 'antd/es/form';
|
|
32
|
-
import 'antd/es/result/style';
|
|
33
|
-
import 'antd/es/result';
|
|
34
|
-
import 'antd/es/menu/style';
|
|
35
|
-
import 'antd/es/menu';
|
|
36
|
-
import 'antd/es/message/style';
|
|
37
|
-
import 'antd/es/message';
|
|
38
|
-
import 'antd/es/space/style';
|
|
39
|
-
import 'antd/es/space';
|
|
40
|
-
import 'lodash/keys';
|
|
41
|
-
import 'antd/es/divider/style';
|
|
42
|
-
import 'antd/es/divider';
|
|
11
|
+
import '@lm_fe/provoke';
|
|
43
12
|
var css_248z = ".index-module_syphilis-modal__tfvEm .ant-modal-body {\n max-height: 600px;\n overflow: auto;\n}\n";
|
|
44
13
|
var styles = {
|
|
45
14
|
"syphilis-modal": "index-module_syphilis-modal__tfvEm"
|
|
46
15
|
};
|
|
47
16
|
styleInject(css_248z);
|
|
48
|
-
|
|
17
|
+
LazyAntd.Modal;
|
|
49
18
|
function SyphilisManagement(props) {
|
|
50
19
|
var _this = this;
|
|
51
20
|
var _a;
|
|
@@ -76,31 +45,31 @@ function SyphilisManagement(props) {
|
|
|
76
45
|
case 1:
|
|
77
46
|
syphilisList = _a.sent();
|
|
78
47
|
syphilisData = syphilisList[0] || {};
|
|
79
|
-
syphilisTreatments =
|
|
80
|
-
if (
|
|
48
|
+
syphilisTreatments = get(syphilisData, 'syphilisTreatments');
|
|
49
|
+
if (size(syphilisTreatments) > 0) {
|
|
81
50
|
newData_1 = [];
|
|
82
|
-
|
|
83
|
-
var syphilisInjections =
|
|
51
|
+
forEach(syphilisTreatments, function (item) {
|
|
52
|
+
var syphilisInjections = orderBy(get(item, 'syphilisInjections'), 'injectionDate', ['asc']);
|
|
84
53
|
var obj = {};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
54
|
+
set(obj, 'id', get(item, 'id'));
|
|
55
|
+
set(obj, 'firstId', get(syphilisInjections, '0.id'));
|
|
56
|
+
set(obj, 'firstUserId', get(syphilisInjections, '0.user.id'));
|
|
57
|
+
set(obj, 'firstInjectionDate', get(syphilisInjections, '0.injectionDate'));
|
|
58
|
+
set(obj, 'firstInjectionGesweek', get(syphilisInjections, '0.gesweek'));
|
|
59
|
+
set(obj, 'firstInjectionResult', get(syphilisInjections, '0.injectionResult'));
|
|
60
|
+
set(obj, 'secondId', get(syphilisInjections, '1.id'));
|
|
61
|
+
set(obj, 'secondUserId', get(syphilisInjections, '1.user.id'));
|
|
62
|
+
set(obj, 'secondInjectionDate', get(syphilisInjections, '1.injectionDate'));
|
|
63
|
+
set(obj, 'secondInjectionGesweek', get(syphilisInjections, '1.gesweek'));
|
|
64
|
+
set(obj, 'secondInjectionResult', get(syphilisInjections, '1.injectionResult'));
|
|
65
|
+
set(obj, 'thirdId', get(syphilisInjections, '2.id'));
|
|
66
|
+
set(obj, 'thirdUserId', get(syphilisInjections, '2.user.id'));
|
|
67
|
+
set(obj, 'thirdInjectionDate', get(syphilisInjections, '2.injectionDate'));
|
|
68
|
+
set(obj, 'thirdInjectionGesweek', get(syphilisInjections, '2.gesweek'));
|
|
69
|
+
set(obj, 'thirdInjectionResult', get(syphilisInjections, '2.injectionResult'));
|
|
101
70
|
newData_1.push(obj);
|
|
102
71
|
});
|
|
103
|
-
|
|
72
|
+
set(syphilisData, 'syphilisTreatments', newData_1);
|
|
104
73
|
}
|
|
105
74
|
setSyphilisData(syphilisData);
|
|
106
75
|
return [2];
|
|
@@ -113,8 +82,8 @@ function SyphilisManagement(props) {
|
|
|
113
82
|
useEffect(function () {
|
|
114
83
|
if (formHandler.subscribe) {
|
|
115
84
|
formHandler.subscribe('syphilisTreatments', 'change', function (val) {
|
|
116
|
-
var sureEdd =
|
|
117
|
-
var newVal =
|
|
85
|
+
var sureEdd = get(headerInfo, "edd");
|
|
86
|
+
var newVal = cloneDeep(val);
|
|
118
87
|
newVal.forEach(function (item) {
|
|
119
88
|
if (item.firstInjectionDate && sureEdd) {
|
|
120
89
|
item.firstInjectionGesweek = getGesWeek(sureEdd, item.firstInjectionDate);
|
|
@@ -143,47 +112,47 @@ function SyphilisManagement(props) {
|
|
|
143
112
|
case 1:
|
|
144
113
|
res = _a.sent().res;
|
|
145
114
|
formData = getFormData(res);
|
|
146
|
-
syphilisTreatments =
|
|
147
|
-
if (
|
|
115
|
+
syphilisTreatments = get(formData, 'syphilisTreatments');
|
|
116
|
+
if (size(syphilisTreatments) > 0) {
|
|
148
117
|
newData_2 = [];
|
|
149
|
-
|
|
118
|
+
forEach(syphilisTreatments, function (item) {
|
|
150
119
|
var obj = {};
|
|
151
|
-
|
|
152
|
-
if (
|
|
153
|
-
if (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
if (
|
|
120
|
+
set(obj, 'id', get(item, 'id'));
|
|
121
|
+
if (get(item, 'firstInjectionDate') || get(item, 'firstInjectionResult')) {
|
|
122
|
+
if (get(item, 'firstId')) set(obj, 'syphilisInjections.0.id', get(item, 'firstId'));
|
|
123
|
+
set(obj, 'syphilisInjections.0.injectionDate', get(item, 'firstInjectionDate'));
|
|
124
|
+
set(obj, 'syphilisInjections.0.gesweek', get(item, 'firstInjectionGesweek'));
|
|
125
|
+
set(obj, 'syphilisInjections.0.injectionResult', get(item, 'firstInjectionResult'));
|
|
126
|
+
if (get(item, 'firstUserId')) set(obj, 'syphilisInjections.0.user.id', get(item, 'firstUserId'));
|
|
158
127
|
}
|
|
159
|
-
if (
|
|
160
|
-
if (
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (
|
|
128
|
+
if (get(item, 'secondInjectionDate') || get(item, 'secondInjectionResult')) {
|
|
129
|
+
if (get(item, 'secondId')) set(obj, 'syphilisInjections.1.id', get(item, 'secondId'));
|
|
130
|
+
set(obj, 'syphilisInjections.1.injectionDate', get(item, 'secondInjectionDate'));
|
|
131
|
+
set(obj, 'syphilisInjections.1.gesweek', get(item, 'secondInjectionGesweek'));
|
|
132
|
+
set(obj, 'syphilisInjections.1.injectionResult', get(item, 'secondInjectionResult'));
|
|
133
|
+
if (get(item, 'secondUserId')) set(obj, 'syphilisInjections.1.user.id', get(item, 'secondUserId'));
|
|
165
134
|
}
|
|
166
|
-
if (
|
|
167
|
-
if (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
if (
|
|
135
|
+
if (get(item, 'thirdInjectionDate') || get(item, 'thirdInjectionResult')) {
|
|
136
|
+
if (get(item, 'thirdId')) set(obj, 'syphilisInjections.2.id', get(item, 'thirdId'));
|
|
137
|
+
set(obj, 'syphilisInjections.2.injectionDate', get(item, 'thirdInjectionDate'));
|
|
138
|
+
set(obj, 'syphilisInjections.2.gesweek', get(item, 'thirdInjectionGesweek'));
|
|
139
|
+
set(obj, 'syphilisInjections.2.injectionResult', get(item, 'thirdInjectionResult'));
|
|
140
|
+
if (get(item, 'thirdUserId')) set(obj, 'syphilisInjections.2.user.id', get(item, 'thirdUserId'));
|
|
172
141
|
}
|
|
173
|
-
|
|
142
|
+
set(obj, 'syphilisInjections', without(get(obj, 'syphilisInjections'), undefined));
|
|
174
143
|
newData_2.push(obj);
|
|
175
144
|
});
|
|
176
|
-
|
|
145
|
+
set(formData, 'syphilisTreatments', newData_2);
|
|
177
146
|
}
|
|
178
|
-
if (!
|
|
179
|
-
|
|
180
|
-
|
|
147
|
+
if (!get(syphilisData, 'id')) return [3, 3];
|
|
148
|
+
set(formData, 'id', get(syphilisData, 'id'));
|
|
149
|
+
set(formData, 'pregnancy.id', id);
|
|
181
150
|
return [4, SMchc_SyphilisManage.put(formData)];
|
|
182
151
|
case 2:
|
|
183
152
|
_a.sent();
|
|
184
153
|
return [3, 5];
|
|
185
154
|
case 3:
|
|
186
|
-
|
|
155
|
+
set(formData, 'pregnancy.id', id);
|
|
187
156
|
return [4, SMchc_SyphilisManage.post(formData)];
|
|
188
157
|
case 4:
|
|
189
158
|
_a.sent();
|
|
@@ -410,7 +379,7 @@ function SyphilisManagement(props) {
|
|
|
410
379
|
}];
|
|
411
380
|
return config;
|
|
412
381
|
}
|
|
413
|
-
return /*#__PURE__*/React.createElement(
|
|
382
|
+
return /*#__PURE__*/React.createElement(Modal_L, __assign({}, others, {
|
|
414
383
|
title: "\u6885\u6BD2\u4E13\u6848\u7BA1\u7406",
|
|
415
384
|
className: styles["syphilis-modal"],
|
|
416
385
|
width: 1000,
|
|
@@ -424,4 +393,3 @@ function SyphilisManagement(props) {
|
|
|
424
393
|
}));
|
|
425
394
|
}
|
|
426
395
|
export { SyphilisManagement as default };
|
|
427
|
-
//# sourceMappingURL=.root19.js.map
|