@lm_fe/pages 0.1.201 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/dist/a_chunks/.root.js +1610 -222
- package/dist/a_chunks/.root10.js +494 -462
- package/dist/a_chunks/.root11.js +231 -159
- package/dist/a_chunks/.root12.js +245 -186
- package/dist/a_chunks/.root13.js +1898 -104
- package/dist/a_chunks/.root14.js +147 -716
- package/dist/a_chunks/.root15.js +27 -44
- package/dist/a_chunks/.root16.js +18 -168
- package/dist/a_chunks/.root17.js +20 -255
- package/dist/a_chunks/.root18.js +168 -385
- package/dist/a_chunks/.root19.js +119 -403
- package/dist/a_chunks/.root2.js +101 -73
- package/dist/a_chunks/.root20.js +74 -945
- package/dist/a_chunks/.root21.js +168 -202
- package/dist/a_chunks/.root22.js +677 -144
- package/dist/a_chunks/.root23.js +27 -956
- package/dist/a_chunks/.root24.js +126 -742
- package/dist/a_chunks/.root25.js +214 -265
- package/dist/a_chunks/.root26.js +391 -0
- package/dist/a_chunks/.root27.js +395 -0
- package/dist/a_chunks/.root28.js +948 -0
- package/dist/a_chunks/.root29.js +214 -0
- package/dist/a_chunks/.root3.js +56 -1044
- package/dist/a_chunks/.root30.js +130 -0
- package/dist/a_chunks/.root31.js +914 -0
- package/dist/a_chunks/.root32.js +860 -0
- package/dist/a_chunks/.root33.js +102 -0
- package/dist/a_chunks/.root34.js +157 -0
- package/dist/a_chunks/.root4.js +1004 -581
- package/dist/a_chunks/.root5.js +610 -1414
- package/dist/a_chunks/.root6.js +1399 -155
- package/dist/a_chunks/.root7.js +151 -123
- package/dist/a_chunks/.root8.js +82 -504
- package/dist/a_chunks/.root9.js +97 -60
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +942 -265
- package/dist/a_chunks/use_fetus.js +138 -0
- package/dist/a_chunks/utils.js +100 -0
- package/dist/a_chunks/utils2.js +36 -0
- package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
- package/dist/components/BF_Form/Wrap.d.ts +2 -2
- package/dist/components/BF_Form/index.d.ts +4 -2
- package/dist/components/BF_Form/types.d.ts +7 -0
- package/dist/components/BF_Form/use_table_config.d.ts +1 -5
- package/dist/components/Base_List/Helper.d.ts +0 -5
- package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
- package/dist/components/Base_List/index.d.ts +2 -1
- package/dist/components/Base_List/types.d.ts +6 -3
- package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
- package/dist/components/Base_List/utils.d.ts +11 -0
- package/dist/components/IdNOButton/index copy.d.ts +1 -1
- package/dist/components/Layout_Sider/Inner.d.ts +2 -4
- package/dist/components/Layout_Sider/index.d.ts +2 -2
- package/dist/components/Layout_Sider/utils.d.ts +13 -0
- package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
- package/dist/components/Layout_TabButton/index.d.ts +3 -8
- package/dist/components/Layout_TabButton/types.d.ts +8 -0
- package/dist/components/Login/Inner.d.ts +0 -1
- package/dist/components/Login/index.d.ts +2 -1
- package/dist/components/MenuSearch/Inner.d.ts +6 -0
- package/dist/components/MenuSearch/index.d.ts +2 -0
- package/dist/components/QuickDocButton/index.d.ts +5 -1
- package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
- package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
- package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
- package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
- package/dist/components/exception/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
- package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
- package/dist/curve/components/Pregnogram/index.d.ts +11 -0
- package/dist/curve/components/api.d.ts +17 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/data.d.ts +125 -0
- package/dist/curve/func.d.ts +12 -0
- package/dist/curve/func.test.d.ts +1 -0
- package/dist/curve/index.d.ts +7 -0
- package/dist/curve/intro-steps.d.ts +7 -0
- package/dist/curve/utils.d.ts +8 -0
- package/dist/form_config/conceiveMode.d.ts +2 -0
- package/dist/form_config/index.d.ts +4 -0
- package/dist/form_config/mlUltrasounds.d.ts +2 -0
- package/dist/form_config/not_yes_input.d.ts +4 -0
- package/dist/form_config/pressure.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -33
- package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
- package/dist/modals/entries/box/index.d.ts +6 -0
- package/dist/modals/entries/modal_form/index.d.ts +1 -1
- package/dist/modals/entries/result_template/index.d.ts +24 -0
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
- package/dist/modals/entries/template_modal3/index.d.ts +5 -3
- package/dist/modals/entries/text_search/index.d.ts +1 -1
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
- package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
- package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
- package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
- package/dist/modals/index.d.ts +2 -0
- package/dist/modals/meta.d.ts +2 -0
- package/dist/pages/doc_record/index.d.ts +1 -1
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/questionnaire/Inner.d.ts +4 -0
- package/dist/pages/questionnaire/Qn.d.ts +3 -0
- package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
- package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
- package/dist/pages/questionnaire/create/common.d.ts +46 -0
- package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
- package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
- package/dist/pages/questionnaire/create/step1.d.ts +12 -0
- package/dist/pages/questionnaire/create/step2.d.ts +10 -0
- package/dist/pages/questionnaire/create/step3.d.ts +8 -0
- package/dist/pages/questionnaire/create/step4.d.ts +8 -0
- package/dist/pages/questionnaire/index.d.ts +3 -0
- package/dist/pages/questionnaire/types.d.ts +10 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +34 -16
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
- package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +0 -12
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { b as __awaiter, c as __generator, m as mchcModal__, h as mlUltrasounds_fd, g as curve_api } from './index.js';
|
|
2
|
+
import { OkButton, MyIcon } from '@lm_fe/components_m';
|
|
3
|
+
import { mchcLogger } from '@lm_fe/env';
|
|
4
|
+
import { defineFormConfig } from '@lm_fe/service';
|
|
5
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
6
|
+
import { request, get } from '@lm_fe/utils';
|
|
7
|
+
import 'antd';
|
|
8
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
9
|
+
import { g as get_line_color, a as get_text_color } from './func.js';
|
|
10
|
+
function getOutpatientFetuGrowsOfOutpatient(id) {
|
|
11
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12
|
+
var res;
|
|
13
|
+
return __generator(this, function (_a) {
|
|
14
|
+
switch (_a.label) {
|
|
15
|
+
case 0:
|
|
16
|
+
return [4, request.get('/api/doctor/getOutpatientFetuGrowsOfOutpatient?id=' + id)];
|
|
17
|
+
case 1:
|
|
18
|
+
res = _a.sent();
|
|
19
|
+
return [2, res.data];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function updateOutpatientFetuGrowsOfOutpatient(data) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26
|
+
var res;
|
|
27
|
+
return __generator(this, function (_a) {
|
|
28
|
+
switch (_a.label) {
|
|
29
|
+
case 0:
|
|
30
|
+
return [4, request.put('/api/doctor/updateOutpatientFetuGrowsOfOutpatient', data)];
|
|
31
|
+
case 1:
|
|
32
|
+
res = _a.sent();
|
|
33
|
+
return [2, res.data];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
var requestMethods = {
|
|
39
|
+
getOutpatientFetuGrowsOfOutpatient: getOutpatientFetuGrowsOfOutpatient,
|
|
40
|
+
updateOutpatientFetuGrowsOfOutpatient: updateOutpatientFetuGrowsOfOutpatient
|
|
41
|
+
};
|
|
42
|
+
function FetuGrowsEdit(_a) {
|
|
43
|
+
var value = _a.value,
|
|
44
|
+
_onSubmit = _a.onSubmit;
|
|
45
|
+
mchcLogger.log('FetuGrowsEdit', {
|
|
46
|
+
value: value
|
|
47
|
+
});
|
|
48
|
+
function open_modal() {
|
|
49
|
+
mchcModal__.open('modal_form', {
|
|
50
|
+
modal_data: {
|
|
51
|
+
bf_title: '胎儿生长曲线-编辑',
|
|
52
|
+
getInitialData: function getInitialData() {
|
|
53
|
+
return value;
|
|
54
|
+
},
|
|
55
|
+
onSubmit: function onSubmit(v) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
+
return __generator(this, function (_a) {
|
|
58
|
+
switch (_a.label) {
|
|
59
|
+
case 0:
|
|
60
|
+
return [4, requestMethods.updateOutpatientFetuGrowsOfOutpatient(v)];
|
|
61
|
+
case 1:
|
|
62
|
+
_a.sent();
|
|
63
|
+
_onSubmit();
|
|
64
|
+
return [2, 1];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
formDescriptions: defineFormConfig([{
|
|
70
|
+
name: 'id',
|
|
71
|
+
form_hidden: true
|
|
72
|
+
}, mlUltrasounds_fd()])
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return /*#__PURE__*/React.createElement(OkButton, {
|
|
77
|
+
btn_text: "\u7F16\u8F91",
|
|
78
|
+
size: 'small',
|
|
79
|
+
icon: /*#__PURE__*/React.createElement(MyIcon, {
|
|
80
|
+
value: 'EditOutlined'
|
|
81
|
+
}),
|
|
82
|
+
onClick: open_modal
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function use_fetus(props) {
|
|
86
|
+
var headerInfo = props.headerInfo,
|
|
87
|
+
id = props.id;
|
|
88
|
+
props.isAllPregnancies;
|
|
89
|
+
var pid = get(headerInfo, "id") || id;
|
|
90
|
+
var sys_theme = use_provoke(function (s) {
|
|
91
|
+
return s.sys_theme;
|
|
92
|
+
});
|
|
93
|
+
var line_color = get_line_color(sys_theme);
|
|
94
|
+
var font_color = get_text_color(sys_theme);
|
|
95
|
+
var _a = useState(),
|
|
96
|
+
formData = _a[0],
|
|
97
|
+
set_formData = _a[1];
|
|
98
|
+
var _b = useState(false),
|
|
99
|
+
isShowPointModal = _b[0],
|
|
100
|
+
set_isShowPointModal = _b[1];
|
|
101
|
+
var _c = useState(),
|
|
102
|
+
pointData = _c[0],
|
|
103
|
+
set_pointData = _c[1];
|
|
104
|
+
var imageRef = useRef();
|
|
105
|
+
function getFetusData() {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
+
var res;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
return [4, curve_api.getOutpatientFetuGrowsOfOutpatient(pid)];
|
|
112
|
+
case 1:
|
|
113
|
+
res = _a.sent();
|
|
114
|
+
set_formData(res);
|
|
115
|
+
return [2];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
useEffect(function () {
|
|
121
|
+
getFetusData();
|
|
122
|
+
return function () {};
|
|
123
|
+
}, []);
|
|
124
|
+
return {
|
|
125
|
+
sys_theme: sys_theme,
|
|
126
|
+
line_color: line_color,
|
|
127
|
+
font_color: font_color,
|
|
128
|
+
formData: formData,
|
|
129
|
+
isShowPointModal: isShowPointModal,
|
|
130
|
+
set_isShowPointModal: set_isShowPointModal,
|
|
131
|
+
pointData: pointData,
|
|
132
|
+
set_pointData: set_pointData,
|
|
133
|
+
set_formData: set_formData,
|
|
134
|
+
imageRef: imageRef,
|
|
135
|
+
getFetusData: getFetusData
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export { FetuGrowsEdit as F, use_fetus as u };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { a as __assign, b as __awaiter, c as __generator, m as mchcModal__ } from './index.js';
|
|
2
|
+
import { MyIcon, OkButton } from '@lm_fe/components_m';
|
|
3
|
+
import { mchcRouterContainer__ } from '@lm_fe/env';
|
|
4
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
5
|
+
import { isObject, getSearchParamsAll, size } from '@lm_fe/utils';
|
|
6
|
+
import React, { useState, useEffect } from 'react';
|
|
7
|
+
function findIdsByChildId(data, key) {
|
|
8
|
+
var res = [];
|
|
9
|
+
var _findIds = function findIds(arr, temp) {
|
|
10
|
+
var _a;
|
|
11
|
+
if (temp === void 0) {
|
|
12
|
+
temp = [];
|
|
13
|
+
}
|
|
14
|
+
for (var _i = 0, arr_1 = arr; _i < arr_1.length; _i++) {
|
|
15
|
+
var node = arr_1[_i];
|
|
16
|
+
if (((_a = node.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
17
|
+
_findIds(node.children, temp.concat(node.key));
|
|
18
|
+
} else {
|
|
19
|
+
if (node.key === key) {
|
|
20
|
+
temp.push(key);
|
|
21
|
+
res = temp;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
_findIds(data, []);
|
|
28
|
+
return res;
|
|
29
|
+
}
|
|
30
|
+
function transferMenus(menus, parentid) {
|
|
31
|
+
var _this = this;
|
|
32
|
+
if (parentid === void 0) {
|
|
33
|
+
parentid = 0;
|
|
34
|
+
}
|
|
35
|
+
var temp = [];
|
|
36
|
+
menus.filter(function (_) {
|
|
37
|
+
return _.type === 'menu';
|
|
38
|
+
}).map(function (item, idx) {
|
|
39
|
+
var key = item.key;
|
|
40
|
+
item.label = item.name;
|
|
41
|
+
item.icon = isObject(item.icon) ? item.icon : /*#__PURE__*/React.createElement(MyIcon, {
|
|
42
|
+
value: item.icon
|
|
43
|
+
});
|
|
44
|
+
if (item.parentid === parentid) {
|
|
45
|
+
var C = mchcRouterContainer__.get_addon_component(key);
|
|
46
|
+
var new_data = __assign(__assign({}, item), {
|
|
47
|
+
children: transferMenus(menus, item.id)
|
|
48
|
+
});
|
|
49
|
+
if (C) {
|
|
50
|
+
new_data.extra = /*#__PURE__*/React.createElement(OkButton, {
|
|
51
|
+
type: 'text',
|
|
52
|
+
icon: /*#__PURE__*/React.createElement(MyIcon, {
|
|
53
|
+
value: 'EyeOutlined'
|
|
54
|
+
}),
|
|
55
|
+
size: 'small',
|
|
56
|
+
onClick: function onClick(e) {
|
|
57
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
e.stopPropagation();
|
|
60
|
+
mchcModal__.open('modal_page', {
|
|
61
|
+
modal_data: {
|
|
62
|
+
route_conf: {
|
|
63
|
+
url: key,
|
|
64
|
+
params: getSearchParamsAll()
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
return [2];
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
var isLeaf = size(new_data.children) === 0;
|
|
75
|
+
new_data.isLeaf = isLeaf;
|
|
76
|
+
temp.push(new_data);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return temp.length ? temp.sort(function (a, b) {
|
|
80
|
+
return a.sort - b.sort;
|
|
81
|
+
}) : undefined;
|
|
82
|
+
}
|
|
83
|
+
function use_perm_tree() {
|
|
84
|
+
var _a = use_provoke('permissions', 'toggle_collapsed'),
|
|
85
|
+
permissions = _a.permissions,
|
|
86
|
+
toggle_collapsed = _a.toggle_collapsed;
|
|
87
|
+
var _b = useState(transferMenus(Object.values(permissions))),
|
|
88
|
+
permissions_tree = _b[0],
|
|
89
|
+
set_tree = _b[1];
|
|
90
|
+
useEffect(function () {
|
|
91
|
+
set_tree(transferMenus(Object.values(permissions)));
|
|
92
|
+
return function () {};
|
|
93
|
+
}, [permissions]);
|
|
94
|
+
return {
|
|
95
|
+
permissions_tree: permissions_tree,
|
|
96
|
+
permissions: permissions,
|
|
97
|
+
toggle_collapsed: toggle_collapsed
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export { findIdsByChildId as f, use_perm_tree as u };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { a as __assign } from './index.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
var sign_style = {
|
|
4
|
+
display: 'flex',
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
justifyContent: 'space-between'
|
|
7
|
+
};
|
|
8
|
+
function u(n) {
|
|
9
|
+
if (n === void 0) {
|
|
10
|
+
n = 1;
|
|
11
|
+
}
|
|
12
|
+
return '_'.repeat(n);
|
|
13
|
+
}
|
|
14
|
+
function fuck_user_info(h) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
style: __assign(__assign({}, sign_style), {
|
|
17
|
+
lineHeight: 1.5,
|
|
18
|
+
padding: 8
|
|
19
|
+
})
|
|
20
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u59D3\u540D\uFF1A", h === null || h === void 0 ? void 0 : h.name), /*#__PURE__*/React.createElement("div", null, "\u95E8\u8BCA\u53F7\uFF1A", h === null || h === void 0 ? void 0 : h.outpatientNO), /*#__PURE__*/React.createElement("div", null, "\u5E74\u9F84\uFF1A", h === null || h === void 0 ? void 0 : h.age)));
|
|
21
|
+
}
|
|
22
|
+
function fuck_sign_user() {
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
style: sign_style
|
|
25
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u60A3\u8005\u7B7E\u540D\uFF1A", u(20)), " ", /*#__PURE__*/React.createElement("div", null, "\u7B7E\u540D\u65F6\u95F4: ", u(6), "\u5E74", u(6), "\u6708", u(6), "\u65E5", u(6), "\u65F6", u(6), "\u5206")), /*#__PURE__*/React.createElement("div", null, "\u5982\u679C\u60A3\u8005\u65E0\u6CD5\u6216\u4E0D\u5B9C\u7B7E\u7F72\u8BE5\u77E5\u60C5\u540C\u610F\u4E66\uFF0C\u8BF7\u5176\u6388\u6743\u7684\u4EE3\u7406\u4EBA\u6216\u8FD1\u4EB2\u4EB2\u5C5E\u5728\u6B64\u7B7E\u540D\uFF1A", u(20)), /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
style: sign_style
|
|
27
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u60A3\u8005\u6388\u6743\u7684\u4EE3\u7406\u4EBA\u6216\u8FD1\u4EB2\u4EB2\u5C5E\u7B7E\u540D\uFF1A", u(20)), /*#__PURE__*/React.createElement("div", null, "\u4E0E\u60A3\u8005\u5173\u7CFB\uFF1A", u(20))), /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
style: sign_style
|
|
29
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u8054\u7CFB\u7535\u8BDD\uFF1A", u(20)), " ", /*#__PURE__*/React.createElement("div", null, "\u7B7E\u540D\u65F6\u95F4: ", u(6), "\u5E74", u(6), "\u6708", u(6), "\u65E5", u(6), "\u65F6", u(6), "\u5206")));
|
|
30
|
+
}
|
|
31
|
+
function fuck_sign_doctor() {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
style: sign_style
|
|
34
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u533B\u751F\u7B7E\u540D\uFF1A", u(20)), " ", /*#__PURE__*/React.createElement("div", null, "\u7B7E\u540D\u65F6\u95F4\uFF1A", u(6), "\u5E74", u(6), "\u6708", u(6), "\u65E5", u(6), "\u65F6", u(6), "\u5206"));
|
|
35
|
+
}
|
|
36
|
+
export { fuck_sign_user as a, fuck_sign_doctor as b, fuck_user_info as f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { IBF_props } from './
|
|
3
|
-
export declare function BF_Wrap2(setting: IBF_props
|
|
2
|
+
import { IBF_props } from './types';
|
|
3
|
+
export declare function BF_Wrap2(setting: IBF_props, props?: any): {
|
|
4
4
|
config: import("@lm_fe/service").IMchc_TableConfig | undefined;
|
|
5
5
|
Wrap: React.FC<{
|
|
6
6
|
style?: React.CSSProperties;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FormInstance } from 'antd';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IBF_props } from './
|
|
4
|
-
export * from './Wrap';
|
|
3
|
+
import { IBF_props } from './types';
|
|
5
4
|
export * from './utils';
|
|
5
|
+
export * from './Wrap';
|
|
6
|
+
export * from './types';
|
|
6
7
|
export interface IBF_Form_Props extends IBF_props {
|
|
7
8
|
form?: FormInstance;
|
|
9
|
+
disabled?: boolean;
|
|
8
10
|
fallback_init: () => Promise<any>;
|
|
9
11
|
fallback_finish: (v: any) => Promise<void>;
|
|
10
12
|
history_args: {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { IMchc_TableConfig } from '@lm_fe/service';
|
|
2
|
-
|
|
3
|
-
default_conf: Partial<Omit<IMchc_TableConfig, 'title'>> & {
|
|
4
|
-
title: `${string}-${string}`;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
2
|
+
import { IBF_props } from './types';
|
|
7
3
|
export declare function use_table_config(setting: IBF_props, props?: any): {
|
|
8
4
|
config: IMchc_TableConfig | undefined;
|
|
9
5
|
init_config: () => void;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { ILmFormItemConfigMixin } from "@lm_fe/components_m/dist/FU_components/SimpleForm/types/lmTypes";
|
|
2
1
|
import { IMchc_FormDescriptions_Field_Nullable } from "@lm_fe/service";
|
|
3
2
|
import { FormInstance } from "antd";
|
|
4
3
|
import React from "react";
|
|
5
|
-
export declare function MyBaseListRenderFormItem({ searchSchema, disabled }: {
|
|
6
|
-
searchSchema: ILmFormItemConfigMixin[];
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
4
|
export declare function MyBaseListRenderFormSection({ config, disabled, form }: {
|
|
10
5
|
config: IMchc_FormDescriptions_Field_Nullable[];
|
|
11
6
|
disabled?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export * from './types';
|
|
2
|
-
declare const MyBaseList:
|
|
3
|
+
declare const MyBaseList: React.LazyExoticComponent<typeof import("./_MyBaseList")._MyBaseList>;
|
|
3
4
|
export { MyBaseList };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMchc_FormDescriptions_Field, IMchc_FormDescriptions_Field_Nullable, ModelService, T_GET_FUCK_PAGE, TIdTypeCompatible } from '@lm_fe/service';
|
|
1
|
+
import { IMchc_FormDescriptions_Field, IMchc_FormDescriptions_Field_Nullable, IMchc_TableConfig, ModelService, T_GET_FUCK_PAGE, TIdTypeCompatible } from '@lm_fe/service';
|
|
2
2
|
import { ModalProps } from 'antd/lib/modal';
|
|
3
3
|
import { ColumnGroupType, TableProps } from 'antd/lib/table';
|
|
4
4
|
import { FC, ReactNode } from 'react';
|
|
@@ -6,6 +6,8 @@ import { IModalFormProps } from '../../modals/entries/modal_form';
|
|
|
6
6
|
import { AnyObject, PartialSome } from '@lm_fe/utils';
|
|
7
7
|
import { FormInstance } from 'antd';
|
|
8
8
|
import { IPdfFrameView_Props } from '@lm_fe/components';
|
|
9
|
+
import type { TableProps as RcTableProps } from 'rc-table';
|
|
10
|
+
export { TableProps, RcTableProps };
|
|
9
11
|
export interface IGlobalEnumItem<T = string> {
|
|
10
12
|
label: T;
|
|
11
13
|
value: number;
|
|
@@ -53,6 +55,7 @@ type RenderColFn<T> = FC<RenderColProps<T> & {
|
|
|
53
55
|
export interface MyBaseListProps<T extends {
|
|
54
56
|
id?: any;
|
|
55
57
|
} = any> extends TableProps<T> {
|
|
58
|
+
bf_conf?: IMchc_TableConfig;
|
|
56
59
|
dbg_dataSource?: any[];
|
|
57
60
|
effect_ctx?: any;
|
|
58
61
|
baseTitle?: string;
|
|
@@ -71,9 +74,10 @@ export interface MyBaseListProps<T extends {
|
|
|
71
74
|
showCopy?: boolean;
|
|
72
75
|
action_col?: (ctx: RenderColProps<T>) => IMyBaseList_ColumnType<T>;
|
|
73
76
|
addText?: string;
|
|
77
|
+
editText?: string;
|
|
74
78
|
showAction?: boolean;
|
|
75
79
|
beforeSearch?(v: Partial<T>): Partial<T>;
|
|
76
|
-
beforeSubmit?(
|
|
80
|
+
beforeSubmit?(new_v: any, old_v?: any): Promise<Partial<T> | null>;
|
|
77
81
|
otherTableProps?: TableProps<T>;
|
|
78
82
|
initialSearchValue?: any;
|
|
79
83
|
[x: string]: any;
|
|
@@ -126,4 +130,3 @@ export interface MyBaseListProps<T extends {
|
|
|
126
130
|
history?: any;
|
|
127
131
|
searchForm?: FormInstance;
|
|
128
132
|
}
|
|
129
|
-
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TIdTypeCompatible } from '@lm_fe/service';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.module.less';
|
|
4
|
+
import { MyBaseListProps } from './types';
|
|
5
|
+
export declare function _MyBaseList<T extends {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
id?: TIdTypeCompatible;
|
|
8
|
+
editKey?: any;
|
|
9
|
+
}>(_props: MyBaseListProps<T>): React.JSX.Element;
|
|
10
|
+
export default _MyBaseList;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IMchc_FormDescriptions_Field_Nullable } from "@lm_fe/service";
|
|
2
|
+
import { IMyBaseList_ColumnType, MyBaseListProps, TableProps } from "./types";
|
|
3
|
+
import { AnyObject } from "@lm_fe/utils";
|
|
4
|
+
export { TableProps };
|
|
5
|
+
export declare function formatProps(props: any): MyBaseListProps<any>;
|
|
6
|
+
export declare function tranformQueryData(values: AnyObject, searchConfig?: IMchc_FormDescriptions_Field_Nullable[], isFuck?: boolean): {};
|
|
7
|
+
export declare function get_dataIndex<T>(record?: IMyBaseList_ColumnType): string | string[] | undefined;
|
|
8
|
+
export declare function get_title<T>(record?: IMyBaseList_ColumnType): string | undefined;
|
|
9
|
+
export declare function use_my_baselist<T>(props: MyBaseListProps): {
|
|
10
|
+
table_columns: IMyBaseList_ColumnType<T>[];
|
|
11
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from 'antd';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export interface IIdNOButtonButtonProps extends ButtonProps {
|
|
3
|
+
export interface IIdNOButtonButtonProps extends Omit<ButtonProps, 'form'> {
|
|
4
4
|
isShowQrCode?: false;
|
|
5
5
|
}
|
|
6
6
|
export declare function IdNOButton(props: IIdNOButtonButtonProps): React.JSX.Element;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'react-perfect-scrollbar/dist/css/styles.css';
|
|
3
|
+
import 'react-perfect-scrollbar/dist/css/styles.css';
|
|
3
4
|
export declare const collapsedWidth = 50;
|
|
4
5
|
export declare const width = 232;
|
|
5
6
|
interface IProps {
|
|
6
7
|
collapsed: boolean;
|
|
7
8
|
user?: any;
|
|
8
9
|
tabs?: any;
|
|
9
|
-
onToggle?: (value: boolean) => void;
|
|
10
|
-
menuTree?: any[];
|
|
11
10
|
location?: any;
|
|
12
11
|
history?: any;
|
|
13
12
|
updateTabs?: any;
|
|
14
|
-
allMenuTree?: any;
|
|
15
13
|
}
|
|
16
|
-
export default function Layout_Sider_Inner(props: IProps): React.JSX.Element;
|
|
14
|
+
export default function Layout_Sider_Inner(props: IProps): React.JSX.Element | null;
|
|
17
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const collapsedWidth = 50;
|
|
2
3
|
export declare const width = 232;
|
|
3
|
-
declare
|
|
4
|
-
export { Layout_Sider };
|
|
4
|
+
export declare function Layout_Sider(props: any): React.JSX.Element;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
+
import { IMchc_Permission } from "@lm_fe/service";
|
|
2
|
+
export type Permission_With_Children = IMchc_Permission & {
|
|
3
|
+
isLeaf?: boolean;
|
|
4
|
+
children?: IMchc_Permission[];
|
|
5
|
+
label?: string;
|
|
6
|
+
extra?: any;
|
|
7
|
+
};
|
|
1
8
|
export declare function findIdsByChildId(data: any[], key: string): any[];
|
|
9
|
+
export declare function transferMenus(menus: Permission_With_Children[], parentid?: number): Permission_With_Children[] | undefined;
|
|
10
|
+
export declare function use_perm_tree(): {
|
|
11
|
+
permissions_tree: Permission_With_Children[] | undefined;
|
|
12
|
+
permissions: Record<string, IMchc_Permission>;
|
|
13
|
+
toggle_collapsed: () => void;
|
|
14
|
+
};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
tabKey: string;
|
|
6
|
-
closable?: boolean;
|
|
7
|
-
onClick?: any;
|
|
8
|
-
onClose?: any;
|
|
9
|
-
}
|
|
10
|
-
export default function Layout_TabButton_Inner(props: IProps): React.JSX.Element;
|
|
11
|
-
export {};
|
|
2
|
+
import { ILayout_TabButton_Props } from './types';
|
|
3
|
+
export default function Layout_TabButton_Inner(props: ILayout_TabButton_Props): React.JSX.Element;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
path: string;
|
|
5
|
-
search: string;
|
|
6
|
-
closable: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const Layout_TabButton: import("react").LazyExoticComponent<typeof import("./Inner").default>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export { ILayout_TabButton_Props } from './types';
|
|
3
|
+
export declare const Layout_TabButton: React.LazyExoticComponent<typeof import("./Inner").default>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const Mchc_Login: React.LazyExoticComponent<typeof import("./Inner").default>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { IMchc_Pregnancy } from "@lm_fe/service";
|
|
1
2
|
import { ButtonProps } from "antd";
|
|
2
3
|
import React from "react";
|
|
4
|
+
type TPageType = '单页' | '非单页';
|
|
3
5
|
export interface QuickDocButtonProps extends ButtonProps {
|
|
4
|
-
page_type:
|
|
6
|
+
page_type: TPageType;
|
|
5
7
|
}
|
|
8
|
+
export declare function quick_doc(page_type: TPageType, onSubmit?: (data: IMchc_Pregnancy) => void): void;
|
|
6
9
|
export declare function QuickDocButton(props: QuickDocButtonProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IMchc_Doctor_OutpatientHeaderInfo,
|
|
1
|
+
import { IMchc_Doctor_OutpatientHeaderInfo, TIdTypeCompatible } from '@lm_fe/service';
|
|
2
2
|
export interface IHeaderInfoProps {
|
|
3
|
-
pregnancyData?: IMchc_Pregnancy;
|
|
4
|
-
getPregnancyData?(id: TIdTypeCompatible): Promise<void>;
|
|
5
3
|
saveHeaderInfo?(v: IMchc_Doctor_OutpatientHeaderInfo): void;
|
|
6
4
|
id: TIdTypeCompatible;
|
|
7
5
|
basicInfo?: any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface IProps {
|
|
4
|
+
hidePrintBtn?: boolean;
|
|
5
|
+
isAllPregnancies?: boolean;
|
|
6
|
+
onLoad?(): void;
|
|
7
|
+
headerInfo?: any;
|
|
8
|
+
id?: any;
|
|
9
|
+
}
|
|
10
|
+
export default function BmiCanvas(props: IProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function getOutpatientFetuGrowsOfOutpatient(id: string): Promise<any>;
|
|
2
|
+
declare function updateOutpatientFetuGrowsOfOutpatient(data: any): Promise<any>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
getOutpatientFetuGrowsOfOutpatient: typeof getOutpatientFetuGrowsOfOutpatient;
|
|
5
|
+
updateOutpatientFetuGrowsOfOutpatient: typeof updateOutpatientFetuGrowsOfOutpatient;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|