@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,164 +1,66 @@
1
- import 'antd/es/message/style';
2
- import _message from 'antd/es/message';
3
- import _isEmpty from 'lodash/isEmpty';
4
- import _set from 'lodash/set';
5
- import _isEqual from 'lodash/isEqual';
6
- import _get from 'lodash/get';
7
- import { b as __extends, _ as __awaiter, a as __generator, c as __assign } from './tslib.es6.js';
8
- import 'antd/es/popconfirm/style';
9
- import _Popconfirm from 'antd/es/popconfirm';
10
- import 'antd/es/button/style';
11
- import _Button from 'antd/es/button';
12
- import 'antd/es/space/style';
13
- import _Space from 'antd/es/space';
1
+ import { c as __extends, _ as __awaiter, a as __generator, b as __assign } from './tslib.es6.js';
14
2
  import { BaseEditPanelForm, formDescriptionsWithoutSectionApi, BaseEditPanel } from '@lm_fe/components_m';
15
- import { PrinterOutlined } from '@ant-design/icons';
16
- import _join from 'lodash/join';
17
- import _dropRight from 'lodash/dropRight';
18
- import _isNil from 'lodash/isNil';
19
- import _map from 'lodash/map';
3
+ import { mchcEnv } from '@lm_fe/env';
4
+ import { mchcModal__ } from '@lm_fe/pages';
5
+ import { SMchc_FormDescriptions } from '@lm_fe/service';
20
6
  import { safe_json_parse, formatTime, formatDateTime, safe_json_stringify, fubaoRequest } from '@lm_fe/utils';
21
7
  import dayjs from 'dayjs';
22
- import { SMchc_FormDescriptions } from '@lm_fe/service';
23
- import { mchcModal__ } from '@lm_fe/pages';
24
- var AdmissionForm$4 = function (_super) {
25
- __extends(AdmissionForm, _super);
26
- function AdmissionForm() {
27
- var _this = _super !== null && _super.apply(this, arguments) || this;
28
- _this.state = {
29
- importModalVisible: false,
30
- changeFlag: false
31
- };
32
- _this.confirm = function (e) {
33
- return __awaiter(_this, void 0, void 0, function () {
34
- var form, _a, onFinish, data;
35
- return __generator(this, function (_b) {
36
- form = this.form;
37
- _a = this.props, onFinish = _a.onFinish, data = _a.data;
38
- form && form.validateFields().then(function () {
39
- var params = __assign(__assign({}, form.getFieldsValue()), {
40
- id: _get(data, 'id'),
41
- isPrint: true
42
- });
43
- onFinish && onFinish(params);
44
- })["catch"](function (error) {
45
- _message.error(_get(error, 'errorFields.0.errors.0'));
46
- form.scrollToField(_get(error, 'errorFields.0.name.0'));
47
- });
48
- return [2];
49
- });
50
- });
51
- };
52
- _this.cancel = function (e) {
53
- console.log(e);
54
- };
55
- _this.handleFieldsChange = function (changedFields, allFields) {
56
- return __awaiter(_this, void 0, void 0, function () {
57
- var changeFlag, data, changeValue, changeName, oldValue;
58
- return __generator(this, function (_a) {
59
- changeFlag = this.state.changeFlag;
60
- if (!changeFlag) {
61
- data = this.props.data;
62
- changeValue = _get(changedFields, '0.value');
63
- changeName = _get(changedFields, '0.name');
64
- oldValue = _get(data, changeName);
65
- if (!_isEqual(changeValue, oldValue)) {
66
- this.setState({
67
- changeFlag: true
68
- });
69
- }
70
- }
71
- return [2];
72
- });
73
- });
74
- };
75
- _this.renderBtns = function () {
76
- return /*#__PURE__*/React.createElement(_Space, {
77
- size: "middle"
78
- }, _this.renderSubmitBtn(), _this.renderPrintBtn());
79
- };
80
- _this.renderPrintBtn = function () {
81
- var changeFlag = _this.state.changeFlag;
82
- var _a = _this.props,
83
- printId = _a.printId,
84
- extraEvents = _a.extraEvents;
85
- return changeFlag ? /*#__PURE__*/React.createElement(_Popconfirm, {
86
- title: "\u5F53\u524D\u5B58\u5728\u65B0\u6570\u636E\uFF0C\u662F\u5426\u4FDD\u5B58\u5E76\u6253\u5370\uFF1F",
87
- onConfirm: _this.confirm,
88
- onCancel: _this.cancel,
89
- okText: "\u786E\u5B9A",
90
- cancelText: "\u53D6\u6D88"
91
- }, /*#__PURE__*/React.createElement(_Button, {
92
- type: "primary",
93
- size: "large",
94
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null)
95
- }, "\u6253\u5370")) : /*#__PURE__*/React.createElement(_Button, {
96
- type: "primary",
97
- size: "large",
98
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
99
- disabled: !printId,
100
- onClick: function onClick() {
101
- extraEvents.handlePrint();
102
- }
103
- }, "\u6253\u5370");
104
- };
105
- return _this;
106
- }
107
- return AdmissionForm;
108
- }(BaseEditPanelForm);
8
+ import { map, get, set, dropRight, join, isNil, isEqual, isEmpty } from 'lodash';
9
+ import { message, Space, Popconfirm, Button } from 'antd';
10
+ import { PrinterOutlined } from '@ant-design/icons';
109
11
  var valueToApi = function valueToApi(values, nativeFormDescriptions) {
110
12
  var result = {};
111
- _map(nativeFormDescriptions, function (item, key) {
13
+ map(nativeFormDescriptions, function (item, key) {
112
14
  var inputType = item.inputType;
113
- var itemVaule = _get(values, key);
15
+ var itemVaule = get(values, key);
114
16
  switch (inputType) {
115
17
  case 'radio_input':
116
18
  var k = key.split('.').pop();
117
- _set(result, key, _get(itemVaule, "".concat(k)));
118
- _set(result, "".concat(key, "Note"), _get(itemVaule, "".concat(k, "Note")));
19
+ set(result, key, get(itemVaule, "".concat(k)));
20
+ set(result, "".concat(key, "Note"), get(itemVaule, "".concat(k, "Note")));
119
21
  break;
120
22
  case 'checkbox_with_single_input':
121
- _set(result, key, _get(itemVaule, 'key'));
122
- _set(result, "".concat(key, "Note"), _get(itemVaule, 'keyNote'));
23
+ set(result, key, get(itemVaule, 'key'));
24
+ set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
123
25
  break;
124
26
  case 'single_date_picker':
125
- _set(result, key, formatDateTime(itemVaule));
27
+ set(result, key, formatDateTime(itemVaule));
126
28
  break;
127
29
  case 'single_time_picker':
128
- _set(result, key, formatTime(itemVaule));
30
+ set(result, key, formatTime(itemVaule));
129
31
  break;
130
32
  case 'dictionary_select':
131
- _set(result, key, _get(itemVaule, 'key'));
132
- _set(result, "".concat(key, "Note"), _get(itemVaule, 'keyNote'));
33
+ set(result, key, get(itemVaule, 'key'));
34
+ set(result, "".concat(key, "Note"), get(itemVaule, 'keyNote'));
133
35
  break;
134
36
  case 'checkbox_with_input':
135
37
  var valueJson = safe_json_parse(itemVaule);
136
- _set(result, key, _get(valueJson, 'checkedValues.0'));
137
- _set(result, "".concat(key, "Note"), _get(valueJson, ['withInputValues', "".concat(_get(valueJson, 'checkedValues.0')), 'value', '0']));
38
+ set(result, key, get(valueJson, 'checkedValues.0'));
39
+ set(result, "".concat(key, "Note"), get(valueJson, ['withInputValues', "".concat(get(valueJson, 'checkedValues.0')), 'value', '0']));
138
40
  break;
139
41
  case 'knowledge_base':
140
- _set(result, key, _get(itemVaule, 'type'));
141
- _set(result, 'postoperationMissionsContent', _get(itemVaule, 'content'));
142
- _set(result, 'preoperativeMissionsKnowledgeId', _get(itemVaule, 'id'));
42
+ set(result, key, get(itemVaule, 'type'));
43
+ set(result, 'postoperationMissionsContent', get(itemVaule, 'content'));
44
+ set(result, 'preoperativeMissionsKnowledgeId', get(itemVaule, 'id'));
143
45
  break;
144
46
  case 'pressure':
145
47
  var pressure_arr = key.split('.');
146
48
  var pressure_key = void 0;
147
49
  if (pressure_arr.length > 1) {
148
- pressure_arr = _dropRight(pressure_arr, 1);
149
- pressure_key = _join(pressure_arr, '.');
150
- _set(result, "".concat(pressure_key, ".preoperativeSystolic"), _get(itemVaule, 'systolic'));
151
- _set(result, "".concat(pressure_key, ".preoperativeDiastolic"), _get(itemVaule, 'diastolic'));
50
+ pressure_arr = dropRight(pressure_arr, 1);
51
+ pressure_key = join(pressure_arr, '.');
52
+ set(result, "".concat(pressure_key, ".preoperativeSystolic"), get(itemVaule, 'systolic'));
53
+ set(result, "".concat(pressure_key, ".preoperativeDiastolic"), get(itemVaule, 'diastolic'));
152
54
  } else {
153
- _set(result, 'preoperativeSystolic', _get(itemVaule, 'systolic'));
154
- _set(result, 'preoperativeDiastolic', _get(itemVaule, 'diastolic'));
55
+ set(result, 'preoperativeSystolic', get(itemVaule, 'systolic'));
56
+ set(result, 'preoperativeDiastolic', get(itemVaule, 'diastolic'));
155
57
  }
156
58
  break;
157
59
  default:
158
- if (key === 'postoperationMissionsContent' && _get(result, 'postoperationMissionsContent')) {
159
- _set(result, key, _get(result, 'postoperationMissionsContent'));
60
+ if (key === 'postoperationMissionsContent' && get(result, 'postoperationMissionsContent')) {
61
+ set(result, key, get(result, 'postoperationMissionsContent'));
160
62
  } else {
161
- _set(result, key, itemVaule);
63
+ set(result, key, itemVaule);
162
64
  }
163
65
  break;
164
66
  }
@@ -166,67 +68,152 @@ var valueToApi = function valueToApi(values, nativeFormDescriptions) {
166
68
  return result;
167
69
  };
168
70
  var valueToForm = function valueToForm(values, nativeFormDescriptions) {
169
- _map(nativeFormDescriptions, function (item, key) {
71
+ map(nativeFormDescriptions, function (item, key) {
170
72
  var _a;
171
73
  var inputType = item.inputType;
172
- var itemVaule = _get(values, key);
74
+ var itemVaule = get(values, key);
173
75
  switch (inputType) {
174
76
  case 'checkbox_with_single_input':
175
- if (!_isNil(itemVaule)) {
176
- _set(values, "".concat(key, ".key"), itemVaule);
177
- _set(values, "".concat(key, ".keyNote"), _get(values, "".concat(key, "Note")));
77
+ if (!isNil(itemVaule)) {
78
+ set(values, "".concat(key, ".key"), itemVaule);
79
+ set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
178
80
  }
179
81
  break;
180
82
  case 'dictionary_select':
181
- if (!_isNil(itemVaule)) {
182
- _set(values, "".concat(key, ".key"), itemVaule);
183
- _set(values, "".concat(key, ".keyNote"), _get(values, "".concat(key, "Note")));
83
+ if (!isNil(itemVaule)) {
84
+ set(values, "".concat(key, ".key"), itemVaule);
85
+ set(values, "".concat(key, ".keyNote"), get(values, "".concat(key, "Note")));
184
86
  }
185
87
  break;
186
88
  case 'checkbox_with_input':
187
- if (!_isNil(itemVaule)) {
89
+ if (!isNil(itemVaule)) {
188
90
  var checkBoxValue = {
189
91
  checkedValues: [itemVaule],
190
92
  withInputValues: (_a = {}, _a[itemVaule] = {
191
93
  key: itemVaule,
192
94
  value: {
193
- '0': _get(values, "".concat(key, "Note"))
95
+ '0': get(values, "".concat(key, "Note"))
194
96
  }
195
97
  }, _a)
196
98
  };
197
- _set(values, key, safe_json_stringify(checkBoxValue));
99
+ set(values, key, safe_json_stringify(checkBoxValue));
198
100
  }
199
101
  break;
200
102
  case 'knowledge_base':
201
- if (!_isNil(itemVaule)) {
202
- _set(values, "".concat(key, ".type"), itemVaule);
203
- _set(values, "".concat(key, ".content"), _get(values, 'postoperationMissionsContent'));
103
+ if (!isNil(itemVaule)) {
104
+ set(values, "".concat(key, ".type"), itemVaule);
105
+ set(values, "".concat(key, ".content"), get(values, 'postoperationMissionsContent'));
204
106
  }
205
107
  break;
206
108
  case 'pressure':
207
- if (!_isNil(itemVaule)) {
109
+ if (!isNil(itemVaule)) {
208
110
  var pressure_arr = key.split('.');
209
111
  var pressure_key = void 0;
210
112
  if (pressure_arr.length > 1) {
211
- pressure_arr = _dropRight(pressure_arr, 1);
212
- pressure_key = _join(pressure_arr, '.');
213
- _set(values, "".concat(key, ".systolic"), itemVaule);
214
- _set(values, "".concat(key, ".diastolic"), _get(values, "".concat(pressure_key, ".preoperativeDiastolic")));
113
+ pressure_arr = dropRight(pressure_arr, 1);
114
+ pressure_key = join(pressure_arr, '.');
115
+ set(values, "".concat(key, ".systolic"), itemVaule);
116
+ set(values, "".concat(key, ".diastolic"), get(values, "".concat(pressure_key, ".preoperativeDiastolic")));
215
117
  } else {
216
- _set(values, "".concat(key, ".systolic"), itemVaule);
217
- _set(values, "".concat(key, ".diastolic"), _get(values, "preoperativeDiastolic"));
118
+ set(values, "".concat(key, ".systolic"), itemVaule);
119
+ set(values, "".concat(key, ".diastolic"), get(values, "preoperativeDiastolic"));
218
120
  }
219
121
  }
220
122
  break;
221
123
  default:
222
- if (!_isNil(itemVaule)) {
223
- _set(values, key, itemVaule);
124
+ if (!isNil(itemVaule)) {
125
+ set(values, key, itemVaule);
224
126
  }
225
127
  break;
226
128
  }
227
129
  });
228
130
  return values;
229
131
  };
132
+ var AdmissionForm$4 = function (_super) {
133
+ __extends(AdmissionForm, _super);
134
+ function AdmissionForm() {
135
+ var _this = _super !== null && _super.apply(this, arguments) || this;
136
+ _this.state = {
137
+ importModalVisible: false,
138
+ changeFlag: false
139
+ };
140
+ _this.confirm = function (e) {
141
+ return __awaiter(_this, void 0, void 0, function () {
142
+ var form, _a, onFinish, data;
143
+ return __generator(this, function (_b) {
144
+ form = this.form;
145
+ _a = this.props, onFinish = _a.onFinish, data = _a.data;
146
+ form && form.validateFields().then(function () {
147
+ var params = __assign(__assign({}, form.getFieldsValue()), {
148
+ id: get(data, 'id'),
149
+ isPrint: true
150
+ });
151
+ onFinish && onFinish(params);
152
+ })["catch"](function (error) {
153
+ message.error(get(error, 'errorFields.0.errors.0'));
154
+ form.scrollToField(get(error, 'errorFields.0.name.0'));
155
+ });
156
+ return [2];
157
+ });
158
+ });
159
+ };
160
+ _this.cancel = function (e) {
161
+ console.log(e);
162
+ };
163
+ _this.handleFieldsChange = function (changedFields, allFields) {
164
+ return __awaiter(_this, void 0, void 0, function () {
165
+ var changeFlag, data, changeValue, changeName, oldValue;
166
+ return __generator(this, function (_a) {
167
+ changeFlag = this.state.changeFlag;
168
+ if (!changeFlag) {
169
+ data = this.props.data;
170
+ changeValue = get(changedFields, '0.value');
171
+ changeName = get(changedFields, '0.name');
172
+ oldValue = get(data, changeName);
173
+ if (!isEqual(changeValue, oldValue)) {
174
+ this.setState({
175
+ changeFlag: true
176
+ });
177
+ }
178
+ }
179
+ return [2];
180
+ });
181
+ });
182
+ };
183
+ _this.renderBtns = function () {
184
+ return React.createElement(Space, {
185
+ size: "middle"
186
+ }, _this.renderSubmitBtn(), _this.renderPrintBtn());
187
+ };
188
+ _this.renderPrintBtn = function () {
189
+ var changeFlag = _this.state.changeFlag;
190
+ var _a = _this.props,
191
+ printId = _a.printId,
192
+ extraEvents = _a.extraEvents;
193
+ return changeFlag ? React.createElement(Popconfirm, {
194
+ title: "\u5F53\u524D\u5B58\u5728\u65B0\u6570\u636E\uFF0C\u662F\u5426\u4FDD\u5B58\u5E76\u6253\u5370\uFF1F",
195
+ onConfirm: _this.confirm,
196
+ onCancel: _this.cancel,
197
+ okText: "\u786E\u5B9A",
198
+ cancelText: "\u53D6\u6D88"
199
+ }, React.createElement(Button, {
200
+ type: "primary",
201
+ size: "large",
202
+ icon: React.createElement(PrinterOutlined, null)
203
+ }, "\u6253\u5370")) : React.createElement(Button, {
204
+ type: "primary",
205
+ size: "large",
206
+ icon: React.createElement(PrinterOutlined, null),
207
+ disabled: !printId,
208
+ onClick: function onClick() {
209
+ extraEvents.handlePrint();
210
+ }
211
+ }, "\u6253\u5370");
212
+ };
213
+ return _this;
214
+ }
215
+ return AdmissionForm;
216
+ }(BaseEditPanelForm);
230
217
  var AdmissionPanel$4 = function (_super) {
231
218
  __extends(AdmissionPanel, _super);
232
219
  function AdmissionPanel() {
@@ -255,23 +242,23 @@ var AdmissionPanel$4 = function (_super) {
255
242
  _a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
256
243
  _b = this.props, basicInfo = _b.basicInfo, _b.basicData;
257
244
  values = {};
258
- if (!_get(activeItem, 'id')) return [3, 2];
259
- return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(_get(activeItem, 'id'), "&operationName.equals=").concat(_get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
245
+ if (!get(activeItem, 'id')) return [3, 2];
246
+ return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(get(activeItem, 'id'), "&operationName.equals=").concat(get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
260
247
  case 1:
261
248
  values = _c.sent().data;
262
249
  _c.label = 2;
263
250
  case 2:
264
- values = _get(values, 'data.0');
251
+ values = get(values, 'data.0');
265
252
  data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
266
- formKey = _get(data, 'id') || Math.random();
267
- if (!_get(data, 'operationName')) _set(data, 'operationName', '刮宫术');
268
- if (!_get(data, 'surgicalDate')) _set(data, 'surgicalDate', dayjs(new Date()));
269
- if (!_get(data, 'appointmentPeople')) _set(data, 'appointmentPeople', _get(basicInfo, 'firstName'));
270
- if (!_get(data, 'surgicalDoctor')) _set(data, 'surgicalDoctor', _get(basicInfo, 'firstName'));
253
+ formKey = get(data, 'id') || Math.random();
254
+ if (!get(data, 'operationName')) set(data, 'operationName', '刮宫术');
255
+ if (!get(data, 'surgicalDate')) set(data, 'surgicalDate', dayjs(new Date()));
256
+ if (!get(data, 'appointmentPeople')) set(data, 'appointmentPeople', get(basicInfo, 'firstName'));
257
+ if (!get(data, 'surgicalDoctor')) set(data, 'surgicalDoctor', get(basicInfo, 'firstName'));
271
258
  this.setState({
272
259
  data: data,
273
260
  formKey: formKey,
274
- printId: _get(data, 'id')
261
+ printId: get(data, 'id')
275
262
  });
276
263
  return [2];
277
264
  }
@@ -287,25 +274,25 @@ var AdmissionPanel$4 = function (_super) {
287
274
  case 0:
288
275
  _a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
289
276
  _b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
290
- preoperativeExamination = _get(data, 'preoperativeExamination');
277
+ preoperativeExamination = get(data, 'preoperativeExamination');
291
278
  params = valueToApi(values, formDescriptionsWithoutSection);
292
- _set(params, 'preoperativeExamination.id', _get(preoperativeExamination, 'id'));
279
+ set(params, 'preoperativeExamination.id', get(preoperativeExamination, 'id'));
293
280
  params = __assign(__assign(__assign({}, data), params), {
294
281
  familyPlanningId: Number(id),
295
282
  progressStatus: 4
296
283
  });
297
- if (!_get(params, 'operationTimeEnd')) {
298
- _message.error('手术起止时间是必填项');
284
+ if (!get(params, 'operationTimeEnd')) {
285
+ mchcEnv.error('手术起止时间是必填项');
299
286
  return [2];
300
287
  }
301
- if (!_get(values, 'id')) return [3, 2];
288
+ if (!get(values, 'id')) return [3, 2];
302
289
  return [4, fubaoRequest.put('/api/family/planning/updateEarlyPregnancyCheckSurgicalType', params)];
303
290
  case 1:
304
291
  res_1 = _c.sent().data;
305
- if (_get(res_1, 'code') === 1) {
306
- _message.success(_get(res_1, 'msg'), 0.5).then(function () {
307
- if (_get(values, 'isPrint')) {
308
- _this.handlePrint(_get(res_1, 'data.id'));
292
+ if (get(res_1, 'code') === 1) {
293
+ mchcEnv.success(get(res_1, 'msg'), 0.5).then(function () {
294
+ if (get(values, 'isPrint')) {
295
+ _this.handlePrint(get(res_1, 'data.id'));
309
296
  }
310
297
  });
311
298
  }
@@ -318,10 +305,10 @@ var AdmissionPanel$4 = function (_super) {
318
305
  return [4, fubaoRequest.post(baseUrl, params)];
319
306
  case 3:
320
307
  res_2 = _c.sent().data;
321
- if (_get(res_2, 'code') === 1) {
322
- _message.success(_get(res_2, 'msg'), 0.5).then(function () {
323
- if (_get(values, 'isPrint')) {
324
- _this.handlePrint(_get(res_2, 'data.id'));
308
+ if (get(res_2, 'code') === 1) {
309
+ mchcEnv.success(get(res_2, 'msg'), 0.5).then(function () {
310
+ if (get(values, 'isPrint')) {
311
+ _this.handlePrint(get(res_2, 'data.id'));
325
312
  }
326
313
  });
327
314
  }
@@ -362,7 +349,7 @@ var AdmissionPanel$4 = function (_super) {
362
349
  AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
363
350
  var activeItem = nextProps.activeItem,
364
351
  activeTemplate = nextProps.activeTemplate;
365
- if (!_isEqual(activeItem, prevState.activeItem)) {
352
+ if (!isEqual(activeItem, prevState.activeItem)) {
366
353
  return {
367
354
  activeItem: activeItem,
368
355
  activeTemplate: activeTemplate
@@ -371,7 +358,7 @@ var AdmissionPanel$4 = function (_super) {
371
358
  return null;
372
359
  };
373
360
  AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
374
- if (!_isEmpty(_get(prevState, 'activeItem')) && !_isEqual(_get(prevState, 'activeItem'), _get(this.state, 'activeItem'))) {
361
+ if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
375
362
  this.handleInit();
376
363
  }
377
364
  };
@@ -426,13 +413,13 @@ var AdmissionForm$3 = function (_super) {
426
413
  _a = this.props, onFinish = _a.onFinish, data = _a.data;
427
414
  form && form.validateFields().then(function () {
428
415
  var params = __assign(__assign({}, form.getFieldsValue()), {
429
- id: _get(data, 'id'),
416
+ id: get(data, 'id'),
430
417
  isPrint: true
431
418
  });
432
419
  onFinish && onFinish(params);
433
420
  })["catch"](function (error) {
434
- _message.error(_get(error, 'errorFields.0.errors.0'));
435
- form.scrollToField(_get(error, 'errorFields.0.name.0'));
421
+ message.error(get(error, 'errorFields.0.errors.0'));
422
+ form.scrollToField(get(error, 'errorFields.0.name.0'));
436
423
  });
437
424
  return [2];
438
425
  });
@@ -448,10 +435,10 @@ var AdmissionForm$3 = function (_super) {
448
435
  changeFlag = this.state.changeFlag;
449
436
  if (!changeFlag) {
450
437
  data = this.props.data;
451
- changeValue = _get(changedFields, '0.value');
452
- changeName = _get(changedFields, '0.name');
453
- oldValue = _get(data, changeName);
454
- if (!_isEqual(changeValue, oldValue)) {
438
+ changeValue = get(changedFields, '0.value');
439
+ changeName = get(changedFields, '0.name');
440
+ oldValue = get(data, changeName);
441
+ if (!isEqual(changeValue, oldValue)) {
455
442
  this.setState({
456
443
  changeFlag: true
457
444
  });
@@ -462,7 +449,7 @@ var AdmissionForm$3 = function (_super) {
462
449
  });
463
450
  };
464
451
  _this.renderBtns = function () {
465
- return /*#__PURE__*/React.createElement(_Space, {
452
+ return React.createElement(Space, {
466
453
  size: "middle"
467
454
  }, _this.renderSubmitBtn(), _this.renderPrintBtn());
468
455
  };
@@ -471,20 +458,20 @@ var AdmissionForm$3 = function (_super) {
471
458
  var _a = _this.props,
472
459
  printId = _a.printId,
473
460
  extraEvents = _a.extraEvents;
474
- return changeFlag ? /*#__PURE__*/React.createElement(_Popconfirm, {
461
+ return changeFlag ? React.createElement(Popconfirm, {
475
462
  title: "\u5F53\u524D\u5B58\u5728\u65B0\u6570\u636E\uFF0C\u662F\u5426\u4FDD\u5B58\u5E76\u6253\u5370\uFF1F",
476
463
  onConfirm: _this.confirm,
477
464
  onCancel: _this.cancel,
478
465
  okText: "\u786E\u5B9A",
479
466
  cancelText: "\u53D6\u6D88"
480
- }, /*#__PURE__*/React.createElement(_Button, {
467
+ }, React.createElement(Button, {
481
468
  type: "primary",
482
469
  size: "large",
483
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null)
484
- }, "\u6253\u5370")) : /*#__PURE__*/React.createElement(_Button, {
470
+ icon: React.createElement(PrinterOutlined, null)
471
+ }, "\u6253\u5370")) : React.createElement(Button, {
485
472
  type: "primary",
486
473
  size: "large",
487
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
474
+ icon: React.createElement(PrinterOutlined, null),
488
475
  disabled: !printId,
489
476
  onClick: function onClick() {
490
477
  extraEvents.handlePrint();
@@ -523,23 +510,23 @@ var AdmissionPanel$3 = function (_super) {
523
510
  _a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
524
511
  _b = this.props, basicInfo = _b.basicInfo, _b.basicData;
525
512
  values = {};
526
- if (!_get(activeItem, 'id')) return [3, 2];
527
- return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(_get(activeItem, 'id'), "&operationName.equals=").concat(_get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
513
+ if (!get(activeItem, 'id')) return [3, 2];
514
+ return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(get(activeItem, 'id'), "&operationName.equals=").concat(get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
528
515
  case 1:
529
516
  values = _c.sent().data;
530
517
  _c.label = 2;
531
518
  case 2:
532
- values = _get(values, 'data.0');
519
+ values = get(values, 'data.0');
533
520
  data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
534
- formKey = _get(data, 'id') || Math.random();
535
- if (!_get(data, 'operationName')) _set(data, 'operationName', '宫内避孕器放置术');
536
- if (!_get(data, 'surgicalDate')) _set(data, 'surgicalDate', dayjs(new Date()));
537
- if (!_get(data, 'appointmentPeople')) _set(data, 'appointmentPeople', _get(basicInfo, 'firstName'));
538
- if (!_get(data, 'surgicalDoctor')) _set(data, 'surgicalDoctor', _get(basicInfo, 'firstName'));
521
+ formKey = get(data, 'id') || Math.random();
522
+ if (!get(data, 'operationName')) set(data, 'operationName', '宫内避孕器放置术');
523
+ if (!get(data, 'surgicalDate')) set(data, 'surgicalDate', dayjs(new Date()));
524
+ if (!get(data, 'appointmentPeople')) set(data, 'appointmentPeople', get(basicInfo, 'firstName'));
525
+ if (!get(data, 'surgicalDoctor')) set(data, 'surgicalDoctor', get(basicInfo, 'firstName'));
539
526
  this.setState({
540
527
  data: data,
541
528
  formKey: formKey,
542
- printId: _get(data, 'id')
529
+ printId: get(data, 'id')
543
530
  });
544
531
  return [2];
545
532
  }
@@ -555,25 +542,25 @@ var AdmissionPanel$3 = function (_super) {
555
542
  case 0:
556
543
  _a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
557
544
  _b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
558
- preoperativeExamination = _get(data, 'preoperativeExamination');
545
+ preoperativeExamination = get(data, 'preoperativeExamination');
559
546
  params = valueToApi(values, formDescriptionsWithoutSection);
560
- _set(params, 'preoperativeExamination.id', _get(preoperativeExamination, 'id'));
547
+ set(params, 'preoperativeExamination.id', get(preoperativeExamination, 'id'));
561
548
  params = __assign(__assign(__assign({}, data), params), {
562
549
  familyPlanningId: Number(id),
563
550
  progressStatus: 4
564
551
  });
565
- if (!_get(params, 'operationTimeEnd')) {
566
- _message.error('手术起止时间是必填项');
552
+ if (!get(params, 'operationTimeEnd')) {
553
+ mchcEnv.error('手术起止时间是必填项');
567
554
  return [2];
568
555
  }
569
- if (!_get(values, 'id')) return [3, 2];
556
+ if (!get(values, 'id')) return [3, 2];
570
557
  return [4, fubaoRequest.put('/api/family/planning/updateEarlyPregnancyCheckSurgicalType', params)];
571
558
  case 1:
572
559
  res_1 = _c.sent().data;
573
- if (_get(res_1, 'code') === 1) {
574
- _message.success(_get(res_1, 'msg'), 0.5).then(function () {
575
- if (_get(values, 'isPrint')) {
576
- _this._handlePrint(_get(res_1, 'data.id'));
560
+ if (get(res_1, 'code') === 1) {
561
+ mchcEnv.success(get(res_1, 'msg'), 0.5).then(function () {
562
+ if (get(values, 'isPrint')) {
563
+ _this._handlePrint(get(res_1, 'data.id'));
577
564
  }
578
565
  });
579
566
  }
@@ -586,10 +573,10 @@ var AdmissionPanel$3 = function (_super) {
586
573
  return [4, fubaoRequest.post(baseUrl, params)];
587
574
  case 3:
588
575
  res_2 = _c.sent().data;
589
- if (_get(res_2, 'code') === 1) {
590
- _message.success(_get(res_2, 'msg'), 0.5).then(function () {
591
- if (_get(values, 'isPrint')) {
592
- _this._handlePrint(_get(res_2, 'data.id'));
576
+ if (get(res_2, 'code') === 1) {
577
+ mchcEnv.success(get(res_2, 'msg'), 0.5).then(function () {
578
+ if (get(values, 'isPrint')) {
579
+ _this._handlePrint(get(res_2, 'data.id'));
593
580
  }
594
581
  });
595
582
  }
@@ -628,7 +615,7 @@ var AdmissionPanel$3 = function (_super) {
628
615
  AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
629
616
  var activeItem = nextProps.activeItem,
630
617
  activeTemplate = nextProps.activeTemplate;
631
- if (!_isEqual(activeItem, prevState.activeItem)) {
618
+ if (!isEqual(activeItem, prevState.activeItem)) {
632
619
  return {
633
620
  activeItem: activeItem,
634
621
  activeTemplate: activeTemplate
@@ -637,7 +624,7 @@ var AdmissionPanel$3 = function (_super) {
637
624
  return null;
638
625
  };
639
626
  AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
640
- if (!_isEmpty(_get(prevState, 'activeItem')) && !_isEqual(_get(prevState, 'activeItem'), _get(this.state, 'activeItem'))) {
627
+ if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
641
628
  this.handleInit();
642
629
  }
643
630
  };
@@ -692,13 +679,13 @@ var AdmissionForm$2 = function (_super) {
692
679
  _a = this.props, onFinish = _a.onFinish, data = _a.data;
693
680
  form && form.validateFields().then(function () {
694
681
  var params = __assign(__assign({}, form.getFieldsValue()), {
695
- id: _get(data, 'id'),
682
+ id: get(data, 'id'),
696
683
  isPrint: true
697
684
  });
698
685
  onFinish && onFinish(params);
699
686
  })["catch"](function (error) {
700
- _message.error(_get(error, 'errorFields.0.errors.0'));
701
- form.scrollToField(_get(error, 'errorFields.0.name.0'));
687
+ message.error(get(error, 'errorFields.0.errors.0'));
688
+ form.scrollToField(get(error, 'errorFields.0.name.0'));
702
689
  });
703
690
  return [2];
704
691
  });
@@ -714,10 +701,10 @@ var AdmissionForm$2 = function (_super) {
714
701
  changeFlag = this.state.changeFlag;
715
702
  if (!changeFlag) {
716
703
  data = this.props.data;
717
- changeValue = _get(changedFields, '0.value');
718
- changeName = _get(changedFields, '0.name');
719
- oldValue = _get(data, changeName);
720
- if (!_isEqual(changeValue, oldValue)) {
704
+ changeValue = get(changedFields, '0.value');
705
+ changeName = get(changedFields, '0.name');
706
+ oldValue = get(data, changeName);
707
+ if (!isEqual(changeValue, oldValue)) {
721
708
  this.setState({
722
709
  changeFlag: true
723
710
  });
@@ -728,7 +715,7 @@ var AdmissionForm$2 = function (_super) {
728
715
  });
729
716
  };
730
717
  _this.renderBtns = function () {
731
- return /*#__PURE__*/React.createElement(_Space, {
718
+ return React.createElement(Space, {
732
719
  size: "middle"
733
720
  }, _this.renderSubmitBtn(), _this.renderPrintBtn());
734
721
  };
@@ -737,20 +724,20 @@ var AdmissionForm$2 = function (_super) {
737
724
  var _a = _this.props,
738
725
  printId = _a.printId,
739
726
  extraEvents = _a.extraEvents;
740
- return changeFlag ? /*#__PURE__*/React.createElement(_Popconfirm, {
727
+ return changeFlag ? React.createElement(Popconfirm, {
741
728
  title: "\u5F53\u524D\u5B58\u5728\u65B0\u6570\u636E\uFF0C\u662F\u5426\u4FDD\u5B58\u5E76\u6253\u5370\uFF1F",
742
729
  onConfirm: _this.confirm,
743
730
  onCancel: _this.cancel,
744
731
  okText: "\u786E\u5B9A",
745
732
  cancelText: "\u53D6\u6D88"
746
- }, /*#__PURE__*/React.createElement(_Button, {
733
+ }, React.createElement(Button, {
747
734
  type: "primary",
748
735
  size: "large",
749
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null)
750
- }, "\u6253\u5370")) : /*#__PURE__*/React.createElement(_Button, {
736
+ icon: React.createElement(PrinterOutlined, null)
737
+ }, "\u6253\u5370")) : React.createElement(Button, {
751
738
  type: "primary",
752
739
  size: "large",
753
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
740
+ icon: React.createElement(PrinterOutlined, null),
754
741
  disabled: !printId,
755
742
  onClick: function onClick() {
756
743
  extraEvents.handlePrint();
@@ -789,23 +776,23 @@ var AdmissionPanel$2 = function (_super) {
789
776
  _a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
790
777
  _b = this.props, basicInfo = _b.basicInfo, _b.basicData;
791
778
  values = {};
792
- if (!_get(activeItem, 'id')) return [3, 2];
793
- return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(_get(activeItem, 'id'), "&operationName.equals=").concat(_get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
779
+ if (!get(activeItem, 'id')) return [3, 2];
780
+ return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(get(activeItem, 'id'), "&operationName.equals=").concat(get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
794
781
  case 1:
795
782
  values = _c.sent().data;
796
783
  _c.label = 2;
797
784
  case 2:
798
- values = _get(values, 'data.0');
785
+ values = get(values, 'data.0');
799
786
  data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
800
- formKey = _get(data, 'id') || Math.random();
801
- if (!_get(data, 'operationName')) _set(data, 'operationName', '宫内节育器取出术');
802
- if (!_get(data, 'surgicalDate')) _set(data, 'surgicalDate', dayjs(new Date()));
803
- if (!_get(data, 'appointmentPeople')) _set(data, 'appointmentPeople', _get(basicInfo, 'firstName'));
804
- if (!_get(data, 'surgicalDoctor')) _set(data, 'surgicalDoctor', _get(basicInfo, 'firstName'));
787
+ formKey = get(data, 'id') || Math.random();
788
+ if (!get(data, 'operationName')) set(data, 'operationName', '宫内节育器取出术');
789
+ if (!get(data, 'surgicalDate')) set(data, 'surgicalDate', dayjs(new Date()));
790
+ if (!get(data, 'appointmentPeople')) set(data, 'appointmentPeople', get(basicInfo, 'firstName'));
791
+ if (!get(data, 'surgicalDoctor')) set(data, 'surgicalDoctor', get(basicInfo, 'firstName'));
805
792
  this.setState({
806
793
  data: data,
807
794
  formKey: formKey,
808
- printId: _get(data, 'id')
795
+ printId: get(data, 'id')
809
796
  });
810
797
  return [2];
811
798
  }
@@ -821,25 +808,25 @@ var AdmissionPanel$2 = function (_super) {
821
808
  case 0:
822
809
  _a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
823
810
  _b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
824
- preoperativeExamination = _get(data, 'preoperativeExamination');
811
+ preoperativeExamination = get(data, 'preoperativeExamination');
825
812
  params = valueToApi(values, formDescriptionsWithoutSection);
826
- _set(params, 'preoperativeExamination.id', _get(preoperativeExamination, 'id'));
813
+ set(params, 'preoperativeExamination.id', get(preoperativeExamination, 'id'));
827
814
  params = __assign(__assign(__assign({}, data), params), {
828
815
  familyPlanningId: Number(id),
829
816
  progressStatus: 4
830
817
  });
831
- if (!_get(params, 'operationTimeEnd')) {
832
- _message.error('手术起止时间是必填项');
818
+ if (!get(params, 'operationTimeEnd')) {
819
+ mchcEnv.error('手术起止时间是必填项');
833
820
  return [2];
834
821
  }
835
- if (!_get(values, 'id')) return [3, 2];
822
+ if (!get(values, 'id')) return [3, 2];
836
823
  return [4, fubaoRequest.put('/api/family/planning/updateEarlyPregnancyCheckSurgicalType', params)];
837
824
  case 1:
838
825
  res_1 = _c.sent().data;
839
- if (_get(res_1, 'code') === 1) {
840
- _message.success(_get(res_1, 'msg'), 0.5).then(function () {
841
- if (_get(values, 'isPrint')) {
842
- _this._handlePrint(_get(res_1, 'data.id'));
826
+ if (get(res_1, 'code') === 1) {
827
+ mchcEnv.success(get(res_1, 'msg'), 0.5).then(function () {
828
+ if (get(values, 'isPrint')) {
829
+ _this._handlePrint(get(res_1, 'data.id'));
843
830
  }
844
831
  });
845
832
  }
@@ -852,10 +839,10 @@ var AdmissionPanel$2 = function (_super) {
852
839
  return [4, fubaoRequest.post(baseUrl, params)];
853
840
  case 3:
854
841
  res_2 = _c.sent().data;
855
- if (_get(res_2, 'code') === 1) {
856
- _message.success(_get(res_2, 'msg'), 0.5).then(function () {
857
- if (_get(values, 'isPrint')) {
858
- _this._handlePrint(_get(res_2, 'data.id'));
842
+ if (get(res_2, 'code') === 1) {
843
+ mchcEnv.success(get(res_2, 'msg'), 0.5).then(function () {
844
+ if (get(values, 'isPrint')) {
845
+ _this._handlePrint(get(res_2, 'data.id'));
859
846
  }
860
847
  });
861
848
  }
@@ -894,7 +881,7 @@ var AdmissionPanel$2 = function (_super) {
894
881
  AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
895
882
  var activeItem = nextProps.activeItem,
896
883
  activeTemplate = nextProps.activeTemplate;
897
- if (!_isEqual(activeItem, prevState.activeItem)) {
884
+ if (!isEqual(activeItem, prevState.activeItem)) {
898
885
  return {
899
886
  activeItem: activeItem,
900
887
  activeTemplate: activeTemplate
@@ -903,7 +890,7 @@ var AdmissionPanel$2 = function (_super) {
903
890
  return null;
904
891
  };
905
892
  AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
906
- if (!_isEmpty(_get(prevState, 'activeItem')) && !_isEqual(_get(prevState, 'activeItem'), _get(this.state, 'activeItem'))) {
893
+ if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
907
894
  this.handleInit();
908
895
  }
909
896
  };
@@ -958,13 +945,13 @@ var AdmissionForm$1 = function (_super) {
958
945
  _a = this.props, onFinish = _a.onFinish, data = _a.data;
959
946
  form && form.validateFields().then(function () {
960
947
  var params = __assign(__assign({}, form.getFieldsValue()), {
961
- id: _get(data, 'id'),
948
+ id: get(data, 'id'),
962
949
  isPrint: true
963
950
  });
964
951
  onFinish && onFinish(params);
965
952
  })["catch"](function (error) {
966
- _message.error(_get(error, 'errorFields.0.errors.0'));
967
- form.scrollToField(_get(error, 'errorFields.0.name.0'));
953
+ message.error(get(error, 'errorFields.0.errors.0'));
954
+ form.scrollToField(get(error, 'errorFields.0.name.0'));
968
955
  });
969
956
  return [2];
970
957
  });
@@ -980,10 +967,10 @@ var AdmissionForm$1 = function (_super) {
980
967
  changeFlag = this.state.changeFlag;
981
968
  if (!changeFlag) {
982
969
  data = this.props.data;
983
- changeValue = _get(changedFields, '0.value');
984
- changeName = _get(changedFields, '0.name');
985
- oldValue = _get(data, changeName);
986
- if (!_isEqual(changeValue, oldValue)) {
970
+ changeValue = get(changedFields, '0.value');
971
+ changeName = get(changedFields, '0.name');
972
+ oldValue = get(data, changeName);
973
+ if (!isEqual(changeValue, oldValue)) {
987
974
  this.setState({
988
975
  changeFlag: true
989
976
  });
@@ -994,7 +981,7 @@ var AdmissionForm$1 = function (_super) {
994
981
  });
995
982
  };
996
983
  _this.renderBtns = function () {
997
- return /*#__PURE__*/React.createElement(_Space, {
984
+ return React.createElement(Space, {
998
985
  size: "middle"
999
986
  }, _this.renderSubmitBtn(), _this.renderPrintBtn());
1000
987
  };
@@ -1003,20 +990,20 @@ var AdmissionForm$1 = function (_super) {
1003
990
  var _a = _this.props,
1004
991
  printId = _a.printId,
1005
992
  extraEvents = _a.extraEvents;
1006
- return changeFlag ? /*#__PURE__*/React.createElement(_Popconfirm, {
993
+ return changeFlag ? React.createElement(Popconfirm, {
1007
994
  title: "\u5F53\u524D\u5B58\u5728\u65B0\u6570\u636E\uFF0C\u662F\u5426\u4FDD\u5B58\u5E76\u6253\u5370\uFF1F",
1008
995
  onConfirm: _this.confirm,
1009
996
  onCancel: _this.cancel,
1010
997
  okText: "\u786E\u5B9A",
1011
998
  cancelText: "\u53D6\u6D88"
1012
- }, /*#__PURE__*/React.createElement(_Button, {
999
+ }, React.createElement(Button, {
1013
1000
  type: "primary",
1014
1001
  size: "large",
1015
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null)
1016
- }, "\u6253\u5370")) : /*#__PURE__*/React.createElement(_Button, {
1002
+ icon: React.createElement(PrinterOutlined, null)
1003
+ }, "\u6253\u5370")) : React.createElement(Button, {
1017
1004
  type: "primary",
1018
1005
  size: "large",
1019
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
1006
+ icon: React.createElement(PrinterOutlined, null),
1020
1007
  disabled: !printId,
1021
1008
  onClick: function onClick() {
1022
1009
  extraEvents.handlePrint();
@@ -1055,23 +1042,23 @@ var AdmissionPanel$1 = function (_super) {
1055
1042
  _a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
1056
1043
  _b = this.props, basicInfo = _b.basicInfo, _b.basicData;
1057
1044
  values = {};
1058
- if (!_get(activeItem, 'id')) return [3, 2];
1059
- return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(_get(activeItem, 'id'), "&operationName.equals=").concat(_get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
1045
+ if (!get(activeItem, 'id')) return [3, 2];
1046
+ return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(get(activeItem, 'id'), "&operationName.equals=").concat(get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
1060
1047
  case 1:
1061
1048
  values = _c.sent().data;
1062
1049
  _c.label = 2;
1063
1050
  case 2:
1064
- values = _get(values, 'data.0');
1051
+ values = get(values, 'data.0');
1065
1052
  data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
1066
- formKey = _get(data, 'id') || Math.random();
1067
- if (!_get(data, 'operationName')) _set(data, 'operationName', '子宫输卵管通液术');
1068
- if (!_get(data, 'surgicalDate')) _set(data, 'surgicalDate', dayjs(new Date()));
1069
- if (!_get(data, 'appointmentPeople')) _set(data, 'appointmentPeople', _get(basicInfo, 'firstName'));
1070
- if (!_get(data, 'surgicalDoctor')) _set(data, 'surgicalDoctor', _get(basicInfo, 'firstName'));
1053
+ formKey = get(data, 'id') || Math.random();
1054
+ if (!get(data, 'operationName')) set(data, 'operationName', '子宫输卵管通液术');
1055
+ if (!get(data, 'surgicalDate')) set(data, 'surgicalDate', dayjs(new Date()));
1056
+ if (!get(data, 'appointmentPeople')) set(data, 'appointmentPeople', get(basicInfo, 'firstName'));
1057
+ if (!get(data, 'surgicalDoctor')) set(data, 'surgicalDoctor', get(basicInfo, 'firstName'));
1071
1058
  this.setState({
1072
1059
  data: data,
1073
1060
  formKey: formKey,
1074
- printId: _get(data, 'id')
1061
+ printId: get(data, 'id')
1075
1062
  });
1076
1063
  return [2];
1077
1064
  }
@@ -1087,25 +1074,25 @@ var AdmissionPanel$1 = function (_super) {
1087
1074
  case 0:
1088
1075
  _a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
1089
1076
  _b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
1090
- preoperativeExamination = _get(data, 'preoperativeExamination');
1077
+ preoperativeExamination = get(data, 'preoperativeExamination');
1091
1078
  params = valueToApi(values, formDescriptionsWithoutSection);
1092
- _set(params, 'preoperativeExamination.id', _get(preoperativeExamination, 'id'));
1079
+ set(params, 'preoperativeExamination.id', get(preoperativeExamination, 'id'));
1093
1080
  params = __assign(__assign(__assign({}, data), params), {
1094
1081
  familyPlanningId: Number(id),
1095
1082
  progressStatus: 4
1096
1083
  });
1097
- if (!_get(params, 'operationTimeEnd')) {
1098
- _message.error('手术起止时间是必填项');
1084
+ if (!get(params, 'operationTimeEnd')) {
1085
+ mchcEnv.error('手术起止时间是必填项');
1099
1086
  return [2];
1100
1087
  }
1101
- if (!_get(values, 'id')) return [3, 2];
1088
+ if (!get(values, 'id')) return [3, 2];
1102
1089
  return [4, fubaoRequest.put('/api/family/planning/updateEarlyPregnancyCheckSurgicalType', params)];
1103
1090
  case 1:
1104
1091
  res_1 = _c.sent().data;
1105
- if (_get(res_1, 'code') === 1) {
1106
- _message.success(_get(res_1, 'msg'), 0.5).then(function () {
1107
- if (_get(values, 'isPrint')) {
1108
- _this._handlePrint(_get(res_1, 'data.id'));
1092
+ if (get(res_1, 'code') === 1) {
1093
+ mchcEnv.success(get(res_1, 'msg'), 0.5).then(function () {
1094
+ if (get(values, 'isPrint')) {
1095
+ _this._handlePrint(get(res_1, 'data.id'));
1109
1096
  }
1110
1097
  });
1111
1098
  }
@@ -1118,10 +1105,10 @@ var AdmissionPanel$1 = function (_super) {
1118
1105
  return [4, fubaoRequest.post(baseUrl, params)];
1119
1106
  case 3:
1120
1107
  res_2 = _c.sent().data;
1121
- if (_get(res_2, 'code') === 1) {
1122
- _message.success(_get(res_2, 'msg'), 0.5).then(function () {
1123
- if (_get(values, 'isPrint')) {
1124
- _this._handlePrint(_get(res_2, 'data.id'));
1108
+ if (get(res_2, 'code') === 1) {
1109
+ mchcEnv.success(get(res_2, 'msg'), 0.5).then(function () {
1110
+ if (get(values, 'isPrint')) {
1111
+ _this._handlePrint(get(res_2, 'data.id'));
1125
1112
  }
1126
1113
  });
1127
1114
  }
@@ -1160,7 +1147,7 @@ var AdmissionPanel$1 = function (_super) {
1160
1147
  AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
1161
1148
  var activeItem = nextProps.activeItem,
1162
1149
  activeTemplate = nextProps.activeTemplate;
1163
- if (!_isEqual(activeItem, prevState.activeItem)) {
1150
+ if (!isEqual(activeItem, prevState.activeItem)) {
1164
1151
  return {
1165
1152
  activeItem: activeItem,
1166
1153
  activeTemplate: activeTemplate
@@ -1169,7 +1156,7 @@ var AdmissionPanel$1 = function (_super) {
1169
1156
  return null;
1170
1157
  };
1171
1158
  AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
1172
- if (!_isEmpty(_get(prevState, 'activeItem')) && !_isEqual(_get(prevState, 'activeItem'), _get(this.state, 'activeItem'))) {
1159
+ if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
1173
1160
  this.handleInit();
1174
1161
  }
1175
1162
  };
@@ -1224,13 +1211,13 @@ var AdmissionForm = function (_super) {
1224
1211
  _a = this.props, onFinish = _a.onFinish, data = _a.data;
1225
1212
  form && form.validateFields().then(function () {
1226
1213
  var params = __assign(__assign({}, form.getFieldsValue()), {
1227
- id: _get(data, 'id'),
1214
+ id: get(data, 'id'),
1228
1215
  isPrint: true
1229
1216
  });
1230
1217
  onFinish && onFinish(params);
1231
1218
  })["catch"](function (error) {
1232
- _message.error(_get(error, 'errorFields.0.errors.0'));
1233
- form.scrollToField(_get(error, 'errorFields.0.name.0'));
1219
+ message.error(get(error, 'errorFields.0.errors.0'));
1220
+ form.scrollToField(get(error, 'errorFields.0.name.0'));
1234
1221
  });
1235
1222
  return [2];
1236
1223
  });
@@ -1246,10 +1233,10 @@ var AdmissionForm = function (_super) {
1246
1233
  changeFlag = this.state.changeFlag;
1247
1234
  if (!changeFlag) {
1248
1235
  data = this.props.data;
1249
- changeValue = _get(changedFields, '0.value');
1250
- changeName = _get(changedFields, '0.name');
1251
- oldValue = _get(data, changeName);
1252
- if (!_isEqual(changeValue, oldValue)) {
1236
+ changeValue = get(changedFields, '0.value');
1237
+ changeName = get(changedFields, '0.name');
1238
+ oldValue = get(data, changeName);
1239
+ if (!isEqual(changeValue, oldValue)) {
1253
1240
  this.setState({
1254
1241
  changeFlag: true
1255
1242
  });
@@ -1260,7 +1247,7 @@ var AdmissionForm = function (_super) {
1260
1247
  });
1261
1248
  };
1262
1249
  _this.renderBtns = function () {
1263
- return /*#__PURE__*/React.createElement(_Space, {
1250
+ return React.createElement(Space, {
1264
1251
  size: "middle"
1265
1252
  }, _this.renderSubmitBtn(), _this.renderPrintBtn());
1266
1253
  };
@@ -1269,20 +1256,20 @@ var AdmissionForm = function (_super) {
1269
1256
  var _a = _this.props,
1270
1257
  printId = _a.printId,
1271
1258
  extraEvents = _a.extraEvents;
1272
- return changeFlag ? /*#__PURE__*/React.createElement(_Popconfirm, {
1259
+ return changeFlag ? React.createElement(Popconfirm, {
1273
1260
  title: "\u5F53\u524D\u5B58\u5728\u65B0\u6570\u636E\uFF0C\u662F\u5426\u4FDD\u5B58\u5E76\u6253\u5370\uFF1F",
1274
1261
  onConfirm: _this.confirm,
1275
1262
  onCancel: _this.cancel,
1276
1263
  okText: "\u786E\u5B9A",
1277
1264
  cancelText: "\u53D6\u6D88"
1278
- }, /*#__PURE__*/React.createElement(_Button, {
1265
+ }, React.createElement(Button, {
1279
1266
  type: "primary",
1280
1267
  size: "large",
1281
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null)
1282
- }, "\u6253\u5370")) : /*#__PURE__*/React.createElement(_Button, {
1268
+ icon: React.createElement(PrinterOutlined, null)
1269
+ }, "\u6253\u5370")) : React.createElement(Button, {
1283
1270
  type: "primary",
1284
1271
  size: "large",
1285
- icon: /*#__PURE__*/React.createElement(PrinterOutlined, null),
1272
+ icon: React.createElement(PrinterOutlined, null),
1286
1273
  disabled: !printId,
1287
1274
  onClick: function onClick() {
1288
1275
  extraEvents.handlePrint();
@@ -1321,23 +1308,23 @@ var AdmissionPanel = function (_super) {
1321
1308
  _a = this.state, activeItem = _a.activeItem, formDescriptionsWithoutSection = _a.formDescriptionsWithoutSection;
1322
1309
  _b = this.props, basicInfo = _b.basicInfo, _b.basicData;
1323
1310
  values = {};
1324
- if (!_get(activeItem, 'id')) return [3, 2];
1325
- return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(_get(activeItem, 'id'), "&operationName.equals=").concat(_get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
1311
+ if (!get(activeItem, 'id')) return [3, 2];
1312
+ return [4, fubaoRequest.get("/api/family/planning/getEarlyPregnancyCheckSurgicalType?id.equals=".concat(get(activeItem, 'id'), "&operationName.equals=").concat(get(activeItem, 'operationName'), "&deleteFlag.equals=0"))];
1326
1313
  case 1:
1327
1314
  values = _c.sent().data;
1328
1315
  _c.label = 2;
1329
1316
  case 2:
1330
- values = _get(values, 'data.0');
1317
+ values = get(values, 'data.0');
1331
1318
  data = values ? valueToForm(values, formDescriptionsWithoutSection) : {};
1332
- formKey = _get(data, 'id') || Math.random();
1333
- if (!_get(data, 'operationName')) _set(data, 'operationName', '人工流产');
1334
- if (!_get(data, 'surgicalDate')) _set(data, 'surgicalDate', dayjs(new Date()));
1335
- if (!_get(data, 'appointmentPeople')) _set(data, 'appointmentPeople', _get(basicInfo, 'firstName'));
1336
- if (!_get(data, 'surgicalDoctor')) _set(data, 'surgicalDoctor', _get(basicInfo, 'firstName'));
1319
+ formKey = get(data, 'id') || Math.random();
1320
+ if (!get(data, 'operationName')) set(data, 'operationName', '人工流产');
1321
+ if (!get(data, 'surgicalDate')) set(data, 'surgicalDate', dayjs(new Date()));
1322
+ if (!get(data, 'appointmentPeople')) set(data, 'appointmentPeople', get(basicInfo, 'firstName'));
1323
+ if (!get(data, 'surgicalDoctor')) set(data, 'surgicalDoctor', get(basicInfo, 'firstName'));
1337
1324
  this.setState({
1338
1325
  data: data,
1339
1326
  formKey: formKey,
1340
- printId: _get(data, 'id')
1327
+ printId: get(data, 'id')
1341
1328
  });
1342
1329
  return [2];
1343
1330
  }
@@ -1353,25 +1340,25 @@ var AdmissionPanel = function (_super) {
1353
1340
  case 0:
1354
1341
  _a = this.props, onRefresh = _a.onRefresh, id = _a.id, baseUrl = _a.baseUrl;
1355
1342
  _b = this.state, data = _b.data, formDescriptionsWithoutSection = _b.formDescriptionsWithoutSection;
1356
- preoperativeExamination = _get(data, 'preoperativeExamination');
1343
+ preoperativeExamination = get(data, 'preoperativeExamination');
1357
1344
  params = valueToApi(values, formDescriptionsWithoutSection);
1358
- _set(params, 'preoperativeExamination.id', _get(preoperativeExamination, 'id'));
1345
+ set(params, 'preoperativeExamination.id', get(preoperativeExamination, 'id'));
1359
1346
  params = __assign(__assign(__assign({}, data), params), {
1360
1347
  familyPlanningId: Number(id),
1361
1348
  progressStatus: 4
1362
1349
  });
1363
- if (!_get(params, 'operationTimeEnd')) {
1364
- _message.error('手术起止时间是必填项');
1350
+ if (!get(params, 'operationTimeEnd')) {
1351
+ mchcEnv.error('手术起止时间是必填项');
1365
1352
  return [2];
1366
1353
  }
1367
- if (!_get(values, 'id')) return [3, 2];
1354
+ if (!get(values, 'id')) return [3, 2];
1368
1355
  return [4, fubaoRequest.put('/api/family/planning/updateEarlyPregnancyCheckSurgicalType', params)];
1369
1356
  case 1:
1370
1357
  res_1 = _c.sent().data;
1371
- if (_get(res_1, 'code') === 1) {
1372
- _message.success(_get(res_1, 'msg'), 0.5).then(function () {
1373
- if (_get(values, 'isPrint')) {
1374
- _this._handlePrint(_get(res_1, 'data.id'));
1358
+ if (get(res_1, 'code') === 1) {
1359
+ mchcEnv.success(get(res_1, 'msg'), 0.5).then(function () {
1360
+ if (get(values, 'isPrint')) {
1361
+ _this._handlePrint(get(res_1, 'data.id'));
1375
1362
  }
1376
1363
  });
1377
1364
  }
@@ -1384,10 +1371,10 @@ var AdmissionPanel = function (_super) {
1384
1371
  return [4, fubaoRequest.post(baseUrl, params)];
1385
1372
  case 3:
1386
1373
  res_2 = _c.sent().data;
1387
- if (_get(res_2, 'code') === 1) {
1388
- _message.success(_get(res_2, 'msg'), 0.5).then(function () {
1389
- if (_get(values, 'isPrint')) {
1390
- _this._handlePrint(_get(res_2, 'data.id'));
1374
+ if (get(res_2, 'code') === 1) {
1375
+ mchcEnv.success(get(res_2, 'msg'), 0.5).then(function () {
1376
+ if (get(values, 'isPrint')) {
1377
+ _this._handlePrint(get(res_2, 'data.id'));
1391
1378
  }
1392
1379
  });
1393
1380
  }
@@ -1426,7 +1413,7 @@ var AdmissionPanel = function (_super) {
1426
1413
  AdmissionPanel.getDerivedStateFromProps = function (nextProps, prevState) {
1427
1414
  var activeItem = nextProps.activeItem,
1428
1415
  activeTemplate = nextProps.activeTemplate;
1429
- if (!_isEqual(activeItem, prevState.activeItem)) {
1416
+ if (!isEqual(activeItem, prevState.activeItem)) {
1430
1417
  return {
1431
1418
  activeItem: activeItem,
1432
1419
  activeTemplate: activeTemplate
@@ -1435,7 +1422,7 @@ var AdmissionPanel = function (_super) {
1435
1422
  return null;
1436
1423
  };
1437
1424
  AdmissionPanel.prototype.componentDidUpdate = function (prevProps, prevState) {
1438
- if (!_isEmpty(_get(prevState, 'activeItem')) && !_isEqual(_get(prevState, 'activeItem'), _get(this.state, 'activeItem'))) {
1425
+ if (!isEmpty(get(prevState, 'activeItem')) && !isEqual(get(prevState, 'activeItem'), get(this.state, 'activeItem'))) {
1439
1426
  this.handleInit();
1440
1427
  }
1441
1428
  };
@@ -1527,4 +1514,3 @@ var getReservationPanelByDate = function getReservationPanelByDate(startDate, en
1527
1514
  });
1528
1515
  };
1529
1516
  export { NurseTypesMapping as N, getReservationPanelByDate as g };
1530
- //# sourceMappingURL=api.js.map