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