@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.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/dist/a_chunks/{.root5.js → components.doctor_end.ExemplaryCase.js} +36 -68
  3. package/dist/a_chunks/components.doctor_end.HeaderInfo.js +635 -0
  4. package/dist/a_chunks/curve.components.BmiCanvas.js +242 -0
  5. package/dist/a_chunks/curve.components.FetusCanvas.js +259 -0
  6. package/dist/a_chunks/curve.components.FetusCanvasNICHD.js +1907 -0
  7. package/dist/a_chunks/curve.components.Pregnogram.js +166 -0
  8. package/dist/a_chunks/data.js +572 -0
  9. package/dist/a_chunks/func.js +86 -0
  10. package/dist/a_chunks/index.js +1049 -286
  11. package/dist/a_chunks/modals.entries.BF_Form.js +41 -0
  12. package/dist/a_chunks/modals.entries.StupidTemplateModal2.js +22 -0
  13. package/dist/a_chunks/modals.entries.box.js +23 -0
  14. package/dist/a_chunks/{.root11.js → modals.entries.modal_form.js} +99 -70
  15. package/dist/a_chunks/modals.entries.modal_page.js +143 -0
  16. package/dist/a_chunks/{.root13.js → modals.entries.print_modal.js} +22 -48
  17. package/dist/a_chunks/modals.entries.result_template.js +201 -0
  18. package/dist/a_chunks/{.root14.js → modals.entries.template_modal3.js} +80 -124
  19. package/dist/a_chunks/modals.entries.test.js +30 -0
  20. package/dist/a_chunks/{.root16.js → modals.entries.text_search.js} +20 -49
  21. package/dist/a_chunks/{.root17.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js} +17 -45
  22. 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
  23. package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
  24. package/dist/a_chunks/{.root19.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js} +58 -90
  25. 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
  26. 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
  27. package/dist/a_chunks/{.root22.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js} +9 -37
  28. 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
  29. 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
  30. package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js +102 -0
  31. package/dist/a_chunks/modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js +157 -0
  32. package/dist/a_chunks/{.root8.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +69 -208
  33. package/dist/a_chunks/{.root3.js → src.components.Base_List.js} +329 -320
  34. package/dist/a_chunks/src.components.Layout_Sider.js +101 -0
  35. package/dist/a_chunks/src.components.Layout_TabButton.js +69 -0
  36. package/dist/a_chunks/src.components.Login.js +151 -0
  37. package/dist/a_chunks/src.components.MenuSearch.js +106 -0
  38. package/dist/a_chunks/{.root7.js → src.components.QuickDocButton.js} +1 -2
  39. package/dist/a_chunks/src.pages.questionnaire.js +1633 -0
  40. package/dist/a_chunks/use_fetus.js +138 -0
  41. package/dist/a_chunks/utils.js +100 -0
  42. package/dist/a_chunks/utils2.js +36 -0
  43. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  44. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  45. package/dist/components/BF_Form/index.d.ts +4 -2
  46. package/dist/components/BF_Form/types.d.ts +7 -0
  47. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  48. package/dist/components/Base_List/Helper.d.ts +0 -5
  49. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  50. package/dist/components/Base_List/index.d.ts +2 -1
  51. package/dist/components/Base_List/types.d.ts +6 -3
  52. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  53. package/dist/components/Base_List/utils.d.ts +11 -0
  54. package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
  55. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  56. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  57. package/dist/components/Layout_Sider/index.d.ts +2 -2
  58. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  59. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  60. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  61. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  62. package/dist/components/Login/Inner.d.ts +0 -1
  63. package/dist/components/Login/index.d.ts +2 -1
  64. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  65. package/dist/components/MenuSearch/index.d.ts +2 -0
  66. package/dist/components/QuickDocButton/index.d.ts +5 -1
  67. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  68. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  69. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  70. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  71. package/dist/components/exception/index.d.ts +1 -0
  72. package/dist/components/index.d.ts +1 -0
  73. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  74. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  75. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  76. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  77. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  78. package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
  79. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  80. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  81. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  82. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  83. package/dist/curve/components/api.d.ts +17 -0
  84. package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
  85. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  86. package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
  87. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  88. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  89. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  90. package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
  91. package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
  92. package/dist/curve/data.d.ts +125 -0
  93. package/dist/curve/func.d.ts +12 -0
  94. package/dist/curve/func.test.d.ts +1 -0
  95. package/dist/curve/index.d.ts +7 -0
  96. package/dist/curve/intro-steps.d.ts +7 -0
  97. package/dist/curve/utils.d.ts +8 -0
  98. package/dist/form_config/conceiveMode.d.ts +2 -0
  99. package/dist/form_config/index.d.ts +4 -0
  100. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  101. package/dist/form_config/not_yes_input.d.ts +4 -0
  102. package/dist/form_config/pressure.d.ts +4 -0
  103. package/dist/hooks/index.d.ts +1 -0
  104. package/dist/hooks/use_duck_form.d.ts +18 -0
  105. package/dist/index.d.ts +2 -0
  106. package/dist/index.js +8 -33
  107. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  109. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +7 -1
  110. package/dist/modals/entries/box/index.d.ts +6 -0
  111. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  112. package/dist/modals/entries/result_template/index.d.ts +24 -0
  113. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  114. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  115. package/dist/modals/entries/template_modal3/index.d.ts +6 -3
  116. package/dist/modals/entries/text_search/index.d.ts +1 -1
  117. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  118. 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
  119. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
  120. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
  121. 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
  122. 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
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  132. package/dist/modals/index.d.ts +4 -1
  133. package/dist/modals/meta.d.ts +4 -1
  134. package/dist/pages/doc_record/index.d.ts +1 -1
  135. package/dist/pages/index.d.ts +1 -0
  136. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  137. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  138. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  139. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  140. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  141. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  142. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  143. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  144. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  145. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  146. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  147. package/dist/pages/questionnaire/index.d.ts +3 -0
  148. package/dist/pages/questionnaire/types.d.ts +10 -0
  149. package/dist/utils/helper.d.ts +5 -0
  150. package/dist/utils/index.d.ts +2 -1
  151. package/package.json +34 -16
  152. package/dist/a_chunks/.root.js +0 -245
  153. package/dist/a_chunks/.root.js.map +0 -1
  154. package/dist/a_chunks/.root10.js +0 -474
  155. package/dist/a_chunks/.root10.js.map +0 -1
  156. package/dist/a_chunks/.root11.js.map +0 -1
  157. package/dist/a_chunks/.root12.js +0 -200
  158. package/dist/a_chunks/.root12.js.map +0 -1
  159. package/dist/a_chunks/.root13.js.map +0 -1
  160. package/dist/a_chunks/.root14.js.map +0 -1
  161. package/dist/a_chunks/.root15.js +0 -58
  162. package/dist/a_chunks/.root15.js.map +0 -1
  163. package/dist/a_chunks/.root16.js.map +0 -1
  164. package/dist/a_chunks/.root17.js.map +0 -1
  165. package/dist/a_chunks/.root18.js.map +0 -1
  166. package/dist/a_chunks/.root19.js.map +0 -1
  167. package/dist/a_chunks/.root2.js +0 -76
  168. package/dist/a_chunks/.root2.js.map +0 -1
  169. package/dist/a_chunks/.root20.js.map +0 -1
  170. package/dist/a_chunks/.root21.js.map +0 -1
  171. package/dist/a_chunks/.root22.js.map +0 -1
  172. package/dist/a_chunks/.root23.js.map +0 -1
  173. package/dist/a_chunks/.root24.js.map +0 -1
  174. package/dist/a_chunks/.root25.js +0 -281
  175. package/dist/a_chunks/.root25.js.map +0 -1
  176. package/dist/a_chunks/.root3.js.map +0 -1
  177. package/dist/a_chunks/.root4.js +0 -629
  178. package/dist/a_chunks/.root4.js.map +0 -1
  179. package/dist/a_chunks/.root5.js.map +0 -1
  180. package/dist/a_chunks/.root6.js +0 -164
  181. package/dist/a_chunks/.root6.js.map +0 -1
  182. package/dist/a_chunks/.root7.js.map +0 -1
  183. package/dist/a_chunks/.root8.js.map +0 -1
  184. package/dist/a_chunks/.root9.js +0 -69
  185. package/dist/a_chunks/.root9.js.map +0 -1
  186. package/dist/a_chunks/extends.js +0 -11
  187. package/dist/a_chunks/extends.js.map +0 -1
  188. package/dist/a_chunks/index.js.map +0 -1
  189. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  190. package/dist/index.js.map +0 -1
  191. 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 { _ 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';
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/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';
9
+ import 'antd';
25
10
  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';
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
- var Modal = LazyAntd.Modal;
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 = _get(syphilisData, 'syphilisTreatments');
80
- if (_size(syphilisTreatments) > 0) {
48
+ syphilisTreatments = get(syphilisData, 'syphilisTreatments');
49
+ if (size(syphilisTreatments) > 0) {
81
50
  newData_1 = [];
82
- _forEach(syphilisTreatments, function (item) {
83
- var syphilisInjections = _orderBy(_get(item, 'syphilisInjections'), 'injectionDate', ['asc']);
51
+ forEach(syphilisTreatments, function (item) {
52
+ var syphilisInjections = orderBy(get(item, 'syphilisInjections'), 'injectionDate', ['asc']);
84
53
  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'));
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
- _set(syphilisData, 'syphilisTreatments', newData_1);
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 = _get(headerInfo, "edd");
117
- var newVal = _cloneDeep(val);
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 = _get(formData, 'syphilisTreatments');
147
- if (_size(syphilisTreatments) > 0) {
115
+ syphilisTreatments = get(formData, 'syphilisTreatments');
116
+ if (size(syphilisTreatments) > 0) {
148
117
  newData_2 = [];
149
- _forEach(syphilisTreatments, function (item) {
118
+ forEach(syphilisTreatments, function (item) {
150
119
  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'));
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 (_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'));
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 (_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'));
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
- _set(obj, 'syphilisInjections', _without(_get(obj, 'syphilisInjections'), undefined));
142
+ set(obj, 'syphilisInjections', without(get(obj, 'syphilisInjections'), undefined));
174
143
  newData_2.push(obj);
175
144
  });
176
- _set(formData, 'syphilisTreatments', newData_2);
145
+ set(formData, 'syphilisTreatments', newData_2);
177
146
  }
178
- if (!_get(syphilisData, 'id')) return [3, 3];
179
- _set(formData, 'id', _get(syphilisData, 'id'));
180
- _set(formData, 'pregnancy.id', id);
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
- _set(formData, 'pregnancy.id', id);
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(Modal, _extends({}, others, {
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