@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,201 @@
1
+ import { d as __rest, b as __awaiter, c as __generator, a as __assign, _ as __spreadArray } from './index.js';
2
+ import { Tree_L } from '@lm_fe/components';
3
+ import { request, isObject } from '@lm_fe/utils';
4
+ import { Modal, Tabs, Button, Space } from 'antd';
5
+ import { forEach, isEmpty, isString } from 'lodash';
6
+ import React, { useRef, useState, useEffect } from 'react';
7
+ import { OkButton } from '@lm_fe/components_m';
8
+ import 'classnames';
9
+ import '@lm_fe/env';
10
+ import '@lm_fe/provoke';
11
+ import '@lm_fe/service';
12
+ function make_key(item) {
13
+ if (!item) return '';
14
+ if (item.raw_title) return "".concat(item.id, "@@").concat(item.raw_title);
15
+ return "".concat(item.id, "@@").concat(item.title);
16
+ }
17
+ function get_title_form_key(key) {
18
+ if (!isString(key)) return '';
19
+ var arr = key.split('@@');
20
+ var title = arr[1];
21
+ return title || key;
22
+ }
23
+ function ResultImport(props) {
24
+ var modal_data = props.modal_data;
25
+ props.onClose;
26
+ var close = props.close,
27
+ others = __rest(props, ["modal_data", "onClose", "close"]);
28
+ var _a = modal_data.simpleTypes,
29
+ simpleTypes = _a === void 0 ? [] : _a,
30
+ gen_obj = modal_data.gen_obj,
31
+ form = modal_data.form,
32
+ on_tpl_check = modal_data.on_tpl_check;
33
+ var el = useRef(null);
34
+ var _b = useState(''),
35
+ activeTabKey = _b[0],
36
+ set_activeTabKey = _b[1];
37
+ var _c = useState(''),
38
+ defaultExpandedKey = _c[0],
39
+ set_defaultExpandedKey = _c[1];
40
+ var _d = useState([]),
41
+ check_keys = _d[0],
42
+ setCheck_keys = _d[1];
43
+ var abnormal_key = useRef([]);
44
+ var key_map = useRef({});
45
+ var _e = useState([]),
46
+ arr = _e[0],
47
+ setArr = _e[1];
48
+ useEffect(function () {
49
+ fetch_data(simpleTypes[0]);
50
+ return function () {};
51
+ }, []);
52
+ function handleTabChange(key) {
53
+ return __awaiter(this, void 0, void 0, function () {
54
+ var target;
55
+ return __generator(this, function (_a) {
56
+ target = simpleTypes.find(function (_) {
57
+ return _.title === key;
58
+ });
59
+ fetch_data(target);
60
+ return [2];
61
+ });
62
+ });
63
+ }
64
+ function fetch_data(target) {
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ var method, url, params, result, format_data;
67
+ var _a, _b;
68
+ return __generator(this, function (_c) {
69
+ switch (_c.label) {
70
+ case 0:
71
+ if (!(target === null || target === void 0 ? void 0 : target.url)) return [2];
72
+ abnormal_key.current = [];
73
+ setCheck_keys([]);
74
+ method = (_a = target.method) !== null && _a !== void 0 ? _a : 'get';
75
+ url = target.url;
76
+ params = (_b = gen_obj === null || gen_obj === void 0 ? void 0 : gen_obj(form)) !== null && _b !== void 0 ? _b : {};
77
+ return [4, request.ins({
78
+ method: method,
79
+ url: url,
80
+ data: params,
81
+ params: params
82
+ })];
83
+ case 1:
84
+ result = _c.sent().data;
85
+ set_activeTabKey(target.title);
86
+ set_defaultExpandedKey(make_key(result === null || result === void 0 ? void 0 : result[0]));
87
+ format_data = transferTemplateData(result, abnormal_key.current, key_map.current);
88
+ setArr(format_data);
89
+ return [2];
90
+ }
91
+ });
92
+ });
93
+ }
94
+ function handleOk(e) {
95
+ var ins = el.current;
96
+ if (ins) {
97
+ var state = ins.state;
98
+ var keys = state.checkedKeys;
99
+ var checkedItems = keys.map(function (_) {
100
+ return key_map.current[_];
101
+ });
102
+ var half_keys = state.halfCheckedKeys;
103
+ var content = checkedItems.sort(function (a, b) {
104
+ return a.pid === 0 ? -1 : 1;
105
+ }).map(function (_) {
106
+ return _.raw_title;
107
+ }).join(' / ');
108
+ if (!isEmpty(half_keys)) {
109
+ var half_title = half_keys.map(get_title_form_key).reverse().join(' / ');
110
+ console.log('el half_title', half_title, half_keys);
111
+ content = "".concat(half_title, " / ").concat(content);
112
+ }
113
+ var leaf = checkedItems.filter(function (_) {
114
+ var _a;
115
+ return _.isLeaf && !((_a = _.children) === null || _a === void 0 ? void 0 : _a.length);
116
+ });
117
+ on_tpl_check === null || on_tpl_check === void 0 ? void 0 : on_tpl_check({
118
+ result: checkedItems,
119
+ leaf: leaf,
120
+ content: content
121
+ });
122
+ }
123
+ close === null || close === void 0 ? void 0 : close(true, e);
124
+ }
125
+ function handleCheck(keys, e) {
126
+ setCheck_keys(keys);
127
+ e.checkedNodes;
128
+ e.halfCheckedKeys;
129
+ }
130
+ function transferTemplateData(data, abnormal, map, pid) {
131
+ if (pid === void 0) {
132
+ pid = 0;
133
+ }
134
+ var treeData = [];
135
+ forEach(data, function (item) {
136
+ if (item.pid === pid) {
137
+ if (isObject(item.title)) ;else {
138
+ item.raw_title = item.title;
139
+ item.title = item.unusual ? /*#__PURE__*/React.createElement("span", {
140
+ style: {
141
+ color: 'red'
142
+ }
143
+ }, item.title, " ", item.unusualDesc) : item.title;
144
+ }
145
+ item.key = make_key(item);
146
+ map[item.key] = item;
147
+ item.children = transferTemplateData(item.items, abnormal, map, item.id);
148
+ if (isEmpty(item.children)) {
149
+ item.isLeaf = true;
150
+ if (item.unusual) {
151
+ abnormal.push(item.key);
152
+ }
153
+ } else {
154
+ item.isLeaf = false;
155
+ }
156
+ treeData.push(item);
157
+ }
158
+ });
159
+ return treeData;
160
+ }
161
+ return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
162
+ centered: false,
163
+ title: "\u7ED3\u679C\u5BFC\u5165",
164
+ width: 1100,
165
+ onOk: handleOk
166
+ }), /*#__PURE__*/React.createElement(Tabs, {
167
+ defaultActiveKey: activeTabKey,
168
+ onChange: handleTabChange
169
+ }, simpleTypes.map(function (_a) {
170
+ var title = _a.title;
171
+ _a.url;
172
+ return /*#__PURE__*/React.createElement(Tabs.TabPane, {
173
+ tab: /*#__PURE__*/React.createElement(Button, {
174
+ className: "list-btn"
175
+ }, title),
176
+ key: title
177
+ }, !isEmpty(arr) && activeTabKey === title ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
178
+ style: {
179
+ display: 'flex',
180
+ flexDirection: 'row-reverse'
181
+ }
182
+ }, /*#__PURE__*/React.createElement(Space.Compact, null, /*#__PURE__*/React.createElement(OkButton, {
183
+ primary: true,
184
+ onClick: function onClick() {
185
+ setCheck_keys(Array.from(new Set(__spreadArray(__spreadArray([], check_keys, true), abnormal_key.current, true))));
186
+ }
187
+ }, "\u52FE\u9009\u5F02\u5E38"), /*#__PURE__*/React.createElement(OkButton, {
188
+ onClick: function onClick() {
189
+ return setCheck_keys([]);
190
+ }
191
+ }, "\u5168\u90E8\u53D6\u6D88"))), /*#__PURE__*/React.createElement(Tree_L, {
192
+ ref: el,
193
+ checkable: true,
194
+ defaultExpandedKeys: [defaultExpandedKey],
195
+ onCheck: handleCheck,
196
+ treeData: arr,
197
+ checkedKeys: check_keys
198
+ })) : '暂无结果~');
199
+ })));
200
+ }
201
+ export { ResultImport as default };
@@ -1,53 +1,14 @@
1
- import 'antd/es/modal/style';
2
- import _Modal from 'antd/es/modal';
3
- import { _ as _extends } from './extends.js';
4
- import 'antd/es/row/style';
5
- import _Row from 'antd/es/row';
6
- import 'antd/es/col/style';
7
- import _Col from 'antd/es/col';
8
- import 'antd/es/button/style';
9
- import _Button from 'antd/es/button';
10
- import 'antd/es/popconfirm/style';
11
- import _Popconfirm from 'antd/es/popconfirm';
12
- import 'antd/es/message/style';
13
- import _message from 'antd/es/message';
14
- import _size from 'lodash/size';
15
- import 'lodash/set';
16
- import _map from 'lodash/map';
17
- import _keys from 'lodash/keys';
18
- import _keyBy from 'lodash/keyBy';
19
- import _isEmpty from 'lodash/isEmpty';
20
- import _indexOf from 'lodash/indexOf';
21
- import _get from 'lodash/get';
22
- import _concat from 'lodash/concat';
23
- import _compact from 'lodash/compact';
24
- import { _ as __awaiter, a as __generator, b as __assign, d as __rest, s as styleInject, c as __spreadArray } from './index.js';
25
- import { EditOutlined, DeleteOutlined } from '@ant-design/icons';
26
- import { LazyAntd } from '@lm_fe/components';
1
+ import { b as __awaiter, c as __generator, a as __assign, d as __rest, s as styleInject, _ as __spreadArray } from './index.js';
2
+ import { LazyAntd, MyIcon } from '@lm_fe/components';
27
3
  import { SMchc_TemplateTrees, SLocal_State } from '@lm_fe/service';
28
4
  import { request, safe_json_parse } from '@lm_fe/utils';
29
- import React$1, { useState, useEffect, useRef } from 'react';
5
+ import { Form, Modal, Input, Button, Row, Col, Popconfirm } from 'antd';
6
+ import { get, compact, map, keyBy, indexOf, keys, isEmpty, concat, size } from 'lodash';
7
+ import React, { useState, useEffect, useRef } from 'react';
30
8
  import { getResources } from '@lm_fe/components_m';
31
9
  import { MODAL_TEMPLATE_TYPES_个人模板, MODAL_TEMPLATE_TYPES, mchcEnv } from '@lm_fe/env';
32
- import 'antd/es/input/style';
33
- import _Input from 'antd/es/input';
34
- import 'antd/es/form/style';
35
- import _Form from 'antd/es/form';
36
- import 'antd/es/list/style';
37
- import 'antd/es/list';
38
- import 'antd/es/tooltip/style';
39
- import 'antd/es/tooltip';
40
10
  import 'classnames';
41
- import 'antd/es/spin/style';
42
- import 'antd/es/spin';
43
- import 'antd/es/result/style';
44
- import 'antd/es/result';
45
- import 'antd/es/menu/style';
46
- import 'antd/es/menu';
47
- import 'antd/es/space/style';
48
- import 'antd/es/space';
49
- import 'antd/es/divider/style';
50
- import 'antd/es/divider';
11
+ import '@lm_fe/provoke';
51
12
  var needUserIDTypes = [2];
52
13
  var baseType = {
53
14
  getList: function getList(_a) {
@@ -212,12 +173,12 @@ function EditModal(props) {
212
173
  templateTypes = props.templateTypes;
213
174
  __rest(props, ["onCancel", "onSubmit", "visible", "data", "getContainer", "templateTypes"]);
214
175
  var templateType = props.templateType;
215
- var form = _Form.useForm()[0];
176
+ var form = Form.useForm()[0];
216
177
  var el = useRef(null);
217
178
  var types = templateTypes;
218
179
  useEffect(function () {
219
180
  form && form.setFieldsValue(__assign(__assign({}, data), {
220
- pid: _get(data, 'pid') || 0,
181
+ pid: get(data, 'pid') || 0,
221
182
  type: templateType.type,
222
183
  depid: templateType.depid
223
184
  }));
@@ -238,17 +199,18 @@ function EditModal(props) {
238
199
  });
239
200
  });
240
201
  };
241
- return /*#__PURE__*/React$1.createElement(_Modal, {
202
+ return /*#__PURE__*/React.createElement(Modal, {
203
+ centered: true,
242
204
  getContainer: getContainer,
243
- visible: visible,
205
+ open: visible,
244
206
  className: "textarea-with-template__modal-edit",
245
207
  onCancel: onCancel,
246
208
  onOk: handleSubmit,
247
209
  closable: false,
248
210
  width: 500
249
- }, /*#__PURE__*/React$1.createElement("div", {
211
+ }, /*#__PURE__*/React.createElement("div", {
250
212
  ref: el
251
- }, /*#__PURE__*/React$1.createElement(_Form, {
213
+ }, /*#__PURE__*/React.createElement(Form, {
252
214
  autoComplete: "off",
253
215
  form: form,
254
216
  labelAlign: "right",
@@ -258,41 +220,41 @@ function EditModal(props) {
258
220
  wrapperCol: {
259
221
  span: 16
260
222
  }
261
- }, /*#__PURE__*/React$1.createElement(_Form.Item, {
223
+ }, /*#__PURE__*/React.createElement(Form.Item, {
262
224
  label: "\u6240\u5C5E\u6A21\u5757",
263
225
  name: "type"
264
- }, /*#__PURE__*/React$1.createElement(Select, {
226
+ }, /*#__PURE__*/React.createElement(Select, {
265
227
  getPopupContainer: function getPopupContainer() {
266
228
  return el.current;
267
229
  }
268
230
  }, types.map(function (_a, key) {
269
231
  var title = _a.title,
270
232
  type = _a.type;
271
- return /*#__PURE__*/React$1.createElement(Select.Option, {
233
+ return /*#__PURE__*/React.createElement(Select.Option, {
272
234
  value: type,
273
235
  key: type
274
236
  }, title);
275
- }))), /*#__PURE__*/React$1.createElement(_Form.Item, {
237
+ }))), /*#__PURE__*/React.createElement(Form.Item, {
276
238
  label: "depid",
277
239
  name: "depid"
278
- }, /*#__PURE__*/React$1.createElement(_Input, {
240
+ }, /*#__PURE__*/React.createElement(Input, {
279
241
  disabled: true
280
- })), /*#__PURE__*/React$1.createElement(_Form.Item, {
242
+ })), /*#__PURE__*/React.createElement(Form.Item, {
281
243
  label: "\u4E0A\u7EA7\u6A21\u677F",
282
244
  name: "pid"
283
- }, /*#__PURE__*/React$1.createElement(TemplateSelect, {
245
+ }, /*#__PURE__*/React.createElement(TemplateSelect, {
284
246
  getPopupContainer: function getPopupContainer() {
285
247
  return el.current;
286
248
  },
287
249
  templateType: templateType
288
- })), /*#__PURE__*/React$1.createElement(_Form.Item, {
250
+ })), /*#__PURE__*/React.createElement(Form.Item, {
289
251
  rules: [{
290
252
  required: true,
291
253
  message: '模板内容是必填项'
292
254
  }],
293
255
  label: "\u6A21\u677F\u5185\u5BB9",
294
256
  name: "val"
295
- }, /*#__PURE__*/React$1.createElement(_Input, null)))));
257
+ }, /*#__PURE__*/React.createElement(Input, null)))));
296
258
  }
297
259
  var css_248z = ".index-module_textarea-with-template__uLA-v {\n position: relative;\n}\n.index-module_textarea-with-template__uLA-v .index-module_template-textarea__gqcM3 {\n width: 100%;\n}\n.index-module_textarea-with-template__action__SlEkO {\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 0;\n height: 0;\n border-width: 20px 20px 20px 20px;\n border-color: transparent #d8dce6 #d8dce6 transparent;\n border-style: solid;\n border-radius: 4px;\n background: transparent;\n cursor: pointer;\n}\n.index-module_textarea-with-template__action__SlEkO span {\n position: relative;\n bottom: 1px;\n word-break: keep-all;\n color: #000;\n font-size: 12px;\n}\n.index-module_textarea-with-template__action_disabled__N4laO {\n color: rgba(0, 0, 0, 0.25);\n}\n.index-module_textarea-with-template__modal-nav__T1lRV {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.index-module_textarea-with-template__modal-nav__items__e9UUj {\n margin-right: 8px;\n}\n.index-module_textarea-with-template__modal-body__Kutxj {\n margin: 10px 0;\n}\n.index-module_textarea-with-template__modal-body__Kutxj .index-module_ant-tree-treenode__VRZC5 .index-module_template-list-item__actions__aRx-A {\n display: none;\n}\n.index-module_textarea-with-template__modal-body__Kutxj .index-module_ant-tree-treenode__VRZC5:hover .index-module_template-list-item__actions__aRx-A {\n display: inline-block;\n}\n.index-module_textarea-with-template__modal-body__Kutxj .index-module_template-list-item__luX3h {\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n.index-module_textarea-with-template__modal-body__Kutxj .index-module_template-list-item__luX3h .index-module_template-list-item__actions-icon__lXB5f {\n font-size: 14px;\n opacity: 0.8;\n cursor: pointer;\n margin-left: 10px;\n}\n.index-module_textarea-with-template__modal__aHN06 .index-module_ant-modal-content__sIeSZ .index-module_ant-modal-header__5J7KR,\n.index-module_textarea-with-template__modal__aHN06 .index-module_ant-modal-content__sIeSZ .index-module_ant-modal-body__IJao5,\n.index-module_textarea-with-template__modal__aHN06 .index-module_ant-modal-content__sIeSZ .index-module_ant-modal-footer__8mN39 {\n padding: 10px;\n}\n";
298
260
  var styles = {
@@ -329,7 +291,8 @@ function TemplateModal(props) {
329
291
  props.onClose;
330
292
  var others = __rest(props, ["modal_data", "width", "close", "onClose"]);
331
293
  var admissionId = modal_data.admissionId,
332
- onValueCheck = modal_data.onValueCheck;
294
+ on_tpl_check = modal_data.on_tpl_check,
295
+ defaultExpandAll = modal_data.defaultExpandAll;
333
296
  modal_data.onOk;
334
297
  var simpleTypes = Array.isArray(modal_data.simpleTypes) ? modal_data.simpleTypes : MODAL_TEMPLATE_TYPES['科室个人'];
335
298
  var user = SLocal_State.getUserData();
@@ -369,18 +332,17 @@ function TemplateModal(props) {
369
332
  var canOperate = mchcEnv.is('广三') ? (_b = (_a = user === null || user === void 0 ? void 0 : user.groups) === null || _a === void 0 ? void 0 : _a.some) === null || _b === void 0 ? void 0 : _b.call(_a, function (_) {
370
333
  return ['ADMIN', 'MASTERNURSE'].includes(_.name.toUpperCase());
371
334
  }) : (_c = modal_data.canOperate) !== null && _c !== void 0 ? _c : true;
372
- var isExpandAll = false;
373
335
  useEffect(function () {
374
336
  getTemplateList();
375
337
  return function () {};
376
338
  }, []);
377
339
  function transferAllLabexamsList(labexams) {
378
340
  var allLabexams = [];
379
- _map(labexams, function (labexam) {
341
+ map(labexams, function (labexam) {
380
342
  var tempLabexams = [];
381
- if (!_isEmpty(_get(labexam, 'children'))) {
382
- tempLabexams = transferAllLabexamsList(_get(labexam, 'children'));
383
- allLabexams = _concat(allLabexams, tempLabexams);
343
+ if (!isEmpty(get(labexam, 'children'))) {
344
+ tempLabexams = transferAllLabexamsList(get(labexam, 'children'));
345
+ allLabexams = concat(allLabexams, tempLabexams);
384
346
  } else {
385
347
  allLabexams.push(labexam);
386
348
  }
@@ -462,21 +424,21 @@ function TemplateModal(props) {
462
424
  case 13:
463
425
  _result = (_b = _c.sent()) !== null && _b !== void 0 ? _b : [];
464
426
  _a = transferTemplates(_result), tree = _a.tree, all = _a.all;
465
- splitTemplates = _compact(_map(tree, function (t) {
466
- if (_get(t, 'pid') === 0) {
427
+ splitTemplates = compact(map(tree, function (t) {
428
+ if (get(t, 'pid') === 0) {
467
429
  return __assign(__assign({}, t), {
468
430
  children: []
469
431
  });
470
432
  }
471
433
  }));
472
- splitTemplatesMapping_1 = _keyBy(splitTemplates, 'id');
473
- _map(_result, function (t) {
474
- var templatePid = _get(t, 'pid');
475
- if (_indexOf(_keys(splitTemplatesMapping_1), String(templatePid)) > -1) {
434
+ splitTemplatesMapping_1 = keyBy(splitTemplates, 'id');
435
+ map(_result, function (t) {
436
+ var templatePid = get(t, 'pid');
437
+ if (indexOf(keys(splitTemplatesMapping_1), String(templatePid)) > -1) {
476
438
  splitTemplatesMapping_1[templatePid]['children'].push(t);
477
439
  }
478
440
  });
479
- newData = _keyBy(tree, 'id');
441
+ newData = keyBy(tree, 'id');
480
442
  set_splitTemplatesMapping(newData);
481
443
  set_result(all);
482
444
  _c.label = 14;
@@ -506,7 +468,7 @@ function TemplateModal(props) {
506
468
  return _.type === templateConfig.type;
507
469
  });
508
470
  if (!t) return [2];
509
- if (!!_isEmpty(activeTemplate)) return [3, 2];
471
+ if (!!isEmpty(activeTemplate)) return [3, 2];
510
472
  return [4, (_a = t.putItem) === null || _a === void 0 ? void 0 : _a.call(t, {
511
473
  user: user,
512
474
  item: __assign(__assign({}, activeTemplate), data)
@@ -525,7 +487,7 @@ function TemplateModal(props) {
525
487
  case 4:
526
488
  set_editModalVisible(false);
527
489
  set_activeTemplate({});
528
- _message.success('提交模板成功');
490
+ mchcEnv.success('提交模板成功');
529
491
  getTemplateList();
530
492
  return [2];
531
493
  }
@@ -562,7 +524,7 @@ function TemplateModal(props) {
562
524
  })];
563
525
  case 1:
564
526
  _b.sent();
565
- _message.success('删除模板成功');
527
+ mchcEnv.success('删除模板成功');
566
528
  getTemplateList();
567
529
  return [2];
568
530
  }
@@ -587,25 +549,18 @@ function TemplateModal(props) {
587
549
  var rowKey = selectedRowKeys.map(function (_) {
588
550
  return _.split('_').pop();
589
551
  });
590
- var content = '';
591
- var treeData = result;
592
- var treeDataMapping = _keyBy(treeData, 'id');
593
- _map(rowKey, function (id) {
594
- var item = _get(treeDataMapping, id);
595
- if (!_isEmpty(item) && _get(item, 'isLeaf')) {
596
- content += "".concat(_get(item, "val"), "\uFF1B");
597
- }
552
+ var leaf = result.filter(function (_) {
553
+ var _a, _b;
554
+ return _.isLeaf && !((_a = _.children) === null || _a === void 0 ? void 0 : _a.length) && rowKey.includes((_b = _.id) === null || _b === void 0 ? void 0 : _b.toString());
555
+ });
556
+ var content = leaf.map(function (_) {
557
+ return _.val;
558
+ }).join(' / ');
559
+ on_tpl_check === null || on_tpl_check === void 0 ? void 0 : on_tpl_check({
560
+ leaf: leaf,
561
+ result: result,
562
+ content: content
598
563
  });
599
- var data = {
600
- result: result.filter(function (_) {
601
- var _a, _b;
602
- return _.isLeaf && !((_a = _.children) === null || _a === void 0 ? void 0 : _a.length) && rowKey.includes((_b = _.id) === null || _b === void 0 ? void 0 : _b.toString());
603
- }),
604
- raw: result,
605
- selectedRowKeys: rowKey,
606
- treeDataMapping: treeDataMapping
607
- };
608
- onValueCheck === null || onValueCheck === void 0 ? void 0 : onValueCheck(data);
609
564
  close === null || close === void 0 ? void 0 : close(true);
610
565
  }
611
566
  var handleChangeTemplateType = function handleChangeTemplateType(item) {
@@ -621,12 +576,12 @@ function TemplateModal(props) {
621
576
  };
622
577
  function transferTemplateData(data) {
623
578
  var treeData = [];
624
- _map(data, function (item, index) {
579
+ map(data, function (item, index) {
625
580
  if (item.date) {
626
581
  item.title = "".concat(item.date, " ").concat(item.type);
627
582
  item.key = index;
628
583
  var diags = [];
629
- if (_size(item.pds) > 0) {
584
+ if (size(item.pds) > 0) {
630
585
  diags = item.pds;
631
586
  } else {
632
587
  diags = item.ods;
@@ -636,7 +591,7 @@ function TemplateModal(props) {
636
591
  item.title = item.diagnosis;
637
592
  item.key = String(item.id);
638
593
  }
639
- if (_isEmpty(item.children)) {
594
+ if (isEmpty(item.children)) {
640
595
  item.isLeaf = true;
641
596
  } else {
642
597
  item.isLeaf = false;
@@ -647,20 +602,20 @@ function TemplateModal(props) {
647
602
  }
648
603
  function renderDiagnosisHistory() {
649
604
  var treeData = transferTemplateData(diagnosisList);
650
- return _size(treeData) > 0 && /*#__PURE__*/React$1.createElement(Tree, {
605
+ return size(treeData) > 0 && /*#__PURE__*/React.createElement(Tree, {
651
606
  checkable: true,
652
- defaultExpandAll: isExpandAll,
607
+ defaultExpandAll: defaultExpandAll,
653
608
  onCheck: handleSelectTemplates,
654
609
  treeData: treeData
655
610
  });
656
611
  }
657
612
  function renderLabexams() {
658
- return labexams.length > 0 ? /*#__PURE__*/React$1.createElement(Tree, {
613
+ return labexams.length > 0 ? (/*#__PURE__*/React.createElement(Tree, {
659
614
  checkable: true,
660
- defaultExpandAll: isExpandAll,
615
+ defaultExpandAll: defaultExpandAll,
661
616
  treeData: labexams,
662
617
  onCheck: handleSelectTemplates
663
- }) : '暂无数据';
618
+ })) : '暂无数据';
664
619
  }
665
620
  function renderTreeNode(templatesTree, _key) {
666
621
  if (templatesTree === void 0) {
@@ -669,52 +624,54 @@ function TemplateModal(props) {
669
624
  if (_key === void 0) {
670
625
  _key = '';
671
626
  }
672
- return _map(templatesTree, function (template) {
627
+ return map(templatesTree, function (template) {
673
628
  var key = _key ? "".concat(_key, "_").concat(template.id) : "".concat(template.id);
674
- return /*#__PURE__*/React$1.createElement(Tree.TreeNode, {
675
- title: /*#__PURE__*/React$1.createElement("div", {
629
+ return /*#__PURE__*/React.createElement(Tree.TreeNode, {
630
+ title: /*#__PURE__*/React.createElement("div", {
676
631
  className: styles["template-list-item"]
677
- }, /*#__PURE__*/React$1.createElement("div", null, "\xA0", _get(template, 'val'), "\xA0"), canOperate && /*#__PURE__*/React$1.createElement("div", {
632
+ }, /*#__PURE__*/React.createElement("div", null, "\xA0", get(template, 'val'), "\xA0"), canOperate && (/*#__PURE__*/React.createElement("div", {
678
633
  className: styles["template-list-item__actions"]
679
- }, /*#__PURE__*/React$1.createElement(EditOutlined, {
634
+ }, /*#__PURE__*/React.createElement(MyIcon, {
635
+ value: 'EditOutlined',
680
636
  className: styles["template-list-item__actions-icon"],
681
637
  onClick: handleEditTemplate(template)
682
- }), /*#__PURE__*/React$1.createElement(_Popconfirm, {
638
+ }), /*#__PURE__*/React.createElement(Popconfirm, {
683
639
  title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6A21\u677F\u5417\uFF1F",
684
640
  onConfirm: handleConfirmDelete(template)
685
- }, /*#__PURE__*/React$1.createElement(DeleteOutlined, {
641
+ }, /*#__PURE__*/React.createElement(MyIcon, {
642
+ value: 'DeleteOutlined',
686
643
  className: styles["template-list-item__actions-icon"]
687
- })))),
644
+ }))))),
688
645
  key: key
689
- }, renderTreeNode(_get(template, 'children'), key));
646
+ }, renderTreeNode(get(template, 'children'), key));
690
647
  });
691
648
  }
692
649
  function renderModal() {
693
- return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
650
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
694
651
  className: styles["textarea-with-template__modal-nav"]
695
- }, /*#__PURE__*/React$1.createElement("div", null, safeTypes.map(function (item) {
652
+ }, /*#__PURE__*/React.createElement("div", null, safeTypes.map(function (item) {
696
653
  var type = item.type,
697
654
  title = item.title;
698
- return /*#__PURE__*/React$1.createElement(_Button, {
655
+ return /*#__PURE__*/React.createElement(Button, {
699
656
  className: styles["textarea-with-template__modal-nav__items"],
700
657
  type: templateConfig.type === type ? 'primary' : 'default',
701
658
  key: type,
702
659
  onClick: handleChangeTemplateType(item)
703
660
  }, title);
704
- })), /*#__PURE__*/React$1.createElement(_Button, {
661
+ })), /*#__PURE__*/React.createElement(Button, {
705
662
  disabled: !canOperate,
706
663
  onClick: handleAddTemplate
707
- }, "\u6DFB\u52A0\u6A21\u677F")), /*#__PURE__*/React$1.createElement(_Row, {
664
+ }, "\u6DFB\u52A0\u6A21\u677F")), /*#__PURE__*/React.createElement(Row, {
708
665
  className: styles["textarea-with-template__modal-body"]
709
- }, /*#__PURE__*/React$1.createElement(React$1.Fragment, null, _map(splitTemplatesMapping, function (templateTree, id) {
710
- return /*#__PURE__*/React$1.createElement(_Col, {
666
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, map(splitTemplatesMapping, function (templateTree, id) {
667
+ return /*#__PURE__*/React.createElement(Col, {
711
668
  span: 12
712
- }, /*#__PURE__*/React$1.createElement(Tree, {
669
+ }, /*#__PURE__*/React.createElement(Tree, {
713
670
  checkable: true,
714
- defaultExpandAll: isExpandAll,
671
+ defaultExpandAll: defaultExpandAll,
715
672
  onCheck: handleSelectTemplates
716
673
  }, renderTreeNode([templateTree])));
717
- })), (templateConfig.type === 3 || templateConfig.type === 4) && renderLabexams(), templateConfig.type === 5 && renderDiagnosisHistory()), editModalVisible && /*#__PURE__*/React$1.createElement(EditModal, {
674
+ })), (templateConfig.type === 3 || templateConfig.type === 4) && renderLabexams(), templateConfig.type === 5 && renderDiagnosisHistory()), editModalVisible && (/*#__PURE__*/React.createElement(EditModal, {
718
675
  templateTypes: safeTypes,
719
676
  getContainer: props.getContainer,
720
677
  templateType: templateConfig,
@@ -722,9 +679,9 @@ function TemplateModal(props) {
722
679
  data: activeTemplate,
723
680
  onCancel: handleHideEditModal,
724
681
  onSubmit: handleSubmitEditModal
725
- }));
682
+ })));
726
683
  }
727
- return /*#__PURE__*/React$1.createElement(_Modal, _extends({}, others, {
684
+ return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
728
685
  className: styles["textarea-with-template__modal"],
729
686
  title: "\u6A21\u677F\u5BFC\u5165",
730
687
  width: 1100,
@@ -732,4 +689,3 @@ function TemplateModal(props) {
732
689
  }), renderModal());
733
690
  }
734
691
  export { TemplateModal as default };
735
- //# sourceMappingURL=.root14.js.map
@@ -0,0 +1,30 @@
1
+ import { d as __rest, a as __assign } from './index.js';
2
+ import { Modal } from 'antd';
3
+ import React from 'react';
4
+ import '@lm_fe/components';
5
+ import '@lm_fe/utils';
6
+ import 'classnames';
7
+ import 'lodash';
8
+ import '@lm_fe/components_m';
9
+ import '@lm_fe/env';
10
+ import '@lm_fe/provoke';
11
+ import '@lm_fe/service';
12
+ function Test(_a) {
13
+ var modal_data = _a.modal_data,
14
+ visible = _a.visible,
15
+ onCancel = _a.onCancel,
16
+ others = __rest(_a, ["modal_data", "visible", "onCancel"]);
17
+ var content = modal_data.content;
18
+ return /*#__PURE__*/React.createElement(Modal, __assign({
19
+ open: visible,
20
+ title: "Test",
21
+ width: 1000,
22
+ footer: null,
23
+ onCancel: onCancel,
24
+ style: {
25
+ top: '20px'
26
+ },
27
+ destroyOnClose: true
28
+ }, others), content);
29
+ }
30
+ export { Test as default };