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