@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,1170 +1,150 @@
1
- import 'antd/es/form/style';
2
- import _Form from 'antd/es/form';
3
- import _set from 'lodash/set';
4
- import _get from 'lodash/get';
5
- import { _ as __awaiter, a as __generator, c as __assign } from './tslib.es6.js';
6
- import { BaseEditPanelFormFC } from '@lm_fe/components_m';
7
- import { getSearchParamsValue, fubaoRequest } from '@lm_fe/utils';
8
- import { BF_Wrap2 } from '@lm_fe/pages';
9
- import React, { useState, useEffect } from 'react';
10
- import { f as form_config$2, a as form_config$3, b as form_config$4 } from './form_config.js';
11
- import { mchcUtils, rt_ctx } from '@lm_fe/env';
12
- import { defineFormConfig } from '@lm_fe/service';
13
- function PhysicalExamination$4(props) {
14
- var _this = this;
15
- var type = props.type,
16
- filesData = props.filesData;
17
- var form = _Form.useForm()[0];
18
- var _a = useState({}),
19
- data = _a[0],
20
- setdata = _a[1];
21
- var _b = BF_Wrap2({
22
- default_conf: {
23
- title: "\u5B55\u524D\u68C0\u67E5-\u4F53\u683C\u68C0\u67E5",
24
- tableColumns: form_config$2
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/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=3"))];
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/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=3"))];
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, 'progestationCheckArchivesPhysicalExaminationVM'));
68
- data = mchcUtils.autoNoteToCommonOption(data);
69
- _set(data, 'systolic_', [data.systolic, data.diastolic]);
70
- }
71
- data = id ? data : {};
72
- setdata(data);
73
- form.setFieldsValue(data);
74
- return [2];
75
- }
76
- });
77
- });
78
- }
79
- function handleSubmit(values) {
80
- return __awaiter(this, void 0, void 0, function () {
81
- var progestationCheckArchivesPhysicalExaminationVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
82
- var _a, _b;
83
- return __generator(this, function (_c) {
84
- switch (_c.label) {
85
- case 0:
86
- progestationCheckArchivesPhysicalExaminationVM = data.progestationCheckArchivesPhysicalExaminationVM;
87
- baseUrl = '/api/progestation/check/saveProgestationCheckArchivesPhysicalExamination';
88
- params = values;
89
- progestationCheckArchivesDetailId = _get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
90
- if (type === 'husband') {
91
- progestationCheckArchivesDetailId = _get(filesData, 'manProgestationCheckArchivesDetailVM.id');
92
- }
93
- params = __assign(__assign(__assign({}, progestationCheckArchivesPhysicalExaminationVM), params), {
94
- progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
95
- });
96
- params = mchcUtils.autoCommonOptionToNote(params);
97
- _set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
98
- _set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
99
- return [4, fubaoRequest.post(baseUrl, params)];
100
- case 1:
101
- _re = _c.sent().data;
102
- res = _re.data;
103
- if (_get(res, 'code') === 1) {
104
- newData = _get(res, 'data.0');
105
- setdata(newData);
106
- }
107
- return [2];
108
- }
109
- });
110
- });
111
- }
112
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
113
- form: form,
114
- onFinish: function onFinish(v) {
115
- return __awaiter(_this, void 0, void 0, function () {
116
- return __generator(this, function (_a) {
117
- handleSubmit(v);
118
- return [2];
119
- });
120
- });
121
- },
122
- formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
123
- }));
124
- }
125
- var options_无有 = [{
126
- label: '无',
127
- value: 1
1
+ import { _ as __awaiter, a as __generator } from './tslib.es6.js';
2
+ import { OkButton } from '@lm_fe/components_m';
3
+ import { mchcModal__ } from '@lm_fe/pages';
4
+ import { safe_async_call, request } from '@lm_fe/utils';
5
+ import React from 'react';
6
+ import { rt_ctx } from '@lm_fe/env';
7
+ var ctx = rt_ctx;
8
+ var form_config = [{
9
+ label: "档案类型",
10
+ name: "fileType",
11
+ inputType: 'MC',
12
+ inputProps: {
13
+ uniqueKey: '性别2',
14
+ marshal: 0
15
+ },
16
+ layout: '1/1'
128
17
  }, {
129
- label: '有',
130
- value: 2,
131
- warning: true,
132
- inputType: 'input'
133
- }];
134
- var form_config$1 = defineFormConfig([{
135
- "name": "基本信息",
136
- "fields": [{
137
- "key": "menarche",
138
- "label": "初潮(岁)",
139
- "inputType": "input_number",
140
- required: true,
141
- "inputProps": {
142
- 'placeholder': '请输入初潮'
143
- },
144
- "span": 6,
145
- "offset": 0,
146
- "isNewRow": 0,
147
- "formItemLayout": {
148
- 'labelCol': {
149
- 'span': 8
150
- },
151
- 'wrapperCol': {
152
- 'span': 14
153
- }
154
- }
155
- }, {
156
- "key": "menstrualCycle",
157
- "label": "月经周期(天)",
158
- "inputType": "input_number",
159
- required: true,
160
- "inputProps": {
161
- 'placeholder': '请输入月经周期'
162
- },
163
- "span": 6,
164
- "offset": 0,
165
- "isNewRow": 0,
166
- "formItemLayout": {
167
- 'labelCol': {
168
- 'span': 8
169
- },
170
- 'wrapperCol': {
171
- 'span': 14
172
- }
173
- }
174
- }, {
175
- "key": "menstrualPeriod",
176
- "label": "月经持续天数",
177
- "inputType": "input_number",
178
- required: true,
179
- "inputProps": {
180
- 'placeholder': '请输入月经持续天数'
181
- },
182
- "span": 6,
183
- "offset": 0,
184
- "isNewRow": 0,
185
- "formItemLayout": {
186
- 'labelCol': {
187
- 'span': 8
188
- },
189
- 'wrapperCol': {
190
- 'span': 14
191
- }
192
- }
193
- }, {
194
- "key": "menstrualVolume",
195
- "label": "经量",
196
- "inputType": "checkbox_group",
197
- required: true,
198
- "specialConfig": {
199
- 'type': 'single',
200
- 'options': [{
201
- 'value': '多',
202
- 'label': '多',
203
- 'withInput': false,
204
- 'span': 6
205
- }, {
206
- 'value': '中',
207
- 'label': '中',
208
- 'withInput': false,
209
- 'span': 6
210
- }, {
211
- 'value': '少',
212
- 'label': '少',
213
- 'withInput': false,
214
- 'span': 6
215
- }]
216
- },
217
- "span": 6,
218
- "offset": 0,
219
- "isNewRow": 0,
220
- "formItemLayout": {
221
- 'labelCol': {
222
- 'span': 8
223
- },
224
- 'wrapperCol': {
225
- 'span': 16
226
- }
227
- }
228
- }, {
229
- "key": "dysmenorrhea__",
230
- "label": "痛经",
231
- "inputType": "MC",
232
- required: true,
233
- inputProps: {
234
- options: options_无有
235
- },
236
- "span": 6,
237
- "offset": 0,
238
- "isNewRow": 0,
239
- "formItemLayout": {
240
- 'labelCol': {
241
- 'span': 8
242
- },
243
- 'wrapperCol': {
244
- 'span': 16
245
- }
246
- }
247
- }, {
248
- "key": "gravidity",
249
- "label": "孕次",
250
- "inputType": "input_number",
251
- required: true,
252
- "inputProps": {
253
- 'placeholder': '请输入孕次'
254
- },
255
- "span": 6,
256
- "offset": 0,
257
- "isNewRow": 0,
258
- "formItemLayout": {
259
- 'labelCol': {
260
- 'span': 8
261
- },
262
- 'wrapperCol': {
263
- 'span': 14
264
- }
265
- }
266
- }, {
267
- "key": "parity",
268
- "label": "产次",
269
- "inputType": "input_number",
270
- required: true,
271
- "inputProps": {
272
- 'placeholder': '请输入产次'
273
- },
274
- "span": 6,
275
- "offset": 0,
276
- "isNewRow": 0,
277
- "formItemLayout": {
278
- 'labelCol': {
279
- 'span': 8
280
- },
281
- 'wrapperCol': {
282
- 'span': 14
283
- }
284
- }
285
- }]
18
+ label: "女方姓名",
19
+ name: "womanName",
20
+ inputType: 'MA',
21
+ layout: '1/3'
286
22
  }, {
287
- "name": "个人史",
288
- "fields": [{
289
- "key": "previousHistory__",
290
- "label": "既往史",
291
- "inputType": "MC",
292
- required: true,
293
- inputProps: {
294
- options: options_无有
295
- },
296
- "span": 6,
297
- "offset": 0,
298
- "isNewRow": 0,
299
- "formItemLayout": {
300
- 'labelCol': {
301
- 'span': 8
302
- },
303
- 'wrapperCol': {
304
- 'span': 16
305
- }
306
- }
307
- }, {
308
- "key": "surgeryHistory__",
309
- "label": "手术史",
310
- "inputType": "MC",
311
- required: true,
312
- inputProps: {
313
- options: options_无有
314
- },
315
- "span": 6,
316
- "offset": 0,
317
- "isNewRow": 0,
318
- "formItemLayout": {
319
- 'labelCol': {
320
- 'span': 8
321
- },
322
- 'wrapperCol': {
323
- 'span': 16
324
- }
325
- }
326
- }, {
327
- "key": "takeMedicine__",
328
- "label": "服用药物",
329
- "inputType": "MC",
330
- required: true,
331
- inputProps: {
332
- options: options_无有
333
- },
334
- "span": 6,
335
- "offset": 0,
336
- "isNewRow": 0,
337
- "formItemLayout": {
338
- 'labelCol': {
339
- 'span': 8
340
- },
341
- 'wrapperCol': {
342
- 'span': 16
343
- }
344
- }
345
- }, {
346
- "key": "presentIllness__",
347
- "label": "现病史",
348
- "inputType": "MC",
349
- required: true,
350
- inputProps: {
351
- options: options_无有
352
- },
353
- "span": 6,
354
- "offset": 0,
355
- "isNewRow": 0,
356
- "formItemLayout": {
357
- 'labelCol': {
358
- 'span': 8
359
- },
360
- 'wrapperCol': {
361
- 'span': 16
362
- }
363
- }
364
- }, {
365
- "key": "contactHazardousSubstances__",
366
- "label": "接触有害物质",
367
- "inputType": "MC",
368
- required: true,
369
- inputProps: {
370
- options: options_无有
371
- },
372
- "span": 6,
373
- "offset": 0,
374
- "isNewRow": 0,
375
- "formItemLayout": {
376
- 'labelCol': {
377
- 'span': 8
378
- },
379
- 'wrapperCol': {
380
- 'span': 16
381
- }
382
- }
383
- }, {
384
- "key": "contactRadioactiveRays__",
385
- "label": "接触放射线",
386
- "inputType": "MC",
387
- required: true,
388
- inputProps: {
389
- options: options_无有
390
- },
391
- "span": 6,
392
- "offset": 0,
393
- "isNewRow": 0,
394
- "formItemLayout": {
395
- 'labelCol': {
396
- 'span': 8
397
- },
398
- 'wrapperCol': {
399
- 'span': 16
400
- }
401
- }
402
- }, {
403
- "key": "nearRelation__",
404
- "label": "近亲结婚",
405
- "inputType": "MC",
406
- inputProps: {
407
- options: options_无有
408
- },
409
- "span": 6,
410
- "offset": 0,
411
- "isNewRow": 0,
412
- "formItemLayout": {
413
- 'labelCol': {
414
- 'span': 8
415
- },
416
- 'wrapperCol': {
417
- 'span': 16
418
- }
419
- }
420
- }, {
421
- "key": "contraception__",
422
- "label": "避孕措施",
423
- "inputType": "MC",
424
- inputProps: {
425
- options: options_无有
426
- },
427
- "span": 6,
428
- "offset": 0,
429
- "isNewRow": 0,
430
- "formItemLayout": {
431
- 'labelCol': {
432
- 'span': 8
433
- },
434
- 'wrapperCol': {
435
- 'span': 16
436
- }
437
- }
438
- }, {
439
- "key": "personalSmoke__",
440
- "label": "吸烟",
441
- "inputType": "MC",
442
- inputProps: {
443
- options: options_无有
444
- },
445
- "span": 6,
446
- "offset": 0,
447
- "isNewRow": 0,
448
- "formItemLayout": {
449
- 'labelCol': {
450
- 'span': 8
451
- },
452
- 'wrapperCol': {
453
- 'span': 16
454
- }
455
- }
456
- }, {
457
- "key": "personalDrink__",
458
- "label": "饮酒",
459
- "inputType": "MC",
460
- inputProps: {
461
- options: options_无有
462
- },
463
- "span": 6,
464
- "offset": 0,
465
- "isNewRow": 0,
466
- "formItemLayout": {
467
- 'labelCol': {
468
- 'span': 8
469
- },
470
- 'wrapperCol': {
471
- 'span': 16
472
- }
473
- }
474
- }, {
475
- "key": "personalOther",
476
- "label": "其他",
477
- "inputType": "input",
478
- "inputProps": {
479
- 'placeholder': '请输入其他'
480
- },
481
- "span": 6,
482
- "offset": 0,
483
- "isNewRow": 0,
484
- "formItemLayout": {
485
- 'labelCol': {
486
- 'span': 8
487
- },
488
- 'wrapperCol': {
489
- 'span': 14
490
- }
491
- }
492
- }]
23
+ label: "女方年龄",
24
+ name: "womanAge",
25
+ inputType: 'input_number',
26
+ layout: '1/3'
493
27
  }, {
494
- "name": "家族史",
495
- "fields": [{
496
- "key": "familyHeritableDisease__",
497
- "label": "遗传疾病",
498
- "inputType": "MC",
499
- required: true,
500
- inputProps: {
501
- options: options_无有
502
- },
503
- "span": 6,
504
- "offset": 0,
505
- "isNewRow": 0,
506
- "formItemLayout": {
507
- 'labelCol': {
508
- 'span': 8
509
- },
510
- 'wrapperCol': {
511
- 'span': 16
512
- }
513
- }
514
- }, {
515
- "key": "familyPsychosis__",
516
- "label": "精神病",
517
- "inputType": "MC",
518
- required: true,
519
- inputProps: {
520
- options: options_无有
521
- },
522
- "span": 6,
523
- "offset": 0,
524
- "isNewRow": 0,
525
- "formItemLayout": {
526
- 'labelCol': {
527
- 'span': 8
528
- },
529
- 'wrapperCol': {
530
- 'span': 16
531
- }
532
- }
533
- }, {
534
- "key": "birthDefects__",
535
- "label": "先天畸形",
536
- "inputType": "MC",
537
- required: true,
28
+ label: "女方电话号码",
29
+ name: "womanTelephone",
30
+ inputType: 'MA',
31
+ layout: '1/3'
32
+ }, {
33
+ label: "男方姓名",
34
+ name: "manName",
35
+ inputType: 'MA',
36
+ layout: '1/3'
37
+ }, {
38
+ label: "男方年龄",
39
+ name: "manAge",
40
+ inputType: 'input_number',
41
+ layout: '1/3'
42
+ }, {
43
+ label: "男方电话号码",
44
+ name: "manTelephone",
45
+ inputType: 'MA',
46
+ layout: '1/3'
47
+ }, {
48
+ label: "追踪随访内容",
49
+ children: [{
50
+ name: "followupRecordVMList",
51
+ inputType: "MyEditTable",
538
52
  inputProps: {
539
- options: options_无有
540
- },
541
- "span": 6,
542
- "offset": 0,
543
- "isNewRow": 0,
544
- "formItemLayout": {
545
- 'labelCol': {
546
- 'span': 8
547
- },
548
- 'wrapperCol': {
549
- 'span': 16
550
- }
551
- }
552
- }, {
553
- "key": "familyHistoryOther",
554
- "label": "其他",
555
- "inputType": "input",
556
- "inputProps": {
557
- 'placeholder': '请输入其他'
558
- },
559
- "span": 6,
560
- "offset": 0,
561
- "isNewRow": 0,
562
- "formItemLayout": {
563
- 'labelCol': {
564
- 'span': 8
565
- },
566
- 'wrapperCol': {
567
- 'span': 14
568
- }
569
- }
570
- }]
571
- }]);
572
- function MedicalHistory(props) {
573
- var _this = this;
574
- var type = props.type;
575
- var _a = useState({}),
576
- data = _a[0],
577
- setdata = _a[1];
578
- var form = _Form.useForm()[0];
579
- var _b = BF_Wrap2({
580
- default_conf: {
581
- title: "\u5B55\u524D\u68C0\u67E5-\u75C5\u53F2\u60C5\u51B5".concat(type),
582
- tableColumns: form_config$1
583
- }
584
- }),
585
- Wrap = _b.Wrap,
586
- config = _b.config;
587
- useEffect(function () {
588
- handleInit();
589
- return function () {};
590
- }, []);
591
- function handleInit() {
592
- return __awaiter(this, void 0, void 0, function () {
593
- var id, res, data, _a, _b;
594
- return __generator(this, function (_c) {
595
- switch (_c.label) {
596
- case 0:
597
- id = _get(props, 'id') || getSearchParamsValue('id');
598
- if (!(type === 'wife')) return [3, 4];
599
- if (!id) return [3, 2];
600
- return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=2"))];
601
- case 1:
602
- _a = _c.sent().data;
603
- return [3, 3];
604
- case 2:
605
- _a = {};
606
- _c.label = 3;
607
- case 3:
608
- res = _a;
609
- return [3, 8];
610
- case 4:
611
- if (!id) return [3, 6];
612
- return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=2"))];
613
- case 5:
614
- _b = _c.sent().data;
615
- return [3, 7];
616
- case 6:
617
- _b = {};
618
- _c.label = 7;
619
- case 7:
620
- res = _b;
621
- _c.label = 8;
622
- case 8:
623
- if (res) {
624
- data = _get(res, 'data.0');
625
- data = __assign(__assign({}, data), _get(data, 'progestationCheckArchivesMedicalHistoryVM'));
626
- }
627
- data = id ? data : {};
628
- data = mchcUtils.autoNoteToCommonOption(data);
629
- console.log('fuck', data);
630
- form.setFieldsValue(data);
631
- setdata(data);
632
- return [2];
633
- }
634
- });
635
- });
636
- }
637
- function handleSubmit(values) {
638
- return __awaiter(this, void 0, void 0, function () {
639
- var _a, filesData, type, progestationCheckArchivesMedicalHistoryVM, params, progestationCheckArchivesDetailId, res;
640
- return __generator(this, function (_b) {
641
- switch (_b.label) {
642
- case 0:
643
- _a = props, _a.baseUrl, filesData = _a.filesData, type = _a.type;
644
- progestationCheckArchivesMedicalHistoryVM = data.progestationCheckArchivesMedicalHistoryVM;
645
- params = values;
646
- progestationCheckArchivesDetailId = _get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
647
- if (type === 'husband') {
648
- progestationCheckArchivesDetailId = _get(filesData, 'manProgestationCheckArchivesDetailVM.id');
649
- }
650
- params = __assign(__assign(__assign({}, progestationCheckArchivesMedicalHistoryVM), params), {
651
- progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
652
- });
653
- params = mchcUtils.autoCommonOptionToNote(params);
654
- return [4, fubaoRequest.post('/api/progestation/check/saveProgestationCheckArchivesMedicalHistory', params)];
655
- case 1:
656
- res = _b.sent().data;
657
- if (_get(res, 'code') === 1) ;
658
- return [2];
659
- }
660
- });
661
- });
662
- }
663
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
664
- form: form,
665
- onFinish: function onFinish(v) {
666
- return __awaiter(_this, void 0, void 0, function () {
667
- return __generator(this, function (_a) {
668
- handleSubmit(v);
669
- return [2];
670
- });
671
- });
672
- },
673
- formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns
674
- }));
675
- }
676
- function PhysicalExamination$3(props) {
677
- var _this = this;
678
- var type = props.type,
679
- filesData = props.filesData;
680
- var conf_fn = function conf_fn() {
681
- return import('./.root61.js');
682
- };
683
- var form = _Form.useForm()[0];
684
- var _a = useState({}),
685
- data = _a[0],
686
- setdata = _a[1];
687
- var _b = BF_Wrap2({
688
- default_conf: {
689
- title: "\u5B55\u524D\u68C0\u67E5-\u57FA\u672C\u4FE1\u606F",
690
- tableColumns: conf_fn
691
- }
692
- }),
693
- Wrap = _b.Wrap,
694
- config = _b.config;
695
- useEffect(function () {
696
- handleInit();
697
- return function () {};
698
- }, []);
699
- function handleInit() {
700
- return __awaiter(this, void 0, void 0, function () {
701
- var id, res, data, _a, _b;
702
- return __generator(this, function (_c) {
703
- switch (_c.label) {
704
- case 0:
705
- id = _get(props, 'id') || getSearchParamsValue('id');
706
- if (!(type === 'wife')) return [3, 4];
707
- if (!id) return [3, 2];
708
- return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=2&childrenSign.equals=1"))];
709
- case 1:
710
- _a = _c.sent().data;
711
- return [3, 3];
712
- case 2:
713
- _a = {};
714
- _c.label = 3;
715
- case 3:
716
- res = _a;
717
- return [3, 8];
718
- case 4:
719
- if (!id) return [3, 6];
720
- return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&fileType.equals=1&childrenSign.equals=1"))];
721
- case 5:
722
- _b = _c.sent().data;
723
- return [3, 7];
724
- case 6:
725
- _b = {};
726
- _c.label = 7;
727
- case 7:
728
- res = _b;
729
- _c.label = 8;
730
- case 8:
731
- if (res) {
732
- data = _get(res, 'data.0');
733
- data = __assign(__assign({}, data), _get(data, 'progestationCheckArchivesBasicInformationVM'));
734
- data = mchcUtils.autoNoteToCommonOption(data);
735
- _set(data, 'systolic_', [data.systolic, data.diastolic]);
736
- }
737
- data = id ? data : {};
738
- setdata(data);
739
- form.setFieldsValue(data);
740
- return [2];
53
+ marshal: 0,
54
+ genRowData: function genRowData(list) {
55
+ return {
56
+ followupDate: ctx.utils.formatDate()
57
+ };
58
+ },
59
+ formDescriptions: [{
60
+ title: '怀孕状态',
61
+ dataIndex: 'pregnancyStatus',
62
+ inputType: 'MS',
63
+ inputProps: {
64
+ uniqueKey: 'Pregnancy.pregnancyStatus',
65
+ marshal: 0
741
66
  }
742
- });
743
- });
744
- }
745
- function handleSubmit(values) {
746
- return __awaiter(this, void 0, void 0, function () {
747
- var progestationCheckArchivesBasicInformationVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
748
- var _a, _b;
749
- return __generator(this, function (_c) {
750
- switch (_c.label) {
751
- case 0:
752
- progestationCheckArchivesBasicInformationVM = data.progestationCheckArchivesBasicInformationVM;
753
- baseUrl = '/api/progestation/check/saveProgestationCheckArchivesBasicInformation';
754
- params = values;
755
- progestationCheckArchivesDetailId = _get(filesData, 'womanProgestationCheckArchivesDetailVM.id');
756
- if (type === 'husband') {
757
- progestationCheckArchivesDetailId = _get(filesData, 'manProgestationCheckArchivesDetailVM.id');
758
- }
759
- params = __assign(__assign(__assign({}, progestationCheckArchivesBasicInformationVM), params), {
760
- progestationCheckArchivesDetailId: progestationCheckArchivesDetailId
761
- });
762
- params = mchcUtils.autoCommonOptionToNote(params);
763
- _set(params, 'systolic', (_a = params.systolic_) === null || _a === void 0 ? void 0 : _a[0]);
764
- _set(params, 'diastolic', (_b = params.systolic_) === null || _b === void 0 ? void 0 : _b[1]);
765
- return [4, fubaoRequest.post(baseUrl, params)];
766
- case 1:
767
- _re = _c.sent().data;
768
- res = _re.data;
769
- if (_get(res, 'code') === 1) {
770
- newData = _get(res, 'data.0');
771
- setdata(newData);
772
- }
773
- return [2];
67
+ }, {
68
+ title: '传染病内容',
69
+ dataIndex: 'infectionContent',
70
+ inputType: 'Input'
71
+ }, {
72
+ title: '随访内容',
73
+ dataIndex: 'followupContent',
74
+ inputType: 'Input'
75
+ }, {
76
+ title: '随访状态',
77
+ dataIndex: 'followupState',
78
+ inputType: 'MS',
79
+ inputProps: {
80
+ uniqueKey: '随访状态',
81
+ marshal: 0
774
82
  }
775
- });
776
- });
777
- }
778
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(BaseEditPanelFormFC, {
779
- form: form,
780
- onFinish: function onFinish(v) {
781
- return __awaiter(_this, void 0, void 0, function () {
782
- return __generator(this, function (_a) {
783
- handleSubmit(v);
784
- return [2];
785
- });
786
- });
83
+ }]
787
84
  },
788
- formDescriptions: __DEV__ ? conf_fn : config === null || config === void 0 ? void 0 : config.tableColumns
789
- }));
790
- }
791
- function PhysicalExamination$2(props) {
792
- var _this = this;
793
- var type = props.type,
794
- filesData = props.filesData;
795
- var form = _Form.useForm()[0];
796
- var _a = useState({}),
797
- data = _a[0],
798
- setdata = _a[1];
799
- var _b = BF_Wrap2({
800
- default_conf: {
801
- title: "\u5B55\u524D\u68C0\u67E5-\u7B2C\u4E8C\u6027\u5F81",
802
- tableColumns: form_config$3
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) {
85
+ layout: '1/1'
86
+ }]
87
+ }];
88
+ var opt_url = '/api/progestation/check/followup/progestationCheckFollowupCase';
89
+ function Follow_up_btn_孕前(props) {
90
+ var handleSearch = props.handleSearch,
91
+ _a = props.rowData,
92
+ rowData = _a === void 0 ? {} : _a;
93
+ var premaritalCheckArchivesId = rowData.premaritalCheckArchivesId,
94
+ fileType = rowData.fileType;
95
+ function showView() {
857
96
  return __awaiter(this, void 0, void 0, function () {
858
- var progestationCheckArchivesSecondSexCharacterVM, baseUrl, params, progestationCheckArchivesDetailId, _re, res, newData;
97
+ var record;
859
98
  return __generator(this, function (_a) {
860
99
  switch (_a.label) {
861
100
  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$4
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"))];
101
+ return [4, request.get("/api/progestation/check/followup/progestationCheckFollowup", {
102
+ params: {
103
+ premaritalCheckArchivesId: premaritalCheckArchivesId,
104
+ fileType: fileType
105
+ },
106
+ unboxing: true,
107
+ ignore_usr: true
108
+ })];
929
109
  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
110
+ record = _a.sent();
111
+ mchcModal__.open('modal_form', {
112
+ modal_data: {
113
+ bf_title: '孕前检查-随访',
114
+ formDescriptions: form_config,
115
+ getInitialData: function getInitialData() {
116
+ return record.data;
117
+ },
118
+ onSubmit: function onSubmit(data) {
119
+ return __awaiter(this, void 0, void 0, function () {
120
+ var fn;
121
+ return __generator(this, function (_a) {
122
+ switch (_a.label) {
123
+ case 0:
124
+ fn = data.id ? request.put : request.post;
125
+ return [4, fn(opt_url, data, {
126
+ successText: '操作成功',
127
+ ignore_usr: true
128
+ })];
129
+ case 1:
130
+ _a.sent();
131
+ safe_async_call(handleSearch);
132
+ return [2, 1];
133
+ }
134
+ });
135
+ });
136
+ }
137
+ }
981
138
  });
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
139
  return [2];
994
140
  }
995
141
  });
996
142
  });
997
143
  }
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
- }));
144
+ return /*#__PURE__*/React.createElement(OkButton, {
145
+ type: "link",
146
+ size: "small",
147
+ onClick: showView
148
+ }, "\u968F\u8BBF");
1168
149
  }
1169
- export { MedicalHistory as M, PhysicalExamination$3 as P, PhysicalExamination$4 as a, PhysicalExamination$2 as b, PhysicalExamination$1 as c, PhysicalExamination as d };
1170
- //# sourceMappingURL=index3.js.map
150
+ export { Follow_up_btn_孕前 as F };