@lm_fe/pages-fubao 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 (192) hide show
  1. package/README.md +4 -2
  2. package/dist/a_chunks/.root.js +240 -280
  3. package/dist/a_chunks/.root10.js +9 -15
  4. package/dist/a_chunks/.root11.js +210 -244
  5. package/dist/a_chunks/.root12.js +2 -33
  6. package/dist/a_chunks/.root13.js +300 -331
  7. package/dist/a_chunks/.root14.js +2 -16
  8. package/dist/a_chunks/.root15.js +2 -16
  9. package/dist/a_chunks/.root16.js +4 -6
  10. package/dist/a_chunks/.root17.js +11 -2
  11. package/dist/a_chunks/.root18.js +10 -1
  12. package/dist/a_chunks/.root19.js +16 -27
  13. package/dist/a_chunks/.root2.js +22 -30
  14. package/dist/a_chunks/.root20.js +34 -38
  15. package/dist/a_chunks/.root21.js +16 -18
  16. package/dist/a_chunks/.root22.js +34 -38
  17. package/dist/a_chunks/.root23.js +16 -18
  18. package/dist/a_chunks/.root24.js +10 -14
  19. package/dist/a_chunks/.root25.js +10 -14
  20. package/dist/a_chunks/.root26.js +10 -14
  21. package/dist/a_chunks/.root27.js +16 -27
  22. package/dist/a_chunks/.root28.js +15 -19
  23. package/dist/a_chunks/.root29.js +15 -19
  24. package/dist/a_chunks/.root3.js +4 -6
  25. package/dist/a_chunks/.root30.js +9 -14
  26. package/dist/a_chunks/.root31.js +2 -10
  27. package/dist/a_chunks/.root32.js +11 -19
  28. package/dist/a_chunks/.root33.js +308 -335
  29. package/dist/a_chunks/.root34.js +1 -2
  30. package/dist/a_chunks/.root35.js +14 -154
  31. package/dist/a_chunks/.root36.js +7 -21
  32. package/dist/a_chunks/.root37.js +183 -1481
  33. package/dist/a_chunks/.root38.js +32 -2496
  34. package/dist/a_chunks/.root39.js +56 -83
  35. package/dist/a_chunks/.root4.js +4 -6
  36. package/dist/a_chunks/.root40.js +3 -3
  37. package/dist/a_chunks/.root41.js +56 -83
  38. package/dist/a_chunks/.root42.js +6 -20
  39. package/dist/a_chunks/.root43.js +183 -1526
  40. package/dist/a_chunks/.root44.js +13 -19
  41. package/dist/a_chunks/.root45.js +55 -82
  42. package/dist/a_chunks/.root46.js +55 -82
  43. package/dist/a_chunks/.root47.js +5 -8
  44. package/dist/a_chunks/.root48.js +30 -22
  45. package/dist/a_chunks/.root49.js +30 -43
  46. package/dist/a_chunks/.root5.js +3 -3
  47. package/dist/a_chunks/.root50.js +53 -226
  48. package/dist/a_chunks/.root51.js +64 -188
  49. package/dist/a_chunks/.root52.js +113 -3122
  50. package/dist/a_chunks/.root53.js +85 -134
  51. package/dist/a_chunks/.root54.js +3071 -175
  52. package/dist/a_chunks/.root55.js +127 -478
  53. package/dist/a_chunks/.root56.js +170 -910
  54. package/dist/a_chunks/.root57.js +376 -399
  55. package/dist/a_chunks/.root58.js +808 -687
  56. package/dist/a_chunks/.root59.js +495 -118
  57. package/dist/a_chunks/.root6.js +6 -9
  58. package/dist/a_chunks/.root60.js +773 -45
  59. package/dist/a_chunks/.root61.js +738 -97
  60. package/dist/a_chunks/.root62.js +105 -273
  61. package/dist/a_chunks/.root63.js +38 -22
  62. package/dist/a_chunks/.root64.js +184 -16
  63. package/dist/a_chunks/.root65.js +107 -241
  64. package/dist/a_chunks/.root66.js +132 -0
  65. package/dist/a_chunks/.root67.js +286 -0
  66. package/dist/a_chunks/.root68.js +817 -0
  67. package/dist/a_chunks/.root69.js +28 -0
  68. package/dist/a_chunks/.root7.js +2 -42
  69. package/dist/a_chunks/.root70.js +19 -0
  70. package/dist/a_chunks/.root71.js +247 -0
  71. package/dist/a_chunks/.root8.js +2 -12
  72. package/dist/a_chunks/.root9.js +16 -26
  73. package/dist/a_chunks/Form.js +3 -5
  74. package/dist/a_chunks/ModalForm.js +254 -280
  75. package/dist/a_chunks/api.js +311 -325
  76. package/dist/a_chunks/common.js +0 -1
  77. package/dist/a_chunks/config.js +135 -164
  78. package/dist/a_chunks/form_config.js +11 -130
  79. package/dist/a_chunks/index.js +43 -57
  80. package/dist/a_chunks/index2.js +148 -64
  81. package/dist/a_chunks/index3.js +131 -1151
  82. package/dist/a_chunks/index4.js +57 -1040
  83. package/dist/a_chunks/index5.js +142 -0
  84. package/dist/a_chunks/index6.js +1169 -0
  85. package/dist/a_chunks/index7.js +1006 -0
  86. package/dist/a_chunks/style-inject.es.js +0 -1
  87. package/dist/a_chunks/tslib.es6.js +1 -2
  88. package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js +0 -1
  89. package/dist/index.js +10 -5
  90. package/dist/pages/fubao/family-planning/file-management/doctor-desk/components/SurgicalRecordv2/Curettage/index.d.ts +1 -1
  91. package/dist/pages/fubao/family-planning/file-management/doctor-desk/components/VideoReport/method.d.ts +1 -1
  92. package/dist/pages/fubao/folic-acid/file-management/list/index copy.d.ts +1 -1
  93. package/dist/pages/fubao/gynecological-diseases/two-cancers/./344/270/244/347/231/214/351/232/217/350/256/277/index.d.ts +1 -1
  94. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/form_config.d.ts +2 -1
  95. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index copy.d.ts +18 -0
  96. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index.d.ts +3 -18
  97. package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/form_config_nv.d.ts +4 -0
  98. package/dist/pages/fubao/premarital-care/file-management/config/table.d.ts +1 -1
  99. package/dist/pages/fubao/premarital-care/file-management/edit/form_config.d.ts +2 -1
  100. package/dist/pages/fubao/premarital-care/file-management/edit/index copy 2.d.ts +17 -0
  101. package/dist/pages/fubao/premarital-care/file-management/edit/index.d.ts +3 -17
  102. package/dist/pages/fubao/statistic/abnormal-breast-cancer/index.d.ts +2 -0
  103. package/dist/pages/fubao/statistic/abnormal-cervical-cancer/index.d.ts +2 -0
  104. package/dist/pages/fubao/statistic/premarital-checkup/./345/251/232/346/243/200/351/232/217/350/256/277/index.d.ts +1 -1
  105. package/dist/pages/fubao/statistic/progestation-checkup/./345/255/225/346/243/200/351/232/217/350/256/277/index.d.ts +1 -1
  106. package/dist/routes/index.d.ts +2 -0
  107. package/dist/routes/meta.d.ts +2 -0
  108. package/package.json +19 -14
  109. package/dist/a_chunks/.root.js.map +0 -1
  110. package/dist/a_chunks/.root10.js.map +0 -1
  111. package/dist/a_chunks/.root11.js.map +0 -1
  112. package/dist/a_chunks/.root12.js.map +0 -1
  113. package/dist/a_chunks/.root13.js.map +0 -1
  114. package/dist/a_chunks/.root14.js.map +0 -1
  115. package/dist/a_chunks/.root15.js.map +0 -1
  116. package/dist/a_chunks/.root16.js.map +0 -1
  117. package/dist/a_chunks/.root17.js.map +0 -1
  118. package/dist/a_chunks/.root18.js.map +0 -1
  119. package/dist/a_chunks/.root19.js.map +0 -1
  120. package/dist/a_chunks/.root2.js.map +0 -1
  121. package/dist/a_chunks/.root20.js.map +0 -1
  122. package/dist/a_chunks/.root21.js.map +0 -1
  123. package/dist/a_chunks/.root22.js.map +0 -1
  124. package/dist/a_chunks/.root23.js.map +0 -1
  125. package/dist/a_chunks/.root24.js.map +0 -1
  126. package/dist/a_chunks/.root25.js.map +0 -1
  127. package/dist/a_chunks/.root26.js.map +0 -1
  128. package/dist/a_chunks/.root27.js.map +0 -1
  129. package/dist/a_chunks/.root28.js.map +0 -1
  130. package/dist/a_chunks/.root29.js.map +0 -1
  131. package/dist/a_chunks/.root3.js.map +0 -1
  132. package/dist/a_chunks/.root30.js.map +0 -1
  133. package/dist/a_chunks/.root31.js.map +0 -1
  134. package/dist/a_chunks/.root32.js.map +0 -1
  135. package/dist/a_chunks/.root33.js.map +0 -1
  136. package/dist/a_chunks/.root34.js.map +0 -1
  137. package/dist/a_chunks/.root35.js.map +0 -1
  138. package/dist/a_chunks/.root36.js.map +0 -1
  139. package/dist/a_chunks/.root37.js.map +0 -1
  140. package/dist/a_chunks/.root38.js.map +0 -1
  141. package/dist/a_chunks/.root39.js.map +0 -1
  142. package/dist/a_chunks/.root4.js.map +0 -1
  143. package/dist/a_chunks/.root40.js.map +0 -1
  144. package/dist/a_chunks/.root41.js.map +0 -1
  145. package/dist/a_chunks/.root42.js.map +0 -1
  146. package/dist/a_chunks/.root43.js.map +0 -1
  147. package/dist/a_chunks/.root44.js.map +0 -1
  148. package/dist/a_chunks/.root45.js.map +0 -1
  149. package/dist/a_chunks/.root46.js.map +0 -1
  150. package/dist/a_chunks/.root47.js.map +0 -1
  151. package/dist/a_chunks/.root48.js.map +0 -1
  152. package/dist/a_chunks/.root49.js.map +0 -1
  153. package/dist/a_chunks/.root5.js.map +0 -1
  154. package/dist/a_chunks/.root50.js.map +0 -1
  155. package/dist/a_chunks/.root51.js.map +0 -1
  156. package/dist/a_chunks/.root52.js.map +0 -1
  157. package/dist/a_chunks/.root53.js.map +0 -1
  158. package/dist/a_chunks/.root54.js.map +0 -1
  159. package/dist/a_chunks/.root55.js.map +0 -1
  160. package/dist/a_chunks/.root56.js.map +0 -1
  161. package/dist/a_chunks/.root57.js.map +0 -1
  162. package/dist/a_chunks/.root58.js.map +0 -1
  163. package/dist/a_chunks/.root59.js.map +0 -1
  164. package/dist/a_chunks/.root6.js.map +0 -1
  165. package/dist/a_chunks/.root60.js.map +0 -1
  166. package/dist/a_chunks/.root61.js.map +0 -1
  167. package/dist/a_chunks/.root62.js.map +0 -1
  168. package/dist/a_chunks/.root63.js.map +0 -1
  169. package/dist/a_chunks/.root64.js.map +0 -1
  170. package/dist/a_chunks/.root65.js.map +0 -1
  171. package/dist/a_chunks/.root7.js.map +0 -1
  172. package/dist/a_chunks/.root8.js.map +0 -1
  173. package/dist/a_chunks/.root9.js.map +0 -1
  174. package/dist/a_chunks/Form.js.map +0 -1
  175. package/dist/a_chunks/ModalForm.js.map +0 -1
  176. package/dist/a_chunks/api.js.map +0 -1
  177. package/dist/a_chunks/common.js.map +0 -1
  178. package/dist/a_chunks/config.js.map +0 -1
  179. package/dist/a_chunks/extends.js +0 -11
  180. package/dist/a_chunks/extends.js.map +0 -1
  181. package/dist/a_chunks/form_config.js.map +0 -1
  182. package/dist/a_chunks/index.js.map +0 -1
  183. package/dist/a_chunks/index2.js.map +0 -1
  184. package/dist/a_chunks/index3.js.map +0 -1
  185. package/dist/a_chunks/index4.js.map +0 -1
  186. package/dist/a_chunks/style-inject.es.js.map +0 -1
  187. package/dist/a_chunks/tslib.es6.js.map +0 -1
  188. package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js.map +0 -1
  189. package/dist/index.js.map +0 -1
  190. package/dist/pages/fubao/pre-pregnancy-care/.public-exam/config/adapter.d.ts +0 -2
  191. package/dist/pages/fubao/premarital-care/.public-exam/config/adapter.d.ts +0 -2
  192. /package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/{form_config.d.ts → form_config_nan.d.ts} +0 -0
@@ -0,0 +1,1169 @@
1
+ import { _ as __awaiter, a as __generator, b as __assign } from './tslib.es6.js';
2
+ import { BaseEditPanelFormFC } from '@lm_fe/components_m';
3
+ import { getSearchParamsValue, fubaoRequest } from '@lm_fe/utils';
4
+ import { get, set } from 'lodash';
5
+ import { BF_Wrap2 } from '@lm_fe/pages';
6
+ import { Form } from 'antd';
7
+ import React, { useState, useEffect } from 'react';
8
+ import { f as form_config$2, a as form_config$3 } from './form_config.js';
9
+ import { mchcUtils, rt_ctx } from '@lm_fe/env';
10
+ import { defineFormConfig } from '@lm_fe/service';
11
+ function PhysicalExamination$4(props) {
12
+ var _this = this;
13
+ var type = props.type,
14
+ filesData = props.filesData;
15
+ var form = Form.useForm()[0];
16
+ var _a = useState({}),
17
+ data = _a[0],
18
+ setdata = _a[1];
19
+ var _b = BF_Wrap2({
20
+ default_conf: {
21
+ title: "\u5B55\u524D\u68C0\u67E5-\u4F53\u683C\u68C0\u67E5",
22
+ tableColumns: form_config$2
23
+ }
24
+ }),
25
+ Wrap = _b.Wrap,
26
+ config = _b.config;
27
+ useEffect(function () {
28
+ handleInit();
29
+ return function () {};
30
+ }, []);
31
+ function handleInit() {
32
+ return __awaiter(this, void 0, void 0, function () {
33
+ var id, res, data, _a, _b;
34
+ return __generator(this, function (_c) {
35
+ switch (_c.label) {
36
+ case 0:
37
+ id = get(props, 'id') || getSearchParamsValue('id');
38
+ if (!(type === 'wife')) return [3, 4];
39
+ if (!id) return [3, 2];
40
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=3"))];
41
+ case 1:
42
+ _a = _c.sent().data;
43
+ return [3, 3];
44
+ case 2:
45
+ _a = {};
46
+ _c.label = 3;
47
+ case 3:
48
+ res = _a;
49
+ return [3, 8];
50
+ case 4:
51
+ if (!id) return [3, 6];
52
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=3"))];
53
+ case 5:
54
+ _b = _c.sent().data;
55
+ return [3, 7];
56
+ case 6:
57
+ _b = {};
58
+ _c.label = 7;
59
+ case 7:
60
+ res = _b;
61
+ _c.label = 8;
62
+ case 8:
63
+ if (res) {
64
+ data = get(res, 'data.0');
65
+ data = __assign(__assign({}, data), get(data, 'progestationCheckArchivesPhysicalExaminationVM'));
66
+ data = mchcUtils.autoNoteToCommonOption(data);
67
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
68
+ }
69
+ data = id ? data : {};
70
+ setdata(data);
71
+ form.setFieldsValue(data);
72
+ return [2];
73
+ }
74
+ });
75
+ });
76
+ }
77
+ function handleSubmit(values) {
78
+ return __awaiter(this, void 0, void 0, function () {
79
+ var progestationCheckArchivesPhysicalExaminationVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
80
+ var _a, _b;
81
+ return __generator(this, function (_c) {
82
+ switch (_c.label) {
83
+ case 0:
84
+ progestationCheckArchivesPhysicalExaminationVM = data.progestationCheckArchivesPhysicalExaminationVM;
85
+ baseUrl = '/api/progestation/check/saveProgestationCheckArchivesPhysicalExamination';
86
+ params = values;
87
+ progestationCheckArchivesDetailId = get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
88
+ if (type === 'husband') {
89
+ progestationCheckArchivesDetailId = get(filesData, 'manProgestationCheckArchivesDetailVM.id');
90
+ }
91
+ params = __assign(__assign(__assign({}, progestationCheckArchivesPhysicalExaminationVM), params), {
92
+ progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
93
+ });
94
+ params = mchcUtils.autoCommonOptionToNote(params);
95
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
96
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
97
+ return [4, fubaoRequest.post(baseUrl, params)];
98
+ case 1:
99
+ _re = _c.sent().data;
100
+ res = _re.data;
101
+ if (get(res, 'code') === 1) {
102
+ newData = get(res, 'data.0');
103
+ setdata(newData);
104
+ }
105
+ return [2];
106
+ }
107
+ });
108
+ });
109
+ }
110
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
111
+ form: form,
112
+ onFinish: function onFinish(v) {
113
+ return __awaiter(_this, void 0, void 0, function () {
114
+ return __generator(this, function (_a) {
115
+ handleSubmit(v);
116
+ return [2];
117
+ });
118
+ });
119
+ },
120
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
121
+ }));
122
+ }
123
+ var options_无有 = [{
124
+ label: '无',
125
+ value: 1
126
+ }, {
127
+ label: '有',
128
+ value: 2,
129
+ warning: true,
130
+ inputType: 'input'
131
+ }];
132
+ var form_config$1 = defineFormConfig([{
133
+ "name": "基本信息",
134
+ "fields": [{
135
+ "key": "menarche",
136
+ "label": "初潮(岁)",
137
+ "inputType": "input_number",
138
+ required: true,
139
+ "inputProps": {
140
+ 'placeholder': '请输入初潮'
141
+ },
142
+ "span": 6,
143
+ "offset": 0,
144
+ "isNewRow": 0,
145
+ "formItemLayout": {
146
+ 'labelCol': {
147
+ 'span': 8
148
+ },
149
+ 'wrapperCol': {
150
+ 'span': 14
151
+ }
152
+ }
153
+ }, {
154
+ "key": "menstrualCycle",
155
+ "label": "月经周期(天)",
156
+ "inputType": "input_number",
157
+ required: true,
158
+ "inputProps": {
159
+ 'placeholder': '请输入月经周期'
160
+ },
161
+ "span": 6,
162
+ "offset": 0,
163
+ "isNewRow": 0,
164
+ "formItemLayout": {
165
+ 'labelCol': {
166
+ 'span': 8
167
+ },
168
+ 'wrapperCol': {
169
+ 'span': 14
170
+ }
171
+ }
172
+ }, {
173
+ "key": "menstrualPeriod",
174
+ "label": "月经持续天数",
175
+ "inputType": "input_number",
176
+ required: true,
177
+ "inputProps": {
178
+ 'placeholder': '请输入月经持续天数'
179
+ },
180
+ "span": 6,
181
+ "offset": 0,
182
+ "isNewRow": 0,
183
+ "formItemLayout": {
184
+ 'labelCol': {
185
+ 'span': 8
186
+ },
187
+ 'wrapperCol': {
188
+ 'span': 14
189
+ }
190
+ }
191
+ }, {
192
+ "key": "menstrualVolume",
193
+ "label": "经量",
194
+ "inputType": "checkbox_group",
195
+ required: true,
196
+ "specialConfig": {
197
+ 'type': 'single',
198
+ 'options': [{
199
+ 'value': '多',
200
+ 'label': '多',
201
+ 'withInput': false,
202
+ 'span': 6
203
+ }, {
204
+ 'value': '中',
205
+ 'label': '中',
206
+ 'withInput': false,
207
+ 'span': 6
208
+ }, {
209
+ 'value': '少',
210
+ 'label': '少',
211
+ 'withInput': false,
212
+ 'span': 6
213
+ }]
214
+ },
215
+ "span": 6,
216
+ "offset": 0,
217
+ "isNewRow": 0,
218
+ "formItemLayout": {
219
+ 'labelCol': {
220
+ 'span': 8
221
+ },
222
+ 'wrapperCol': {
223
+ 'span': 16
224
+ }
225
+ }
226
+ }, {
227
+ "key": "dysmenorrhea__",
228
+ "label": "痛经",
229
+ "inputType": "MC",
230
+ required: true,
231
+ inputProps: {
232
+ options: options_无有
233
+ },
234
+ "span": 6,
235
+ "offset": 0,
236
+ "isNewRow": 0,
237
+ "formItemLayout": {
238
+ 'labelCol': {
239
+ 'span': 8
240
+ },
241
+ 'wrapperCol': {
242
+ 'span': 16
243
+ }
244
+ }
245
+ }, {
246
+ "key": "gravidity",
247
+ "label": "孕次",
248
+ "inputType": "input_number",
249
+ required: true,
250
+ "inputProps": {
251
+ 'placeholder': '请输入孕次'
252
+ },
253
+ "span": 6,
254
+ "offset": 0,
255
+ "isNewRow": 0,
256
+ "formItemLayout": {
257
+ 'labelCol': {
258
+ 'span': 8
259
+ },
260
+ 'wrapperCol': {
261
+ 'span': 14
262
+ }
263
+ }
264
+ }, {
265
+ "key": "parity",
266
+ "label": "产次",
267
+ "inputType": "input_number",
268
+ required: true,
269
+ "inputProps": {
270
+ 'placeholder': '请输入产次'
271
+ },
272
+ "span": 6,
273
+ "offset": 0,
274
+ "isNewRow": 0,
275
+ "formItemLayout": {
276
+ 'labelCol': {
277
+ 'span': 8
278
+ },
279
+ 'wrapperCol': {
280
+ 'span': 14
281
+ }
282
+ }
283
+ }]
284
+ }, {
285
+ "name": "个人史",
286
+ "fields": [{
287
+ "key": "previousHistory__",
288
+ "label": "既往史",
289
+ "inputType": "MC",
290
+ required: true,
291
+ inputProps: {
292
+ options: options_无有
293
+ },
294
+ "span": 6,
295
+ "offset": 0,
296
+ "isNewRow": 0,
297
+ "formItemLayout": {
298
+ 'labelCol': {
299
+ 'span': 8
300
+ },
301
+ 'wrapperCol': {
302
+ 'span': 16
303
+ }
304
+ }
305
+ }, {
306
+ "key": "surgeryHistory__",
307
+ "label": "手术史",
308
+ "inputType": "MC",
309
+ required: true,
310
+ inputProps: {
311
+ options: options_无有
312
+ },
313
+ "span": 6,
314
+ "offset": 0,
315
+ "isNewRow": 0,
316
+ "formItemLayout": {
317
+ 'labelCol': {
318
+ 'span': 8
319
+ },
320
+ 'wrapperCol': {
321
+ 'span': 16
322
+ }
323
+ }
324
+ }, {
325
+ "key": "takeMedicine__",
326
+ "label": "服用药物",
327
+ "inputType": "MC",
328
+ required: true,
329
+ inputProps: {
330
+ options: options_无有
331
+ },
332
+ "span": 6,
333
+ "offset": 0,
334
+ "isNewRow": 0,
335
+ "formItemLayout": {
336
+ 'labelCol': {
337
+ 'span': 8
338
+ },
339
+ 'wrapperCol': {
340
+ 'span': 16
341
+ }
342
+ }
343
+ }, {
344
+ "key": "presentIllness__",
345
+ "label": "现病史",
346
+ "inputType": "MC",
347
+ required: true,
348
+ inputProps: {
349
+ options: options_无有
350
+ },
351
+ "span": 6,
352
+ "offset": 0,
353
+ "isNewRow": 0,
354
+ "formItemLayout": {
355
+ 'labelCol': {
356
+ 'span': 8
357
+ },
358
+ 'wrapperCol': {
359
+ 'span': 16
360
+ }
361
+ }
362
+ }, {
363
+ "key": "contactHazardousSubstances__",
364
+ "label": "接触有害物质",
365
+ "inputType": "MC",
366
+ required: true,
367
+ inputProps: {
368
+ options: options_无有
369
+ },
370
+ "span": 6,
371
+ "offset": 0,
372
+ "isNewRow": 0,
373
+ "formItemLayout": {
374
+ 'labelCol': {
375
+ 'span': 8
376
+ },
377
+ 'wrapperCol': {
378
+ 'span': 16
379
+ }
380
+ }
381
+ }, {
382
+ "key": "contactRadioactiveRays__",
383
+ "label": "接触放射线",
384
+ "inputType": "MC",
385
+ required: true,
386
+ inputProps: {
387
+ options: options_无有
388
+ },
389
+ "span": 6,
390
+ "offset": 0,
391
+ "isNewRow": 0,
392
+ "formItemLayout": {
393
+ 'labelCol': {
394
+ 'span': 8
395
+ },
396
+ 'wrapperCol': {
397
+ 'span': 16
398
+ }
399
+ }
400
+ }, {
401
+ "key": "nearRelation__",
402
+ "label": "近亲结婚",
403
+ "inputType": "MC",
404
+ inputProps: {
405
+ options: options_无有
406
+ },
407
+ "span": 6,
408
+ "offset": 0,
409
+ "isNewRow": 0,
410
+ "formItemLayout": {
411
+ 'labelCol': {
412
+ 'span': 8
413
+ },
414
+ 'wrapperCol': {
415
+ 'span': 16
416
+ }
417
+ }
418
+ }, {
419
+ "key": "contraception__",
420
+ "label": "避孕措施",
421
+ "inputType": "MC",
422
+ inputProps: {
423
+ options: options_无有
424
+ },
425
+ "span": 6,
426
+ "offset": 0,
427
+ "isNewRow": 0,
428
+ "formItemLayout": {
429
+ 'labelCol': {
430
+ 'span': 8
431
+ },
432
+ 'wrapperCol': {
433
+ 'span': 16
434
+ }
435
+ }
436
+ }, {
437
+ "key": "personalSmoke__",
438
+ "label": "吸烟",
439
+ "inputType": "MC",
440
+ inputProps: {
441
+ options: options_无有
442
+ },
443
+ "span": 6,
444
+ "offset": 0,
445
+ "isNewRow": 0,
446
+ "formItemLayout": {
447
+ 'labelCol': {
448
+ 'span': 8
449
+ },
450
+ 'wrapperCol': {
451
+ 'span': 16
452
+ }
453
+ }
454
+ }, {
455
+ "key": "personalDrink__",
456
+ "label": "饮酒",
457
+ "inputType": "MC",
458
+ inputProps: {
459
+ options: options_无有
460
+ },
461
+ "span": 6,
462
+ "offset": 0,
463
+ "isNewRow": 0,
464
+ "formItemLayout": {
465
+ 'labelCol': {
466
+ 'span': 8
467
+ },
468
+ 'wrapperCol': {
469
+ 'span': 16
470
+ }
471
+ }
472
+ }, {
473
+ "key": "personalOther",
474
+ "label": "其他",
475
+ "inputType": "input",
476
+ "inputProps": {
477
+ 'placeholder': '请输入其他'
478
+ },
479
+ "span": 6,
480
+ "offset": 0,
481
+ "isNewRow": 0,
482
+ "formItemLayout": {
483
+ 'labelCol': {
484
+ 'span': 8
485
+ },
486
+ 'wrapperCol': {
487
+ 'span': 14
488
+ }
489
+ }
490
+ }]
491
+ }, {
492
+ "name": "家族史",
493
+ "fields": [{
494
+ "key": "familyHeritableDisease__",
495
+ "label": "遗传疾病",
496
+ "inputType": "MC",
497
+ required: true,
498
+ inputProps: {
499
+ options: options_无有
500
+ },
501
+ "span": 6,
502
+ "offset": 0,
503
+ "isNewRow": 0,
504
+ "formItemLayout": {
505
+ 'labelCol': {
506
+ 'span': 8
507
+ },
508
+ 'wrapperCol': {
509
+ 'span': 16
510
+ }
511
+ }
512
+ }, {
513
+ "key": "familyPsychosis__",
514
+ "label": "精神病",
515
+ "inputType": "MC",
516
+ required: true,
517
+ inputProps: {
518
+ options: options_无有
519
+ },
520
+ "span": 6,
521
+ "offset": 0,
522
+ "isNewRow": 0,
523
+ "formItemLayout": {
524
+ 'labelCol': {
525
+ 'span': 8
526
+ },
527
+ 'wrapperCol': {
528
+ 'span': 16
529
+ }
530
+ }
531
+ }, {
532
+ "key": "birthDefects__",
533
+ "label": "先天畸形",
534
+ "inputType": "MC",
535
+ required: true,
536
+ inputProps: {
537
+ options: options_无有
538
+ },
539
+ "span": 6,
540
+ "offset": 0,
541
+ "isNewRow": 0,
542
+ "formItemLayout": {
543
+ 'labelCol': {
544
+ 'span': 8
545
+ },
546
+ 'wrapperCol': {
547
+ 'span': 16
548
+ }
549
+ }
550
+ }, {
551
+ "key": "familyHistoryOther",
552
+ "label": "其他",
553
+ "inputType": "input",
554
+ "inputProps": {
555
+ 'placeholder': '请输入其他'
556
+ },
557
+ "span": 6,
558
+ "offset": 0,
559
+ "isNewRow": 0,
560
+ "formItemLayout": {
561
+ 'labelCol': {
562
+ 'span': 8
563
+ },
564
+ 'wrapperCol': {
565
+ 'span': 14
566
+ }
567
+ }
568
+ }]
569
+ }]);
570
+ function MedicalHistory(props) {
571
+ var _this = this;
572
+ var type = props.type;
573
+ var _a = useState({}),
574
+ data = _a[0],
575
+ setdata = _a[1];
576
+ var form = Form.useForm()[0];
577
+ var _b = BF_Wrap2({
578
+ default_conf: {
579
+ title: "\u5B55\u524D\u68C0\u67E5-\u75C5\u53F2\u60C5\u51B5".concat(type),
580
+ tableColumns: form_config$1
581
+ }
582
+ }),
583
+ Wrap = _b.Wrap,
584
+ config = _b.config;
585
+ useEffect(function () {
586
+ handleInit();
587
+ return function () {};
588
+ }, []);
589
+ function handleInit() {
590
+ return __awaiter(this, void 0, void 0, function () {
591
+ var id, res, data, _a, _b;
592
+ return __generator(this, function (_c) {
593
+ switch (_c.label) {
594
+ case 0:
595
+ id = get(props, 'id') || getSearchParamsValue('id');
596
+ if (!(type === 'wife')) return [3, 4];
597
+ if (!id) return [3, 2];
598
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=2"))];
599
+ case 1:
600
+ _a = _c.sent().data;
601
+ return [3, 3];
602
+ case 2:
603
+ _a = {};
604
+ _c.label = 3;
605
+ case 3:
606
+ res = _a;
607
+ return [3, 8];
608
+ case 4:
609
+ if (!id) return [3, 6];
610
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=2"))];
611
+ case 5:
612
+ _b = _c.sent().data;
613
+ return [3, 7];
614
+ case 6:
615
+ _b = {};
616
+ _c.label = 7;
617
+ case 7:
618
+ res = _b;
619
+ _c.label = 8;
620
+ case 8:
621
+ if (res) {
622
+ data = get(res, 'data.0');
623
+ data = __assign(__assign({}, data), get(data, 'progestationCheckArchivesMedicalHistoryVM'));
624
+ }
625
+ data = id ? data : {};
626
+ data = mchcUtils.autoNoteToCommonOption(data);
627
+ console.log('fuck', data);
628
+ form.setFieldsValue(data);
629
+ setdata(data);
630
+ return [2];
631
+ }
632
+ });
633
+ });
634
+ }
635
+ function handleSubmit(values) {
636
+ return __awaiter(this, void 0, void 0, function () {
637
+ var _a, filesData, type, progestationCheckArchivesMedicalHistoryVM, params, progestationCheckArchivesDetailId, res;
638
+ return __generator(this, function (_b) {
639
+ switch (_b.label) {
640
+ case 0:
641
+ _a = props, _a.baseUrl, filesData = _a.filesData, type = _a.type;
642
+ progestationCheckArchivesMedicalHistoryVM = data.progestationCheckArchivesMedicalHistoryVM;
643
+ params = values;
644
+ progestationCheckArchivesDetailId = get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
645
+ if (type === 'husband') {
646
+ progestationCheckArchivesDetailId = get(filesData, 'manProgestationCheckArchivesDetailVM.id');
647
+ }
648
+ params = __assign(__assign(__assign({}, progestationCheckArchivesMedicalHistoryVM), params), {
649
+ progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
650
+ });
651
+ params = mchcUtils.autoCommonOptionToNote(params);
652
+ return [4, fubaoRequest.post('/api/progestation/check/saveProgestationCheckArchivesMedicalHistory', params)];
653
+ case 1:
654
+ res = _b.sent().data;
655
+ if (get(res, 'code') === 1) ;
656
+ return [2];
657
+ }
658
+ });
659
+ });
660
+ }
661
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
662
+ form: form,
663
+ onFinish: function onFinish(v) {
664
+ return __awaiter(_this, void 0, void 0, function () {
665
+ return __generator(this, function (_a) {
666
+ handleSubmit(v);
667
+ return [2];
668
+ });
669
+ });
670
+ },
671
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
672
+ }));
673
+ }
674
+ function PhysicalExamination$3(props) {
675
+ var _this = this;
676
+ var type = props.type,
677
+ filesData = props.filesData;
678
+ var conf_fn = function conf_fn() {
679
+ return import('./.root64.js');
680
+ };
681
+ var form = Form.useForm()[0];
682
+ var _a = useState({}),
683
+ data = _a[0],
684
+ setdata = _a[1];
685
+ var _b = BF_Wrap2({
686
+ default_conf: {
687
+ title: "\u5B55\u524D\u68C0\u67E5-\u57FA\u672C\u4FE1\u606F",
688
+ tableColumns: conf_fn
689
+ }
690
+ }),
691
+ Wrap = _b.Wrap,
692
+ config = _b.config;
693
+ useEffect(function () {
694
+ handleInit();
695
+ return function () {};
696
+ }, []);
697
+ function handleInit() {
698
+ return __awaiter(this, void 0, void 0, function () {
699
+ var id, res, data, _a, _b;
700
+ return __generator(this, function (_c) {
701
+ switch (_c.label) {
702
+ case 0:
703
+ id = get(props, 'id') || getSearchParamsValue('id');
704
+ if (!(type === 'wife')) return [3, 4];
705
+ if (!id) return [3, 2];
706
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=1"))];
707
+ case 1:
708
+ _a = _c.sent().data;
709
+ return [3, 3];
710
+ case 2:
711
+ _a = {};
712
+ _c.label = 3;
713
+ case 3:
714
+ res = _a;
715
+ return [3, 8];
716
+ case 4:
717
+ if (!id) return [3, 6];
718
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=1"))];
719
+ case 5:
720
+ _b = _c.sent().data;
721
+ return [3, 7];
722
+ case 6:
723
+ _b = {};
724
+ _c.label = 7;
725
+ case 7:
726
+ res = _b;
727
+ _c.label = 8;
728
+ case 8:
729
+ if (res) {
730
+ data = get(res, 'data.0');
731
+ data = __assign(__assign({}, data), get(data, 'progestationCheckArchivesBasicInformationVM'));
732
+ data = mchcUtils.autoNoteToCommonOption(data);
733
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
734
+ }
735
+ data = id ? data : {};
736
+ setdata(data);
737
+ form.setFieldsValue(data);
738
+ return [2];
739
+ }
740
+ });
741
+ });
742
+ }
743
+ function handleSubmit(values) {
744
+ return __awaiter(this, void 0, void 0, function () {
745
+ var progestationCheckArchivesBasicInformationVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
746
+ var _a, _b;
747
+ return __generator(this, function (_c) {
748
+ switch (_c.label) {
749
+ case 0:
750
+ progestationCheckArchivesBasicInformationVM = data.progestationCheckArchivesBasicInformationVM;
751
+ baseUrl = '/api/progestation/check/saveProgestationCheckArchivesBasicInformation';
752
+ params = values;
753
+ progestationCheckArchivesDetailId = get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
754
+ if (type === 'husband') {
755
+ progestationCheckArchivesDetailId = get(filesData, 'manProgestationCheckArchivesDetailVM.id');
756
+ }
757
+ params = __assign(__assign(__assign({}, progestationCheckArchivesBasicInformationVM), params), {
758
+ progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
759
+ });
760
+ params = mchcUtils.autoCommonOptionToNote(params);
761
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
762
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
763
+ return [4, fubaoRequest.post(baseUrl, params)];
764
+ case 1:
765
+ _re = _c.sent().data;
766
+ res = _re.data;
767
+ if (get(res, 'code') === 1) {
768
+ newData = get(res, 'data.0');
769
+ setdata(newData);
770
+ }
771
+ return [2];
772
+ }
773
+ });
774
+ });
775
+ }
776
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
777
+ form: form,
778
+ onFinish: function onFinish(v) {
779
+ return __awaiter(_this, void 0, void 0, function () {
780
+ return __generator(this, function (_a) {
781
+ handleSubmit(v);
782
+ return [2];
783
+ });
784
+ });
785
+ },
786
+ formDescriptions: __DEV__ ? conf_fn : config === null || config === void 0 ? void 0 : config.tableColumns
787
+ }));
788
+ }
789
+ function PhysicalExamination$2(props) {
790
+ var _this = this;
791
+ var type = props.type,
792
+ filesData = props.filesData;
793
+ var form = Form.useForm()[0];
794
+ var _a = useState({}),
795
+ data = _a[0],
796
+ setdata = _a[1];
797
+ var _b = BF_Wrap2({
798
+ default_conf: {
799
+ title: "\u5B55\u524D\u68C0\u67E5-\u7B2C\u4E8C\u6027\u5F81".concat(type),
800
+ tableColumns: function tableColumns() {
801
+ return type === 'husband' ? import('./.root65.js') : import('./.root66.js');
802
+ }
803
+ }
804
+ }),
805
+ Wrap = _b.Wrap,
806
+ config = _b.config;
807
+ useEffect(function () {
808
+ handleInit();
809
+ return function () {};
810
+ }, []);
811
+ function handleInit() {
812
+ return __awaiter(this, void 0, void 0, function () {
813
+ var id, res, data, _a, _b;
814
+ return __generator(this, function (_c) {
815
+ switch (_c.label) {
816
+ case 0:
817
+ id = get(props, 'id') || getSearchParamsValue('id');
818
+ if (!(type === 'wife')) return [3, 4];
819
+ if (!id) return [3, 2];
820
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=4"))];
821
+ case 1:
822
+ _a = _c.sent().data;
823
+ return [3, 3];
824
+ case 2:
825
+ _a = {};
826
+ _c.label = 3;
827
+ case 3:
828
+ res = _a;
829
+ return [3, 8];
830
+ case 4:
831
+ if (!id) return [3, 6];
832
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=4"))];
833
+ case 5:
834
+ _b = _c.sent().data;
835
+ return [3, 7];
836
+ case 6:
837
+ _b = {};
838
+ _c.label = 7;
839
+ case 7:
840
+ res = _b;
841
+ _c.label = 8;
842
+ case 8:
843
+ if (res) {
844
+ data = get(res, 'data.0');
845
+ data = __assign(__assign({}, data), get(data, 'progestationCheckArchivesSecondSexCharacterVM'));
846
+ data = mchcUtils.autoNoteToCommonOption(data);
847
+ }
848
+ data = id ? data : {};
849
+ setdata(data);
850
+ form.setFieldsValue(data);
851
+ return [2];
852
+ }
853
+ });
854
+ });
855
+ }
856
+ function handleSubmit(values) {
857
+ return __awaiter(this, void 0, void 0, function () {
858
+ var progestationCheckArchivesSecondSexCharacterVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
859
+ return __generator(this, function (_a) {
860
+ switch (_a.label) {
861
+ case 0:
862
+ progestationCheckArchivesSecondSexCharacterVM = data.progestationCheckArchivesSecondSexCharacterVM;
863
+ baseUrl = '/api/progestation/check/saveProgestationCheckArchivesSecondSexCharacter';
864
+ params = values;
865
+ progestationCheckArchivesDetailId = get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
866
+ if (type === 'husband') {
867
+ progestationCheckArchivesDetailId = get(filesData, 'manProgestationCheckArchivesDetailVM.id');
868
+ }
869
+ params = __assign(__assign(__assign({}, progestationCheckArchivesSecondSexCharacterVM), params), {
870
+ progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
871
+ });
872
+ params = mchcUtils.autoCommonOptionToNote(params);
873
+ return [4, fubaoRequest.post(baseUrl, params)];
874
+ case 1:
875
+ _re = _a.sent().data;
876
+ res = _re.data;
877
+ if (get(res, 'code') === 1) {
878
+ newData = get(res, 'data.0');
879
+ setdata(newData);
880
+ }
881
+ return [2];
882
+ }
883
+ });
884
+ });
885
+ }
886
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
887
+ form: form,
888
+ onFinish: function onFinish(v) {
889
+ return __awaiter(_this, void 0, void 0, function () {
890
+ return __generator(this, function (_a) {
891
+ handleSubmit(v);
892
+ return [2];
893
+ });
894
+ });
895
+ },
896
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
897
+ }));
898
+ }
899
+ function PhysicalExamination$1(props) {
900
+ var _this = this;
901
+ var type = props.type,
902
+ filesData = props.filesData;
903
+ var form = Form.useForm()[0];
904
+ var _a = useState({}),
905
+ data = _a[0],
906
+ setdata = _a[1];
907
+ var _b = BF_Wrap2({
908
+ default_conf: {
909
+ title: "\u5B55\u524D\u68C0\u67E5-\u68C0\u9A8C\u68C0\u67E5",
910
+ tableColumns: form_config$3
911
+ }
912
+ }),
913
+ Wrap = _b.Wrap,
914
+ config = _b.config;
915
+ useEffect(function () {
916
+ handleInit();
917
+ return function () {};
918
+ }, []);
919
+ function handleInit() {
920
+ return __awaiter(this, void 0, void 0, function () {
921
+ var id, res, data, _a, _b;
922
+ return __generator(this, function (_c) {
923
+ switch (_c.label) {
924
+ case 0:
925
+ id = get(props, 'id') || getSearchParamsValue('id');
926
+ if (!(type === 'wife')) return [3, 4];
927
+ if (!id) return [3, 2];
928
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=5"))];
929
+ case 1:
930
+ _a = _c.sent().data;
931
+ return [3, 3];
932
+ case 2:
933
+ _a = {};
934
+ _c.label = 3;
935
+ case 3:
936
+ res = _a;
937
+ return [3, 8];
938
+ case 4:
939
+ if (!id) return [3, 6];
940
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=5"))];
941
+ case 5:
942
+ _b = _c.sent().data;
943
+ return [3, 7];
944
+ case 6:
945
+ _b = {};
946
+ _c.label = 7;
947
+ case 7:
948
+ res = _b;
949
+ _c.label = 8;
950
+ case 8:
951
+ if (res) {
952
+ data = get(res, 'data.0');
953
+ data = __assign(__assign({}, data), get(data, 'progestationCheckArchivesInspectionCheckVM'));
954
+ data = mchcUtils.autoNoteToCommonOption(data);
955
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
956
+ }
957
+ data = id ? data : {};
958
+ setdata(data);
959
+ form.setFieldsValue(data);
960
+ return [2];
961
+ }
962
+ });
963
+ });
964
+ }
965
+ function handleSubmit(values) {
966
+ return __awaiter(this, void 0, void 0, function () {
967
+ var progestationCheckArchivesInspectionCheckVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
968
+ var _a, _b;
969
+ return __generator(this, function (_c) {
970
+ switch (_c.label) {
971
+ case 0:
972
+ progestationCheckArchivesInspectionCheckVM = data.progestationCheckArchivesInspectionCheckVM;
973
+ baseUrl = '/api/progestation/check/saveProgestationCheckArchivesInspectionCheck';
974
+ params = values;
975
+ progestationCheckArchivesDetailId = get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
976
+ if (type === 'husband') {
977
+ progestationCheckArchivesDetailId = get(filesData, 'manProgestationCheckArchivesDetailVM.id');
978
+ }
979
+ params = __assign(__assign(__assign({}, progestationCheckArchivesInspectionCheckVM), params), {
980
+ progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
981
+ });
982
+ params = mchcUtils.autoCommonOptionToNote(params);
983
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
984
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
985
+ return [4, fubaoRequest.post(baseUrl, params)];
986
+ case 1:
987
+ _re = _c.sent().data;
988
+ res = _re.data;
989
+ if (get(res, 'code') === 1) {
990
+ newData = get(res, 'data.0');
991
+ setdata(newData);
992
+ }
993
+ return [2];
994
+ }
995
+ });
996
+ });
997
+ }
998
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
999
+ form: form,
1000
+ onFinish: function onFinish(v) {
1001
+ return __awaiter(_this, void 0, void 0, function () {
1002
+ return __generator(this, function (_a) {
1003
+ handleSubmit(v);
1004
+ return [2];
1005
+ });
1006
+ });
1007
+ },
1008
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1009
+ }));
1010
+ }
1011
+ var ctx = rt_ctx;
1012
+ var form_config = defineFormConfig([{
1013
+ "key": "riskAssessment",
1014
+ "label": "风险评估",
1015
+ "inputType": "MA",
1016
+ required: function required() {
1017
+ return ctx.required;
1018
+ },
1019
+ inputProps: {
1020
+ options: '低风险,高风险'
1021
+ },
1022
+ layout: '1/1'
1023
+ }, {
1024
+ "key": "evaluate",
1025
+ "label": "评估建议",
1026
+ "inputType": "MA",
1027
+ inputProps: {
1028
+ options: '在已接受的检查项目中,暂未发现夫妻双方存在对怀孕不利的风险因素,建议定期检查健康教育与指导。,夫妻仅一方(妻子/丈夫)接受检查评估,在已接受的检查项目中,暂未发现存在对怀孕不利的风险因素,建议另外一方(妻子/丈夫)尽快前来接受孕前优生健康检查。,在已接受的检查项目中,发现对怀孕不利的风险因素,建议进一步咨询及查治。,在已接受的检查项目中,发现对怀孕不利的风险因素,建议您改变不良生活方式,规避有害环境因素,以更健康的状态备孕。'
1029
+ },
1030
+ layout: '1/1'
1031
+ }, {
1032
+ "key": "checkDate",
1033
+ "label": "检查日期",
1034
+ "inputType": "single_date_picker",
1035
+ "tranferRules": {
1036
+ 'type': 'dayjs()'
1037
+ },
1038
+ required: function required() {
1039
+ return ctx.required;
1040
+ },
1041
+ "inputProps": {
1042
+ 'placeholder': '请输入检查日期'
1043
+ },
1044
+ layout: '1/1'
1045
+ }, {
1046
+ "key": "checkDoctor",
1047
+ "label": "检查医生",
1048
+ "inputType": "MA",
1049
+ inputProps: {
1050
+ memorieskey: '妇保-检查医生'
1051
+ },
1052
+ required: function required() {
1053
+ return ctx.required;
1054
+ },
1055
+ layout: '1/1'
1056
+ }]);
1057
+ function PhysicalExamination(props) {
1058
+ var _this = this;
1059
+ var type = props.type,
1060
+ filesData = props.filesData;
1061
+ var form = Form.useForm()[0];
1062
+ var _a = useState({}),
1063
+ data = _a[0],
1064
+ setdata = _a[1];
1065
+ var _b = BF_Wrap2({
1066
+ default_conf: {
1067
+ title: "\u5B55\u524D\u68C0\u67E5-\u6307\u5BFC\u8BC4\u4F30",
1068
+ tableColumns: form_config
1069
+ }
1070
+ }),
1071
+ Wrap = _b.Wrap,
1072
+ config = _b.config;
1073
+ useEffect(function () {
1074
+ handleInit();
1075
+ return function () {};
1076
+ }, []);
1077
+ function handleInit() {
1078
+ return __awaiter(this, void 0, void 0, function () {
1079
+ var id, res, data, _a, _b;
1080
+ return __generator(this, function (_c) {
1081
+ switch (_c.label) {
1082
+ case 0:
1083
+ id = get(props, 'id') || getSearchParamsValue('id');
1084
+ if (!(type === 'wife')) return [3, 4];
1085
+ if (!id) return [3, 2];
1086
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=6"))];
1087
+ case 1:
1088
+ _a = _c.sent().data;
1089
+ return [3, 3];
1090
+ case 2:
1091
+ _a = {};
1092
+ _c.label = 3;
1093
+ case 3:
1094
+ res = _a;
1095
+ return [3, 8];
1096
+ case 4:
1097
+ if (!id) return [3, 6];
1098
+ return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=6"))];
1099
+ case 5:
1100
+ _b = _c.sent().data;
1101
+ return [3, 7];
1102
+ case 6:
1103
+ _b = {};
1104
+ _c.label = 7;
1105
+ case 7:
1106
+ res = _b;
1107
+ _c.label = 8;
1108
+ case 8:
1109
+ if (res) {
1110
+ data = get(res, 'data.0');
1111
+ data = __assign(__assign({}, data), get(data, 'progestationCheckArchivesGuidanceAssesVM'));
1112
+ data = mchcUtils.autoNoteToCommonOption(data);
1113
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
1114
+ }
1115
+ data = id ? data : {};
1116
+ setdata(data);
1117
+ form.setFieldsValue(data);
1118
+ return [2];
1119
+ }
1120
+ });
1121
+ });
1122
+ }
1123
+ function handleSubmit(values) {
1124
+ return __awaiter(this, void 0, void 0, function () {
1125
+ var progestationCheckArchivesGuidanceAssesVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
1126
+ var _a, _b;
1127
+ return __generator(this, function (_c) {
1128
+ switch (_c.label) {
1129
+ case 0:
1130
+ progestationCheckArchivesGuidanceAssesVM = data.progestationCheckArchivesGuidanceAssesVM;
1131
+ baseUrl = '/api/progestation/check/saveProgestationCheckArchivesGuidanceAsses';
1132
+ params = values;
1133
+ progestationCheckArchivesDetailId = get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
1134
+ if (type === 'husband') {
1135
+ progestationCheckArchivesDetailId = get(filesData, 'manProgestationCheckArchivesDetailVM.id');
1136
+ }
1137
+ params = __assign(__assign(__assign({}, progestationCheckArchivesGuidanceAssesVM), params), {
1138
+ progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
1139
+ });
1140
+ params = mchcUtils.autoCommonOptionToNote(params);
1141
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
1142
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
1143
+ return [4, fubaoRequest.post(baseUrl, params)];
1144
+ case 1:
1145
+ _re = _c.sent().data;
1146
+ res = _re.data;
1147
+ if (get(res, 'code') === 1) {
1148
+ newData = get(res, 'data.0');
1149
+ setdata(newData);
1150
+ }
1151
+ return [2];
1152
+ }
1153
+ });
1154
+ });
1155
+ }
1156
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
1157
+ form: form,
1158
+ onFinish: function onFinish(v) {
1159
+ return __awaiter(_this, void 0, void 0, function () {
1160
+ return __generator(this, function (_a) {
1161
+ handleSubmit(v);
1162
+ return [2];
1163
+ });
1164
+ });
1165
+ },
1166
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1167
+ }));
1168
+ }
1169
+ export { MedicalHistory as M, PhysicalExamination$3 as P, PhysicalExamination$4 as a, PhysicalExamination$2 as b, PhysicalExamination$1 as c, PhysicalExamination as d };