@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,1006 @@
1
+ import { _ as __awaiter, a as __generator, b as __assign } from './tslib.es6.js';
2
+ import { BaseEditPanelFormFC } from '@lm_fe/components_m';
3
+ import { mchcUtils, rt_ctx, mchcLogger } from '@lm_fe/env';
4
+ import { BF_Wrap2 } from '@lm_fe/pages';
5
+ import { getSearchParamsValue, fubaoRequest } from '@lm_fe/utils';
6
+ import { Form } from 'antd';
7
+ import { get, set } from 'lodash';
8
+ import React, { useState, useEffect } from 'react';
9
+ import { defineFormConfig } from '@lm_fe/service';
10
+ import { a as form_config$2, f as form_config$3 } from './form_config.js';
11
+ function MedicalHistory$1(props) {
12
+ var _this = this;
13
+ var type = props.type;
14
+ var conf_fn = function conf_fn() {
15
+ return import('./.root64.js');
16
+ };
17
+ var _a = useState({}),
18
+ data = _a[0],
19
+ setdata = _a[1];
20
+ var form = Form.useForm()[0];
21
+ var _b = BF_Wrap2({
22
+ default_conf: {
23
+ title: "\u5A5A\u524D\u68C0\u67E5-\u57FA\u672C\u4FE1\u606F",
24
+ tableColumns: conf_fn
25
+ }
26
+ }),
27
+ Wrap = _b.Wrap,
28
+ config = _b.config;
29
+ useEffect(function () {
30
+ handleInit();
31
+ return function () {};
32
+ }, []);
33
+ function handleInit() {
34
+ return __awaiter(this, void 0, void 0, function () {
35
+ var id, res, data, _a, _b;
36
+ return __generator(this, function (_c) {
37
+ switch (_c.label) {
38
+ case 0:
39
+ id = get(props, 'id') || getSearchParamsValue('id');
40
+ if (!(type === 'wife')) return [3, 4];
41
+ if (!id) return [3, 2];
42
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=1"))];
43
+ case 1:
44
+ _a = _c.sent().data;
45
+ return [3, 3];
46
+ case 2:
47
+ _a = {};
48
+ _c.label = 3;
49
+ case 3:
50
+ res = _a;
51
+ return [3, 8];
52
+ case 4:
53
+ if (!id) return [3, 6];
54
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=1"))];
55
+ case 5:
56
+ _b = _c.sent().data;
57
+ return [3, 7];
58
+ case 6:
59
+ _b = {};
60
+ _c.label = 7;
61
+ case 7:
62
+ res = _b;
63
+ _c.label = 8;
64
+ case 8:
65
+ if (res) {
66
+ data = get(res, 'data.0');
67
+ data = __assign(__assign({}, data), get(data, 'premaritalCheckArchivesBasicInformationVM'));
68
+ data = mchcUtils.autoNoteToCommonOption(data);
69
+ }
70
+ form.setFieldsValue(data);
71
+ setdata(data);
72
+ return [2];
73
+ }
74
+ });
75
+ });
76
+ }
77
+ function handleSubmit(values) {
78
+ return __awaiter(this, void 0, void 0, function () {
79
+ var _a, filesData, type, premaritalCheckArchivesBasicInformationVM, params, premaritalCheckArchivesDetailId;
80
+ return __generator(this, function (_b) {
81
+ switch (_b.label) {
82
+ case 0:
83
+ _a = props, _a.baseUrl, filesData = _a.filesData, type = _a.type;
84
+ premaritalCheckArchivesBasicInformationVM = data.premaritalCheckArchivesBasicInformationVM;
85
+ params = values;
86
+ premaritalCheckArchivesDetailId = get(filesData, 'womanPremaritalCheckArchivesDetailVM.id');
87
+ if (type === 'husband') {
88
+ premaritalCheckArchivesDetailId = get(filesData, 'manPremaritalCheckArchivesDetailVM.id');
89
+ }
90
+ params = __assign(__assign(__assign({}, premaritalCheckArchivesBasicInformationVM), params), {
91
+ premaritalCheckArchivesDetailId: premaritalCheckArchivesDetailId
92
+ });
93
+ params = mchcUtils.autoCommonOptionToNote(params);
94
+ return [4, fubaoRequest.post('/api/premarital/check/savePremaritalCheckArchivesBasicInformation', params)];
95
+ case 1:
96
+ _b.sent();
97
+ return [2];
98
+ }
99
+ });
100
+ });
101
+ }
102
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
103
+ form: form,
104
+ onFinish: function onFinish(v) {
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ return __generator(this, function (_a) {
107
+ handleSubmit(v);
108
+ return [2];
109
+ });
110
+ });
111
+ },
112
+ formDescriptions: __DEV__ ? conf_fn : config === null || config === void 0 ? void 0 : config.tableColumns
113
+ }));
114
+ }
115
+ var ctx = rt_ctx;
116
+ var form_config$1 = defineFormConfig([{
117
+ "key": "medicalAdvice",
118
+ "label": "医学意见",
119
+ "inputType": "MA",
120
+ required: function required() {
121
+ return ctx.required;
122
+ },
123
+ inputProps: {
124
+ options: '未发现医学上不宜结婚的情形,建议不宜结婚,建议不宜生育,建议暂缓结婚,建议采取医学措施,尊重受检者意愿'
125
+ },
126
+ layout: '1/1'
127
+ }, {
128
+ "key": "premaritalSanitationGuidance",
129
+ "label": "婚前卫生指导",
130
+ "inputType": "template_textarea",
131
+ required: function required() {
132
+ return ctx.required;
133
+ },
134
+ layout: '1/1'
135
+ }, {
136
+ "key": "subsequentVisitFate",
137
+ "label": "预约复诊时间",
138
+ "inputType": "single_date_picker",
139
+ "tranferRules": {
140
+ 'type': 'dayjs()'
141
+ },
142
+ layout: '1/1'
143
+ }, {
144
+ "key": "zzdj",
145
+ "label": "转诊登记",
146
+ "inputType": "button",
147
+ "specialConfig": {
148
+ 'label': '转诊登记'
149
+ },
150
+ "inputProps": {
151
+ 'type': 'default'
152
+ },
153
+ layout: '1/1'
154
+ }, {
155
+ "key": "consultGuidanceResult",
156
+ "label": "咨询指导结果",
157
+ "inputType": "MA",
158
+ inputProps: {
159
+ options: '接受指导意见,不接受指导意见,知情后选择结婚,后果自己承担'
160
+ },
161
+ layout: '1/1'
162
+ }, {
163
+ "key": "checkDate",
164
+ "label": "检查日期",
165
+ "inputType": "single_date_picker",
166
+ "tranferRules": {
167
+ 'type': 'dayjs()'
168
+ },
169
+ required: function required() {
170
+ return ctx.required;
171
+ },
172
+ "inputProps": {
173
+ 'placeholder': '请输入检查日期'
174
+ },
175
+ layout: '1/1'
176
+ }, {
177
+ "key": "checkDoctor",
178
+ "label": "检查医生",
179
+ "inputType": "MA",
180
+ inputProps: {
181
+ memorieskey: '妇保-检查医生'
182
+ },
183
+ required: function required() {
184
+ return ctx.required;
185
+ },
186
+ layout: '1/1'
187
+ }]);
188
+ function PhysicalExamination$3(props) {
189
+ var _this = this;
190
+ var type = props.type,
191
+ filesData = props.filesData;
192
+ var form = Form.useForm()[0];
193
+ var _a = useState({}),
194
+ data = _a[0],
195
+ setdata = _a[1];
196
+ var _b = BF_Wrap2({
197
+ default_conf: {
198
+ title: "\u5A5A\u524D\u68C0\u67E5-\u6307\u5BFC\u8BC4\u4F30",
199
+ tableColumns: form_config$1
200
+ }
201
+ }),
202
+ Wrap = _b.Wrap,
203
+ config = _b.config;
204
+ useEffect(function () {
205
+ handleInit();
206
+ return function () {};
207
+ }, []);
208
+ function handleInit() {
209
+ return __awaiter(this, void 0, void 0, function () {
210
+ var id, res, data, _a, _b;
211
+ return __generator(this, function (_c) {
212
+ switch (_c.label) {
213
+ case 0:
214
+ id = get(props, 'id') || getSearchParamsValue('id');
215
+ if (!(type === 'wife')) return [3, 4];
216
+ if (!id) return [3, 2];
217
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=6"))];
218
+ case 1:
219
+ _a = _c.sent().data;
220
+ return [3, 3];
221
+ case 2:
222
+ _a = {};
223
+ _c.label = 3;
224
+ case 3:
225
+ res = _a;
226
+ return [3, 8];
227
+ case 4:
228
+ if (!id) return [3, 6];
229
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=6"))];
230
+ case 5:
231
+ _b = _c.sent().data;
232
+ return [3, 7];
233
+ case 6:
234
+ _b = {};
235
+ _c.label = 7;
236
+ case 7:
237
+ res = _b;
238
+ _c.label = 8;
239
+ case 8:
240
+ if (res) {
241
+ data = get(res, 'data.0');
242
+ data = __assign(__assign({}, data), get(data, 'premaritalCheckArchivesGuidanceAssesVM'));
243
+ data = mchcUtils.autoNoteToCommonOption(data);
244
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
245
+ }
246
+ data = id ? data : {};
247
+ setdata(data);
248
+ form.setFieldsValue(data);
249
+ return [2];
250
+ }
251
+ });
252
+ });
253
+ }
254
+ function handleSubmit(values) {
255
+ return __awaiter(this, void 0, void 0, function () {
256
+ var premaritalCheckArchivesGuidanceAssesVM, baseUrl, params, premaritalCheckArchivesDetailId, _re, res, newData;
257
+ var _a, _b;
258
+ return __generator(this, function (_c) {
259
+ switch (_c.label) {
260
+ case 0:
261
+ premaritalCheckArchivesGuidanceAssesVM = data.premaritalCheckArchivesGuidanceAssesVM;
262
+ baseUrl = '/api/premarital/check/savePremaritalCheckArchivesGuidanceAsses';
263
+ params = values;
264
+ premaritalCheckArchivesDetailId = get(filesData, 'womanPremaritalCheckArchivesDetailVM.id');
265
+ if (type === 'husband') {
266
+ premaritalCheckArchivesDetailId = get(filesData, 'manPremaritalCheckArchivesDetailVM.id');
267
+ }
268
+ params = __assign(__assign(__assign({}, premaritalCheckArchivesGuidanceAssesVM), params), {
269
+ premaritalCheckArchivesDetailId: premaritalCheckArchivesDetailId
270
+ });
271
+ params = mchcUtils.autoCommonOptionToNote(params);
272
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
273
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
274
+ return [4, fubaoRequest.post(baseUrl, params)];
275
+ case 1:
276
+ _re = _c.sent().data;
277
+ res = _re.data;
278
+ if (get(res, 'code') === 1) {
279
+ newData = get(res, 'data.0');
280
+ setdata(newData);
281
+ }
282
+ return [2];
283
+ }
284
+ });
285
+ });
286
+ }
287
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
288
+ form: form,
289
+ onFinish: function onFinish(v) {
290
+ return __awaiter(_this, void 0, void 0, function () {
291
+ return __generator(this, function (_a) {
292
+ handleSubmit(v);
293
+ return [2];
294
+ });
295
+ });
296
+ },
297
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
298
+ }));
299
+ }
300
+ function PhysicalExamination$2(props) {
301
+ var _this = this;
302
+ var type = props.type,
303
+ filesData = props.filesData;
304
+ var form = Form.useForm()[0];
305
+ var _a = useState({}),
306
+ data = _a[0],
307
+ setdata = _a[1];
308
+ var _b = BF_Wrap2({
309
+ default_conf: {
310
+ title: "\u5A5A\u524D\u68C0\u67E5-\u68C0\u9A8C\u68C0\u67E5",
311
+ tableColumns: form_config$2
312
+ }
313
+ }),
314
+ Wrap = _b.Wrap,
315
+ config = _b.config;
316
+ useEffect(function () {
317
+ handleInit();
318
+ return function () {};
319
+ }, []);
320
+ function handleInit() {
321
+ return __awaiter(this, void 0, void 0, function () {
322
+ var id, res, data, _a, _b;
323
+ return __generator(this, function (_c) {
324
+ switch (_c.label) {
325
+ case 0:
326
+ id = get(props, 'id') || getSearchParamsValue('id');
327
+ if (!(type === 'wife')) return [3, 4];
328
+ if (!id) return [3, 2];
329
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=5"))];
330
+ case 1:
331
+ _a = _c.sent().data;
332
+ return [3, 3];
333
+ case 2:
334
+ _a = {};
335
+ _c.label = 3;
336
+ case 3:
337
+ res = _a;
338
+ return [3, 8];
339
+ case 4:
340
+ if (!id) return [3, 6];
341
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=5"))];
342
+ case 5:
343
+ _b = _c.sent().data;
344
+ return [3, 7];
345
+ case 6:
346
+ _b = {};
347
+ _c.label = 7;
348
+ case 7:
349
+ res = _b;
350
+ _c.label = 8;
351
+ case 8:
352
+ if (res) {
353
+ data = get(res, 'data.0');
354
+ data = __assign(__assign({}, data), get(data, 'premaritalCheckArchivesInspectionCheckVM'));
355
+ data = mchcUtils.autoNoteToCommonOption(data);
356
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
357
+ }
358
+ data = id ? data : {};
359
+ setdata(data);
360
+ form.setFieldsValue(data);
361
+ return [2];
362
+ }
363
+ });
364
+ });
365
+ }
366
+ function handleSubmit(values) {
367
+ return __awaiter(this, void 0, void 0, function () {
368
+ var premaritalCheckArchivesInspectionCheckVM, baseUrl, params, premaritalCheckArchivesDetailId, _re, res, newData;
369
+ var _a, _b;
370
+ return __generator(this, function (_c) {
371
+ switch (_c.label) {
372
+ case 0:
373
+ premaritalCheckArchivesInspectionCheckVM = data.premaritalCheckArchivesInspectionCheckVM;
374
+ baseUrl = '/api/premarital/check/savePremaritalCheckArchivesInspectionCheck';
375
+ params = values;
376
+ premaritalCheckArchivesDetailId = get(filesData, 'womanPremaritalCheckArchivesDetailVM.id');
377
+ if (type === 'husband') {
378
+ premaritalCheckArchivesDetailId = get(filesData, 'manPremaritalCheckArchivesDetailVM.id');
379
+ }
380
+ params = __assign(__assign(__assign({}, premaritalCheckArchivesInspectionCheckVM), params), {
381
+ premaritalCheckArchivesDetailId: premaritalCheckArchivesDetailId
382
+ });
383
+ params = mchcUtils.autoCommonOptionToNote(params);
384
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
385
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
386
+ return [4, fubaoRequest.post(baseUrl, params)];
387
+ case 1:
388
+ _re = _c.sent().data;
389
+ res = _re.data;
390
+ if (get(res, 'code') === 1) {
391
+ newData = get(res, 'data.0');
392
+ setdata(newData);
393
+ }
394
+ return [2];
395
+ }
396
+ });
397
+ });
398
+ }
399
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
400
+ form: form,
401
+ onFinish: function onFinish(v) {
402
+ return __awaiter(_this, void 0, void 0, function () {
403
+ return __generator(this, function (_a) {
404
+ handleSubmit(v);
405
+ return [2];
406
+ });
407
+ });
408
+ },
409
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
410
+ }));
411
+ }
412
+ var options_无有 = [{
413
+ label: '无',
414
+ value: 1
415
+ }, {
416
+ label: '有',
417
+ value: 2,
418
+ warning: true,
419
+ inputType: 'input'
420
+ }];
421
+ var form_config = defineFormConfig([{
422
+ "name": "病史情况",
423
+ "children": [{
424
+ "key": "menarche",
425
+ "label": "初潮(岁)",
426
+ "inputType": "input_number",
427
+ required: true,
428
+ "inputProps": {
429
+ 'placeholder': '请输入初潮'
430
+ },
431
+ layout: '1/3'
432
+ }, {
433
+ "key": "menstrualCycle",
434
+ "label": "月经周期(天)",
435
+ "inputType": "input_number",
436
+ required: true,
437
+ "inputProps": {
438
+ 'placeholder': '请输入月经周期'
439
+ },
440
+ layout: '1/3'
441
+ }, {
442
+ "key": "menstrualPeriod",
443
+ "label": "月经持续天数",
444
+ "inputType": "input_number",
445
+ required: true,
446
+ "inputProps": {
447
+ 'placeholder': '请输入月经持续天数'
448
+ },
449
+ layout: '1/3'
450
+ }, {
451
+ "key": "menstrualVolume",
452
+ "label": "经量",
453
+ "inputType": "checkbox_group",
454
+ required: true,
455
+ "specialConfig": {
456
+ 'type': 'single',
457
+ 'options': [{
458
+ 'value': '多',
459
+ 'label': '多',
460
+ 'withInput': false,
461
+ 'span': 6
462
+ }, {
463
+ 'value': '中',
464
+ 'label': '中',
465
+ 'withInput': false,
466
+ 'span': 6
467
+ }, {
468
+ 'value': '少',
469
+ 'label': '少',
470
+ 'withInput': false,
471
+ 'span': 6
472
+ }]
473
+ },
474
+ "inputProps": {
475
+ 'placeholder': '请输入经量'
476
+ },
477
+ layout: '1/3'
478
+ }, {
479
+ "key": "dysmenorrhea__",
480
+ "label": "痛经",
481
+ "inputType": "MC",
482
+ required: true,
483
+ "inputProps": {
484
+ options: options_无有
485
+ },
486
+ layout: '1/3'
487
+ }, {
488
+ "key": "gravidity",
489
+ "label": "孕次",
490
+ "inputType": "input_number",
491
+ required: true,
492
+ "inputProps": {
493
+ 'placeholder': '请输入孕次'
494
+ },
495
+ layout: '1/3'
496
+ }, {
497
+ "key": "parity",
498
+ "label": "产次",
499
+ "inputType": "input_number",
500
+ required: true,
501
+ "inputProps": {
502
+ 'placeholder': '请输入产次'
503
+ },
504
+ layout: '1/3'
505
+ }, {
506
+ "key": "whetherPregnancy",
507
+ "label": "是否怀孕",
508
+ "inputType": "MC",
509
+ "inputProps": {
510
+ 'placeholder': '请输入是否怀孕',
511
+ options: '否,是',
512
+ marshal: 0
513
+ },
514
+ layout: '1/3'
515
+ }, {
516
+ "key": "lmd",
517
+ "label": "末次月经",
518
+ "inputType": "single_date_picker",
519
+ showDeps: {
520
+ whetherPregnancy: function whetherPregnancy(v) {
521
+ return v;
522
+ }
523
+ },
524
+ layout: '1/3'
525
+ }, {
526
+ "key": "marriageBirthHistory",
527
+ "label": "既往婚育史",
528
+ "inputType": "MC",
529
+ inputProps: {
530
+ options: [{
531
+ value: 0,
532
+ label: '无'
533
+ }, {
534
+ value: 1,
535
+ label: '有',
536
+ parentheses: true,
537
+ inputType: 'ArrayInput',
538
+ props: {
539
+ inputW: 1,
540
+ options: [{
541
+ label: '',
542
+ inputType: 'MC',
543
+ props: {
544
+ options: '丧偶,离异'
545
+ }
546
+ }, {
547
+ label: '足月',
548
+ inputType: 'Input',
549
+ prefix: '',
550
+ suffix: '次'
551
+ }, {
552
+ label: '早产',
553
+ inputType: 'Input',
554
+ prefix: '',
555
+ suffix: '次'
556
+ }, {
557
+ label: '流产',
558
+ inputType: 'Input',
559
+ prefix: '',
560
+ suffix: '次'
561
+ }, {
562
+ label: '子女',
563
+ inputType: 'Input',
564
+ prefix: '',
565
+ suffix: '人'
566
+ }]
567
+ }
568
+ }]
569
+ },
570
+ layout: '1/1'
571
+ }]
572
+ }, {
573
+ "name": "个人史",
574
+ "children": [{
575
+ "key": "personalHeritableDisease__",
576
+ "label": "遗传疾病",
577
+ "inputType": "MC",
578
+ "inputProps": {
579
+ options: options_无有
580
+ },
581
+ layout: '1/3'
582
+ }, {
583
+ "key": "previousHistory__",
584
+ "label": "既往史",
585
+ "inputType": "MC",
586
+ required: true,
587
+ "inputProps": {
588
+ options: options_无有
589
+ },
590
+ layout: '1/3'
591
+ }, {
592
+ "key": "surgeryHistory__",
593
+ "label": "手术史",
594
+ "inputType": "MC",
595
+ required: true,
596
+ "inputProps": {
597
+ options: options_无有
598
+ },
599
+ layout: '1/3'
600
+ }, {
601
+ "key": "presentIllness__",
602
+ "label": "现病史",
603
+ "inputType": "MC",
604
+ required: true,
605
+ "inputProps": {
606
+ options: options_无有
607
+ },
608
+ layout: '1/3'
609
+ }, {
610
+ "key": "nearRelation__",
611
+ "label": "近亲结婚",
612
+ "inputType": "MC",
613
+ required: true,
614
+ "inputProps": {
615
+ options: options_无有
616
+ },
617
+ layout: '1/3'
618
+ }, {
619
+ "key": "contactHazardousSubstances__",
620
+ "label": "接触有害物质",
621
+ "inputType": "MC",
622
+ required: true,
623
+ "inputProps": {
624
+ options: options_无有
625
+ },
626
+ layout: '1/3'
627
+ }, {
628
+ "key": "contactRadioactiveRays__",
629
+ "label": "接触放射线",
630
+ "inputType": "MC",
631
+ required: true,
632
+ "inputProps": {
633
+ options: options_无有
634
+ },
635
+ layout: '1/3'
636
+ }, {
637
+ "key": "personalOther",
638
+ "label": "其他",
639
+ "inputType": "input",
640
+ "inputProps": {
641
+ 'placeholder': '请输入其他'
642
+ },
643
+ layout: '1/3'
644
+ }]
645
+ }, {
646
+ "name": "家族史",
647
+ "children": [{
648
+ "key": "familyHeritableDisease__",
649
+ "label": "遗传疾病",
650
+ "inputType": "MC",
651
+ required: true,
652
+ "inputProps": {
653
+ options: options_无有
654
+ },
655
+ layout: '1/3'
656
+ }, {
657
+ "key": "familyPsychosis__",
658
+ "label": "精神病",
659
+ "inputType": "MC",
660
+ "inputProps": {
661
+ options: options_无有
662
+ },
663
+ layout: '1/3'
664
+ }, {
665
+ "key": "birthDefects__",
666
+ "label": "先天畸形",
667
+ "inputType": "MC",
668
+ "inputProps": {
669
+ options: options_无有
670
+ },
671
+ layout: '1/3'
672
+ }, {
673
+ "key": "familyHistoryOther",
674
+ "label": "其他",
675
+ "inputType": "input",
676
+ "inputProps": {
677
+ 'placeholder': '请输入其他'
678
+ },
679
+ layout: '1/3'
680
+ }]
681
+ }]);
682
+ function MedicalHistory(props) {
683
+ var _this = this;
684
+ var type = props.type;
685
+ var _a = useState({}),
686
+ data = _a[0],
687
+ setdata = _a[1];
688
+ var form = Form.useForm()[0];
689
+ var _b = BF_Wrap2({
690
+ default_conf: {
691
+ title: "\u5A5A\u524D\u68C0\u67E5-\u75C5\u53F2\u60C5\u51B5".concat(type),
692
+ tableColumns: form_config
693
+ }
694
+ }),
695
+ Wrap = _b.Wrap,
696
+ config = _b.config;
697
+ useEffect(function () {
698
+ handleInit();
699
+ return function () {};
700
+ }, []);
701
+ function handleInit() {
702
+ return __awaiter(this, void 0, void 0, function () {
703
+ var id, res, data, _a, _b;
704
+ return __generator(this, function (_c) {
705
+ switch (_c.label) {
706
+ case 0:
707
+ id = get(props, 'id') || getSearchParamsValue('id');
708
+ if (!(type === 'wife')) return [3, 4];
709
+ if (!id) return [3, 2];
710
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=2"))];
711
+ case 1:
712
+ _a = _c.sent().data;
713
+ return [3, 3];
714
+ case 2:
715
+ _a = {};
716
+ _c.label = 3;
717
+ case 3:
718
+ res = _a;
719
+ return [3, 8];
720
+ case 4:
721
+ if (!id) return [3, 6];
722
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=2"))];
723
+ case 5:
724
+ _b = _c.sent().data;
725
+ return [3, 7];
726
+ case 6:
727
+ _b = {};
728
+ _c.label = 7;
729
+ case 7:
730
+ res = _b;
731
+ _c.label = 8;
732
+ case 8:
733
+ if (res) {
734
+ data = get(res, 'data.0');
735
+ data = __assign(__assign({}, data), get(data, 'premaritalCheckArchivesMedicalHistoryVM'));
736
+ data = mchcUtils.autoNoteToCommonOption(data);
737
+ }
738
+ mchcLogger.log('setFieldsValue xx', form, data);
739
+ form.setFieldsValue(data);
740
+ setdata(data);
741
+ return [2];
742
+ }
743
+ });
744
+ });
745
+ }
746
+ function handleSubmit(values) {
747
+ return __awaiter(this, void 0, void 0, function () {
748
+ var _a, filesData, type, premaritalCheckArchivesMedicalHistoryVM, params, premaritalCheckArchivesDetailId;
749
+ return __generator(this, function (_b) {
750
+ switch (_b.label) {
751
+ case 0:
752
+ _a = props, _a.baseUrl, filesData = _a.filesData, type = _a.type;
753
+ premaritalCheckArchivesMedicalHistoryVM = data.premaritalCheckArchivesMedicalHistoryVM;
754
+ params = values;
755
+ premaritalCheckArchivesDetailId = get(filesData, 'womanPremaritalCheckArchivesDetailVM.id');
756
+ if (type === 'husband') {
757
+ premaritalCheckArchivesDetailId = get(filesData, 'manPremaritalCheckArchivesDetailVM.id');
758
+ }
759
+ params = __assign(__assign(__assign({}, premaritalCheckArchivesMedicalHistoryVM), params), {
760
+ premaritalCheckArchivesDetailId: premaritalCheckArchivesDetailId
761
+ });
762
+ params = mchcUtils.autoCommonOptionToNote(params);
763
+ return [4, fubaoRequest.post('/api/premarital/check/savePremaritalCheckArchivesMedicalHistory', params)];
764
+ case 1:
765
+ _b.sent();
766
+ return [2];
767
+ }
768
+ });
769
+ });
770
+ }
771
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
772
+ form: form,
773
+ onFinish: function onFinish(v) {
774
+ return __awaiter(_this, void 0, void 0, function () {
775
+ return __generator(this, function (_a) {
776
+ handleSubmit(v);
777
+ return [2];
778
+ });
779
+ });
780
+ },
781
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
782
+ }));
783
+ }
784
+ function PhysicalExamination$1(props) {
785
+ var _this = this;
786
+ var type = props.type,
787
+ filesData = props.filesData;
788
+ var form = Form.useForm()[0];
789
+ var _a = useState({}),
790
+ data = _a[0],
791
+ setdata = _a[1];
792
+ var _b = BF_Wrap2({
793
+ default_conf: {
794
+ title: "\u5A5A\u524D\u68C0\u67E5-\u4F53\u683C\u68C0\u67E5",
795
+ tableColumns: form_config$3
796
+ }
797
+ }),
798
+ Wrap = _b.Wrap,
799
+ config = _b.config;
800
+ useEffect(function () {
801
+ handleInit();
802
+ return function () {};
803
+ }, []);
804
+ function handleInit() {
805
+ return __awaiter(this, void 0, void 0, function () {
806
+ var id, res, data, _a, _b;
807
+ return __generator(this, function (_c) {
808
+ switch (_c.label) {
809
+ case 0:
810
+ id = get(props, 'id') || getSearchParamsValue('id');
811
+ if (!(type === 'wife')) return [3, 4];
812
+ if (!id) return [3, 2];
813
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=3"))];
814
+ case 1:
815
+ _a = _c.sent().data;
816
+ return [3, 3];
817
+ case 2:
818
+ _a = {};
819
+ _c.label = 3;
820
+ case 3:
821
+ res = _a;
822
+ return [3, 8];
823
+ case 4:
824
+ if (!id) return [3, 6];
825
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=3"))];
826
+ case 5:
827
+ _b = _c.sent().data;
828
+ return [3, 7];
829
+ case 6:
830
+ _b = {};
831
+ _c.label = 7;
832
+ case 7:
833
+ res = _b;
834
+ _c.label = 8;
835
+ case 8:
836
+ if (res) {
837
+ data = get(res, 'data.0');
838
+ data = __assign(__assign({}, data), get(data, 'premaritalCheckArchivesPhysicalExaminationVM'));
839
+ data = mchcUtils.autoNoteToCommonOption(data);
840
+ set(data, 'systolic_', [data.systolic, data.diastolic]);
841
+ }
842
+ data = id ? data : {};
843
+ setdata(data);
844
+ form.setFieldsValue(data);
845
+ return [2];
846
+ }
847
+ });
848
+ });
849
+ }
850
+ function handleSubmit(values) {
851
+ return __awaiter(this, void 0, void 0, function () {
852
+ var premaritalCheckArchivesPhysicalExaminationVM, baseUrl, params, premaritalCheckArchivesDetailId, _re, res, newData;
853
+ var _a, _b;
854
+ return __generator(this, function (_c) {
855
+ switch (_c.label) {
856
+ case 0:
857
+ premaritalCheckArchivesPhysicalExaminationVM = data.premaritalCheckArchivesPhysicalExaminationVM;
858
+ baseUrl = '/api/premarital/check/savePremaritalCheckArchivesPhysicalExamination';
859
+ params = values;
860
+ premaritalCheckArchivesDetailId = get(filesData, 'womanPremaritalCheckArchivesDetailVM.id');
861
+ if (type === 'husband') {
862
+ premaritalCheckArchivesDetailId = get(filesData, 'manPremaritalCheckArchivesDetailVM.id');
863
+ }
864
+ params = __assign(__assign(__assign({}, premaritalCheckArchivesPhysicalExaminationVM), params), {
865
+ premaritalCheckArchivesDetailId: premaritalCheckArchivesDetailId
866
+ });
867
+ params = mchcUtils.autoCommonOptionToNote(params);
868
+ set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
869
+ set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
870
+ return [4, fubaoRequest.post(baseUrl, params)];
871
+ case 1:
872
+ _re = _c.sent().data;
873
+ res = _re.data;
874
+ if (get(res, 'code') === 1) {
875
+ newData = get(res, 'data.0');
876
+ setdata(newData);
877
+ }
878
+ return [2];
879
+ }
880
+ });
881
+ });
882
+ }
883
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
884
+ form: form,
885
+ onFinish: function onFinish(v) {
886
+ return __awaiter(_this, void 0, void 0, function () {
887
+ return __generator(this, function (_a) {
888
+ handleSubmit(v);
889
+ return [2];
890
+ });
891
+ });
892
+ },
893
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
894
+ }));
895
+ }
896
+ function PhysicalExamination(props) {
897
+ var _this = this;
898
+ var type = props.type,
899
+ filesData = props.filesData;
900
+ var form = Form.useForm()[0];
901
+ var _a = useState({}),
902
+ data = _a[0],
903
+ setdata = _a[1];
904
+ var _b = BF_Wrap2({
905
+ default_conf: {
906
+ title: "\u5A5A\u524D\u68C0\u67E5-\u7B2C\u4E8C\u6027\u5F81".concat(type),
907
+ tableColumns: function tableColumns() {
908
+ return type === 'husband' ? import('./.root65.js') : import('./.root66.js');
909
+ }
910
+ }
911
+ }),
912
+ Wrap = _b.Wrap,
913
+ config = _b.config;
914
+ useEffect(function () {
915
+ handleInit();
916
+ return function () {};
917
+ }, []);
918
+ function handleInit() {
919
+ return __awaiter(this, void 0, void 0, function () {
920
+ var id, res, data, _a, _b;
921
+ return __generator(this, function (_c) {
922
+ switch (_c.label) {
923
+ case 0:
924
+ id = get(props, 'id') || getSearchParamsValue('id');
925
+ if (!(type === 'wife')) return [3, 4];
926
+ if (!id) return [3, 2];
927
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=4"))];
928
+ case 1:
929
+ _a = _c.sent().data;
930
+ return [3, 3];
931
+ case 2:
932
+ _a = {};
933
+ _c.label = 3;
934
+ case 3:
935
+ res = _a;
936
+ return [3, 8];
937
+ case 4:
938
+ if (!id) return [3, 6];
939
+ return [4, fubaoRequest.get("/api/premarital/check/getByPremaritalCheckArchivesId?premaritalCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=4"))];
940
+ case 5:
941
+ _b = _c.sent().data;
942
+ return [3, 7];
943
+ case 6:
944
+ _b = {};
945
+ _c.label = 7;
946
+ case 7:
947
+ res = _b;
948
+ _c.label = 8;
949
+ case 8:
950
+ if (res) {
951
+ data = get(res, 'data.0');
952
+ data = __assign(__assign({}, data), get(data, 'premaritalCheckArchivesSecondSexCharacterVM'));
953
+ data = mchcUtils.autoNoteToCommonOption(data);
954
+ }
955
+ data = id ? data : {};
956
+ setdata(data);
957
+ form.setFieldsValue(data);
958
+ return [2];
959
+ }
960
+ });
961
+ });
962
+ }
963
+ function handleSubmit(values) {
964
+ return __awaiter(this, void 0, void 0, function () {
965
+ var premaritalCheckArchivesSecondSexCharacterVM, baseUrl, params, premaritalCheckArchivesDetailId, _re, res, newData;
966
+ return __generator(this, function (_a) {
967
+ switch (_a.label) {
968
+ case 0:
969
+ premaritalCheckArchivesSecondSexCharacterVM = data.premaritalCheckArchivesSecondSexCharacterVM;
970
+ baseUrl = '/api/premarital/check/savePremaritalCheckArchivesSecondSexCharacter';
971
+ params = values;
972
+ premaritalCheckArchivesDetailId = get(filesData, 'womanPremaritalCheckArchivesDetailVM.id');
973
+ if (type === 'husband') {
974
+ premaritalCheckArchivesDetailId = get(filesData, 'manPremaritalCheckArchivesDetailVM.id');
975
+ }
976
+ params = __assign(__assign(__assign({}, premaritalCheckArchivesSecondSexCharacterVM), params), {
977
+ premaritalCheckArchivesDetailId: premaritalCheckArchivesDetailId
978
+ });
979
+ params = mchcUtils.autoCommonOptionToNote(params);
980
+ return [4, fubaoRequest.post(baseUrl, params)];
981
+ case 1:
982
+ _re = _a.sent().data;
983
+ res = _re.data;
984
+ if (get(res, 'code') === 1) {
985
+ newData = get(res, 'data.0');
986
+ setdata(newData);
987
+ }
988
+ return [2];
989
+ }
990
+ });
991
+ });
992
+ }
993
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
994
+ form: form,
995
+ onFinish: function onFinish(v) {
996
+ return __awaiter(_this, void 0, void 0, function () {
997
+ return __generator(this, function (_a) {
998
+ handleSubmit(v);
999
+ return [2];
1000
+ });
1001
+ });
1002
+ },
1003
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
1004
+ }));
1005
+ }
1006
+ export { MedicalHistory$1 as M, PhysicalExamination$1 as P, MedicalHistory as a, PhysicalExamination as b, PhysicalExamination$2 as c, PhysicalExamination$3 as d };