@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
@@ -60,11 +60,10 @@ function TowCancerFollowup(props) {
60
60
  dataIndex: 'followupState',
61
61
  inputType: 'MS',
62
62
  props: {
63
- optionKey: '随访状态',
63
+ uniqueKey: '随访状态',
64
64
  marshal: 0
65
65
  }
66
66
  }]
67
67
  })));
68
68
  }
69
69
  export { TowCancerFollowup as default };
70
- //# sourceMappingURL=.root34.js.map
@@ -1,25 +1,12 @@
1
- import 'antd/es/message/style';
2
- import _message from 'antd/es/message';
3
- import _set from 'lodash/set';
4
- import _map from 'lodash/map';
5
- import _isEmpty from 'lodash/isEmpty';
6
- import _get from 'lodash/get';
7
- import { b as __extends, _ as __awaiter, a as __generator } from './tslib.es6.js';
1
+ import { c as __extends, _ as __awaiter, a as __generator } from './tslib.es6.js';
8
2
  import { LazyAntd, fromApi, resolveFubaoPath, BaseEditPanelForm, formDescriptionsWithoutSectionApi, formatTimeToStandard, BaseEditPanel, toApi } from '@lm_fe/components_m';
9
3
  import { SLocal_History, SLocal_State } from '@lm_fe/service';
10
4
  import { request, safe_json_parse, expect_array, formatDate } from '@lm_fe/utils';
5
+ import { get, cloneDeep, isEmpty, omit, size, map, set } from 'lodash';
11
6
  import dayjs from 'dayjs';
12
- import 'antd/es/space/style';
13
- import _Space from 'antd/es/space';
14
- import 'antd/es/button/style';
15
- import _Button from 'antd/es/button';
16
- import 'antd/es/modal/style';
17
- import _Modal from 'antd/es/modal';
18
- import _size from 'lodash/size';
19
- import _omit from 'lodash/omit';
20
- import _cloneDeep from 'lodash/cloneDeep';
21
7
  import { CloseOutlined, SaveOutlined } from '@ant-design/icons';
22
- import { mchcUtils } from '@lm_fe/env';
8
+ import { mchcUtils, mchcEnv } from '@lm_fe/env';
9
+ import { message, Modal, Button, Space } from 'antd';
23
10
  import React from 'react';
24
11
  var tableColumn = [{
25
12
  title: '姓名',
@@ -51,7 +38,7 @@ var AdmissionForm = function (_super) {
51
38
  };
52
39
  _this.getRegistrationEvents = function () {
53
40
  return {
54
- onBlur: _get(_this.getEvents(), 'handleInputBlur')
41
+ onBlur: get(_this.getEvents(), 'handleInputBlur')
55
42
  };
56
43
  };
57
44
  _this.getEvents = function () {
@@ -64,7 +51,7 @@ var AdmissionForm = function (_super) {
64
51
  switch (_b.label) {
65
52
  case 0:
66
53
  data = this.props.data;
67
- id = _get(data, 'id');
54
+ id = get(data, 'id');
68
55
  name = (_a = this.form) === null || _a === void 0 ? void 0 : _a.getFieldValue('name');
69
56
  if (!(!id && e.target.id == 'name' && name)) return [3, 2];
70
57
  param = {
@@ -79,9 +66,9 @@ var AdmissionForm = function (_super) {
79
66
  })];
80
67
  case 1:
81
68
  data_1 = _b.sent().data;
82
- if (_get(data_1, 'data.pageData').length > 0) {
69
+ if (get(data_1, 'data.pageData').length > 0) {
83
70
  this.setState({
84
- importData: _get(data_1, 'data.pageData'),
71
+ importData: get(data_1, 'data.pageData'),
85
72
  renderModal: true
86
73
  });
87
74
  }
@@ -98,12 +85,12 @@ var AdmissionForm = function (_super) {
98
85
  var _a;
99
86
  var selectRow = _this.state.selectRow;
100
87
  var formDescriptionsWithoutSection = _this.props.formDescriptionsWithoutSection;
101
- var dd = fromApi(_cloneDeep(selectRow), formDescriptionsWithoutSection);
102
- if (_isEmpty(selectRow)) {
103
- _message.warning('请选择一份档案信息');
88
+ var dd = fromApi(cloneDeep(selectRow), formDescriptionsWithoutSection);
89
+ if (isEmpty(selectRow)) {
90
+ message.warning('请选择一份档案信息');
104
91
  return;
105
92
  }
106
- var omitDd = _omit(dd, ['filingDate']);
93
+ var omitDd = omit(dd, ['filingDate']);
107
94
  (_a = _this.form) === null || _a === void 0 ? void 0 : _a.setFieldsValue(omitDd);
108
95
  _this.setState({
109
96
  renderModal: false
@@ -113,7 +100,7 @@ var AdmissionForm = function (_super) {
113
100
  var _a = _this.state,
114
101
  renderModal = _a.renderModal,
115
102
  importData = _a.importData;
116
- return /*#__PURE__*/React.createElement(_Modal, {
103
+ return /*#__PURE__*/React.createElement(Modal, {
117
104
  title: "\u5BFC\u5165\u4FE1\u606F",
118
105
  width: 520,
119
106
  visible: renderModal,
@@ -144,8 +131,8 @@ var AdmissionForm = function (_super) {
144
131
  var form, idNO, personal;
145
132
  return __generator(this, function (_a) {
146
133
  form = this.form;
147
- if (_get(allValues, 'idType') === 1 && _size(_get(allValues, 'idNO')) === 18 && (_get(changedValues, 'idType') || _get(changedValues, 'idNO'))) {
148
- idNO = _get(allValues, 'idNO');
134
+ if (get(allValues, 'idType') === 1 && size(get(allValues, 'idNO')) === 18 && (get(changedValues, 'idType') || get(changedValues, 'idNO'))) {
135
+ idNO = get(allValues, 'idNO');
149
136
  personal = mchcUtils.checkIdNo(idNO);
150
137
  if (personal.status) {
151
138
  form && form.setFieldsValue({
@@ -155,7 +142,7 @@ var AdmissionForm = function (_super) {
155
142
  age: personal.age
156
143
  });
157
144
  } else {
158
- _message.warning("".concat(_get(personal, 'message')));
145
+ message.warning("".concat(get(personal, 'message')));
159
146
  }
160
147
  }
161
148
  return [2];
@@ -168,21 +155,21 @@ var AdmissionForm = function (_super) {
168
155
  return __generator(this, function (_b) {
169
156
  _a = this.props, _a.history, data = _a.data, _a.deleteTab, _a.routerPath, _a.tabs, _a.keepAliveProviderRef, _a.updateTabs;
170
157
  form = this.form;
171
- if (!_get(data, 'id')) form.resetFields();
158
+ if (!get(data, 'id')) form.resetFields();
172
159
  SLocal_History.closeAndPush(resolveFubaoPath("/folic-acid/file-management/list"));
173
160
  return [2];
174
161
  });
175
162
  });
176
163
  };
177
164
  _this.renderCancelBtn = function () {
178
- return /*#__PURE__*/React.createElement(_Button, {
165
+ return /*#__PURE__*/React.createElement(Button, {
179
166
  size: "large",
180
167
  icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
181
168
  onClick: _this.handleCancel
182
169
  }, "\u5173\u95ED");
183
170
  };
184
171
  _this.renderCheckBtn = function () {
185
- return /*#__PURE__*/React.createElement(_Button, {
172
+ return /*#__PURE__*/React.createElement(Button, {
186
173
  size: "large",
187
174
  type: "primary",
188
175
  icon: /*#__PURE__*/React.createElement(SaveOutlined, null),
@@ -193,7 +180,7 @@ var AdmissionForm = function (_super) {
193
180
  };
194
181
  _this.renderBtns = function () {
195
182
  var history = _this.props.history;
196
- return /*#__PURE__*/React.createElement(_Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
183
+ return /*#__PURE__*/React.createElement(Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
197
184
  };
198
185
  _this.readIDCard = function () {
199
186
  var websocketServices = window.websocketServices;
@@ -226,7 +213,7 @@ var AdmissionForm = function (_super) {
226
213
  _this.setState({
227
214
  IDCardLoading: false
228
215
  });
229
- return _message.info("".concat(e.data, "\uFF0C\u8BF7\u91CD\u65B0\u8BFB\u5361"));
216
+ return mchcEnv.info("".concat(e.data, "\uFF0C\u8BF7\u91CD\u65B0\u8BFB\u5361"));
230
217
  }
231
218
  if (e && e.data && e.data.includes('{')) {
232
219
  d = JSON.parse(e.data);
@@ -531,7 +518,7 @@ var FolicAcidNurse = function (_super) {
531
518
  switch (_d.label) {
532
519
  case 0:
533
520
  _a = this.props, routerQuery = _a.routerQuery, _a.moduleName, _b = _a.fromApi, fromApi$1 = _b === void 0 ? fromApi : _b;
534
- id = _get(this.props, 'id') || _get(routerQuery, 'id');
521
+ id = get(this.props, 'id') || get(routerQuery, 'id');
535
522
  this.setState({
536
523
  spinning: false
537
524
  });
@@ -547,24 +534,24 @@ var FolicAcidNurse = function (_super) {
547
534
  case 3:
548
535
  data = _c;
549
536
  if (data) {
550
- data = _get(data, 'data');
537
+ data = get(data, 'data');
551
538
  }
552
539
  data = id ? fromApi$1(data, formDescriptionsWithoutSection) : {};
553
- formKey = _get(data, 'id') || Math.random();
554
- if (!_isEmpty(data)) {
540
+ formKey = get(data, 'id') || Math.random();
541
+ if (!isEmpty(data)) {
555
542
  folateDistributionRecords = data.folateDistributionRecords;
556
- if (!_isEmpty(folateDistributionRecords)) {
557
- _map(folateDistributionRecords, function (item) {
558
- var effectiveDate = _get(item, 'effectiveDate');
543
+ if (!isEmpty(folateDistributionRecords)) {
544
+ map(folateDistributionRecords, function (item) {
545
+ var effectiveDate = get(item, 'effectiveDate');
559
546
  if (effectiveDate) {
560
547
  var effectiveDateArr = effectiveDate.split('~');
561
- _set(item, 'effectiveDateBegin', effectiveDateArr[0]);
562
- _set(item, 'effectiveDateEnd', effectiveDateArr[1]);
548
+ set(item, 'effectiveDateBegin', effectiveDateArr[0]);
549
+ set(item, 'effectiveDateEnd', effectiveDateArr[1]);
563
550
  }
564
551
  });
565
552
  }
566
553
  }
567
- if (!_get(data, 'filingDate')) _set(data, 'filingDate', dayjs(new Date()));
554
+ if (!get(data, 'filingDate')) set(data, 'filingDate', dayjs(new Date()));
568
555
  this.setState({
569
556
  formDescriptions: form_config,
570
557
  formDescriptionsWithoutSection: formDescriptionsWithoutSection,
@@ -588,19 +575,19 @@ var FolicAcidNurse = function (_super) {
588
575
  return [4, toApi$1(values, formDescriptionsWithoutSection)];
589
576
  case 1:
590
577
  params = _d.sent();
591
- folateDistributionRecords = _get(params, 'folateDistributionRecords');
592
- _map(folateDistributionRecords, function (item) {
593
- if (!_get(item, 'issueDate')) {
594
- _set(item, 'issueDate', formatTimeToStandard(dayjs(new Date()), 'YYYY-MM-DD'));
578
+ folateDistributionRecords = get(params, 'folateDistributionRecords');
579
+ map(folateDistributionRecords, function (item) {
580
+ if (!get(item, 'issueDate')) {
581
+ set(item, 'issueDate', formatTimeToStandard(dayjs(new Date()), 'YYYY-MM-DD'));
595
582
  }
596
- if (!_get(item, 'registerPerson')) {
597
- _set(item, 'registerPerson', _get(user, 'basicInfo.firstName'));
583
+ if (!get(item, 'registerPerson')) {
584
+ set(item, 'registerPerson', get(user, 'basicInfo.firstName'));
598
585
  }
599
- if (_get(item, 'effectiveDateBegin') && _get(item, 'effectiveDateEnd')) {
600
- _set(item, 'effectiveDate', "".concat(_get(item, 'effectiveDateBegin'), "~").concat(_get(item, 'effectiveDateEnd')));
586
+ if (get(item, 'effectiveDateBegin') && get(item, 'effectiveDateEnd')) {
587
+ set(item, 'effectiveDate', "".concat(get(item, 'effectiveDateBegin'), "~").concat(get(item, 'effectiveDateEnd')));
601
588
  }
602
589
  });
603
- if (!_get(values, 'id')) return [3, 3];
590
+ if (!get(values, 'id')) return [3, 3];
604
591
  return [4, request.put('/api/updateFolateManagementFile', params)];
605
592
  case 2:
606
593
  _c = _d.sent().data;
@@ -612,11 +599,11 @@ var FolicAcidNurse = function (_super) {
612
599
  _d.label = 5;
613
600
  case 5:
614
601
  res = _c;
615
- if (_get(res, 'code') === 1) {
616
- _message.success(_get(res, 'msg'));
602
+ if (get(res, 'code') === 1) {
603
+ mchcEnv.success(get(res, 'msg'));
617
604
  SLocal_History.closeAndPush('/fubao/folic-acid/file-management/list');
618
605
  } else {
619
- _message.warning(_get(res, 'msg'));
606
+ mchcEnv.warning(get(res, 'msg'));
620
607
  }
621
608
  return [2];
622
609
  }
@@ -643,4 +630,3 @@ var FolicAcidNurse = function (_super) {
643
630
  }(BaseEditPanel);
644
631
  var FolicAcidNurse$1 = FolicAcidNurse;
645
632
  export { FolicAcidNurse$1 as F };
646
- //# sourceMappingURL=index.js.map
@@ -1,66 +1,150 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
- var classnames$1 = {
3
- exports: {}
4
- };
5
-
6
- /*!
7
- Copyright (c) 2018 Jed Watson.
8
- Licensed under the MIT License (MIT), see
9
- http://jedwatson.github.io/classnames
10
- */
11
- (function (module) {
12
- /* global define */
13
-
14
- (function () {
15
- var hasOwn = {}.hasOwnProperty;
16
- function classNames() {
17
- var classes = '';
18
- for (var i = 0; i < arguments.length; i++) {
19
- var arg = arguments[i];
20
- if (arg) {
21
- classes = appendClass(classes, parseValue(arg));
1
+ import { _ as __awaiter, a as __generator } from './tslib.es6.js';
2
+ import { OkButton } from '@lm_fe/components_m';
3
+ import { mchcModal__ } from '@lm_fe/pages';
4
+ import { safe_async_call, request } from '@lm_fe/utils';
5
+ import React from 'react';
6
+ import { rt_ctx } from '@lm_fe/env';
7
+ var ctx = rt_ctx;
8
+ var form_config = [{
9
+ label: "档案类型",
10
+ name: "fileType",
11
+ inputType: 'MC',
12
+ inputProps: {
13
+ uniqueKey: '性别2',
14
+ marshal: 0
15
+ },
16
+ layout: '1/1'
17
+ }, {
18
+ label: "女方姓名",
19
+ name: "womanName",
20
+ inputType: 'MA',
21
+ layout: '1/3'
22
+ }, {
23
+ label: "女方年龄",
24
+ name: "womanAge",
25
+ inputType: 'input_number',
26
+ layout: '1/3'
27
+ }, {
28
+ label: "女方电话号码",
29
+ name: "womanTelephone",
30
+ inputType: 'MA',
31
+ layout: '1/3'
32
+ }, {
33
+ label: "男方姓名",
34
+ name: "manName",
35
+ inputType: 'MA',
36
+ layout: '1/3'
37
+ }, {
38
+ label: "男方年龄",
39
+ name: "manAge",
40
+ inputType: 'input_number',
41
+ layout: '1/3'
42
+ }, {
43
+ label: "男方电话号码",
44
+ name: "manTelephone",
45
+ inputType: 'MA',
46
+ layout: '1/3'
47
+ }, {
48
+ label: "追踪随访内容",
49
+ children: [{
50
+ name: "followupRecordVMList",
51
+ inputType: "MyEditTable",
52
+ inputProps: {
53
+ marshal: 0,
54
+ genRowData: function genRowData(list) {
55
+ return {
56
+ followupDate: ctx.utils.formatDate()
57
+ };
58
+ },
59
+ formDescriptions: [{
60
+ title: '怀孕状态',
61
+ dataIndex: 'pregnancyStatus',
62
+ inputType: 'MS',
63
+ inputProps: {
64
+ uniqueKey: 'Pregnancy.pregnancyStatus',
65
+ marshal: 0
22
66
  }
23
- }
24
- return classes;
25
- }
26
- function parseValue(arg) {
27
- if (typeof arg === 'string' || typeof arg === 'number') {
28
- return arg;
29
- }
30
- if (_typeof(arg) !== 'object') {
31
- return '';
32
- }
33
- if (Array.isArray(arg)) {
34
- return classNames.apply(null, arg);
35
- }
36
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
37
- return arg.toString();
38
- }
39
- var classes = '';
40
- for (var key in arg) {
41
- if (hasOwn.call(arg, key) && arg[key]) {
42
- classes = appendClass(classes, key);
67
+ }, {
68
+ title: '传染病内容',
69
+ dataIndex: 'infectionContent',
70
+ inputType: 'Input'
71
+ }, {
72
+ title: '随访内容',
73
+ dataIndex: 'followupContent',
74
+ inputType: 'Input'
75
+ }, {
76
+ title: '随访状态',
77
+ dataIndex: 'followupState',
78
+ inputType: 'MS',
79
+ inputProps: {
80
+ uniqueKey: '随访状态',
81
+ marshal: 0
43
82
  }
44
- }
45
- return classes;
46
- }
47
- function appendClass(value, newClass) {
48
- if (!newClass) {
49
- return value;
50
- }
51
- if (value) {
52
- return value + ' ' + newClass;
53
- }
54
- return value + newClass;
55
- }
56
- if (module.exports) {
57
- classNames["default"] = classNames;
58
- module.exports = classNames;
59
- } else {
60
- window.classNames = classNames;
61
- }
62
- })();
63
- })(classnames$1);
64
- var classnames = classnames$1.exports;
65
- export { classnames as c };
66
- //# sourceMappingURL=index2.js.map
83
+ }]
84
+ },
85
+ layout: '1/1'
86
+ }]
87
+ }];
88
+ var opt_url = '/api/premarital/check/followup/premaritalCheckFollowupCase';
89
+ function Follow_up_btn_婚前(props) {
90
+ var handleSearch = props.handleSearch,
91
+ _a = props.rowData,
92
+ rowData = _a === void 0 ? {} : _a;
93
+ var premaritalCheckArchivesId = rowData.premaritalCheckArchivesId,
94
+ fileType = rowData.fileType;
95
+ function showView() {
96
+ return __awaiter(this, void 0, void 0, function () {
97
+ var record;
98
+ return __generator(this, function (_a) {
99
+ switch (_a.label) {
100
+ case 0:
101
+ return [4, request.get("/api/premarital/check/followup/premaritalCheckFollowup", {
102
+ params: {
103
+ premaritalCheckArchivesId: premaritalCheckArchivesId,
104
+ fileType: fileType
105
+ },
106
+ unboxing: true,
107
+ ignore_usr: true
108
+ })];
109
+ case 1:
110
+ record = _a.sent();
111
+ mchcModal__.open('modal_form', {
112
+ modal_data: {
113
+ bf_title: '婚前检查-随访',
114
+ formDescriptions: form_config,
115
+ getInitialData: function getInitialData() {
116
+ return record.data;
117
+ },
118
+ onSubmit: function onSubmit(data) {
119
+ return __awaiter(this, void 0, void 0, function () {
120
+ var fn;
121
+ return __generator(this, function (_a) {
122
+ switch (_a.label) {
123
+ case 0:
124
+ fn = data.id ? request.put : request.post;
125
+ return [4, fn(opt_url, data, {
126
+ successText: '操作成功',
127
+ ignore_usr: true
128
+ })];
129
+ case 1:
130
+ _a.sent();
131
+ safe_async_call(handleSearch);
132
+ return [2, 1];
133
+ }
134
+ });
135
+ });
136
+ }
137
+ }
138
+ });
139
+ return [2];
140
+ }
141
+ });
142
+ });
143
+ }
144
+ return /*#__PURE__*/React.createElement(OkButton, {
145
+ type: "link",
146
+ size: "small",
147
+ onClick: showView
148
+ }, "\u968F\u8BBF");
149
+ }
150
+ export { Follow_up_btn_婚前 as F };