@lm_fe/pages 0.1.201

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