@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
@@ -0,0 +1,18 @@
1
+ import FamilyPlanning_FileManagement_DoctorDesk_FC from './family-planning.file-management.doctor-desk.js';
2
+ export { default } from './family-planning.file-management.doctor-desk.js';
3
+ import './tslib.es6.js';
4
+ import 'react';
5
+ import './family-planning.file-management.nurse-desk.js';
6
+ import '@lm_fe/components_m';
7
+ import '@lm_fe/utils';
8
+ import 'lodash';
9
+ import '@lm_fe/service';
10
+ import 'dayjs';
11
+ import '@ant-design/icons';
12
+ import '@lm_fe/env';
13
+ import 'antd';
14
+ import './config.js';
15
+ import './style-inject.es.js';
16
+ import './api.js';
17
+ import '@lm_fe/pages';
18
+ import '@lm_fe/pages-mchc';
@@ -1,17 +1,8 @@
1
- import 'antd/es/message/style';
2
- import _message from 'antd/es/message';
3
- import 'antd/es/popconfirm/style';
4
- import _Popconfirm from 'antd/es/popconfirm';
5
- import 'antd/es/divider/style';
6
- import _Divider from 'antd/es/divider';
7
- import 'antd/es/button/style';
8
- import _Button from 'antd/es/button';
9
- import _get from 'lodash/get';
10
- import _isArray from 'lodash/isArray';
11
- import _isNil from 'lodash/isNil';
12
- import { b as __extends, d as __spreadArray, _ as __awaiter, a as __generator } from './tslib.es6.js';
1
+ import { c as __extends, d as __spreadArray, _ as __awaiter, a as __generator } from './tslib.es6.js';
13
2
  import React from 'react';
3
+ import { get, isArray, isNil } from 'lodash';
14
4
  import { BaseTableOld, BaseQuery, APP_CONFIG, fubaoHistoryPush, BaseListOld } from '@lm_fe/components_m';
5
+ import { Button, Divider, Popconfirm, message } from 'antd';
15
6
  import { EditOutlined, EyeOutlined, DeleteOutlined } from '@ant-design/icons';
16
7
  import { fubaoRequest } from '@lm_fe/utils';
17
8
  var ProductsTable = function (_super) {
@@ -114,13 +105,13 @@ var List = function (_super) {
114
105
  align: 'center',
115
106
  render: function render(text) {
116
107
  if (text === 0) {
117
- return /*#__PURE__*/React.createElement(_Button, {
108
+ return /*#__PURE__*/React.createElement(Button, {
118
109
  size: "small",
119
110
  type: "primary"
120
111
  }, "\u5F85\u5BA1\u6838");
121
112
  }
122
113
  if (text === 1) {
123
- return /*#__PURE__*/React.createElement(_Button, {
114
+ return /*#__PURE__*/React.createElement(Button, {
124
115
  size: "small"
125
116
  }, "\u5DF2\u5BA1\u6838");
126
117
  }
@@ -134,30 +125,30 @@ var List = function (_super) {
134
125
  width: 200,
135
126
  align: 'center',
136
127
  render: function render(value, rowData, index) {
137
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button, {
128
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
138
129
  type: "link",
139
130
  size: "small",
140
131
  icon: /*#__PURE__*/React.createElement(EditOutlined, {
141
132
  className: "global-table-action-icon global-table-action-view"
142
133
  }),
143
134
  onClick: _this.handleEdit(rowData)
144
- }, "\u7F16\u8F91"), /*#__PURE__*/React.createElement(_Divider, {
135
+ }, "\u7F16\u8F91"), /*#__PURE__*/React.createElement(Divider, {
145
136
  type: "vertical"
146
- }), /*#__PURE__*/React.createElement(_Button, {
137
+ }), /*#__PURE__*/React.createElement(Button, {
147
138
  type: "link",
148
139
  size: "small",
149
140
  icon: /*#__PURE__*/React.createElement(EyeOutlined, {
150
141
  className: "global-table-action-icon global-table-action-edit"
151
142
  }),
152
143
  onClick: _this.handleView(rowData)
153
- }, "\u67E5\u770B"), /*#__PURE__*/React.createElement(_Divider, {
144
+ }, "\u67E5\u770B"), /*#__PURE__*/React.createElement(Divider, {
154
145
  type: "vertical"
155
- }), /*#__PURE__*/React.createElement(_Popconfirm, {
156
- title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A".concat(_get(_this.props, 'baseTitle'), "\u5417?"),
146
+ }), /*#__PURE__*/React.createElement(Popconfirm, {
147
+ title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A".concat(get(_this.props, 'baseTitle'), "\u5417?"),
157
148
  onConfirm: _this.handleDelete(rowData),
158
149
  okText: "\u786E\u5B9A",
159
150
  cancelText: "\u53D6\u6D88"
160
- }, /*#__PURE__*/React.createElement(_Button, {
151
+ }, /*#__PURE__*/React.createElement(Button, {
161
152
  type: "link",
162
153
  size: "small",
163
154
  icon: /*#__PURE__*/React.createElement(DeleteOutlined, {
@@ -177,8 +168,8 @@ var List = function (_super) {
177
168
  if (!baseUrl) {
178
169
  return [2];
179
170
  }
180
- if (!_isNil(editKey)) {
181
- _message.error('请保存未保存的记录');
171
+ if (!isNil(editKey)) {
172
+ message.error('请保存未保存的记录');
182
173
  return [2];
183
174
  }
184
175
  this.setState({
@@ -192,7 +183,7 @@ var List = function (_super) {
192
183
  })];
193
184
  case 1:
194
185
  res = _b.sent().data;
195
- if (_isArray(res.data.pageData)) {
186
+ if (isArray(res.data.pageData)) {
196
187
  dataSource = res.data.pageData;
197
188
  }
198
189
  if (!isNaN(Number(res.data.totalElements))) {
@@ -232,7 +223,7 @@ var List = function (_super) {
232
223
  return __generator(this, function (_a) {
233
224
  switch (_a.label) {
234
225
  case 0:
235
- return [4, fubaoRequest["delete"]("/api/family/planning/deletefamilyPlanningFile/".concat(_get(rowData, 'id')))];
226
+ return [4, fubaoRequest["delete"]("/api/family/planning/deletefamilyPlanningFile/".concat(get(rowData, 'id')))];
236
227
  case 1:
237
228
  _a.sent();
238
229
  this.handleSearch();
@@ -273,4 +264,3 @@ var List = function (_super) {
273
264
  }(BaseListOld);
274
265
  var List$1 = List;
275
266
  export { List$1 as default };
276
- //# sourceMappingURL=.root9.js.map
@@ -1,19 +1,12 @@
1
- import _set from 'lodash/set';
2
- import _get from 'lodash/get';
3
- import { b as __extends, _ as __awaiter, a as __generator, c as __assign } from './tslib.es6.js';
1
+ import { c as __extends, _ as __awaiter, a as __generator, b as __assign } from './tslib.es6.js';
4
2
  import { resolveFubaoPath, BaseEditPanelForm, formDescriptionsWithoutSectionApi, BaseEditPanel, fromApi, toApi } from '@lm_fe/components_m';
5
3
  import { fubaoRequest, getSearchParamsValue } from '@lm_fe/utils';
4
+ import { get, size, set } from 'lodash';
6
5
  import { SLocal_History, SMchc_FormDescriptions } from '@lm_fe/service';
7
6
  import dayjs from 'dayjs';
8
- import 'antd/es/space/style';
9
- import _Space from 'antd/es/space';
10
- import 'antd/es/button/style';
11
- import _Button from 'antd/es/button';
12
- import 'antd/es/message/style';
13
- import _message from 'antd/es/message';
14
- import _size from 'lodash/size';
15
7
  import { CloseOutlined, SaveOutlined } from '@ant-design/icons';
16
- import { mchcUtils } from '@lm_fe/env';
8
+ import { mchcEnv, mchcUtils } from '@lm_fe/env';
9
+ import { message, Button, Space } from 'antd';
17
10
  var AdmissionForm = function (_super) {
18
11
  __extends(AdmissionForm, _super);
19
12
  function AdmissionForm() {
@@ -24,7 +17,7 @@ var AdmissionForm = function (_super) {
24
17
  var _a, _b;
25
18
  if (id === 'residenceAddress') {
26
19
  var value = (_a = _this.form) === null || _a === void 0 ? void 0 : _a.getFieldValue('permanentResidenceAddress');
27
- !value && _message.info('请先填写完整的户口地址信息!');
20
+ !value && mchcEnv.info('请先填写完整的户口地址信息!');
28
21
  value && ((_b = _this.form) === null || _b === void 0 ? void 0 : _b.setFieldsValue({
29
22
  residenceAddress: value
30
23
  }));
@@ -37,8 +30,8 @@ var AdmissionForm = function (_super) {
37
30
  var form, idNO, personal;
38
31
  return __generator(this, function (_a) {
39
32
  form = this.form;
40
- if (_get(allValues, 'idType') === 1 && _size(_get(allValues, 'idNO')) === 18 && (_get(changedValues, 'idType') || _get(changedValues, 'idNO'))) {
41
- idNO = _get(allValues, 'idNO');
33
+ if (get(allValues, 'idType') === 1 && size(get(allValues, 'idNO')) === 18 && (get(changedValues, 'idType') || get(changedValues, 'idNO'))) {
34
+ idNO = get(allValues, 'idNO');
42
35
  personal = mchcUtils.checkIdNo(idNO);
43
36
  if (personal.status) {
44
37
  form && form.setFieldsValue({
@@ -48,7 +41,7 @@ var AdmissionForm = function (_super) {
48
41
  age: personal.age
49
42
  });
50
43
  } else {
51
- _message.warning("".concat(_get(personal, 'message')));
44
+ message.warning("".concat(get(personal, 'message')));
52
45
  }
53
46
  }
54
47
  return [2];
@@ -61,24 +54,24 @@ var AdmissionForm = function (_super) {
61
54
  return __generator(this, function (_b) {
62
55
  _a = this.props, _a.history, data = _a.data, _a.deleteTab, _a.routerPath, _a.tabs, _a.keepAliveProviderRef, _a.updateTabs;
63
56
  form = this.form;
64
- if (!_get(data, 'id')) form.resetFields();
57
+ if (!get(data, 'id')) form.resetFields();
65
58
  SLocal_History.closeAndPush(resolveFubaoPath('/family-planning/file-management/list'));
66
59
  return [2];
67
60
  });
68
61
  });
69
62
  };
70
63
  _this.renderCancelBtn = function () {
71
- return /*#__PURE__*/React.createElement(_Button, {
64
+ return React.createElement(Button, {
72
65
  size: "large",
73
- icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
66
+ icon: React.createElement(CloseOutlined, null),
74
67
  onClick: _this.handleCancel
75
68
  }, "\u5173\u95ED");
76
69
  };
77
70
  _this.renderCheckBtn = function () {
78
- return /*#__PURE__*/React.createElement(_Button, {
71
+ return React.createElement(Button, {
79
72
  size: "large",
80
73
  type: "primary",
81
- icon: /*#__PURE__*/React.createElement(SaveOutlined, null),
74
+ icon: React.createElement(SaveOutlined, null),
82
75
  htmlType: "submit",
83
76
  onClick: _this.handleFinish,
84
77
  disabled: false
@@ -86,7 +79,7 @@ var AdmissionForm = function (_super) {
86
79
  };
87
80
  _this.renderBtns = function () {
88
81
  var history = _this.props.history;
89
- return /*#__PURE__*/React.createElement(_Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
82
+ return React.createElement(Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
90
83
  };
91
84
  return _this;
92
85
  }
@@ -103,7 +96,7 @@ var FamilyPlanning_FileManagement_NurseDesk = function (_super) {
103
96
  switch (_d.label) {
104
97
  case 0:
105
98
  _a = this.props, _a.routerQuery, moduleName = _a.moduleName, _b = _a.fromApi, fromApi$1 = _b === void 0 ? fromApi : _b, user = _a.user, system = _a.system;
106
- id = _get(this.props, 'id') || getSearchParamsValue('id');
99
+ id = get(this.props, 'id') || getSearchParamsValue('id');
107
100
  return [4, SMchc_FormDescriptions.getModuleParseCache(moduleName)];
108
101
  case 1:
109
102
  formDescriptions = _d.sent();
@@ -122,13 +115,13 @@ var FamilyPlanning_FileManagement_NurseDesk = function (_super) {
122
115
  case 4:
123
116
  data = _c;
124
117
  if (data) {
125
- data = _get(data, 'data.pageData.0');
118
+ data = get(data, 'data.pageData.0');
126
119
  }
127
120
  data = id ? fromApi$1(data, formDescriptionsWithoutSection) : {};
128
- formKey = _get(data, 'id') || Math.random();
129
- if (!_get(data, 'testingFacility')) _set(data, 'testingFacility', _get(system, 'config.hospitalName'));
130
- if (!_get(data, 'registerDate')) _set(data, 'registerDate', dayjs(new Date()));
131
- if (!_get(data, 'registerPerson')) _set(data, 'registerPerson', _get(user, 'basicInfo.firstName'));
121
+ formKey = get(data, 'id') || Math.random();
122
+ if (!get(data, 'testingFacility')) set(data, 'testingFacility', get(system, 'config.hospitalName'));
123
+ if (!get(data, 'registerDate')) set(data, 'registerDate', dayjs(new Date()));
124
+ if (!get(data, 'registerPerson')) set(data, 'registerPerson', get(user, 'basicInfo.firstName'));
132
125
  this.setState({
133
126
  formDescriptions: formDescriptions,
134
127
  formDescriptionsWithoutSection: formDescriptionsWithoutSection,
@@ -154,7 +147,7 @@ var FamilyPlanning_FileManagement_NurseDesk = function (_super) {
154
147
  params = __assign(__assign({}, params), {
155
148
  fileState: 1
156
149
  });
157
- if (!_get(values, 'id')) return [3, 3];
150
+ if (!get(values, 'id')) return [3, 3];
158
151
  return [4, fubaoRequest.put('/api/family/planning/updateFamilyPlanningFile', params)];
159
152
  case 2:
160
153
  res = _c.sent();
@@ -163,7 +156,7 @@ var FamilyPlanning_FileManagement_NurseDesk = function (_super) {
163
156
  return [4, fubaoRequest.post(baseUrl, params)];
164
157
  case 4:
165
158
  res = _c.sent().data;
166
- if (_get(res, 'code') === 1) {
159
+ if (get(res, 'code') === 1) {
167
160
  SLocal_History.closeAndPush(resolveFubaoPath('/family-planning/file-management/list'));
168
161
  }
169
162
  _c.label = 5;
@@ -194,4 +187,3 @@ var FamilyPlanning_FileManagement_NurseDesk = function (_super) {
194
187
  }(BaseEditPanel);
195
188
  var BasicInfo = FamilyPlanning_FileManagement_NurseDesk;
196
189
  export { BasicInfo as default };
197
- //# sourceMappingURL=.root2.js.map