@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,164 +1,1408 @@
1
- import 'antd/es/button/style';
2
- import _Button from 'antd/es/button';
3
- import 'antd/es/checkbox/style';
4
- import _Checkbox from 'antd/es/checkbox';
5
- import 'antd/es/form/style';
6
- import _Form from 'antd/es/form';
7
- import 'antd/es/input/style';
8
- import _Input from 'antd/es/input';
9
- import React, { useEffect, useState } from 'react';
10
- import { s as styleInject } from './index.js';
11
- import classnames from 'classnames';
12
- import { UserOutlined, SafetyOutlined } from '@ant-design/icons';
13
- import { mchcEnv } from '@lm_fe/env';
14
- import 'antd/es/row/style';
15
- import 'antd/es/row';
16
- import 'antd/es/col/style';
17
- import 'antd/es/col';
18
- import 'antd/es/list/style';
19
- import 'antd/es/list';
20
- import 'antd/es/tooltip/style';
21
- import 'antd/es/tooltip';
22
- import 'lodash/get';
23
- import 'antd/es/spin/style';
24
- import 'antd/es/spin';
25
- import '@lm_fe/components_m';
26
- import '@lm_fe/utils';
1
+ import { s as styleInject, b as __awaiter, c as __generator, f as __extends, a as __assign } from './index.js';
2
+ import { MyForm, getFormData } from '@lm_fe/components_m';
3
+ import { Button, Modal, Tabs, message } from 'antd';
4
+ import { cloneDeep, get, set, size } from 'lodash';
5
+ import React, { Component } from 'react';
6
+ import { request } from '@lm_fe/utils';
27
7
  import '@lm_fe/components';
28
- import 'antd/es/result/style';
29
- import 'antd/es/result';
30
- import 'antd/es/menu/style';
31
- import 'antd/es/menu';
8
+ import 'classnames';
9
+ import '@lm_fe/env';
10
+ import '@lm_fe/provoke';
32
11
  import '@lm_fe/service';
33
- import 'antd/es/message/style';
34
- import 'antd/es/message';
35
- import 'antd/es/space/style';
36
- import 'antd/es/space';
37
- import 'lodash/keys';
38
- import 'antd/es/divider/style';
39
- import 'antd/es/divider';
40
- var css_248z = ".index-module_container__1EUKg {\n display: flex;\n height: 100vh;\n background-color: #f0f8ff;\n margin: 0;\n}\n.index-module_left-panel__mfu8l {\n flex: 1;\n background-color: #113aa1;\n}\n.index-module_right-panel__OpwE7 {\n flex: 1;\n background-color: #f0f0f0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column;\n}\n.index-module_login-form__HKinZ {\n width: 440px;\n padding: 40px;\n border-radius: 4px;\n box-shadow: 10px 10px 20px rgba(1, 36, 73, 0.4);\n background-color: #fff;\n transform: translateY(-100%);\n opacity: 0;\n}\n.index-module_login-form__HKinZ .anticon {\n color: #888;\n}\n.index-module_login-form__HKinZ h2 {\n color: #113aa1;\n font-size: 24px;\n}\n.index-module_decorations__jWpju {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n pointer-events: none;\n overflow: hidden;\n}\n.index-module_dot__u7Mwf {\n position: absolute;\n background: rgba(255, 255, 255, 0.4);\n border-radius: 50%;\n opacity: 0;\n}\n.index-module_dot-1__8i7U7 {\n width: 120px;\n height: 120px;\n top: 20%;\n left: 10%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.2s;\n}\n.index-module_dot-2__wt9fy {\n width: 80px;\n height: 80px;\n bottom: 15%;\n left: 5%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.4s;\n}\n.index-module_dot-3__Yy4mm {\n width: 60px;\n height: 60px;\n top: 40%;\n left: 30%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.6s;\n}\n.index-module_login-form__HKinZ {\n position: relative;\n z-index: 1;\n}\n@keyframes index-module_slide-in__HvqeU {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n.index-module_animate-in__yVlC0 {\n animation: index-module_slide-in__HvqeU 0.5s ease-out forwards;\n}\n.index-module_footer__dtz-2 {\n text-align: center;\n padding-bottom: 24px;\n color: #999;\n font-size: 12px;\n}\n";
12
+ var gdmConfig = [{
13
+ name: 'gdm',
14
+ key: '.*',
15
+ label: '',
16
+ input_type: 'table',
17
+ input_props: {
18
+ editable: true,
19
+ hiddenSelection: true,
20
+ tableColumns: [{
21
+ key: 'checkdate',
22
+ title: '日期',
23
+ width: 60,
24
+ editor: {
25
+ input_type: 'single_date_picker'
26
+ }
27
+ }, {
28
+ key: 'kf',
29
+ title: '空腹血糖(mmol/L)',
30
+ width: 40,
31
+ editor: {
32
+ input_type: 'input_number'
33
+ }
34
+ }, {
35
+ key: 'ch1',
36
+ title: '餐后1h血糖(mmol/L)',
37
+ width: 40,
38
+ editor: {
39
+ input_type: 'input_number'
40
+ }
41
+ }, {
42
+ key: 'ch2',
43
+ title: '餐后2h血糖(mmol/L)',
44
+ width: 40,
45
+ editor: {
46
+ input_type: 'input_number'
47
+ }
48
+ }, {
49
+ key: 'th',
50
+ title: '糖化血红蛋白(%)',
51
+ width: 40,
52
+ editor: {
53
+ input_type: 'input_number'
54
+ }
55
+ }, {
56
+ key: 'kfy',
57
+ title: '空腹胰岛素(uU/L)',
58
+ width: 40,
59
+ editor: {
60
+ input_type: 'input_number'
61
+ }
62
+ }, {
63
+ key: 'miny',
64
+ title: '30min胰岛素(uU/L)',
65
+ width: 40,
66
+ editor: {
67
+ input_type: 'input_number'
68
+ }
69
+ }, {
70
+ key: 'hy',
71
+ title: '2h胰岛素(uU/L)',
72
+ width: 40,
73
+ editor: {
74
+ input_type: 'input_with_range'
75
+ }
76
+ }, {
77
+ title: '早胰岛素方案',
78
+ children: [{
79
+ key: 'zdrug',
80
+ title: '药名',
81
+ width: 50,
82
+ editor: {
83
+ name: '',
84
+ key: '',
85
+ input_type: 'select_with_options',
86
+ input_props: {
87
+ options: [{
88
+ label: '诺和平',
89
+ value: '诺和平'
90
+ }, {
91
+ label: '诺和锐',
92
+ value: '诺和锐'
93
+ }]
94
+ }
95
+ }
96
+ }, {
97
+ key: 'zdosage',
98
+ title: '用量(U)',
99
+ width: 40,
100
+ editor: {
101
+ input_type: 'input_number'
102
+ }
103
+ }]
104
+ }, {
105
+ title: '中胰岛素方案',
106
+ children: [{
107
+ key: 'jdrug',
108
+ title: '药名',
109
+ width: 50,
110
+ editor: {
111
+ name: '',
112
+ key: '',
113
+ input_type: 'select_with_options',
114
+ input_props: {
115
+ options: [{
116
+ label: '诺和平',
117
+ value: '诺和平'
118
+ }, {
119
+ label: '诺和锐',
120
+ value: '诺和锐'
121
+ }]
122
+ }
123
+ }
124
+ }, {
125
+ key: 'jdosage',
126
+ title: '用量(U)',
127
+ width: 40,
128
+ editor: {
129
+ input_type: 'input_number'
130
+ }
131
+ }]
132
+ }, {
133
+ title: '晚胰岛素方案',
134
+ children: [{
135
+ key: 'wdrug',
136
+ title: '药名',
137
+ width: 50,
138
+ editor: {
139
+ name: '',
140
+ key: '',
141
+ input_type: 'select_with_options',
142
+ input_props: {
143
+ options: [{
144
+ label: '诺和平',
145
+ value: '诺和平'
146
+ }, {
147
+ label: '诺和锐',
148
+ value: '诺和锐'
149
+ }]
150
+ }
151
+ }
152
+ }, {
153
+ key: 'wdosage',
154
+ title: '用量(U)',
155
+ width: 40,
156
+ editor: {
157
+ input_type: 'input_number'
158
+ }
159
+ }]
160
+ }]
161
+ }
162
+ }];
163
+ var bmiConfig = [{
164
+ name: 'bmi',
165
+ key: '.*',
166
+ label: '',
167
+ input_type: 'table',
168
+ input_props: {
169
+ editable: true,
170
+ hiddenSelection: true,
171
+ tableColumns: [{
172
+ key: 'checkdate',
173
+ title: '日期',
174
+ width: 60,
175
+ editor: {
176
+ input_type: 'single_date_picker'
177
+ }
178
+ }, {
179
+ key: 'tz',
180
+ title: '体重(kg)',
181
+ width: 40,
182
+ editor: {
183
+ input_type: 'input_number'
184
+ }
185
+ }, {
186
+ key: 'xl',
187
+ title: '心率(bpm)',
188
+ width: 40,
189
+ editor: {
190
+ input_type: 'input_number'
191
+ }
192
+ }, {
193
+ key: 'td',
194
+ title: '胎动',
195
+ width: 40,
196
+ editor: {
197
+ input_type: 'select_with_options',
198
+ input_props: {
199
+ options: [{
200
+ label: '未有',
201
+ value: '未有'
202
+ }, {
203
+ label: '正常',
204
+ value: '正常'
205
+ }, {
206
+ label: '减少',
207
+ value: '减少'
208
+ }, {
209
+ label: '增多',
210
+ value: '增多'
211
+ }]
212
+ }
213
+ }
214
+ }, {
215
+ key: 'xh',
216
+ title: '血红蛋白(g/L)',
217
+ width: 40,
218
+ editor: {
219
+ input_type: 'input_number'
220
+ }
221
+ }, {
222
+ key: 'bpd',
223
+ title: 'BPD(mm)',
224
+ width: 40,
225
+ editor: {
226
+ input_type: 'input_number'
227
+ }
228
+ }, {
229
+ key: 'hc',
230
+ title: 'HC(mm)',
231
+ width: 40,
232
+ editor: {
233
+ input_type: 'input_number'
234
+ }
235
+ }, {
236
+ key: 'ac',
237
+ title: 'AC(mm)',
238
+ width: 40,
239
+ editor: {
240
+ input_type: 'input_number'
241
+ }
242
+ }, {
243
+ key: 'fl',
244
+ title: 'FL(mm)',
245
+ width: 40,
246
+ editor: {
247
+ input_type: 'input_number'
248
+ }
249
+ }, {
250
+ key: 'hl',
251
+ title: 'HL(mm)',
252
+ width: 40,
253
+ editor: {
254
+ input_type: 'input_number'
255
+ }
256
+ }, {
257
+ key: 'efw',
258
+ title: 'EFW(g)',
259
+ width: 40,
260
+ editor: {
261
+ input_type: 'input_number'
262
+ }
263
+ }, {
264
+ key: 'afv',
265
+ title: 'AFV(uU/L)',
266
+ width: 40,
267
+ editor: {
268
+ input_type: 'input_number'
269
+ }
270
+ }, {
271
+ key: 'ys',
272
+ title: '饮食建议(uU/L)',
273
+ width: 40,
274
+ editor: {
275
+ input_type: 'input'
276
+ }
277
+ }, {
278
+ key: 'yd',
279
+ title: '运动建议(uU/L)',
280
+ width: 40,
281
+ editor: {
282
+ input_type: 'input'
283
+ }
284
+ }]
285
+ }
286
+ }];
287
+ var fetalOption = {
288
+ 二胎: [{
289
+ label: '1',
290
+ value: '1'
291
+ }, {
292
+ label: '2',
293
+ value: '2'
294
+ }],
295
+ 三胎: [{
296
+ label: '1',
297
+ value: '1'
298
+ }, {
299
+ label: '2',
300
+ value: '2'
301
+ }, {
302
+ label: '3',
303
+ value: '3'
304
+ }],
305
+ 四胎: [{
306
+ label: '1',
307
+ value: '1'
308
+ }, {
309
+ label: '2',
310
+ value: '2'
311
+ }, {
312
+ label: '3',
313
+ value: '3'
314
+ }, {
315
+ label: '4',
316
+ value: '4'
317
+ }],
318
+ 五胎: [{
319
+ label: '1',
320
+ value: '1'
321
+ }, {
322
+ label: '2',
323
+ value: '2'
324
+ }, {
325
+ label: '3',
326
+ value: '3'
327
+ }, {
328
+ label: '4',
329
+ value: '4'
330
+ }, {
331
+ label: '5',
332
+ value: '5'
333
+ }],
334
+ 六胎: [{
335
+ label: '1',
336
+ value: '1'
337
+ }, {
338
+ label: '2',
339
+ value: '2'
340
+ }, {
341
+ label: '3',
342
+ value: '3'
343
+ }, {
344
+ label: '4',
345
+ value: '4'
346
+ }, {
347
+ label: '5',
348
+ value: '5'
349
+ }, {
350
+ label: '6',
351
+ value: '6'
352
+ }]
353
+ };
354
+ var commonColumns = [{
355
+ key: 'checkdate',
356
+ title: '日期',
357
+ width: 60,
358
+ editor: {
359
+ input_type: 'single_date_picker'
360
+ }
361
+ }, {
362
+ key: 'gestationalWeek',
363
+ title: '孕周',
364
+ width: 40,
365
+ editor: {
366
+ input_type: 'input'
367
+ }
368
+ }, {
369
+ key: 'fetal',
370
+ title: '胎儿',
371
+ width: 40,
372
+ editor: {
373
+ input_type: 'select_with_options_or_input',
374
+ input_props: {
375
+ options: []
376
+ }
377
+ }
378
+ }, {
379
+ key: 'fetalMovement',
380
+ title: '胎动',
381
+ width: 40,
382
+ editor: {
383
+ input_type: 'select_with_options',
384
+ input_props: {
385
+ options: [{
386
+ label: '未有',
387
+ value: '未有'
388
+ }, {
389
+ label: '正常',
390
+ value: '正常'
391
+ }, {
392
+ label: '减少',
393
+ value: '减少'
394
+ }, {
395
+ label: '增多',
396
+ value: '增多'
397
+ }]
398
+ }
399
+ }
400
+ }, {
401
+ key: 'fhr',
402
+ title: '胎心率',
403
+ width: 40,
404
+ editor: {
405
+ input_type: 'input_number'
406
+ }
407
+ }, {
408
+ key: 'fetalMonitor',
409
+ title: '胎监',
410
+ width: 40,
411
+ editor: {
412
+ input_type: 'input'
413
+ }
414
+ }, {
415
+ key: 'bpd',
416
+ title: 'BPD(mm)',
417
+ width: 40,
418
+ editor: {
419
+ input_type: 'input_number'
420
+ }
421
+ }, {
422
+ key: 'hc',
423
+ title: 'HC(mm)',
424
+ width: 40,
425
+ editor: {
426
+ input_type: 'input_number'
427
+ }
428
+ }, {
429
+ key: 'ac',
430
+ title: 'AC(mm)',
431
+ width: 40,
432
+ editor: {
433
+ input_type: 'input_number'
434
+ }
435
+ }, {
436
+ key: 'fl',
437
+ title: 'FL(mm)',
438
+ width: 40,
439
+ editor: {
440
+ input_type: 'input_number'
441
+ }
442
+ }, {
443
+ key: 'hl',
444
+ title: 'HL(mm)',
445
+ width: 40,
446
+ editor: {
447
+ input_type: 'input_number'
448
+ }
449
+ }, {
450
+ key: 'efw',
451
+ title: 'EFW(g)',
452
+ width: 40,
453
+ editor: {
454
+ input_type: 'input_number'
455
+ }
456
+ }, {
457
+ key: 'afv',
458
+ title: 'AFV(mm)',
459
+ width: 40,
460
+ editor: {
461
+ input_type: 'input_number'
462
+ }
463
+ }, {
464
+ key: 'ubf',
465
+ title: '脐血流',
466
+ width: 40,
467
+ editor: {
468
+ input_type: 'input'
469
+ }
470
+ }];
471
+ var slowGrowingConfig = [{
472
+ name: '',
473
+ key: '',
474
+ label: '关键指标',
475
+ header_label: true,
476
+ just_header: true,
477
+ input_type: ''
478
+ }, {
479
+ name: 'slowGrowing',
480
+ key: '.*',
481
+ label: '',
482
+ input_type: 'table',
483
+ input_props: {
484
+ editable: true,
485
+ hiddenSelection: true,
486
+ tableColumns: commonColumns
487
+ }
488
+ }, {
489
+ name: '',
490
+ key: '',
491
+ label: '病理因素',
492
+ header_label: true,
493
+ just_header: true,
494
+ input_type: ''
495
+ }, {
496
+ name: 'allergyHistory',
497
+ key: '.allergyHistory',
498
+ label: '母体因素',
499
+ span: 24,
500
+ input_type: 'checkbox',
501
+ input_props: {
502
+ type: 'multiple',
503
+ radio: false,
504
+ renderData: [{
505
+ key: 'drsdug',
506
+ label: '紫绀型心脏病'
507
+ }, {
508
+ key: 'foodfsf',
509
+ label: '慢性肾病'
510
+ }, {
511
+ key: 'ogdsgther',
512
+ label: '慢性高血压'
513
+ }, {
514
+ key: 'fgsgood',
515
+ label: '糖尿病'
516
+ }, {
517
+ key: 'othegsgr',
518
+ label: '甲状腺疾病'
519
+ }, {
520
+ key: 'foogsgd',
521
+ label: '系统性红斑狼疮'
522
+ }, {
523
+ key: 'othhdher',
524
+ label: '抗磷脂抗体综合征'
525
+ }, {
526
+ key: 'fdhhood',
527
+ label: '子痫前期'
528
+ }, {
529
+ key: 'othhegsgr',
530
+ label: '妊娠期肝内胆汁淤积症'
531
+ }]
532
+ }
533
+ }, {
534
+ name: 'hypertension',
535
+ key: '.diseaseHistory.hypertdfgension(Note)',
536
+ label: '胎儿结构异常',
537
+ input_type: 'checkbox',
538
+ span: 18,
539
+ input_props: {
540
+ type: 'custom',
541
+ renderData: [{
542
+ key: 'hypertension',
543
+ label: '',
544
+ options: [{
545
+ label: '无',
546
+ value: 1
547
+ }, {
548
+ label: '先天性心脏病',
549
+ value: 2
550
+ }, {
551
+ label: '腹壁裂',
552
+ value: 3
553
+ }, {
554
+ label: '未查',
555
+ value: 4
556
+ }]
557
+ }]
558
+ }
559
+ }, {
560
+ name: 'diabetes',
561
+ key: '.diseaseHistory.diagdbetes(Note)',
562
+ label: '胎盘异常',
563
+ input_type: 'checkbox',
564
+ span: 18,
565
+ input_props: {
566
+ type: 'custom',
567
+ renderData: [{
568
+ key: 'diabetes',
569
+ label: '',
570
+ options: [{
571
+ label: '无',
572
+ value: 1
573
+ }, {
574
+ label: '轮廓胎盘',
575
+ value: 2
576
+ }, {
577
+ label: '胎盘血管瘤',
578
+ value: 3
579
+ }, {
580
+ label: '绒毛膜下血肿',
581
+ value: 4
582
+ }, {
583
+ label: '小胎盘',
584
+ value: 5
585
+ }, {
586
+ label: '副胎盘',
587
+ value: 6
588
+ }, {
589
+ label: '未查',
590
+ value: 7
591
+ }, {
592
+ label: '其他',
593
+ value: 8
594
+ }],
595
+ extraEditors: [{
596
+ key: 8,
597
+ editors: [{
598
+ input_type: 'input'
599
+ }]
600
+ }]
601
+ }]
602
+ }
603
+ }, {
604
+ name: 'cardiacDisease',
605
+ key: '.diseaseHistory.cardiacDgaisease(Note)',
606
+ label: '脐带异常',
607
+ input_type: 'checkbox',
608
+ span: 18,
609
+ input_props: {
610
+ type: 'custom',
611
+ renderData: [{
612
+ key: 'cardiacDisease',
613
+ label: '',
614
+ options: [{
615
+ label: '无',
616
+ value: 1
617
+ }, {
618
+ label: '单脐动脉',
619
+ value: 2
620
+ }, {
621
+ label: '脐带过细',
622
+ value: 3
623
+ }, {
624
+ label: '脐带扭转',
625
+ value: 4
626
+ }, {
627
+ label: '脐带打结',
628
+ value: 5
629
+ }, {
630
+ label: '未查',
631
+ value: 6
632
+ }, {
633
+ label: '其他',
634
+ value: 7
635
+ }],
636
+ extraEditors: [{
637
+ key: 7,
638
+ editors: [{
639
+ input_type: 'input'
640
+ }]
641
+ }]
642
+ }]
643
+ }
644
+ }, {
645
+ name: 'cardiacDisease',
646
+ key: '.diseaseHistory.cardiacgarDisease(Note)',
647
+ label: '其他因素',
648
+ input_type: 'checkbox',
649
+ span: 18,
650
+ input_props: {
651
+ type: 'custom',
652
+ renderData: [{
653
+ key: 'cardiacDisease',
654
+ label: '',
655
+ options: [{
656
+ label: '无',
657
+ value: 1
658
+ }, {
659
+ label: '吸烟',
660
+ value: 2
661
+ }, {
662
+ label: '喝酒',
663
+ value: 3
664
+ }, {
665
+ label: '接触放射线',
666
+ value: 4
667
+ }, {
668
+ label: '其他',
669
+ value: 5
670
+ }],
671
+ extraEditors: [{
672
+ key: 5,
673
+ editors: [{
674
+ input_type: 'input'
675
+ }]
676
+ }]
677
+ }]
678
+ }
679
+ }, {
680
+ name: 'cardiacDisease',
681
+ key: '.diseaseHistory.cardiacDisgagease(Note)',
682
+ label: '产前诊断',
683
+ input_type: 'checkbox',
684
+ span: 18,
685
+ input_props: {
686
+ type: 'custom',
687
+ renderData: [{
688
+ key: 'cardiacDisease',
689
+ label: '',
690
+ options: [{
691
+ label: '正常',
692
+ value: 1
693
+ }, {
694
+ label: '异常',
695
+ value: 2
696
+ }, {
697
+ label: '拒绝产前诊断',
698
+ value: 3
699
+ }]
700
+ }]
701
+ }
702
+ }, {
703
+ name: 'cardiacDisease',
704
+ key: '.diseaseHistory.cardiacDigagsease(Note)',
705
+ label: '巨细胞病毒',
706
+ input_type: 'checkbox',
707
+ span: 8,
708
+ input_props: {
709
+ type: 'custom',
710
+ renderData: [{
711
+ key: 'cardiacagDisease',
712
+ label: '',
713
+ options: [{
714
+ label: '阴性',
715
+ value: 1
716
+ }, {
717
+ label: '阳性',
718
+ value: 2
719
+ }, {
720
+ label: '未查',
721
+ value: 3
722
+ }]
723
+ }]
724
+ }
725
+ }, {
726
+ name: 'cardiacDisease',
727
+ key: '.diseaseHistory.cardiacDigazgsease(Note)',
728
+ label: '风疹病毒',
729
+ input_type: 'checkbox',
730
+ span: 8,
731
+ input_props: {
732
+ type: 'custom',
733
+ renderData: [{
734
+ key: 'cardiacggDisease',
735
+ label: '',
736
+ options: [{
737
+ label: '阴性',
738
+ value: 1
739
+ }, {
740
+ label: '阳性',
741
+ value: 2
742
+ }, {
743
+ label: '未查',
744
+ value: 3
745
+ }]
746
+ }]
747
+ }
748
+ }, {
749
+ name: 'cardiacDisease',
750
+ key: '.diseaseHistory.cardiacDgagisease(Note)',
751
+ label: '弓形虫',
752
+ input_type: 'checkbox',
753
+ span: 8,
754
+ input_props: {
755
+ type: 'custom',
756
+ renderData: [{
757
+ key: 'cardiacDisease',
758
+ label: '',
759
+ options: [{
760
+ label: '阴性',
761
+ value: 1
762
+ }, {
763
+ label: '阳性',
764
+ value: 2
765
+ }, {
766
+ label: '未查',
767
+ value: 3
768
+ }]
769
+ }]
770
+ }
771
+ }, {
772
+ name: 'cardiacDisease',
773
+ key: '.diseaseHistory.cardiacDigazgsease(Note)',
774
+ label: 'HIV',
775
+ input_type: 'checkbox',
776
+ span: 8,
777
+ input_props: {
778
+ type: 'custom',
779
+ renderData: [{
780
+ key: 'cardiacDgaisease',
781
+ label: '',
782
+ options: [{
783
+ label: '阴性',
784
+ value: 1
785
+ }, {
786
+ label: '阳性',
787
+ value: 2
788
+ }, {
789
+ label: '未查',
790
+ value: 3
791
+ }]
792
+ }]
793
+ }
794
+ }, {
795
+ name: 'cardiacDisease',
796
+ key: '.diseaseHistory.cardiacDisease(Note)',
797
+ label: '丙肝',
798
+ input_type: 'checkbox',
799
+ span: 8,
800
+ input_props: {
801
+ type: 'custom',
802
+ renderData: [{
803
+ key: 'cardiacDisease',
804
+ label: '',
805
+ options: [{
806
+ label: '阴性',
807
+ value: 1
808
+ }, {
809
+ label: '阳性',
810
+ value: 2
811
+ }, {
812
+ label: '未查',
813
+ value: 3
814
+ }]
815
+ }]
816
+ }
817
+ }, {
818
+ name: 'cardiacDisease',
819
+ key: '.diseaseHistory.cardiafhshgacDisease(Note)',
820
+ label: '梅毒',
821
+ input_type: 'checkbox',
822
+ span: 8,
823
+ input_props: {
824
+ type: 'custom',
825
+ renderData: [{
826
+ key: 'cardiacgrgDisease',
827
+ label: '',
828
+ options: [{
829
+ label: '阴性',
830
+ value: 1
831
+ }, {
832
+ label: '阳性',
833
+ value: 2
834
+ }, {
835
+ label: '未查',
836
+ value: 3
837
+ }]
838
+ }]
839
+ }
840
+ }];
841
+ var twinsConfig = [{
842
+ name: '',
843
+ key: '',
844
+ label: '双胎情况',
845
+ header_label: true,
846
+ just_header: true,
847
+ input_type: ''
848
+ }, {
849
+ name: 'twinPregnancyType',
850
+ key: 'twinPregnancyType',
851
+ label: '双胎妊娠类型',
852
+ span: 8,
853
+ input_type: 'select',
854
+ input_props: {
855
+ options: [{
856
+ label: '双绒毛膜双羊膜囊双胎',
857
+ value: '双绒毛膜双羊膜囊双胎'
858
+ }, {
859
+ label: '单绒毛膜双羊膜囊双胎',
860
+ value: '单绒毛膜双羊膜囊双胎'
861
+ }, {
862
+ label: '单绒毛膜单羊膜囊双胎',
863
+ value: '单绒毛膜单羊膜囊双胎'
864
+ }, {
865
+ label: '未确认',
866
+ value: '未确认'
867
+ }]
868
+ }
869
+ }, {
870
+ name: 'multipleComplications',
871
+ key: 'multipleComplications',
872
+ label: '双胎并发症',
873
+ input_type: 'checkbox',
874
+ span: 18,
875
+ input_props: {
876
+ type: 'group',
877
+ options: [{
878
+ label: '双胎输血综合征(TTTS)',
879
+ value: 1
880
+ }, {
881
+ label: '无心畸胎序列征(TRAPS)',
882
+ value: 2
883
+ }, {
884
+ label: '选择性胎儿生长受限(sIUGR)',
885
+ value: 3
886
+ }]
887
+ }
888
+ }, {
889
+ name: 'reduction(Note)',
890
+ key: 'reduction(Note)',
891
+ label: '减胎',
892
+ input_type: 'checkbox',
893
+ span: 18,
894
+ input_props: {
895
+ type: 'custom',
896
+ renderData: [{
897
+ key: 'reduction',
898
+ label: '',
899
+ options: [{
900
+ label: '无',
901
+ value: 1
902
+ }, {
903
+ label: '有',
904
+ value: 2
905
+ }],
906
+ extraEditors: [{
907
+ key: 2,
908
+ editors: [{
909
+ label: '减胎对象',
910
+ name: 'reductionObject',
911
+ key: 'reductionObject',
912
+ input_type: 'input'
913
+ }, {
914
+ label: '减胎原因',
915
+ name: 'reductionReason',
916
+ key: 'reductionReason',
917
+ input_type: 'input'
918
+ }]
919
+ }]
920
+ }]
921
+ }
922
+ }, {
923
+ name: 'stillbornFoetus(Note)',
924
+ key: 'stillbornFoetus(Note)',
925
+ label: '死胎',
926
+ input_type: 'checkbox',
927
+ span: 18,
928
+ input_props: {
929
+ type: 'custom',
930
+ renderData: [{
931
+ key: 'stillbornFoetus',
932
+ label: '',
933
+ options: [{
934
+ label: '无',
935
+ value: 1
936
+ }, {
937
+ label: '有',
938
+ value: 2
939
+ }],
940
+ extraEditors: [{
941
+ key: 2,
942
+ editors: [{
943
+ label: '死胎对象',
944
+ name: 'stillbornFoetusObject',
945
+ key: 'stillbornFoetusObject',
946
+ input_type: 'input'
947
+ }, {
948
+ label: '死胎原因',
949
+ name: 'stillbornFoetusReason',
950
+ key: 'stillbornFoetusReason',
951
+ input_type: 'input'
952
+ }]
953
+ }]
954
+ }]
955
+ }
956
+ }, {
957
+ name: '',
958
+ key: '',
959
+ label: '超声指标',
960
+ header_label: true,
961
+ just_header: true,
962
+ input_type: ''
963
+ }, {
964
+ name: 'mlUltrasounds',
965
+ key: 'mlUltrasounds',
966
+ label: '',
967
+ input_type: 'table',
968
+ input_props: {
969
+ editable: true,
970
+ hiddenSelection: true,
971
+ tableColumns: commonColumns
972
+ }
973
+ }];
974
+ var multipletsConfig = [{
975
+ name: '',
976
+ key: '',
977
+ label: '多胎情况',
978
+ header_label: true,
979
+ just_header: true,
980
+ input_type: ''
981
+ }, {
982
+ name: 'fetalCount',
983
+ key: 'fetalCount',
984
+ label: '胎数',
985
+ span: 8,
986
+ input_type: 'select',
987
+ input_props: {
988
+ options: [{
989
+ label: '三胎',
990
+ value: '三胎'
991
+ }, {
992
+ label: '四胎',
993
+ value: '四胎'
994
+ }, {
995
+ label: '五胎',
996
+ value: '五胎'
997
+ }, {
998
+ label: '六胎',
999
+ value: '六胎'
1000
+ }]
1001
+ }
1002
+ }, {
1003
+ name: 'multipleComplications',
1004
+ key: 'multipleComplications',
1005
+ label: '多胎并发症',
1006
+ input_type: 'checkbox',
1007
+ span: 18,
1008
+ input_props: {
1009
+ type: 'group',
1010
+ options: [{
1011
+ label: '无心畸胎序列征(TRAPS)',
1012
+ value: 2
1013
+ }, {
1014
+ label: '选择性胎儿生长受限(sIUGR)',
1015
+ value: 3
1016
+ }]
1017
+ }
1018
+ }, {
1019
+ name: 'reduction(Note)',
1020
+ key: 'reduction(Note)',
1021
+ label: '减胎',
1022
+ input_type: 'checkbox',
1023
+ span: 18,
1024
+ input_props: {
1025
+ type: 'custom',
1026
+ renderData: [{
1027
+ key: 'reduction',
1028
+ label: '',
1029
+ options: [{
1030
+ label: '无',
1031
+ value: 1
1032
+ }, {
1033
+ label: '有',
1034
+ value: 2
1035
+ }],
1036
+ extraEditors: [{
1037
+ key: 2,
1038
+ editors: [{
1039
+ label: '减胎对象',
1040
+ name: 'reductionObject',
1041
+ key: 'reductionObject',
1042
+ input_type: 'input'
1043
+ }, {
1044
+ label: '减胎原因',
1045
+ name: 'reductionReason',
1046
+ key: 'reductionReason',
1047
+ input_type: 'input'
1048
+ }]
1049
+ }]
1050
+ }]
1051
+ }
1052
+ }, {
1053
+ name: 'stillbornFoetus(Note)',
1054
+ key: 'stillbornFoetus(Note)',
1055
+ label: '死胎',
1056
+ input_type: 'checkbox',
1057
+ span: 18,
1058
+ input_props: {
1059
+ type: 'custom',
1060
+ renderData: [{
1061
+ key: 'stillbornFoetus',
1062
+ label: '',
1063
+ options: [{
1064
+ label: '无',
1065
+ value: 1
1066
+ }, {
1067
+ label: '有',
1068
+ value: 2
1069
+ }],
1070
+ extraEditors: [{
1071
+ key: 2,
1072
+ editors: [{
1073
+ label: '死胎对象',
1074
+ name: 'stillbornFoetusObject',
1075
+ key: 'stillbornFoetusObject',
1076
+ input_type: 'input'
1077
+ }, {
1078
+ label: '死胎原因',
1079
+ name: 'stillbornFoetusReason',
1080
+ key: 'stillbornFoetusReason',
1081
+ input_type: 'input'
1082
+ }]
1083
+ }]
1084
+ }]
1085
+ }
1086
+ }, {
1087
+ name: '',
1088
+ key: '',
1089
+ label: '超声指标',
1090
+ header_label: true,
1091
+ just_header: true,
1092
+ input_type: ''
1093
+ }, {
1094
+ name: 'mlUltrasounds',
1095
+ key: 'mlUltrasounds',
1096
+ label: '',
1097
+ input_type: 'table',
1098
+ input_props: {
1099
+ editable: true,
1100
+ hiddenSelection: true,
1101
+ tableColumns: commonColumns
1102
+ }
1103
+ }];
1104
+ var css_248z = ".index-module_exemplary-case-container__WxC76 .ant-tabs-top > .ant-tabs-nav {\n margin: 0;\n}\n";
41
1105
  var styles = {
42
- "container": "index-module_container__1EUKg",
43
- "left-panel": "index-module_left-panel__mfu8l",
44
- "right-panel": "index-module_right-panel__OpwE7",
45
- "login-form": "index-module_login-form__HKinZ",
46
- "decorations": "index-module_decorations__jWpju",
47
- "dot": "index-module_dot__u7Mwf",
48
- "dot-1": "index-module_dot-1__8i7U7",
49
- "slide-in": "index-module_slide-in__HvqeU",
50
- "dot-2": "index-module_dot-2__wt9fy",
51
- "dot-3": "index-module_dot-3__Yy4mm",
52
- "animate-in": "index-module_animate-in__yVlC0",
53
- "footer": "index-module_footer__dtz-2"
1106
+ "exemplary-case-container": "index-module_exemplary-case-container__WxC76"
54
1107
  };
55
1108
  styleInject(css_248z);
56
- function LoginInner(props) {
57
- var _a = props.systemName,
58
- systemName = _a === void 0 ? '默认系统名' : _a,
59
- logo = props.logo,
60
- onFinish = props.onFinish;
61
- useEffect(function () {
62
- return function () {};
63
- }, []);
64
- return /*#__PURE__*/React.createElement("div", {
65
- className: classnames(styles["container"])
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: classnames(styles["left-panel"])
68
- }, /*#__PURE__*/React.createElement("div", {
69
- className: classnames(styles["decorations "])
70
- }, /*#__PURE__*/React.createElement("div", {
71
- className: classnames(styles["dot"], styles["dot-1"])
72
- }), /*#__PURE__*/React.createElement("div", {
73
- className: classnames(styles["dot"], styles["dot-2"])
74
- }), /*#__PURE__*/React.createElement("div", {
75
- className: classnames(styles["dot"], styles["dot-3"])
76
- }))), /*#__PURE__*/React.createElement("div", {
77
- className: classnames(styles["right-panel"])
78
- }, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", {
79
- className: classnames(styles["login-form"], styles["animate-in"])
80
- }, /*#__PURE__*/React.createElement("h2", null, logo ? /*#__PURE__*/React.createElement("img", {
81
- alt: "logo",
82
- src: logo
83
- }) : null, systemName), /*#__PURE__*/React.createElement(LoginForm, {
84
- onFinish: onFinish
85
- })), /*#__PURE__*/React.createElement("footer", {
86
- className: classnames(styles["footer"])
87
- }, /*#__PURE__*/React.createElement("div", null, "\u5907\u6848\u53F7\uFF1A", /*#__PURE__*/React.createElement("a", {
88
- href: "https://beian.miit.gov.cn"
89
- }, "\u7CA4ICP\u590717048892\u53F7-1")), "Copyright \xA9 2020", ' ', /*#__PURE__*/React.createElement("a", {
90
- href: "http://www.lian-med.com/"
91
- }, "\u5E7F\u5DDE\u83B2\u5370\u533B\u7597\u79D1\u6280\u6709\u9650\u516C\u53F8"), ", \u7248\u6743\u6240\u6709")));
1109
+ function getPregnancyCaseOfOutpatient(id) {
1110
+ return __awaiter(this, void 0, void 0, function () {
1111
+ var res;
1112
+ return __generator(this, function (_a) {
1113
+ switch (_a.label) {
1114
+ case 0:
1115
+ return [4, request.get('/api/doctor/getPregnancyCaseOfOutpatient?id=' + id)];
1116
+ case 1:
1117
+ res = _a.sent();
1118
+ return [2, res.data];
1119
+ }
1120
+ });
1121
+ });
1122
+ }
1123
+ function updatePregnancyCaseOfOutpatient(data) {
1124
+ return __awaiter(this, void 0, void 0, function () {
1125
+ var res;
1126
+ return __generator(this, function (_a) {
1127
+ switch (_a.label) {
1128
+ case 0:
1129
+ return [4, request.put('/api/doctor/updatePregnancyCaseOfOutpatient', data)];
1130
+ case 1:
1131
+ res = _a.sent();
1132
+ return [2, res.data];
1133
+ }
1134
+ });
1135
+ });
92
1136
  }
93
- function LoginForm(props) {
94
- var _onFinish = props.onFinish;
95
- var _a = useState(false),
96
- loading = _a[0],
97
- setLoading = _a[1];
98
- return /*#__PURE__*/React.createElement(_Form, {
99
- initialValues: mchcEnv.loginRemember,
100
- className: "login-main-center-form",
101
- onFinish: function onFinish(values) {
102
- if (values.remember) {
103
- mchcEnv.loginRemember = values;
104
- }
105
- setLoading(true);
106
- _onFinish(values)["finally"](function () {
107
- return setLoading(false);
1137
+ var DoctorEnd_ExemplaryCase = function (_super) {
1138
+ __extends(DoctorEnd_ExemplaryCase, _super);
1139
+ function DoctorEnd_ExemplaryCase() {
1140
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1141
+ _this.state = {
1142
+ activeKey: _this.props.tabkey,
1143
+ gdmData: [],
1144
+ bmiData: [],
1145
+ formHandlerObj: {},
1146
+ formValue: {},
1147
+ formConfig: {
1148
+ 4: cloneDeep(twinsConfig),
1149
+ 5: cloneDeep(multipletsConfig)
1150
+ }
1151
+ };
1152
+ _this.handleClose = function () {
1153
+ var onClose = _this.props.onClose;
1154
+ onClose();
1155
+ };
1156
+ _this.handleSure = function () {
1157
+ return __awaiter(_this, void 0, void 0, function () {
1158
+ var onClose, _a, formHandlerObj, activeKey, formHandler, _b, validCode, res;
1159
+ return __generator(this, function (_c) {
1160
+ switch (_c.label) {
1161
+ case 0:
1162
+ onClose = this.props.onClose;
1163
+ _a = this.state, formHandlerObj = _a.formHandlerObj, activeKey = _a.activeKey;
1164
+ formHandler = get(formHandlerObj, "".concat(activeKey));
1165
+ return [4, formHandler.submit()];
1166
+ case 1:
1167
+ _b = _c.sent(), validCode = _b.validCode, res = _b.res;
1168
+ if (validCode) {
1169
+ this.updataMethods(res);
1170
+ } else {
1171
+ message.destroy();
1172
+ message.error('请完善表单项!');
1173
+ }
1174
+ onClose();
1175
+ return [2];
1176
+ }
1177
+ });
1178
+ });
1179
+ };
1180
+ _this.handlePrint = function () {
1181
+ var onClose = _this.props.onClose;
1182
+ onClose();
1183
+ };
1184
+ return _this;
1185
+ }
1186
+ DoctorEnd_ExemplaryCase.prototype.componentDidMount = function () {
1187
+ var _a = this.state,
1188
+ activeKey = _a.activeKey;
1189
+ _a.formHandlerObj;
1190
+ this.initData(activeKey);
1191
+ };
1192
+ DoctorEnd_ExemplaryCase.prototype.componentDidUpdate = function () {
1193
+ var _this = this;
1194
+ var _a = this.state;
1195
+ _a.activeKey;
1196
+ var formHandlerObj = _a.formHandlerObj;
1197
+ _a.formValue;
1198
+ var formHandler = get(formHandlerObj, "5");
1199
+ if (formHandler && formHandler.subscribe) {
1200
+ formHandler.subscribe('fetalCount', 'change', function (val) {
1201
+ var fetalCont = formHandler.fetalCount.actions.getValue().value;
1202
+ _this.changeConfig(fetalCont);
1203
+ var newvalue = cloneDeep(get(_this.state.formValue, "5"));
1204
+ set(newvalue, "fetalCount", fetalCont);
1205
+ _this.setState({
1206
+ formValue: __assign(__assign({}, _this.state.formValue), {
1207
+ 5: newvalue
1208
+ })
1209
+ });
108
1210
  });
109
1211
  }
110
- }, /*#__PURE__*/React.createElement(_Form.Item, {
111
- name: "username",
112
- rules: [{
113
- required: true,
114
- message: '请输入用户名!'
115
- }]
116
- }, /*#__PURE__*/React.createElement(_Input, {
117
- autoFocus: true,
118
- allowClear: true,
119
- size: "large",
120
- prefix: /*#__PURE__*/React.createElement(UserOutlined, null),
121
- placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D"
122
- })), /*#__PURE__*/React.createElement(_Form.Item, {
123
- name: "password",
124
- rules: [{
125
- required: true,
126
- message: '请输入密码!'
127
- }, {
128
- type: 'string'
129
- }, {
130
- min: 5,
131
- message: '密码不能少于5位'
132
- }, {
133
- max: 16,
134
- message: '密码不能超过16位'
135
- }]
136
- }, /*#__PURE__*/React.createElement(_Input.Password, {
137
- visibilityToggle: false,
138
- allowClear: true,
139
- size: "large",
140
- prefix: /*#__PURE__*/React.createElement(SafetyOutlined, null),
141
- placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
142
- })), /*#__PURE__*/React.createElement(_Form.Item, {
143
- hidden: !__LOCAL__,
144
- valuePropName: "checked",
145
- name: "remember",
146
- label: "\u8BB0\u4F4F\u5BC6\u7801\uFF08".concat(__LOCAL__, "\uFF09")
147
- }, /*#__PURE__*/React.createElement(_Checkbox, {
148
- onChange: function onChange(e) {
149
- var checked = e.target.checked;
150
- if (!checked) {
151
- mchcEnv.loginRemember = undefined;
152
- }
1212
+ };
1213
+ DoctorEnd_ExemplaryCase.prototype.getId = function () {
1214
+ var _a = this.props,
1215
+ headerInfo = _a.headerInfo,
1216
+ id = _a.id;
1217
+ return get(headerInfo, 'id') || id;
1218
+ };
1219
+ DoctorEnd_ExemplaryCase.prototype.initData = function (key) {
1220
+ return __awaiter(this, void 0, void 0, function () {
1221
+ var formValue, value;
1222
+ var _a;
1223
+ return __generator(this, function (_b) {
1224
+ switch (_b.label) {
1225
+ case 0:
1226
+ this.props.headerInfo;
1227
+ formValue = this.state.formValue;
1228
+ if (!(['4', '5'].includes(key) && !get(formValue, "".concat(key)))) return [3, 2];
1229
+ return [4, getPregnancyCaseOfOutpatient(this.getId())];
1230
+ case 1:
1231
+ value = _b.sent();
1232
+ this.changeConfig(get(value, "fetalCount"));
1233
+ this.setState({
1234
+ formValue: __assign(__assign({}, formValue), (_a = {}, _a[key] = value, _a))
1235
+ });
1236
+ _b.label = 2;
1237
+ case 2:
1238
+ return [2];
1239
+ }
1240
+ });
1241
+ });
1242
+ };
1243
+ DoctorEnd_ExemplaryCase.prototype.getActiveKey = function () {
1244
+ var _a = this.props,
1245
+ isShowMultiplets = _a.isShowMultiplets,
1246
+ isShowTwins = _a.isShowTwins,
1247
+ isShowBmi = _a.isShowBmi,
1248
+ isShowSlowGrowing = _a.isShowSlowGrowing,
1249
+ isShowGdm = _a.isShowGdm;
1250
+ var activeKey = '1';
1251
+ if (isShowMultiplets) activeKey = '5';
1252
+ if (isShowTwins) activeKey = '4';
1253
+ if (isShowBmi) activeKey = '3';
1254
+ if (isShowSlowGrowing) activeKey = '2';
1255
+ if (isShowGdm) activeKey = '1';
1256
+ return activeKey;
1257
+ };
1258
+ DoctorEnd_ExemplaryCase.prototype.updataMethods = function (res) {
1259
+ return __awaiter(this, void 0, void 0, function () {
1260
+ var _a, activeKey, formValue, newData, postData;
1261
+ return __generator(this, function (_b) {
1262
+ switch (_b.label) {
1263
+ case 0:
1264
+ _a = this.state, activeKey = _a.activeKey, formValue = _a.formValue;
1265
+ newData = getFormData(res);
1266
+ if (!['4', '5'].includes(activeKey)) return [3, 2];
1267
+ postData = __assign(__assign(__assign(__assign({}, newData), newData.reduction), newData.stillbornFoetus), {
1268
+ fetalCount: activeKey == 4 ? '二胎' : newData.fetalCount,
1269
+ id: get(formValue, "".concat(activeKey, ".id"))
1270
+ });
1271
+ return [4, updatePregnancyCaseOfOutpatient(postData)];
1272
+ case 1:
1273
+ _b.sent();
1274
+ _b.label = 2;
1275
+ case 2:
1276
+ return [2];
1277
+ }
1278
+ });
1279
+ });
1280
+ };
1281
+ DoctorEnd_ExemplaryCase.prototype.tabsOnChange = function (key) {
1282
+ this.initData(key);
1283
+ this.setState({
1284
+ activeKey: key
1285
+ });
1286
+ };
1287
+ DoctorEnd_ExemplaryCase.prototype.changeConfig = function (fetalCount) {
1288
+ var _a;
1289
+ var _b = this.state;
1290
+ _b.formHandlerObj;
1291
+ var activeKey = _b.activeKey,
1292
+ formConfig = _b.formConfig;
1293
+ var newConfig;
1294
+ if (activeKey == '4') {
1295
+ fetalCount = '二胎';
1296
+ newConfig = cloneDeep(formConfig['4']);
1297
+ } else {
1298
+ newConfig = cloneDeep(formConfig['5']);
153
1299
  }
154
- })), /*#__PURE__*/React.createElement(_Form.Item, null, /*#__PURE__*/React.createElement(_Button, {
155
- block: true,
156
- size: "large",
157
- className: "login-main-center-button",
158
- type: "primary",
159
- loading: loading,
160
- htmlType: "submit"
161
- }, "\u767B \u5F55")));
162
- }
163
- export { LoginInner as default };
164
- //# sourceMappingURL=.root6.js.map
1300
+ var options = (fetalCount ? get(fetalOption, "".concat(fetalCount)) : get(fetalOption, "\u516D\u80CE")) || get(fetalOption, "\u516D\u80CE");
1301
+ set(newConfig, "[".concat(size(newConfig) - 1, "].input_props.tableColumns[2].editor.input_props.options"), options);
1302
+ this.setState({
1303
+ formConfig: __assign(__assign({}, formConfig), (_a = {}, _a[activeKey] = newConfig, _a))
1304
+ });
1305
+ };
1306
+ DoctorEnd_ExemplaryCase.prototype.render = function () {
1307
+ var _this = this;
1308
+ var _a = this.props,
1309
+ isShowGdm = _a.isShowGdm,
1310
+ isShowBmi = _a.isShowBmi,
1311
+ isShowSlowGrowing = _a.isShowSlowGrowing,
1312
+ isShowTwins = _a.isShowTwins,
1313
+ isShowMultiplets = _a.isShowMultiplets;
1314
+ var _b = this.state,
1315
+ activeKey = _b.activeKey,
1316
+ gdmData = _b.gdmData,
1317
+ bmiData = _b.bmiData,
1318
+ formHandlerObj = _b.formHandlerObj,
1319
+ formValue = _b.formValue,
1320
+ formConfig = _b.formConfig;
1321
+ var footer = [/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
1322
+ type: "primary",
1323
+ onClick: this.handleSure
1324
+ }, "\u786E\u5B9A"))];
1325
+ return /*#__PURE__*/React.createElement(Modal, {
1326
+ width: 1400,
1327
+ visible: true,
1328
+ footer: footer,
1329
+ onCancel: this.handleClose,
1330
+ className: styles['exemplary-case-container']
1331
+ }, /*#__PURE__*/React.createElement(Tabs, {
1332
+ onChange: this.tabsOnChange.bind(this),
1333
+ activeKey: activeKey
1334
+ }, isShowGdm && (/*#__PURE__*/React.createElement(Tabs.TabPane, {
1335
+ tab: "GDM\u4E13\u6848",
1336
+ key: "1"
1337
+ }, /*#__PURE__*/React.createElement(MyForm, {
1338
+ config: gdmConfig,
1339
+ value: gdmData,
1340
+ getFormHandler: function getFormHandler(formHandler) {
1341
+ return _this.setState({
1342
+ formHandlerObj: __assign(__assign({}, formHandlerObj), {
1343
+ 1: formHandler
1344
+ })
1345
+ });
1346
+ },
1347
+ submitChange: false
1348
+ }))), isShowSlowGrowing && (/*#__PURE__*/React.createElement(Tabs.TabPane, {
1349
+ tab: "\u80CE\u513F\u751F\u957F\u7F13\u6162\u4E13\u6848",
1350
+ key: "2"
1351
+ }, /*#__PURE__*/React.createElement(MyForm, {
1352
+ config: slowGrowingConfig,
1353
+ value: gdmData,
1354
+ getFormHandler: function getFormHandler(formHandler) {
1355
+ return _this.setState({
1356
+ formHandlerObj: __assign(__assign({}, formHandlerObj), {
1357
+ 2: formHandler
1358
+ })
1359
+ });
1360
+ },
1361
+ submitChange: false
1362
+ }))), isShowBmi && (/*#__PURE__*/React.createElement(Tabs.TabPane, {
1363
+ tab: "BMI\u9AD8\u5371\u4E13\u6848",
1364
+ key: "3"
1365
+ }, /*#__PURE__*/React.createElement(MyForm, {
1366
+ config: bmiConfig,
1367
+ value: bmiData,
1368
+ getFormHandler: function getFormHandler(formHandler) {
1369
+ return _this.setState({
1370
+ formHandlerObj: __assign(__assign({}, formHandlerObj), {
1371
+ 3: formHandler
1372
+ })
1373
+ });
1374
+ },
1375
+ submitChange: false
1376
+ }))), isShowTwins && (/*#__PURE__*/React.createElement(Tabs.TabPane, {
1377
+ tab: "\u53CC\u80CE\u4E13\u6848",
1378
+ key: "4"
1379
+ }, /*#__PURE__*/React.createElement(MyForm, {
1380
+ config: get(formConfig, "4"),
1381
+ value: get(formValue, "".concat(4)),
1382
+ getFormHandler: function getFormHandler(formHandler) {
1383
+ return _this.setState({
1384
+ formHandlerObj: __assign(__assign({}, formHandlerObj), {
1385
+ 4: formHandler
1386
+ })
1387
+ });
1388
+ },
1389
+ submitChange: false
1390
+ }))), isShowMultiplets && (/*#__PURE__*/React.createElement(Tabs.TabPane, {
1391
+ tab: "".concat(get(this.props, "headerInfo.pregnancyCaseLable") || '多胎', "\u4E13\u6848"),
1392
+ key: "5"
1393
+ }, /*#__PURE__*/React.createElement(MyForm, {
1394
+ config: get(formConfig, "5"),
1395
+ value: get(formValue, "".concat(5)),
1396
+ getFormHandler: function getFormHandler(formHandler) {
1397
+ return _this.setState({
1398
+ formHandlerObj: __assign(__assign({}, formHandlerObj), {
1399
+ 5: formHandler
1400
+ })
1401
+ });
1402
+ },
1403
+ submitChange: false
1404
+ })))));
1405
+ };
1406
+ return DoctorEnd_ExemplaryCase;
1407
+ }(Component);
1408
+ export { DoctorEnd_ExemplaryCase as default };