@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.
Files changed (173) hide show
  1. package/README.md +0 -0
  2. package/dist/a_chunks/.root.js +1610 -222
  3. package/dist/a_chunks/.root10.js +494 -462
  4. package/dist/a_chunks/.root11.js +231 -159
  5. package/dist/a_chunks/.root12.js +245 -186
  6. package/dist/a_chunks/.root13.js +1898 -104
  7. package/dist/a_chunks/.root14.js +147 -716
  8. package/dist/a_chunks/.root15.js +27 -44
  9. package/dist/a_chunks/.root16.js +18 -168
  10. package/dist/a_chunks/.root17.js +20 -255
  11. package/dist/a_chunks/.root18.js +168 -385
  12. package/dist/a_chunks/.root19.js +119 -403
  13. package/dist/a_chunks/.root2.js +101 -73
  14. package/dist/a_chunks/.root20.js +74 -945
  15. package/dist/a_chunks/.root21.js +168 -202
  16. package/dist/a_chunks/.root22.js +677 -144
  17. package/dist/a_chunks/.root23.js +27 -956
  18. package/dist/a_chunks/.root24.js +126 -742
  19. package/dist/a_chunks/.root25.js +214 -265
  20. package/dist/a_chunks/.root26.js +391 -0
  21. package/dist/a_chunks/.root27.js +395 -0
  22. package/dist/a_chunks/.root28.js +948 -0
  23. package/dist/a_chunks/.root29.js +214 -0
  24. package/dist/a_chunks/.root3.js +56 -1044
  25. package/dist/a_chunks/.root30.js +130 -0
  26. package/dist/a_chunks/.root31.js +914 -0
  27. package/dist/a_chunks/.root32.js +860 -0
  28. package/dist/a_chunks/.root33.js +102 -0
  29. package/dist/a_chunks/.root34.js +157 -0
  30. package/dist/a_chunks/.root4.js +1004 -581
  31. package/dist/a_chunks/.root5.js +610 -1414
  32. package/dist/a_chunks/.root6.js +1399 -155
  33. package/dist/a_chunks/.root7.js +151 -123
  34. package/dist/a_chunks/.root8.js +82 -504
  35. package/dist/a_chunks/.root9.js +97 -60
  36. package/dist/a_chunks/data.js +572 -0
  37. package/dist/a_chunks/func.js +86 -0
  38. package/dist/a_chunks/index.js +942 -265
  39. package/dist/a_chunks/use_fetus.js +138 -0
  40. package/dist/a_chunks/utils.js +100 -0
  41. package/dist/a_chunks/utils2.js +36 -0
  42. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  43. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  44. package/dist/components/BF_Form/index.d.ts +4 -2
  45. package/dist/components/BF_Form/types.d.ts +7 -0
  46. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  47. package/dist/components/Base_List/Helper.d.ts +0 -5
  48. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  49. package/dist/components/Base_List/index.d.ts +2 -1
  50. package/dist/components/Base_List/types.d.ts +6 -3
  51. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  52. package/dist/components/Base_List/utils.d.ts +11 -0
  53. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  54. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  55. package/dist/components/Layout_Sider/index.d.ts +2 -2
  56. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  57. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  58. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  59. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  60. package/dist/components/Login/Inner.d.ts +0 -1
  61. package/dist/components/Login/index.d.ts +2 -1
  62. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  63. package/dist/components/MenuSearch/index.d.ts +2 -0
  64. package/dist/components/QuickDocButton/index.d.ts +5 -1
  65. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  66. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  67. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  68. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  69. package/dist/components/exception/index.d.ts +1 -0
  70. package/dist/components/index.d.ts +1 -0
  71. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  72. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  73. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  74. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  75. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  76. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  77. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  78. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  79. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  80. package/dist/curve/components/api.d.ts +17 -0
  81. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  82. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  83. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  84. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  85. package/dist/curve/data.d.ts +125 -0
  86. package/dist/curve/func.d.ts +12 -0
  87. package/dist/curve/func.test.d.ts +1 -0
  88. package/dist/curve/index.d.ts +7 -0
  89. package/dist/curve/intro-steps.d.ts +7 -0
  90. package/dist/curve/utils.d.ts +8 -0
  91. package/dist/form_config/conceiveMode.d.ts +2 -0
  92. package/dist/form_config/index.d.ts +4 -0
  93. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  94. package/dist/form_config/not_yes_input.d.ts +4 -0
  95. package/dist/form_config/pressure.d.ts +4 -0
  96. package/dist/hooks/index.d.ts +1 -0
  97. package/dist/index.d.ts +2 -0
  98. package/dist/index.js +8 -33
  99. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  100. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  101. package/dist/modals/entries/box/index.d.ts +6 -0
  102. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  103. package/dist/modals/entries/result_template/index.d.ts +24 -0
  104. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  105. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  106. package/dist/modals/entries/template_modal3/index.d.ts +5 -3
  107. package/dist/modals/entries/text_search/index.d.ts +1 -1
  108. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  109. 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
  110. 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
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. 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
  118. 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
  119. 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
  120. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  121. package/dist/modals/index.d.ts +2 -0
  122. package/dist/modals/meta.d.ts +2 -0
  123. package/dist/pages/doc_record/index.d.ts +1 -1
  124. package/dist/pages/index.d.ts +1 -0
  125. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  126. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  127. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  128. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  129. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  130. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  131. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  132. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  133. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  134. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  135. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  136. package/dist/pages/questionnaire/index.d.ts +3 -0
  137. package/dist/pages/questionnaire/types.d.ts +10 -0
  138. package/dist/utils/helper.d.ts +5 -0
  139. package/dist/utils/index.d.ts +2 -1
  140. package/package.json +34 -16
  141. package/dist/a_chunks/.root.js.map +0 -1
  142. package/dist/a_chunks/.root10.js.map +0 -1
  143. package/dist/a_chunks/.root11.js.map +0 -1
  144. package/dist/a_chunks/.root12.js.map +0 -1
  145. package/dist/a_chunks/.root13.js.map +0 -1
  146. package/dist/a_chunks/.root14.js.map +0 -1
  147. package/dist/a_chunks/.root15.js.map +0 -1
  148. package/dist/a_chunks/.root16.js.map +0 -1
  149. package/dist/a_chunks/.root17.js.map +0 -1
  150. package/dist/a_chunks/.root18.js.map +0 -1
  151. package/dist/a_chunks/.root19.js.map +0 -1
  152. package/dist/a_chunks/.root2.js.map +0 -1
  153. package/dist/a_chunks/.root20.js.map +0 -1
  154. package/dist/a_chunks/.root21.js.map +0 -1
  155. package/dist/a_chunks/.root22.js.map +0 -1
  156. package/dist/a_chunks/.root23.js.map +0 -1
  157. package/dist/a_chunks/.root24.js.map +0 -1
  158. package/dist/a_chunks/.root25.js.map +0 -1
  159. package/dist/a_chunks/.root3.js.map +0 -1
  160. package/dist/a_chunks/.root4.js.map +0 -1
  161. package/dist/a_chunks/.root5.js.map +0 -1
  162. package/dist/a_chunks/.root6.js.map +0 -1
  163. package/dist/a_chunks/.root7.js.map +0 -1
  164. package/dist/a_chunks/.root8.js.map +0 -1
  165. package/dist/a_chunks/.root9.js.map +0 -1
  166. package/dist/a_chunks/extends.js +0 -11
  167. package/dist/a_chunks/extends.js.map +0 -1
  168. package/dist/a_chunks/index.js.map +0 -1
  169. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  170. package/dist/index.js.map +0 -1
  171. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
  172. 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
  173. 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
@@ -1,108 +1,39 @@
1
- import { _ as _extends } from './extends.js';
2
- import _without from 'lodash/without';
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';
10
- import React, { useState, useEffect } from 'react';
11
- import { LazyAntd } from '@lm_fe/components';
12
- import { SMchc_SyphilisManage } from '@lm_fe/service';
13
- import { getSearchParamsValue } from '@lm_fe/utils';
14
- import { otherOptions } from '@lm_fe/env';
15
- import { getGesWeek, MyForm, getFormData } from '@lm_fe/components_m';
16
- import 'antd/es/row/style';
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';
1
+ import { d as __rest, b as __awaiter, c as __generator, a as __assign } from './index.js';
2
+ import { MyIcon } from '@lm_fe/components';
3
+ import { MyLazyComponent } from '@lm_fe/components_m';
4
+ import { mchcLogger, mchcEnv, mchcRouterContainer__ } from '@lm_fe/env';
5
+ import { use_provoke } from '@lm_fe/provoke';
6
+ import { sleep, getHappyConfig } from '@lm_fe/utils';
7
+ import { Modal, Button } from 'antd';
8
+ import React, { useState, useRef, useEffect } from 'react';
25
9
  import 'classnames';
26
- import 'antd/es/button/style';
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';
43
- var css_248z = ".index-module_syphilis-modal__tfvEm .ant-modal-body {\n max-height: 600px;\n overflow: auto;\n}\n";
44
- var styles = {
45
- "syphilis-modal": "index-module_syphilis-modal__tfvEm"
46
- };
47
- styleInject(css_248z);
48
- var Modal = LazyAntd.Modal;
49
- function SyphilisManagement(props) {
10
+ import 'lodash';
11
+ import '@lm_fe/service';
12
+ function Modal_Page(_a) {
50
13
  var _this = this;
51
- var _a;
52
- var disabled_yz = false;
53
- var modal_data = props.modal_data,
54
- close = props.close,
55
- others = __rest(props, ["modal_data", "close"]);
56
- var headerInfo = modal_data.headerInfo;
57
- var _b = useState({}),
58
- formHandler = _b[0],
59
- setFormHandler = _b[1];
60
- var _c = useState({}),
61
- syphilisData = _c[0],
62
- setSyphilisData = _c[1];
63
- var id = (_a = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id) !== null && _a !== void 0 ? _a : getSearchParamsValue('id');
14
+ var modal_data = _a.modal_data;
15
+ _a.close;
16
+ var others = __rest(_a, ["modal_data", "close"]);
17
+ var content = modal_data.content,
18
+ iframe_url = modal_data.iframe_url,
19
+ route_conf = modal_data.route_conf;
20
+ var sys_theme = use_provoke(function (s) {
21
+ return s.sys_theme;
22
+ });
23
+ var _b = useState(false);
24
+ _b[0];
25
+ var setVisible = _b[1];
26
+ var el = useRef(null);
64
27
  useEffect(function () {
65
28
  (function () {
66
29
  return __awaiter(_this, void 0, void 0, function () {
67
- var syphilisList, syphilisData, syphilisTreatments, newData_1;
68
30
  return __generator(this, function (_a) {
69
31
  switch (_a.label) {
70
32
  case 0:
71
- return [4, SMchc_SyphilisManage.getList({
72
- params: {
73
- 'pregnancyId.equals': id
74
- }
75
- })];
33
+ return [4, sleep(.8 * 1000)];
76
34
  case 1:
77
- syphilisList = _a.sent();
78
- syphilisData = syphilisList[0] || {};
79
- syphilisTreatments = _get(syphilisData, 'syphilisTreatments');
80
- if (_size(syphilisTreatments) > 0) {
81
- newData_1 = [];
82
- _forEach(syphilisTreatments, function (item) {
83
- var syphilisInjections = _orderBy(_get(item, 'syphilisInjections'), 'injectionDate', ['asc']);
84
- var obj = {};
85
- _set(obj, 'id', _get(item, 'id'));
86
- _set(obj, 'firstId', _get(syphilisInjections, '0.id'));
87
- _set(obj, 'firstUserId', _get(syphilisInjections, '0.user.id'));
88
- _set(obj, 'firstInjectionDate', _get(syphilisInjections, '0.injectionDate'));
89
- _set(obj, 'firstInjectionGesweek', _get(syphilisInjections, '0.gesweek'));
90
- _set(obj, 'firstInjectionResult', _get(syphilisInjections, '0.injectionResult'));
91
- _set(obj, 'secondId', _get(syphilisInjections, '1.id'));
92
- _set(obj, 'secondUserId', _get(syphilisInjections, '1.user.id'));
93
- _set(obj, 'secondInjectionDate', _get(syphilisInjections, '1.injectionDate'));
94
- _set(obj, 'secondInjectionGesweek', _get(syphilisInjections, '1.gesweek'));
95
- _set(obj, 'secondInjectionResult', _get(syphilisInjections, '1.injectionResult'));
96
- _set(obj, 'thirdId', _get(syphilisInjections, '2.id'));
97
- _set(obj, 'thirdUserId', _get(syphilisInjections, '2.user.id'));
98
- _set(obj, 'thirdInjectionDate', _get(syphilisInjections, '2.injectionDate'));
99
- _set(obj, 'thirdInjectionGesweek', _get(syphilisInjections, '2.gesweek'));
100
- _set(obj, 'thirdInjectionResult', _get(syphilisInjections, '2.injectionResult'));
101
- newData_1.push(obj);
102
- });
103
- _set(syphilisData, 'syphilisTreatments', newData_1);
104
- }
105
- setSyphilisData(syphilisData);
35
+ _a.sent();
36
+ setVisible(true);
106
37
  return [2];
107
38
  }
108
39
  });
@@ -111,317 +42,102 @@ function SyphilisManagement(props) {
111
42
  return function () {};
112
43
  }, []);
113
44
  useEffect(function () {
114
- if (formHandler.subscribe) {
115
- formHandler.subscribe('syphilisTreatments', 'change', function (val) {
116
- var sureEdd = _get(headerInfo, "edd");
117
- var newVal = _cloneDeep(val);
118
- newVal.forEach(function (item) {
119
- if (item.firstInjectionDate && sureEdd) {
120
- item.firstInjectionGesweek = getGesWeek(sureEdd, item.firstInjectionDate);
121
- }
122
- if (item.secondInjectionDate && sureEdd) {
123
- item.secondInjectionGesweek = getGesWeek(sureEdd, item.secondInjectionDate);
124
- }
125
- if (item.thirdInjectionDate && sureEdd) {
126
- item.thirdInjectionGesweek = getGesWeek(sureEdd, item.thirdInjectionDate);
127
- }
128
- });
129
- formHandler.syphilisTreatments.actions.setValue(newVal);
45
+ mchcLogger.log('moda_page', modal_data);
46
+ if (route_conf === null || route_conf === void 0 ? void 0 : route_conf.url) {
47
+ var happy_conf = getHappyConfig(route_conf.url);
48
+ mchcEnv.push_global_cache('happy_conf', happy_conf || {
49
+ usr1: 'unset'
130
50
  });
131
51
  }
132
- }, [formHandler, headerInfo]);
133
- function handleCancel() {
134
- close === null || close === void 0 ? void 0 : close(false);
135
- }
136
- function handleOk() {
137
- return __awaiter(this, void 0, void 0, function () {
138
- var res, formData, syphilisTreatments, newData_2;
139
- return __generator(this, function (_a) {
140
- switch (_a.label) {
141
- case 0:
142
- return [4, formHandler.submit()];
143
- case 1:
144
- res = _a.sent().res;
145
- formData = getFormData(res);
146
- syphilisTreatments = _get(formData, 'syphilisTreatments');
147
- if (_size(syphilisTreatments) > 0) {
148
- newData_2 = [];
149
- _forEach(syphilisTreatments, function (item) {
150
- var obj = {};
151
- _set(obj, 'id', _get(item, 'id'));
152
- if (_get(item, 'firstInjectionDate') || _get(item, 'firstInjectionResult')) {
153
- if (_get(item, 'firstId')) _set(obj, 'syphilisInjections.0.id', _get(item, 'firstId'));
154
- _set(obj, 'syphilisInjections.0.injectionDate', _get(item, 'firstInjectionDate'));
155
- _set(obj, 'syphilisInjections.0.gesweek', _get(item, 'firstInjectionGesweek'));
156
- _set(obj, 'syphilisInjections.0.injectionResult', _get(item, 'firstInjectionResult'));
157
- if (_get(item, 'firstUserId')) _set(obj, 'syphilisInjections.0.user.id', _get(item, 'firstUserId'));
158
- }
159
- if (_get(item, 'secondInjectionDate') || _get(item, 'secondInjectionResult')) {
160
- if (_get(item, 'secondId')) _set(obj, 'syphilisInjections.1.id', _get(item, 'secondId'));
161
- _set(obj, 'syphilisInjections.1.injectionDate', _get(item, 'secondInjectionDate'));
162
- _set(obj, 'syphilisInjections.1.gesweek', _get(item, 'secondInjectionGesweek'));
163
- _set(obj, 'syphilisInjections.1.injectionResult', _get(item, 'secondInjectionResult'));
164
- if (_get(item, 'secondUserId')) _set(obj, 'syphilisInjections.1.user.id', _get(item, 'secondUserId'));
165
- }
166
- if (_get(item, 'thirdInjectionDate') || _get(item, 'thirdInjectionResult')) {
167
- if (_get(item, 'thirdId')) _set(obj, 'syphilisInjections.2.id', _get(item, 'thirdId'));
168
- _set(obj, 'syphilisInjections.2.injectionDate', _get(item, 'thirdInjectionDate'));
169
- _set(obj, 'syphilisInjections.2.gesweek', _get(item, 'thirdInjectionGesweek'));
170
- _set(obj, 'syphilisInjections.2.injectionResult', _get(item, 'thirdInjectionResult'));
171
- if (_get(item, 'thirdUserId')) _set(obj, 'syphilisInjections.2.user.id', _get(item, 'thirdUserId'));
172
- }
173
- _set(obj, 'syphilisInjections', _without(_get(obj, 'syphilisInjections'), undefined));
174
- newData_2.push(obj);
175
- });
176
- _set(formData, 'syphilisTreatments', newData_2);
177
- }
178
- if (!_get(syphilisData, 'id')) return [3, 3];
179
- _set(formData, 'id', _get(syphilisData, 'id'));
180
- _set(formData, 'pregnancy.id', id);
181
- return [4, SMchc_SyphilisManage.put(formData)];
182
- case 2:
183
- _a.sent();
184
- return [3, 5];
185
- case 3:
186
- _set(formData, 'pregnancy.id', id);
187
- return [4, SMchc_SyphilisManage.post(formData)];
188
- case 4:
189
- _a.sent();
190
- _a.label = 5;
191
- case 5:
192
- close === null || close === void 0 ? void 0 : close(true);
193
- return [2];
52
+ return function () {
53
+ if (route_conf === null || route_conf === void 0 ? void 0 : route_conf.url) {
54
+ mchcEnv.pop_global_cache('happy_conf');
55
+ }
56
+ };
57
+ }, []);
58
+ function render_content() {
59
+ if (content) return content;
60
+ if (route_conf) {
61
+ var params = route_conf.params || {};
62
+ var C = mchcRouterContainer__.get_addon_component(route_conf.url);
63
+ if (!C) return /*#__PURE__*/React.createElement("div", {
64
+ style: {
65
+ textAlign: 'center',
66
+ lineHeight: '48px',
67
+ height: 48
194
68
  }
195
- });
196
- });
69
+ }, route_conf.url, " \u8BE5\u9875\u9762\u4E0D\u652F\u6301\u5F39\u7A97\u8BBF\u95EE\uFF0C\u8BF7\u8FD4\u56DE\uFF01 ");
70
+ return /*#__PURE__*/React.createElement(C, __assign({}, params, {
71
+ is_modal: true
72
+ }));
73
+ }
74
+ if (iframe_url) {
75
+ return /*#__PURE__*/React.createElement("div", {
76
+ style: {
77
+ width: '100%',
78
+ height: '100%',
79
+ position: 'relative'
80
+ }
81
+ }, /*#__PURE__*/React.createElement("iframe", {
82
+ width: "100%",
83
+ height: "100%",
84
+ style: {
85
+ border: 'none',
86
+ padding: 0,
87
+ margin: 0
88
+ },
89
+ src: iframe_url
90
+ }), /*#__PURE__*/React.createElement(Button, {
91
+ style: {
92
+ position: 'absolute',
93
+ right: 24,
94
+ bottom: 24,
95
+ boxShadow: '#444 4px 4px 12px 2px'
96
+ },
97
+ size: 'large',
98
+ type: "primary",
99
+ shape: 'circle',
100
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
101
+ value: 'ExportOutlined'
102
+ }),
103
+ onClick: function onClick() {
104
+ return mchcEnv.open(iframe_url);
105
+ }
106
+ }));
107
+ }
108
+ return /*#__PURE__*/React.createElement("div", {
109
+ style: {
110
+ textAlign: 'center',
111
+ lineHeight: '48px',
112
+ height: 48
113
+ }
114
+ }, "\u8BF7\u8BBE\u7F6E content\u3001route_conf \u6216\u8005 iframe_url");
197
115
  }
198
- function config() {
199
- var config = [{
200
- name: 'referral',
201
- key: 'referral',
202
- label: '转诊',
203
- input_type: 'checkbox',
204
- input_props: {
205
- type: 'group',
206
- options: otherOptions.nyOptions
116
+ var node = render_content();
117
+ return /*#__PURE__*/React.createElement(Modal, __assign({
118
+ width: '92vw',
119
+ footer: null,
120
+ centered: true,
121
+ closeIcon: null,
122
+ styles: {
123
+ header: {},
124
+ content: {
125
+ padding: 4
207
126
  },
208
- span: 12
209
- }, {
210
- name: 'consent',
211
- key: 'consent',
212
- label: '同意治疗',
213
- input_type: 'checkbox',
214
- input_props: {
215
- type: 'group',
216
- options: otherOptions.nyOptions
217
- },
218
- span: 12
219
- }, {
220
- name: 'tppa',
221
- key: 'tppa',
222
- label: 'TPPA滴度',
223
- input_type: 'input',
224
- span: 6
225
- }, {
226
- name: 'trust',
227
- key: 'trust',
228
- label: 'TRUST滴度',
229
- input_type: 'input',
230
- span: 6
231
- }, {
232
- name: '',
233
- key: '',
234
- label: '疗程',
235
- header_label: true,
236
- just_header: true,
237
- input_type: ''
238
- }, {
239
- name: 'syphilisTreatments',
240
- key: 'syphilisTreatments',
241
- label: '',
242
- input_type: 'array-custom',
243
- is_new_row: true,
244
- input_props: {
245
- array_title: '疗程',
246
- config: [{
247
- name: 'id',
248
- key: 'id',
249
- label: 'id',
250
- input_type: 'input',
251
- hidden: true,
252
- span: 5
253
- }, {
254
- name: 'firstId',
255
- key: 'firstId',
256
- label: '',
257
- input_type: 'input',
258
- hidden: true,
259
- span: 5
260
- }, {
261
- name: 'secondId',
262
- key: 'secondId',
263
- label: '',
264
- input_type: 'input',
265
- hidden: true,
266
- span: 5
267
- }, {
268
- name: 'thirdId',
269
- key: 'thirdId',
270
- label: '',
271
- input_type: 'input',
272
- hidden: true,
273
- span: 5
274
- }, {
275
- name: 'firstUserId',
276
- key: 'firstUserId',
277
- label: '',
278
- input_type: 'input',
279
- hidden: true,
280
- span: 5
281
- }, {
282
- name: 'secondUserId',
283
- key: 'secondUserId',
284
- label: '',
285
- input_type: 'input',
286
- hidden: true,
287
- span: 5
288
- }, {
289
- name: 'thirdUserId',
290
- key: 'thirdUserId',
291
- label: '',
292
- input_type: 'input',
293
- hidden: true,
294
- span: 5
295
- }, {
296
- name: 'firstInjectionDate',
297
- key: 'firstInjectionDate',
298
- label: '第一针',
299
- input_type: 'date',
300
- span: 6
301
- }, {
302
- name: 'firstInjectionGesweek',
303
- key: 'firstInjectionGesweek',
304
- label: '孕周',
305
- input_type: 'input',
306
- input_props: {
307
- disabled: disabled_yz
308
- },
309
- span: 6
310
- }, {
311
- name: 'firstInjectionResult',
312
- key: 'firstInjectionResult',
313
- label: '执行情况',
314
- input_type: 'select',
315
- input_props: {
316
- options: otherOptions.resultOptions,
317
- warningOption: '未执行'
318
- },
319
- span: 6
320
- }, {
321
- name: 'secondInjectionDate',
322
- key: 'secondInjectionDate',
323
- label: '第二针',
324
- input_type: 'date',
325
- is_new_row: true,
326
- span: 6
327
- }, {
328
- name: 'secondInjectionGesweek',
329
- key: 'secondInjectionGesweek',
330
- label: '孕周',
331
- input_type: 'input',
332
- input_props: {
333
- disabled: disabled_yz
334
- },
335
- span: 6
336
- }, {
337
- name: 'secondInjectionResult',
338
- key: 'secondInjectionResult',
339
- label: '执行情况',
340
- input_type: 'select',
341
- input_props: {
342
- options: otherOptions.resultOptions,
343
- warningOption: '未执行'
344
- },
345
- span: 6
346
- }, {
347
- name: 'thirdInjectionDate',
348
- key: 'thirdInjectionDate',
349
- label: '第三针',
350
- input_type: 'date',
351
- is_new_row: true,
352
- span: 6
353
- }, {
354
- name: 'thirdInjectionGesweek',
355
- key: 'thirdInjectionGesweek',
356
- label: '孕周',
357
- input_type: 'input',
358
- input_props: {
359
- disabled: disabled_yz
360
- },
361
- span: 6
362
- }, {
363
- name: 'thirdInjectionResult',
364
- key: 'thirdInjectionResult',
365
- label: '执行情况',
366
- input_type: 'select',
367
- input_props: {
368
- options: otherOptions.resultOptions,
369
- warningOption: '未执行'
370
- },
371
- span: 6
372
- }]
373
- }
374
- }, {
375
- name: '',
376
- key: '',
377
- label: 'TRUST随访结果',
378
- header_label: true,
379
- just_header: true,
380
- input_type: ''
381
- }, {
382
- name: 'syphilisFollowUps',
383
- key: 'syphilisFollowUps',
384
- label: '',
385
- input_type: 'array-custom',
386
- is_new_row: true,
387
- input_props: {
388
- array_title: '结果',
389
- config: [{
390
- name: 'id',
391
- key: 'id',
392
- label: 'id',
393
- input_type: 'input',
394
- hidden: true,
395
- span: 5
396
- }, {
397
- name: 'reportDate',
398
- key: 'reportDate',
399
- label: '报告时间',
400
- input_type: 'date',
401
- span: 6
402
- }, {
403
- name: 'trust',
404
- key: 'trust',
405
- label: 'TRUST滴度',
406
- input_type: 'input',
407
- span: 6
408
- }]
127
+ body: {
128
+ height: '92vh',
129
+ overflow: 'auto'
409
130
  }
410
- }];
411
- return config;
412
- }
413
- return /*#__PURE__*/React.createElement(Modal, _extends({}, others, {
414
- title: "\u6885\u6BD2\u4E13\u6848\u7BA1\u7406",
415
- className: styles["syphilis-modal"],
416
- width: 1000,
417
- onCancel: handleCancel,
418
- onOk: handleOk
419
- }), /*#__PURE__*/React.createElement(MyForm, {
420
- config: config(),
421
- value: syphilisData,
422
- getFormHandler: setFormHandler,
423
- submitChange: false
424
- }));
131
+ },
132
+ destroyOnClose: true
133
+ }, others, {
134
+ maskClosable: true
135
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MyLazyComponent, null, /*#__PURE__*/React.createElement("div", {
136
+ ref: el,
137
+ style: {
138
+ height: '99%',
139
+ background: sys_theme.bg_color
140
+ }
141
+ }, node))));
425
142
  }
426
- export { SyphilisManagement as default };
427
- //# sourceMappingURL=.root19.js.map
143
+ export { Modal_Page as default };