@lm_fe/pages-fubao 0.1.201 → 0.2.5

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 (208) hide show
  1. package/README.md +5 -3
  2. package/dist/a_chunks/{.root55.js → CervicalCarcinoma.Screening.form.js} +1 -8
  3. package/dist/a_chunks/{.root57.js → CervicalCarcinoma.Screening.form2.js} +0 -7
  4. package/dist/a_chunks/Form.js +3 -5
  5. package/dist/a_chunks/{.root56.js → MammaryCancer.Screening.form.js} +4 -28
  6. package/dist/a_chunks/{.root58.js → MammaryCancer.Screening.form2.js} +0 -1
  7. package/dist/a_chunks/ModalForm.js +254 -280
  8. package/dist/a_chunks/api.js +311 -325
  9. package/dist/a_chunks/common.js +0 -1
  10. package/dist/a_chunks/config.js +135 -164
  11. package/dist/a_chunks/{.root.js → family-planning.file-management.doctor-desk.js} +241 -281
  12. package/dist/a_chunks/family-planning.file-management.doctor-desk2.js +18 -0
  13. package/dist/a_chunks/{.root9.js → family-planning.file-management.list.js} +16 -26
  14. package/dist/a_chunks/{.root2.js → family-planning.file-management.nurse-desk.js} +22 -30
  15. package/dist/a_chunks/{.root13.js → family-planning.tracing-management.list.js} +300 -331
  16. package/dist/a_chunks/folic-acid.file-management.add.js +12 -0
  17. package/dist/a_chunks/folic-acid.file-management.edit.js +12 -0
  18. package/dist/a_chunks/{.root16.js → folic-acid.file-management.list.js} +4 -6
  19. package/dist/a_chunks/{.root17.js → follow-up.positive.premarital.js} +11 -2
  20. package/dist/a_chunks/{.root18.js → follow-up.positive.progestation.js} +10 -1
  21. package/dist/a_chunks/form_config.js +11 -130
  22. package/dist/a_chunks/{.root3.js → fubao.data-report.breast-cancer.js} +4 -6
  23. package/dist/a_chunks/{.root4.js → fubao.data-report.cervical-cancer.js} +4 -6
  24. package/dist/a_chunks/{.root5.js → fubao.family-planning.booking-management.js} +3 -3
  25. package/dist/a_chunks/{.root52.js → fubao.family-planning.booking-management2.js} +167 -219
  26. package/dist/a_chunks/{.root6.js → fubao.family-planning.curettage-statistics.js} +6 -9
  27. package/dist/a_chunks/fubao.family-planning.file-management.js +9 -0
  28. package/dist/a_chunks/{.root10.js → fubao.family-planning.surgery-management.js} +9 -15
  29. package/dist/a_chunks/{.root11.js → fubao.family-planning.surgery-scheduling.js} +210 -244
  30. package/dist/a_chunks/fubao.family-planning.tracing-management.js +14 -0
  31. package/dist/a_chunks/{.root28.js → fubao.gynecological-diseases.pathological-follow-up.js} +11 -15
  32. package/dist/a_chunks/{.root29.js → fubao.gynecological-diseases.pathological-reminder.js} +11 -15
  33. package/dist/a_chunks/fubao.gynecological-diseases.two-cancers.js +141 -0
  34. package/dist/a_chunks/fubao.pre-pregnancy-care.file-management.js +492 -0
  35. package/dist/a_chunks/{.root44.js → fubao.premarital-care.file-management.js} +13 -19
  36. package/dist/a_chunks/{.root47.js → fubao.report-entry.patients.js} +5 -8
  37. package/dist/a_chunks/{.root63.js → fubao.report-entry.patients2.js} +1 -2
  38. package/dist/a_chunks/{.root40.js → fubao.report-entry.reports.js} +3 -3
  39. package/dist/a_chunks/{.root62.js → fubao.report-entry.reports2.js} +64 -65
  40. package/dist/a_chunks/{.root64.js → fubao.report-entry.reports3.js} +0 -1
  41. package/dist/a_chunks/{.root65.js → fubao.report-entry.reports4.js} +0 -1
  42. package/dist/a_chunks/fubao.statistic.abnormal-breast-cancer.js +97 -0
  43. package/dist/a_chunks/fubao.statistic.abnormal-cervical-cancer.js +94 -0
  44. package/dist/a_chunks/{.root48.js → fubao.statistic.breast-cancer.js} +0 -1
  45. package/dist/a_chunks/{.root49.js → fubao.statistic.cervical-cancer.js} +0 -1
  46. package/dist/a_chunks/fubao.statistic.premarital-checkup.js +120 -0
  47. package/dist/a_chunks/fubao.statistic.progestation-checkup.js +89 -0
  48. package/dist/a_chunks/{.root19.js → gynecological-diseases.adolescent-management.list.js} +16 -27
  49. package/dist/a_chunks/gynecological-diseases.breast.edit.js +121 -0
  50. package/dist/a_chunks/{.root21.js → gynecological-diseases.breast.list.js} +16 -18
  51. package/dist/a_chunks/{.root24.js → gynecological-diseases.cervical-cancer-report.list.js} +10 -14
  52. package/dist/a_chunks/gynecological-diseases.cervical.edit.js +121 -0
  53. package/dist/a_chunks/{.root23.js → gynecological-diseases.cervical.list.js} +16 -18
  54. package/dist/a_chunks/{.root25.js → gynecological-diseases.hpv-report.list.js} +10 -14
  55. package/dist/a_chunks/{.root26.js → gynecological-diseases.mammary-cancer-report.list.js} +10 -14
  56. package/dist/a_chunks/{.root27.js → gynecological-diseases.menopause-management.list.js} +16 -27
  57. package/dist/a_chunks/{.root30.js → gynecological-diseases.regular-screening.list.js} +9 -14
  58. package/dist/a_chunks/gynecological-diseases.two-cancers.add.js +12 -0
  59. package/dist/a_chunks/{.root32.js → gynecological-diseases.two-cancers.edit.js} +11 -19
  60. package/dist/a_chunks/{.root33.js → gynecological-diseases.two-cancers.exam.js} +309 -336
  61. package/dist/a_chunks/{.root34.js → gynecological-diseases.two-cancers.followup.js} +1 -2
  62. package/dist/a_chunks/index.js +43 -57
  63. package/dist/a_chunks/index2.js +148 -64
  64. package/dist/a_chunks/index3.js +131 -1151
  65. package/dist/a_chunks/index4.js +57 -1040
  66. package/dist/a_chunks/index5.js +140 -0
  67. package/dist/a_chunks/index6.js +1169 -0
  68. package/dist/a_chunks/index7.js +1006 -0
  69. package/dist/a_chunks/{.root61.js → pages.fubao.premarital-care.js} +4 -5
  70. package/dist/a_chunks/pages.fubao.premarital-care2.js +114 -0
  71. package/dist/a_chunks/pages.fubao.premarital-care3.js +132 -0
  72. package/dist/a_chunks/pre-pregnancy-care.file-management.add.js +12 -0
  73. package/dist/a_chunks/pre-pregnancy-care.file-management.edit.js +199 -0
  74. package/dist/a_chunks/pre-pregnancy-care.file-management.edit2.js +830 -0
  75. package/dist/a_chunks/{.root39.js → pre-pregnancy-care.husband.husband-exam.js} +57 -84
  76. package/dist/a_chunks/{.root41.js → pre-pregnancy-care.wife.wife-exam.js} +57 -84
  77. package/dist/a_chunks/premarital-care.file-management.add.js +12 -0
  78. package/dist/a_chunks/{.root59.js → premarital-care.file-management.config.js} +10 -11
  79. package/dist/a_chunks/{.root60.js → premarital-care.file-management.config2.js} +0 -1
  80. package/dist/a_chunks/premarital-care.file-management.edit.js +199 -0
  81. package/dist/a_chunks/premarital-care.file-management.edit2.js +817 -0
  82. package/dist/a_chunks/{.root45.js → premarital-care.husband-v2.husband-exam.js} +56 -83
  83. package/dist/a_chunks/{.root46.js → premarital-care.wife-v2.wife-exam.js} +56 -83
  84. package/dist/a_chunks/style-inject.es.js +0 -1
  85. package/dist/a_chunks/tslib.es6.js +1 -2
  86. package/dist/a_chunks/{.root53.js → two-cancers.edit.form_config.js} +1 -2
  87. package/dist/a_chunks/{.root54.js → two-cancers.edit.form_config2.js} +4 -5
  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 +59 -54
  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/gynecological-diseases/pathological-follow-up/config/table.d.ts +2 -1
  93. package/dist/pages/fubao/gynecological-diseases/pathological-reminder/config/table.d.ts +2 -1
  94. 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
  95. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/form_config.d.ts +2 -1
  96. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index copy.d.ts +18 -0
  97. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index.d.ts +3 -18
  98. package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/form_config_nv.d.ts +4 -0
  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 +0 -45
  113. package/dist/a_chunks/.root12.js.map +0 -1
  114. package/dist/a_chunks/.root13.js.map +0 -1
  115. package/dist/a_chunks/.root14.js +0 -26
  116. package/dist/a_chunks/.root14.js.map +0 -1
  117. package/dist/a_chunks/.root15.js +0 -26
  118. package/dist/a_chunks/.root15.js.map +0 -1
  119. package/dist/a_chunks/.root16.js.map +0 -1
  120. package/dist/a_chunks/.root17.js.map +0 -1
  121. package/dist/a_chunks/.root18.js.map +0 -1
  122. package/dist/a_chunks/.root19.js.map +0 -1
  123. package/dist/a_chunks/.root2.js.map +0 -1
  124. package/dist/a_chunks/.root20.js +0 -125
  125. package/dist/a_chunks/.root20.js.map +0 -1
  126. package/dist/a_chunks/.root21.js.map +0 -1
  127. package/dist/a_chunks/.root22.js +0 -125
  128. package/dist/a_chunks/.root22.js.map +0 -1
  129. package/dist/a_chunks/.root23.js.map +0 -1
  130. package/dist/a_chunks/.root24.js.map +0 -1
  131. package/dist/a_chunks/.root25.js.map +0 -1
  132. package/dist/a_chunks/.root26.js.map +0 -1
  133. package/dist/a_chunks/.root27.js.map +0 -1
  134. package/dist/a_chunks/.root28.js.map +0 -1
  135. package/dist/a_chunks/.root29.js.map +0 -1
  136. package/dist/a_chunks/.root3.js.map +0 -1
  137. package/dist/a_chunks/.root30.js.map +0 -1
  138. package/dist/a_chunks/.root31.js +0 -20
  139. package/dist/a_chunks/.root31.js.map +0 -1
  140. package/dist/a_chunks/.root32.js.map +0 -1
  141. package/dist/a_chunks/.root33.js.map +0 -1
  142. package/dist/a_chunks/.root34.js.map +0 -1
  143. package/dist/a_chunks/.root35.js +0 -281
  144. package/dist/a_chunks/.root35.js.map +0 -1
  145. package/dist/a_chunks/.root36.js +0 -26
  146. package/dist/a_chunks/.root36.js.map +0 -1
  147. package/dist/a_chunks/.root37.js +0 -1497
  148. package/dist/a_chunks/.root37.js.map +0 -1
  149. package/dist/a_chunks/.root38.js +0 -2956
  150. package/dist/a_chunks/.root38.js.map +0 -1
  151. package/dist/a_chunks/.root39.js.map +0 -1
  152. package/dist/a_chunks/.root4.js.map +0 -1
  153. package/dist/a_chunks/.root40.js.map +0 -1
  154. package/dist/a_chunks/.root41.js.map +0 -1
  155. package/dist/a_chunks/.root42.js +0 -26
  156. package/dist/a_chunks/.root42.js.map +0 -1
  157. package/dist/a_chunks/.root43.js +0 -1542
  158. package/dist/a_chunks/.root43.js.map +0 -1
  159. package/dist/a_chunks/.root44.js.map +0 -1
  160. package/dist/a_chunks/.root45.js.map +0 -1
  161. package/dist/a_chunks/.root46.js.map +0 -1
  162. package/dist/a_chunks/.root47.js.map +0 -1
  163. package/dist/a_chunks/.root48.js.map +0 -1
  164. package/dist/a_chunks/.root49.js.map +0 -1
  165. package/dist/a_chunks/.root5.js.map +0 -1
  166. package/dist/a_chunks/.root50.js +0 -263
  167. package/dist/a_chunks/.root50.js.map +0 -1
  168. package/dist/a_chunks/.root51.js +0 -232
  169. package/dist/a_chunks/.root51.js.map +0 -1
  170. package/dist/a_chunks/.root52.js.map +0 -1
  171. package/dist/a_chunks/.root53.js.map +0 -1
  172. package/dist/a_chunks/.root54.js.map +0 -1
  173. package/dist/a_chunks/.root55.js.map +0 -1
  174. package/dist/a_chunks/.root56.js.map +0 -1
  175. package/dist/a_chunks/.root57.js.map +0 -1
  176. package/dist/a_chunks/.root58.js.map +0 -1
  177. package/dist/a_chunks/.root59.js.map +0 -1
  178. package/dist/a_chunks/.root6.js.map +0 -1
  179. package/dist/a_chunks/.root60.js.map +0 -1
  180. package/dist/a_chunks/.root61.js.map +0 -1
  181. package/dist/a_chunks/.root62.js.map +0 -1
  182. package/dist/a_chunks/.root63.js.map +0 -1
  183. package/dist/a_chunks/.root64.js.map +0 -1
  184. package/dist/a_chunks/.root65.js.map +0 -1
  185. package/dist/a_chunks/.root7.js +0 -58
  186. package/dist/a_chunks/.root7.js.map +0 -1
  187. package/dist/a_chunks/.root8.js +0 -19
  188. package/dist/a_chunks/.root8.js.map +0 -1
  189. package/dist/a_chunks/.root9.js.map +0 -1
  190. package/dist/a_chunks/Form.js.map +0 -1
  191. package/dist/a_chunks/ModalForm.js.map +0 -1
  192. package/dist/a_chunks/api.js.map +0 -1
  193. package/dist/a_chunks/common.js.map +0 -1
  194. package/dist/a_chunks/config.js.map +0 -1
  195. package/dist/a_chunks/extends.js +0 -11
  196. package/dist/a_chunks/extends.js.map +0 -1
  197. package/dist/a_chunks/form_config.js.map +0 -1
  198. package/dist/a_chunks/index.js.map +0 -1
  199. package/dist/a_chunks/index2.js.map +0 -1
  200. package/dist/a_chunks/index3.js.map +0 -1
  201. package/dist/a_chunks/index4.js.map +0 -1
  202. package/dist/a_chunks/style-inject.es.js.map +0 -1
  203. package/dist/a_chunks/tslib.es6.js.map +0 -1
  204. package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js.map +0 -1
  205. package/dist/index.js.map +0 -1
  206. package/dist/pages/fubao/pre-pregnancy-care/.public-exam/config/adapter.d.ts +0 -2
  207. package/dist/pages/fubao/premarital-care/.public-exam/config/adapter.d.ts +0 -2
  208. /package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/{form_config.d.ts → form_config_nan.d.ts} +0 -0
@@ -1,1497 +0,0 @@
1
- import _set from 'lodash/set';
2
- import _omit from 'lodash/omit';
3
- import _map from 'lodash/map';
4
- import _isNil from 'lodash/isNil';
5
- import _isEmpty from 'lodash/isEmpty';
6
- import _get from 'lodash/get';
7
- import { b as __extends, _ as __awaiter, a as __generator, c as __assign } from './tslib.es6.js';
8
- import { safe_json_parse, formatDate, safe_json_stringify, getSearchParamsValue, fubaoRequest } from '@lm_fe/utils';
9
- import { getBMI, resolveFubaoPath, BaseEditPanelForm, formDescriptionsWithoutSectionApi, BaseEditPanel } from '@lm_fe/components_m';
10
- import dayjs from 'dayjs';
11
- import _join from 'lodash/join';
12
- import _dropRight from 'lodash/dropRight';
13
- import 'antd/es/space/style';
14
- import _Space from 'antd/es/space';
15
- import 'antd/es/button/style';
16
- import _Button from 'antd/es/button';
17
- import 'antd/es/message/style';
18
- import _message from 'antd/es/message';
19
- import _size from 'lodash/size';
20
- import { SaveOutlined, CloseOutlined } from '@ant-design/icons';
21
- import { mchcUtils, mchcDriver } from '@lm_fe/env';
22
- import { SLocal_History, defineFormConfig } from '@lm_fe/service';
23
- import React from 'react';
24
- var valueToApi = function valueToApi(values, nativeFormDescriptions) {
25
- var result = {};
26
- _map(nativeFormDescriptions, function (item, key) {
27
- var inputType = item.inputType;
28
- var itemVaule = _get(values, key);
29
- switch (inputType) {
30
- case 'radio_input':
31
- var k = key.split('.').pop();
32
- _set(result, key, _get(itemVaule, "".concat(k)));
33
- _set(result, "".concat(key, "Note"), _get(itemVaule, "".concat(k, "Note")));
34
- break;
35
- case 'checkbox_with_single_input':
36
- _set(result, key, _get(itemVaule, 'key'));
37
- _set(result, "".concat(key, "Note"), _get(itemVaule, 'keyNote'));
38
- break;
39
- case 'single_date_picker':
40
- _set(result, key, formatDate(itemVaule));
41
- break;
42
- case 'checkbox_with_input':
43
- var valueJson = safe_json_parse(itemVaule);
44
- _set(result, key, _get(valueJson, 'checkedValues.0'));
45
- _set(result, "".concat(key, "Note"), _get(valueJson, ['withInputValues', "".concat(_get(valueJson, 'checkedValues.0')), 'value', '0']));
46
- break;
47
- case 'pressure':
48
- var pressure_arr = key.split('.');
49
- var pressure_key = void 0;
50
- if (pressure_arr.length > 1) {
51
- pressure_arr = _dropRight(pressure_arr, 1);
52
- pressure_key = _join(pressure_arr, '.');
53
- _set(result, "".concat(pressure_key, ".systolic"), _get(itemVaule, 'systolic'));
54
- _set(result, "".concat(pressure_key, ".diastolic"), _get(itemVaule, 'diastolic'));
55
- } else {
56
- _set(result, 'systolic', _get(itemVaule, 'systolic'));
57
- _set(result, 'diastolic', _get(itemVaule, 'diastolic'));
58
- }
59
- break;
60
- default:
61
- _set(result, key, itemVaule);
62
- break;
63
- }
64
- });
65
- return result;
66
- };
67
- var valueToForm = function valueToForm(values, nativeFormDescriptions) {
68
- _map(nativeFormDescriptions, function (item, key) {
69
- var _a;
70
- var inputType = item.inputType;
71
- var itemVaule = _get(values, key);
72
- switch (inputType) {
73
- case 'checkbox_with_single_input':
74
- if (!_isNil(itemVaule)) {
75
- _set(values, "".concat(key, ".key"), itemVaule);
76
- _set(values, "".concat(key, ".keyNote"), _get(values, "".concat(key, "Note")));
77
- }
78
- break;
79
- case 'checkbox_with_input':
80
- if (!_isNil(itemVaule)) {
81
- var checkBoxValue = {
82
- checkedValues: [itemVaule],
83
- withInputValues: (_a = {}, _a[itemVaule] = {
84
- key: itemVaule,
85
- value: {
86
- '0': _get(values, "".concat(key, "Note"))
87
- }
88
- }, _a)
89
- };
90
- _set(values, key, safe_json_stringify(checkBoxValue));
91
- }
92
- break;
93
- case 'pressure':
94
- if (!_isNil(itemVaule)) {
95
- var pressure_arr = key.split('.');
96
- var pressure_key = void 0;
97
- if (pressure_arr.length > 1) {
98
- pressure_arr = _dropRight(pressure_arr, 1);
99
- pressure_key = _join(pressure_arr, '.');
100
- _set(values, "".concat(key, ".systolic"), itemVaule);
101
- _set(values, "".concat(key, ".diastolic"), _get(values, "".concat(pressure_key, ".diastolic")));
102
- } else {
103
- _set(values, "".concat(key, ".systolic"), itemVaule);
104
- _set(values, "".concat(key, ".diastolic"), _get(values, "diastolic"));
105
- }
106
- }
107
- break;
108
- default:
109
- if (!_isNil(itemVaule)) {
110
- _set(values, key, itemVaule);
111
- }
112
- break;
113
- }
114
- });
115
- return values;
116
- };
117
- var AdmissionForm = function (_super) {
118
- __extends(AdmissionForm, _super);
119
- function AdmissionForm() {
120
- var _this = _super !== null && _super.apply(this, arguments) || this;
121
- _this.getEvents = function () {
122
- return {
123
- handleIDNumberChange: function handleIDNumberChange(id) {
124
- var _a, _b, _c, _d, _e, _f;
125
- if (id === 'womanProgestationCheckArchivesDetailVM_progestationCheckArchivesBasicInformation_residenceAddress') {
126
- var value = (_a = _this.form) === null || _a === void 0 ? void 0 : _a.getFieldValue(['womanProgestationCheckArchivesDetailVM', 'progestationCheckArchivesBasicInformation', 'permanentResidenceAddress']);
127
- !value && _message.info('请先填写完整的户口地址信息!');
128
- value && ((_b = _this.form) === null || _b === void 0 ? void 0 : _b.setFieldsValue({
129
- womanProgestationCheckArchivesDetailVM: {
130
- progestationCheckArchivesBasicInformation: {
131
- residenceAddress: value
132
- }
133
- }
134
- }));
135
- }
136
- if (id === 'manProgestationCheckArchivesDetailVM_progestationCheckArchivesBasicInformation_permanentResidenceAddress') {
137
- var value = (_c = _this.form) === null || _c === void 0 ? void 0 : _c.getFieldValue(['womanProgestationCheckArchivesDetailVM', 'progestationCheckArchivesBasicInformation', 'permanentResidenceAddress']);
138
- !value && _message.info('请先填写完整的户口地址信息!');
139
- value && ((_d = _this.form) === null || _d === void 0 ? void 0 : _d.setFieldsValue({
140
- manProgestationCheckArchivesDetailVM: {
141
- progestationCheckArchivesBasicInformation: {
142
- permanentResidenceAddress: value
143
- }
144
- }
145
- }));
146
- }
147
- if (id === 'manProgestationCheckArchivesDetailVM_progestationCheckArchivesBasicInformation_residenceAddress') {
148
- var value = (_e = _this.form) === null || _e === void 0 ? void 0 : _e.getFieldValue(['womanProgestationCheckArchivesDetailVM', 'progestationCheckArchivesBasicInformation', 'residenceAddress']);
149
- !value && _message.info('请先填写完整的居住地址信息!');
150
- value && ((_f = _this.form) === null || _f === void 0 ? void 0 : _f.setFieldsValue({
151
- manProgestationCheckArchivesDetailVM: {
152
- progestationCheckArchivesBasicInformation: {
153
- residenceAddress: value
154
- }
155
- }
156
- }));
157
- }
158
- }
159
- };
160
- };
161
- _this.handleItemChange = function (changedValues, allValues) {
162
- return __awaiter(_this, void 0, void 0, function () {
163
- var form, idNO, checkData, bmi, idNO, checkData, bmi;
164
- return __generator(this, function (_a) {
165
- form = this.form;
166
- if (_get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idType') === 1 && _size(_get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO')) === 18 && (_get(changedValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idType') || _get(changedValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO'))) {
167
- idNO = _get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO');
168
- checkData = mchcUtils.checkIdNo(idNO);
169
- form && form.setFieldsValue({
170
- womanProgestationCheckArchivesDetailVM: {
171
- progestationCheckArchivesBasicInformation: {
172
- dob: checkData.birth,
173
- nationality: '中国',
174
- permanentResidence: checkData.province
175
- }
176
- },
177
- womanAge: checkData.age
178
- });
179
- }
180
- if (_get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.parity')) {
181
- if (_get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.parity') > _get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.gravidity')) {
182
- _message.warning('产次>孕次,请检查孕次、产次输入的内容!');
183
- }
184
- }
185
- if (_get(changedValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight') && _get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height') || _get(changedValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height') && _get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight')) {
186
- bmi = getBMI(_get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight'), _get(allValues, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height'));
187
- form && form.setFieldsValue({
188
- womanProgestationCheckArchivesDetailVM: {
189
- progestationCheckArchivesPhysicalExamination: {
190
- bmi: bmi
191
- }
192
- }
193
- });
194
- }
195
- if (_get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idType') === 1 && _size(_get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO')) === 18 && (_get(changedValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idType') || _get(changedValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO'))) {
196
- idNO = _get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO');
197
- checkData = mchcUtils.checkIdNo(idNO);
198
- if (checkData.status) {
199
- form && form.setFieldsValue({
200
- manProgestationCheckArchivesDetailVM: {
201
- progestationCheckArchivesBasicInformation: {
202
- dob: checkData.birth,
203
- nationality: '中国',
204
- permanentResidence: checkData.province
205
- }
206
- },
207
- manAge: checkData.age
208
- });
209
- }
210
- }
211
- if (_get(changedValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight') && _get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height') || _get(changedValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height') && _get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight')) {
212
- bmi = getBMI(_get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight'), _get(allValues, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height'));
213
- form && form.setFieldsValue({
214
- manProgestationCheckArchivesDetailVM: {
215
- progestationCheckArchivesPhysicalExamination: {
216
- bmi: bmi
217
- }
218
- }
219
- });
220
- }
221
- return [2];
222
- });
223
- });
224
- };
225
- _this.handleCancel = function () {
226
- return __awaiter(_this, void 0, void 0, function () {
227
- var _a, data, form;
228
- return __generator(this, function (_b) {
229
- _a = this.props, _a.history, data = _a.data, _a.routerPath, _a.deleteTab, _a.tabs, _a.keepAliveProviderRef, _a.updateTabs;
230
- form = this.form;
231
- if (!_get(data, 'id')) form.resetFields();
232
- SLocal_History.closeAndPush(resolveFubaoPath("/pre-pregnancy-care/file-management"));
233
- return [2];
234
- });
235
- });
236
- };
237
- _this.handleSaveAndNext = function () {
238
- var form = _this.form;
239
- var _a = _this.props,
240
- onFinish = _a.onFinish,
241
- data = _a.data;
242
- form && form.validateFields().then(function () {
243
- var params = __assign(__assign({}, form.getFieldsValue()), {
244
- id: _get(data, 'id'),
245
- build: true
246
- });
247
- onFinish && onFinish(params);
248
- form.resetFields();
249
- form.setFieldsValue({
250
- auditor: _get(data, 'auditor'),
251
- filingDay: _get(data, 'filingDay')
252
- });
253
- })["catch"](function (error) {
254
- var name = _get(error, 'errorFields.0.name.0');
255
- var errors = _get(error, 'errorFields.0.errors.0');
256
- _message.error(errors);
257
- form.scrollToField(name);
258
- });
259
- };
260
- _this.renderCheckBtn = function () {
261
- var data = _this.props.data;
262
- return /*#__PURE__*/React.createElement(_Button, {
263
- size: "large",
264
- type: "primary",
265
- icon: /*#__PURE__*/React.createElement(SaveOutlined, null),
266
- htmlType: "submit",
267
- onClick: _this.handleFinish,
268
- disabled: false
269
- }, _get(data, 'fileStatus') === 2 ? '保存' : '保存并审核');
270
- };
271
- _this.renderCancelBtn = function () {
272
- return /*#__PURE__*/React.createElement(_Button, {
273
- size: "large",
274
- icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
275
- onClick: _this.handleCancel
276
- }, "\u5173\u95ED");
277
- };
278
- _this.renderSaveAndNext = function () {
279
- return /*#__PURE__*/React.createElement(_Button, {
280
- size: "large",
281
- type: "primary",
282
- icon: /*#__PURE__*/React.createElement(SaveOutlined, null),
283
- onClick: _this.handleSaveAndNext
284
- }, "\u4FDD\u5B58\u5E76\u7EE7\u7EED\u65B0\u589E\u6863\u6848");
285
- };
286
- _this.renderBtns = function () {
287
- var data = _this.props.data;
288
- return /*#__PURE__*/React.createElement(_Space, null, !_get(data, 'id') && _this.renderSaveAndNext(), _this.renderCheckBtn(), _this.renderCancelBtn());
289
- };
290
- return _this;
291
- }
292
- return AdmissionForm;
293
- }(BaseEditPanelForm);
294
- var form_config = defineFormConfig([{
295
- "name": "女方信息",
296
- "children": [{
297
- "key": "womanName",
298
- "label": "姓名",
299
- "inputType": "input",
300
- "inputProps": {
301
- 'placeholder': '请输入姓名'
302
- },
303
- layout: '1/3'
304
- }, {
305
- "key": "womanOutpatientNo",
306
- "label": "门诊号",
307
- "inputType": "input",
308
- "inputProps": {
309
- 'placeholder': '请输入门诊号'
310
- },
311
- layout: '1/3'
312
- }, {
313
- "key": "__obdriver_read",
314
- "inputType": 'IdNOButton',
315
- label: '外设读取',
316
- layout: '1/3'
317
- }, {
318
- "key": "womanTelephone",
319
- "label": "电话号码",
320
- "inputType": "input",
321
- "inputProps": {
322
- 'placeholder': '请输入电话号码'
323
- },
324
- layout: '1/3'
325
- }, {
326
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idType",
327
- "label": "证件类型",
328
- "inputType": "MS",
329
- inputProps: {
330
- optionKey: '证件类型',
331
- marshal: 0
332
- },
333
- layout: '1/3'
334
- }, {
335
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO",
336
- "label": "证件号码",
337
- "inputType": "input",
338
- "inputProps": {
339
- 'placeholder': '请输入证件号码'
340
- },
341
- layout: '1/3'
342
- }, {
343
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.dob",
344
- "label": "出生日期",
345
- "inputType": "single_date_picker",
346
- "inputProps": {
347
- 'placeholder': '请输入出生日期',
348
- 'maxDate': 'now'
349
- },
350
- layout: '1/3'
351
- }, {
352
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.ethnic",
353
- "label": "民族",
354
- "inputType": "MS",
355
- inputProps: {
356
- optionKey: '民族s',
357
- marshal: 0
358
- },
359
- layout: '1/3'
360
- }, {
361
- "key": "womanAge",
362
- "label": "年龄",
363
- "inputType": "input_number",
364
- "inputProps": {
365
- 'placeholder': '请输入年龄'
366
- },
367
- layout: '1/3'
368
- }, {
369
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidence",
370
- "label": "籍贯",
371
- "inputType": "MS",
372
- inputProps: {
373
- optionKey: '省份s',
374
- marshal: 0
375
- },
376
- layout: '1/3'
377
- }, {
378
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.education",
379
- "label": "文化程度",
380
- "inputType": "MS",
381
- inputProps: {
382
- optionKey: '文化程度s',
383
- marshal: 0
384
- },
385
- layout: '1/3'
386
- }, {
387
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.profession",
388
- "label": "职业",
389
- "inputType": "MS",
390
- inputProps: {
391
- optionKey: '职业s',
392
- marshal: 0
393
- },
394
- layout: '1/3'
395
- }, {
396
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.nationality",
397
- "label": "国籍",
398
- "inputType": "country_select",
399
- "inputProps": {
400
- 'placeholder': '请输入国籍'
401
- },
402
- layout: '1/3'
403
- }, {
404
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.menarche",
405
- "label": "初潮(岁)",
406
- "inputType": "input_number",
407
- "inputProps": {
408
- 'placeholder': '请输入初潮'
409
- },
410
- layout: '1/3'
411
- }, {
412
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.menstrualCycle",
413
- "label": "月经周期(天)",
414
- "inputType": "input_number",
415
- "inputProps": {
416
- 'placeholder': '请输入月经周期'
417
- },
418
- layout: '1/3'
419
- }, {
420
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.menstrualPeriod",
421
- "label": "月经持续天数",
422
- "inputType": "input_number",
423
- "inputProps": {
424
- 'placeholder': '请输入月经持续天数'
425
- },
426
- layout: '1/3'
427
- }, {
428
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.menstrualVolume",
429
- "label": "经量",
430
- "inputType": "checkbox_group",
431
- "specialConfig": {
432
- 'type': 'single',
433
- 'options': [{
434
- 'value': '多',
435
- 'label': '多',
436
- 'withInput': false,
437
- 'span': 6
438
- }, {
439
- 'value': '中',
440
- 'label': '中',
441
- 'withInput': false,
442
- 'span': 6
443
- }, {
444
- 'value': '少',
445
- 'label': '少',
446
- 'withInput': false,
447
- 'span': 6
448
- }]
449
- },
450
- "inputProps": {
451
- 'placeholder': '请输入经量'
452
- },
453
- layout: '1/3'
454
- }, {
455
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.dysmenorrhea",
456
- "label": "痛经",
457
- "inputType": "checkbox_with_single_input",
458
- "specialConfig": {
459
- 'type': 'single',
460
- 'options': [{
461
- 'value': 1,
462
- 'label': '无',
463
- 'span': 8,
464
- 'withInput': false
465
- }, {
466
- 'value': 2,
467
- 'label': '有',
468
- 'withInput': true,
469
- 'isIssue': true,
470
- 'span': 8,
471
- 'inputSpan': 8
472
- }]
473
- },
474
- "inputProps": {
475
- 'placeholder': '请输入痛经'
476
- },
477
- layout: '1/3'
478
- }, {
479
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.gravidity",
480
- "label": "孕次",
481
- "inputType": "input_number",
482
- "inputProps": {
483
- 'placeholder': '请输入孕次'
484
- },
485
- layout: '1/3'
486
- }, {
487
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.parity",
488
- "label": "产次",
489
- "inputType": "input_number",
490
- "inputProps": {
491
- 'placeholder': '请输入产次'
492
- },
493
- layout: '1/3'
494
- }, {
495
- "key": "grs",
496
- "label": "个人史",
497
- "inputType": "title",
498
- "inputProps": {
499
- 'type': 'text',
500
- 'size': 'large',
501
- 'style': {
502
- 'fontSize': 16,
503
- 'fontWeight': 600
504
- }
505
- },
506
- layout: '2/3'
507
- }, {
508
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.previousHistory",
509
- "label": "既往史",
510
- "inputType": "checkbox_with_single_input",
511
- "specialConfig": {
512
- 'type': 'single',
513
- 'options': [{
514
- 'value': 1,
515
- 'label': '无',
516
- 'span': 6,
517
- 'withInput': false
518
- }, {
519
- 'value': 2,
520
- 'label': '有',
521
- 'withInput': true,
522
- 'isIssue': true,
523
- 'span': 6,
524
- 'inputSpan': 12
525
- }]
526
- },
527
- "inputProps": {
528
- 'placeholder': '请输入既往史'
529
- },
530
- layout: '1/3'
531
- }, {
532
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.surgeryHistory",
533
- "label": "手术史",
534
- "inputType": "checkbox_with_single_input",
535
- "specialConfig": {
536
- 'type': 'single',
537
- 'options': [{
538
- 'value': 1,
539
- 'label': '无',
540
- 'span': 6,
541
- 'withInput': false
542
- }, {
543
- 'value': 2,
544
- 'label': '有',
545
- 'withInput': true,
546
- 'isIssue': true,
547
- 'span': 6,
548
- 'inputSpan': 12
549
- }]
550
- },
551
- "inputProps": {
552
- 'placeholder': '请输入手术史'
553
- },
554
- layout: '1/3'
555
- }, {
556
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.presentIllness",
557
- "label": "现病史",
558
- "inputType": "checkbox_with_single_input",
559
- "specialConfig": {
560
- 'type': 'single',
561
- 'options': [{
562
- 'value': 1,
563
- 'label': '无',
564
- 'span': 6,
565
- 'withInput': false
566
- }, {
567
- 'value': 2,
568
- 'label': '有',
569
- 'withInput': true,
570
- 'isIssue': true,
571
- 'span': 6,
572
- 'inputSpan': 12
573
- }]
574
- },
575
- "inputProps": {
576
- 'placeholder': '请输入现病史'
577
- },
578
- layout: '1/3'
579
- }, {
580
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.contactHazardousSubstances",
581
- "label": "接触有害物质",
582
- "inputType": "checkbox_with_single_input",
583
- "specialConfig": {
584
- 'type': 'single',
585
- 'options': [{
586
- 'value': 1,
587
- 'label': '无',
588
- 'span': 6,
589
- 'withInput': false
590
- }, {
591
- 'value': 2,
592
- 'label': '有',
593
- 'withInput': true,
594
- 'isIssue': true,
595
- 'span': 6,
596
- 'inputSpan': 12
597
- }]
598
- },
599
- layout: '1/3'
600
- }, {
601
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.contactRadioactiveRays",
602
- "label": "接触放射线",
603
- "inputType": "checkbox_with_single_input",
604
- "specialConfig": {
605
- 'type': 'single',
606
- 'options': [{
607
- 'value': 1,
608
- 'label': '无',
609
- 'span': 6,
610
- 'withInput': false
611
- }, {
612
- 'value': 2,
613
- 'label': '有',
614
- 'withInput': true,
615
- 'isIssue': true,
616
- 'span': 6,
617
- 'inputSpan': 12
618
- }]
619
- },
620
- layout: '1/3'
621
- }, {
622
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.contraception",
623
- "label": "避孕措施",
624
- "inputType": "checkbox_with_single_input",
625
- "specialConfig": {
626
- 'type': 'single',
627
- 'options': [{
628
- 'value': 1,
629
- 'label': '无',
630
- 'span': 6,
631
- 'withInput': false
632
- }, {
633
- 'value': 2,
634
- 'label': '有',
635
- 'withInput': true,
636
- 'isIssue': true,
637
- 'span': 6,
638
- 'inputSpan': 12
639
- }]
640
- },
641
- layout: '1/3'
642
- }, {
643
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.personalSmoke",
644
- "label": "吸烟",
645
- "inputType": "checkbox_with_single_input",
646
- "specialConfig": {
647
- 'type': 'single',
648
- 'options': [{
649
- 'value': 1,
650
- 'label': '无',
651
- 'span': 6,
652
- 'withInput': false
653
- }, {
654
- 'value': 2,
655
- 'label': '有',
656
- 'withInput': true,
657
- 'isIssue': true,
658
- 'span': 6,
659
- 'inputSpan': 12
660
- }]
661
- },
662
- layout: '1/3'
663
- }, {
664
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.personalDrink",
665
- "label": "饮酒",
666
- "inputType": "checkbox_with_single_input",
667
- "specialConfig": {
668
- 'type': 'single',
669
- 'options': [{
670
- 'value': 1,
671
- 'label': '无',
672
- 'span': 6,
673
- 'withInput': false
674
- }, {
675
- 'value': 2,
676
- 'label': '有',
677
- 'withInput': true,
678
- 'isIssue': true,
679
- 'span': 6,
680
- 'inputSpan': 12
681
- }]
682
- },
683
- layout: '1/3'
684
- }, {
685
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.personalOther",
686
- "label": "其他",
687
- "inputType": "input",
688
- "inputProps": {
689
- 'placeholder': '请输入其他'
690
- },
691
- layout: '1/3'
692
- }, {
693
- "key": "jzs",
694
- "label": "家族史",
695
- "inputType": "title",
696
- "inputProps": {
697
- 'type': 'text',
698
- 'size': 'large',
699
- 'style': {
700
- 'fontSize': 16,
701
- 'fontWeight': 600
702
- }
703
- },
704
- layout: '2/3'
705
- }, {
706
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.familyHeritableDisease",
707
- "label": "遗传疾病",
708
- "inputType": "checkbox_with_single_input",
709
- "specialConfig": {
710
- 'type': 'single',
711
- 'options': [{
712
- 'value': 1,
713
- 'label': '无',
714
- 'span': 8,
715
- 'withInput': false
716
- }, {
717
- 'value': 2,
718
- 'label': '有',
719
- 'withInput': true,
720
- 'isIssue': true,
721
- 'span': 8,
722
- 'inputSpan': 8
723
- }]
724
- },
725
- layout: '1/3'
726
- }, {
727
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.familyPsychosis",
728
- "label": "精神病",
729
- "inputType": "checkbox_with_single_input",
730
- "specialConfig": {
731
- 'type': 'single',
732
- 'options': [{
733
- 'value': 1,
734
- 'label': '无',
735
- 'span': 8,
736
- 'withInput': false
737
- }, {
738
- 'value': 2,
739
- 'label': '有',
740
- 'withInput': true,
741
- 'isIssue': true,
742
- 'span': 8,
743
- 'inputSpan': 8
744
- }]
745
- },
746
- layout: '1/3'
747
- }, {
748
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.birthDefects",
749
- "label": "先天畸形",
750
- "inputType": "checkbox_with_single_input",
751
- "specialConfig": {
752
- 'type': 'single',
753
- 'options': [{
754
- 'value': 1,
755
- 'label': '无',
756
- 'span': 8,
757
- 'withInput': false
758
- }, {
759
- 'value': 2,
760
- 'label': '有',
761
- 'withInput': true,
762
- 'isIssue': true,
763
- 'span': 8,
764
- 'inputSpan': 8
765
- }]
766
- },
767
- layout: '1/3'
768
- }, {
769
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.familyHistoryOther",
770
- "label": "其他",
771
- "inputType": "input",
772
- "inputProps": {
773
- 'placeholder': '请输入其他'
774
- },
775
- layout: '1/3'
776
- }, {
777
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidenceAddress",
778
- "label": "户口地址",
779
- "inputType": "MyAddress",
780
- "inputProps": {
781
- 'placeholder': '请输入户口地址'
782
- },
783
- layout: '2/3',
784
- isNewRow: 1
785
- }, {
786
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.residenceAddress",
787
- "label": "居住地址",
788
- "inputType": "MyAddress",
789
- "inputProps": {
790
- addressBtns: [{
791
- name: 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidenceAddress',
792
- label: '同上'
793
- }]
794
- },
795
- layout: '2/3',
796
- isNewRow: 1
797
- }]
798
- }, {
799
- "name": "女方体格检查",
800
- "children": [{
801
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight",
802
- "label": "体重(kg)",
803
- "inputType": "input_number",
804
- "inputProps": {
805
- 'placeholder': '请输入体重'
806
- },
807
- layout: '1/3'
808
- }, {
809
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height",
810
- "label": "身高(cm)",
811
- "inputType": "input_number",
812
- "inputProps": {
813
- 'placeholder': '请输入身高'
814
- },
815
- layout: '1/3'
816
- }, {
817
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.bmi",
818
- "label": "BMI",
819
- "inputType": "input_with_range",
820
- "specialConfig": {
821
- 'tip': 'BMI的正常范围值是18.5~24.9kg/㎡',
822
- 'min': 18.5,
823
- 'max': 24.9
824
- },
825
- "inputProps": {
826
- 'placeholder': '请输入BMI',
827
- 'disabled': true
828
- },
829
- layout: '1/3'
830
- }, {
831
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.systolic",
832
- "label": "血压(mmHg)",
833
- "inputType": "pressure",
834
- layout: '1/3'
835
- }, {
836
- "key": "womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.heartRate",
837
- "label": "心率(次/分钟)",
838
- "inputType": "input_number",
839
- "inputProps": {
840
- 'placeholder': '请输入心率'
841
- },
842
- layout: '1/3'
843
- }]
844
- }, {
845
- "name": "男方信息",
846
- "children": [{
847
- "key": "manName",
848
- "label": "姓名",
849
- "inputType": "input",
850
- "inputProps": {
851
- 'placeholder': '请输入姓名'
852
- },
853
- layout: '1/3'
854
- }, {
855
- "key": "manOutpatientNo",
856
- "label": "门诊号",
857
- "inputType": "input",
858
- "inputProps": {
859
- 'placeholder': '请输入门诊号'
860
- },
861
- layout: '1/3'
862
- }, {
863
- "key": "manTelephone",
864
- "label": "电话号码",
865
- "inputType": "input",
866
- "inputProps": {
867
- 'placeholder': '请输入电话号码'
868
- },
869
- layout: '1/3'
870
- }, {
871
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idType",
872
- "label": "证件类型",
873
- "inputType": "MS",
874
- inputProps: {
875
- optionKey: '证件类型',
876
- marshal: 0
877
- },
878
- layout: '1/3'
879
- }, {
880
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.idNO",
881
- "label": "证件号码",
882
- "inputType": "input",
883
- "inputProps": {
884
- 'placeholder': '请输入证件号码'
885
- },
886
- layout: '1/3'
887
- }, {
888
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.dob",
889
- "label": "出生日期",
890
- "inputType": "single_date_picker",
891
- "inputProps": {
892
- 'placeholder': '请输入出生日期',
893
- 'maxDate': 'now'
894
- },
895
- layout: '1/3'
896
- }, {
897
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.ethnic",
898
- "label": "民族",
899
- "inputType": "MS",
900
- inputProps: {
901
- optionKey: '民族s',
902
- marshal: 0
903
- },
904
- layout: '1/3'
905
- }, {
906
- "key": "manAge",
907
- "label": "年龄",
908
- "inputType": "input_number",
909
- "inputProps": {
910
- 'placeholder': '请输入年龄'
911
- },
912
- layout: '1/3'
913
- }, {
914
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidence",
915
- "label": "籍贯",
916
- "inputType": "MS",
917
- inputProps: {
918
- optionKey: '省份s',
919
- marshal: 0
920
- },
921
- layout: '1/3'
922
- }, {
923
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.education",
924
- "label": "文化程度",
925
- "inputType": "MS",
926
- inputProps: {
927
- optionKey: '文化程度s',
928
- marshal: 0
929
- },
930
- layout: '1/3'
931
- }, {
932
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.profession",
933
- "label": "职业",
934
- "inputType": "MS",
935
- inputProps: {
936
- optionKey: '职业s',
937
- marshal: 0
938
- },
939
- layout: '1/3'
940
- }, {
941
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.nationality",
942
- "label": "国籍",
943
- "inputType": "country_select",
944
- "inputProps": {
945
- 'placeholder': '请输入国籍'
946
- },
947
- layout: '1/3'
948
- }, {
949
- "key": "grs2",
950
- "label": "个人史",
951
- "inputType": "title",
952
- "inputProps": {
953
- 'type': 'text',
954
- 'size': 'large',
955
- 'style': {
956
- 'fontSize': 16,
957
- 'fontWeight': 600
958
- }
959
- },
960
- layout: '2/3'
961
- }, {
962
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.previousHistory",
963
- "label": "既往史",
964
- "inputType": "checkbox_with_single_input",
965
- "specialConfig": {
966
- 'type': 'single',
967
- 'options': [{
968
- 'value': 1,
969
- 'label': '无',
970
- 'span': 6,
971
- 'withInput': false
972
- }, {
973
- 'value': 2,
974
- 'label': '有',
975
- 'withInput': true,
976
- 'isIssue': true,
977
- 'span': 6,
978
- 'inputSpan': 12
979
- }]
980
- },
981
- "inputProps": {
982
- 'placeholder': '请输入既往史'
983
- },
984
- layout: '1/3'
985
- }, {
986
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.surgeryHistory",
987
- "label": "手术史",
988
- "inputType": "checkbox_with_single_input",
989
- "specialConfig": {
990
- 'type': 'single',
991
- 'options': [{
992
- 'value': 1,
993
- 'label': '无',
994
- 'span': 6,
995
- 'withInput': false
996
- }, {
997
- 'value': 2,
998
- 'label': '有',
999
- 'withInput': true,
1000
- 'isIssue': true,
1001
- 'span': 6,
1002
- 'inputSpan': 12
1003
- }]
1004
- },
1005
- layout: '1/3'
1006
- }, {
1007
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.presentIllness",
1008
- "label": "现病史",
1009
- "inputType": "checkbox_with_single_input",
1010
- "specialConfig": {
1011
- 'type': 'single',
1012
- 'options': [{
1013
- 'value': 1,
1014
- 'label': '无',
1015
- 'span': 6,
1016
- 'withInput': false
1017
- }, {
1018
- 'value': 2,
1019
- 'label': '有',
1020
- 'withInput': true,
1021
- 'isIssue': true,
1022
- 'span': 6,
1023
- 'inputSpan': 12
1024
- }]
1025
- },
1026
- layout: '1/3'
1027
- }, {
1028
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.contactHazardousSubstances",
1029
- "label": "接触有害物质",
1030
- "inputType": "checkbox_with_single_input",
1031
- "specialConfig": {
1032
- 'type': 'single',
1033
- 'options': [{
1034
- 'value': 1,
1035
- 'label': '无',
1036
- 'span': 6,
1037
- 'withInput': false
1038
- }, {
1039
- 'value': 2,
1040
- 'label': '有',
1041
- 'withInput': true,
1042
- 'isIssue': true,
1043
- 'span': 6,
1044
- 'inputSpan': 12
1045
- }]
1046
- },
1047
- layout: '1/3'
1048
- }, {
1049
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.contactRadioactiveRays",
1050
- "label": "接触放射线",
1051
- "inputType": "checkbox_with_single_input",
1052
- "specialConfig": {
1053
- 'type': 'single',
1054
- 'options': [{
1055
- 'value': 1,
1056
- 'label': '无',
1057
- 'span': 6,
1058
- 'withInput': false
1059
- }, {
1060
- 'value': 2,
1061
- 'label': '有',
1062
- 'withInput': true,
1063
- 'isIssue': true,
1064
- 'span': 6,
1065
- 'inputSpan': 12
1066
- }]
1067
- },
1068
- layout: '1/3'
1069
- }, {
1070
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.personalOther",
1071
- "label": "其他",
1072
- "inputType": "input",
1073
- "inputProps": {
1074
- 'placeholder': '请输入其他'
1075
- },
1076
- layout: '1/3'
1077
- }, {
1078
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.personalSmoke",
1079
- "label": "吸烟",
1080
- "inputType": "checkbox_with_single_input",
1081
- "specialConfig": {
1082
- 'type': 'single',
1083
- 'options': [{
1084
- 'value': 1,
1085
- 'label': '无',
1086
- 'span': 6,
1087
- 'withInput': false
1088
- }, {
1089
- 'value': 2,
1090
- 'label': '有',
1091
- 'withInput': true,
1092
- 'isIssue': true,
1093
- 'span': 6,
1094
- 'inputSpan': 12
1095
- }]
1096
- },
1097
- layout: '1/3'
1098
- }, {
1099
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.personalDrink",
1100
- "label": "饮酒",
1101
- "inputType": "checkbox_with_single_input",
1102
- "specialConfig": {
1103
- 'type': 'single',
1104
- 'options': [{
1105
- 'value': 1,
1106
- 'label': '无',
1107
- 'span': 6,
1108
- 'withInput': false
1109
- }, {
1110
- 'value': 2,
1111
- 'label': '有',
1112
- 'withInput': true,
1113
- 'isIssue': true,
1114
- 'span': 6,
1115
- 'inputSpan': 12
1116
- }]
1117
- },
1118
- layout: '1/3'
1119
- }, {
1120
- "key": "jzs2",
1121
- "label": "家族史",
1122
- "inputType": "title",
1123
- "inputProps": {
1124
- 'type': 'text',
1125
- 'size': 'large',
1126
- 'style': {
1127
- 'fontSize': 16,
1128
- 'fontWeight': 600
1129
- }
1130
- },
1131
- layout: '2/3'
1132
- }, {
1133
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.familyHeritableDisease",
1134
- "label": "遗传疾病",
1135
- "inputType": "checkbox_with_single_input",
1136
- "specialConfig": {
1137
- 'type': 'single',
1138
- 'options': [{
1139
- 'value': 1,
1140
- 'label': '无',
1141
- 'span': 8,
1142
- 'withInput': false
1143
- }, {
1144
- 'value': 2,
1145
- 'label': '有',
1146
- 'withInput': true,
1147
- 'isIssue': true,
1148
- 'span': 8,
1149
- 'inputSpan': 8
1150
- }]
1151
- },
1152
- layout: '1/3'
1153
- }, {
1154
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.familyPsychosis",
1155
- "label": "精神病",
1156
- "inputType": "checkbox_with_single_input",
1157
- "specialConfig": {
1158
- 'type': 'single',
1159
- 'options': [{
1160
- 'value': 1,
1161
- 'label': '无',
1162
- 'span': 8,
1163
- 'withInput': false
1164
- }, {
1165
- 'value': 2,
1166
- 'label': '有',
1167
- 'withInput': true,
1168
- 'isIssue': true,
1169
- 'span': 8,
1170
- 'inputSpan': 8
1171
- }]
1172
- },
1173
- layout: '1/3'
1174
- }, {
1175
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.birthDefects",
1176
- "label": "先天畸形",
1177
- "inputType": "checkbox_with_single_input",
1178
- "specialConfig": {
1179
- 'type': 'single',
1180
- 'options': [{
1181
- 'value': 1,
1182
- 'label': '无',
1183
- 'span': 8,
1184
- 'withInput': false
1185
- }, {
1186
- 'value': 2,
1187
- 'label': '有',
1188
- 'withInput': true,
1189
- 'isIssue': true,
1190
- 'span': 8,
1191
- 'inputSpan': 8
1192
- }]
1193
- },
1194
- layout: '1/3'
1195
- }, {
1196
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory.familyHistoryOther",
1197
- "label": "其他",
1198
- "inputType": "input",
1199
- "inputProps": {
1200
- 'placeholder': '请输入其他'
1201
- },
1202
- layout: '1/3'
1203
- }, {
1204
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidenceAddress",
1205
- "label": "户口地址",
1206
- "inputType": "MyAddress",
1207
- "inputProps": {
1208
- addressBtns: [{
1209
- name: 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidenceAddress',
1210
- label: '同女方'
1211
- }]
1212
- },
1213
- layout: '2/3',
1214
- isNewRow: 1
1215
- }, {
1216
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.residenceAddress",
1217
- "label": "居住地址",
1218
- "inputType": "MyAddress",
1219
- "inputProps": {
1220
- addressBtns: [{
1221
- name: 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.permanentResidenceAddress',
1222
- label: '同女方'
1223
- }]
1224
- },
1225
- layout: '2/3',
1226
- isNewRow: 1
1227
- }]
1228
- }, {
1229
- "name": "男方体格检查",
1230
- "children": [{
1231
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.weight",
1232
- "label": "体重(kg)",
1233
- "inputType": "input_number",
1234
- "inputProps": {
1235
- 'placeholder': '请输入体重'
1236
- },
1237
- layout: '1/3'
1238
- }, {
1239
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.height",
1240
- "label": "身高(cm)",
1241
- "inputType": "input_number",
1242
- "inputProps": {
1243
- 'placeholder': '请输入身高'
1244
- },
1245
- layout: '1/3'
1246
- }, {
1247
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.bmi",
1248
- "label": "BMI",
1249
- "inputType": "input_with_range",
1250
- "specialConfig": {
1251
- 'tip': 'BMI的正常范围值是18.5~24.9kg/㎡',
1252
- 'min': 18.5,
1253
- 'max': 24.9
1254
- },
1255
- "inputProps": {
1256
- 'placeholder': '请输入BMI',
1257
- 'disabled': true
1258
- },
1259
- layout: '1/3'
1260
- }, {
1261
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.systolic",
1262
- "label": "血压(mmHg)",
1263
- "inputType": "pressure",
1264
- layout: '1/3'
1265
- }, {
1266
- "key": "manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination.heartRate",
1267
- "label": "心率(次/分钟)",
1268
- "inputType": "input_number",
1269
- "inputProps": {
1270
- 'placeholder': '请输入心率'
1271
- },
1272
- layout: '1/3'
1273
- }]
1274
- }, {
1275
- "name": "其他信息",
1276
- "children": [{
1277
- "key": "nearRelation",
1278
- "label": "近亲结婚",
1279
- "inputType": "checkbox_with_single_input",
1280
- "specialConfig": {
1281
- 'type': 'single',
1282
- 'options': [{
1283
- 'value': 1,
1284
- 'label': '否',
1285
- 'span': 6,
1286
- 'withInput': false
1287
- }, {
1288
- 'value': 2,
1289
- 'label': '是',
1290
- 'withInput': true,
1291
- 'isIssue': true,
1292
- 'span': 6,
1293
- 'inputSpan': 12
1294
- }]
1295
- },
1296
- layout: '1/3'
1297
- }, {
1298
- "key": "filingDay",
1299
- "label": "建档日期",
1300
- "inputType": "single_date_picker",
1301
- "inputProps": {
1302
- 'placeholder': '请输入建档日期',
1303
- 'maxDate': 'now'
1304
- },
1305
- layout: '1/3'
1306
- }, {
1307
- "key": "auditor",
1308
- "label": "审核人",
1309
- "inputType": "input",
1310
- "inputProps": {
1311
- 'placeholder': '请输入审核人'
1312
- },
1313
- layout: '1/3'
1314
- }]
1315
- }]);
1316
- var WifePanel = function (_super) {
1317
- __extends(WifePanel, _super);
1318
- function WifePanel() {
1319
- var _this = _super !== null && _super.apply(this, arguments) || this;
1320
- _this.rm = function () {};
1321
- _this.isUndefined = function (obj) {
1322
- _map(obj, function (item, key) {
1323
- if (_isNil(item)) {
1324
- obj = _omit(obj, [key]);
1325
- }
1326
- });
1327
- return obj;
1328
- };
1329
- _this.handleInit = function () {
1330
- return __awaiter(_this, void 0, void 0, function () {
1331
- var _a, user, id, formDescriptions, formDescriptionsWithoutSection, data, _b, formKey;
1332
- return __generator(this, function (_c) {
1333
- switch (_c.label) {
1334
- case 0:
1335
- _a = this.props, _a.routerQuery, _a.moduleName, user = _a.user;
1336
- id = _get(this.props, 'id') || getSearchParamsValue('id');
1337
- formDescriptions = form_config.__lazy_config;
1338
- this.setState({
1339
- spinning: false
1340
- });
1341
- formDescriptionsWithoutSection = formDescriptionsWithoutSectionApi(formDescriptions);
1342
- if (!id) return [3, 2];
1343
- return [4, fubaoRequest.get("/api/progestation/check/getByProgestationCheckArchivesId?progestationCheckArchivesId.equals=".concat(id, "&childrenSign.equals=0"))];
1344
- case 1:
1345
- _b = _c.sent().data;
1346
- return [3, 3];
1347
- case 2:
1348
- _b = {};
1349
- _c.label = 3;
1350
- case 3:
1351
- data = _b;
1352
- if (data) {
1353
- data = _get(data, 'data');
1354
- }
1355
- if (_get(data, 'womanProgestationCheckArchivesDetailVM.nearRelation')) {
1356
- _set(data, 'nearRelation', _get(data, 'womanProgestationCheckArchivesDetailVM.nearRelation'));
1357
- }
1358
- if (_get(data, 'womanProgestationCheckArchivesDetailVM.nearRelationNote')) {
1359
- _set(data, 'nearRelationNote', _get(data, 'womanProgestationCheckArchivesDetailVM.nearRelationNote'));
1360
- }
1361
- data = id ? valueToForm(data, formDescriptionsWithoutSection) : {};
1362
- formKey = _get(data, 'id') || Math.random();
1363
- if (!_get(data, 'filingDay')) _set(data, 'filingDay', dayjs(new Date()));
1364
- if (!_get(data, 'auditor')) _set(data, 'auditor', _get(user, 'basicInfo.firstName'));
1365
- this.setState({
1366
- formDescriptions: formDescriptions,
1367
- formDescriptionsWithoutSection: formDescriptionsWithoutSection,
1368
- data: data,
1369
- formKey: formKey
1370
- });
1371
- return [2];
1372
- }
1373
- });
1374
- });
1375
- };
1376
- _this.handleSubmit = function (values) {
1377
- return __awaiter(_this, void 0, void 0, function () {
1378
- var _a, formDescriptionsWithoutSection, data, baseUrl, params, manprogestationCheckArchivesBasicInformation, manprogestationCheckArchivesMedicalHistory, manprogestationCheckArchivesPhysicalExamination, womanprogestationCheckArchivesBasicInformation, womanprogestationCheckArchivesMedicalHistory, womanprogestationCheckArchivesPhysicalExamination, _res, res, manId, womanId, res, _res, res;
1379
- return __generator(this, function (_b) {
1380
- switch (_b.label) {
1381
- case 0:
1382
- _a = this.state, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection, data = _a.data;
1383
- baseUrl = this.props.baseUrl;
1384
- params = valueToApi(values, formDescriptionsWithoutSection);
1385
- _set(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.name', _get(params, 'womanName'));
1386
- _set(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.age', _get(params, 'womanAge'));
1387
- _set(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.outpatientNo', _get(params, 'womanOutpatientNo'));
1388
- _set(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.telephone', _get(params, 'womanTelephone'));
1389
- _set(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.name', _get(params, 'manName'));
1390
- _set(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.age', _get(params, 'manAge'));
1391
- _set(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.outpatientNo', _get(params, 'manOutpatientNo'));
1392
- _set(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation.telephone', _get(params, 'manTelephone'));
1393
- if (_get(params, 'nearRelation')) {
1394
- _set(params, 'manProgestationCheckArchivesDetailVM.nearRelation', _get(params, 'nearRelation'));
1395
- _set(params, 'womanProgestationCheckArchivesDetailVM.nearRelation', _get(params, 'nearRelation'));
1396
- }
1397
- if (_get(params, 'nearRelationNote')) {
1398
- _set(params, 'manProgestationCheckArchivesDetailVM.nearRelationNote', _get(params, 'nearRelationNote'));
1399
- _set(params, 'womanProgestationCheckArchivesDetailVM.nearRelationNote', _get(params, 'nearRelationNote'));
1400
- }
1401
- manprogestationCheckArchivesBasicInformation = this.isUndefined(_get(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation'));
1402
- manprogestationCheckArchivesMedicalHistory = this.isUndefined(_get(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory'));
1403
- manprogestationCheckArchivesPhysicalExamination = this.isUndefined(_get(params, 'manProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination'));
1404
- womanprogestationCheckArchivesBasicInformation = this.isUndefined(_get(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesBasicInformation'));
1405
- womanprogestationCheckArchivesMedicalHistory = this.isUndefined(_get(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesMedicalHistory'));
1406
- womanprogestationCheckArchivesPhysicalExamination = this.isUndefined(_get(params, 'womanProgestationCheckArchivesDetailVM.progestationCheckArchivesPhysicalExamination'));
1407
- if (!_isEmpty(manprogestationCheckArchivesBasicInformation) || !_isEmpty(manprogestationCheckArchivesMedicalHistory) || !_isEmpty(manprogestationCheckArchivesPhysicalExamination)) {
1408
- _set(params, 'manProgestationCheckArchivesDetailVM.fileType', 1);
1409
- } else {
1410
- params = _omit(params, ['manProgestationCheckArchivesDetailVM']);
1411
- }
1412
- if (!_isEmpty(womanprogestationCheckArchivesBasicInformation) || !_isEmpty(womanprogestationCheckArchivesMedicalHistory) || !_isEmpty(womanprogestationCheckArchivesPhysicalExamination)) {
1413
- _set(params, 'womanProgestationCheckArchivesDetailVM.fileType', 2);
1414
- } else {
1415
- params = _omit(params, ['womanProgestationCheckArchivesDetailVM']);
1416
- }
1417
- if (!_get(values, 'build')) return [3, 2];
1418
- params = __assign(__assign({}, params), {
1419
- fileStatus: 1
1420
- });
1421
- return [4, fubaoRequest.post(baseUrl, params)];
1422
- case 1:
1423
- _res = _b.sent();
1424
- res = _res.data;
1425
- return [3, 6];
1426
- case 2:
1427
- if (!_get(values, 'id')) return [3, 4];
1428
- manId = _get(data, 'manProgestationCheckArchivesDetailVM.id');
1429
- womanId = _get(data, 'womanProgestationCheckArchivesDetailVM.id');
1430
- _set(params, 'manProgestationCheckArchivesDetailVM.id', manId);
1431
- _set(params, 'womanProgestationCheckArchivesDetailVM.id', womanId);
1432
- params = __assign(__assign(__assign({}, data), params), {
1433
- fileStatus: 2
1434
- });
1435
- return [4, fubaoRequest.put('/api/progestation/check/updateProgestationCheckArchivesDetail', params)];
1436
- case 3:
1437
- res = _b.sent().data;
1438
- if (_get(res, 'code') === 1) ;
1439
- return [3, 6];
1440
- case 4:
1441
- params = __assign(__assign({}, params), {
1442
- fileStatus: 2
1443
- });
1444
- return [4, fubaoRequest.post(baseUrl, params)];
1445
- case 5:
1446
- _res = _b.sent();
1447
- res = _res.data;
1448
- if (_get(res, 'code') === 1) {
1449
- this.setState({
1450
- data: _get(res, 'data')
1451
- });
1452
- }
1453
- _b.label = 6;
1454
- case 6:
1455
- return [2];
1456
- }
1457
- });
1458
- });
1459
- };
1460
- return _this;
1461
- }
1462
- WifePanel.prototype.componentDidMount = function () {
1463
- return __awaiter(this, void 0, void 0, function () {
1464
- var _this = this;
1465
- return __generator(this, function (_a) {
1466
- this.handleInit();
1467
- this.rm = mchcDriver.on_rm('data', function (e) {
1468
- var _a, _b, _c;
1469
- if (e.type === 'ReadCard') {
1470
- var res = e.data;
1471
- (_c = (_b = (_a = _this.formRef) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.setFieldsValue) === null || _c === void 0 ? void 0 : _c.call(_b, {
1472
- womanName: res.name,
1473
- womanProgestationCheckArchivesDetailVM: {
1474
- progestationCheckArchivesBasicInformation: __assign({}, res)
1475
- }
1476
- });
1477
- }
1478
- });
1479
- return [2];
1480
- });
1481
- });
1482
- };
1483
- WifePanel.prototype.componentWillUnmount = function () {
1484
- this.rm();
1485
- };
1486
- WifePanel.defaultProps = {
1487
- baseUrl: '/api/progestation/check/addProgestationCheckArchives',
1488
- request: fubaoRequest,
1489
- moduleName: 'pre-pregnancy-care-file-management',
1490
- title: '档案信息',
1491
- Form: AdmissionForm
1492
- };
1493
- return WifePanel;
1494
- }(BaseEditPanel);
1495
- var WifePanel$1 = WifePanel;
1496
- export { WifePanel$1 as default };
1497
- //# sourceMappingURL=.root37.js.map