@lm_fe/pages-fubao 0.1.201 → 0.2.2

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 (192) hide show
  1. package/README.md +4 -2
  2. package/dist/a_chunks/.root.js +240 -280
  3. package/dist/a_chunks/.root10.js +9 -15
  4. package/dist/a_chunks/.root11.js +210 -244
  5. package/dist/a_chunks/.root12.js +2 -33
  6. package/dist/a_chunks/.root13.js +300 -331
  7. package/dist/a_chunks/.root14.js +2 -16
  8. package/dist/a_chunks/.root15.js +2 -16
  9. package/dist/a_chunks/.root16.js +4 -6
  10. package/dist/a_chunks/.root17.js +11 -2
  11. package/dist/a_chunks/.root18.js +10 -1
  12. package/dist/a_chunks/.root19.js +16 -27
  13. package/dist/a_chunks/.root2.js +22 -30
  14. package/dist/a_chunks/.root20.js +34 -38
  15. package/dist/a_chunks/.root21.js +16 -18
  16. package/dist/a_chunks/.root22.js +34 -38
  17. package/dist/a_chunks/.root23.js +16 -18
  18. package/dist/a_chunks/.root24.js +10 -14
  19. package/dist/a_chunks/.root25.js +10 -14
  20. package/dist/a_chunks/.root26.js +10 -14
  21. package/dist/a_chunks/.root27.js +16 -27
  22. package/dist/a_chunks/.root28.js +15 -19
  23. package/dist/a_chunks/.root29.js +15 -19
  24. package/dist/a_chunks/.root3.js +4 -6
  25. package/dist/a_chunks/.root30.js +9 -14
  26. package/dist/a_chunks/.root31.js +2 -10
  27. package/dist/a_chunks/.root32.js +11 -19
  28. package/dist/a_chunks/.root33.js +308 -335
  29. package/dist/a_chunks/.root34.js +1 -2
  30. package/dist/a_chunks/.root35.js +14 -154
  31. package/dist/a_chunks/.root36.js +7 -21
  32. package/dist/a_chunks/.root37.js +183 -1481
  33. package/dist/a_chunks/.root38.js +32 -2496
  34. package/dist/a_chunks/.root39.js +56 -83
  35. package/dist/a_chunks/.root4.js +4 -6
  36. package/dist/a_chunks/.root40.js +3 -3
  37. package/dist/a_chunks/.root41.js +56 -83
  38. package/dist/a_chunks/.root42.js +6 -20
  39. package/dist/a_chunks/.root43.js +183 -1526
  40. package/dist/a_chunks/.root44.js +13 -19
  41. package/dist/a_chunks/.root45.js +55 -82
  42. package/dist/a_chunks/.root46.js +55 -82
  43. package/dist/a_chunks/.root47.js +5 -8
  44. package/dist/a_chunks/.root48.js +30 -22
  45. package/dist/a_chunks/.root49.js +30 -43
  46. package/dist/a_chunks/.root5.js +3 -3
  47. package/dist/a_chunks/.root50.js +53 -226
  48. package/dist/a_chunks/.root51.js +64 -188
  49. package/dist/a_chunks/.root52.js +113 -3122
  50. package/dist/a_chunks/.root53.js +85 -134
  51. package/dist/a_chunks/.root54.js +3071 -175
  52. package/dist/a_chunks/.root55.js +127 -478
  53. package/dist/a_chunks/.root56.js +170 -910
  54. package/dist/a_chunks/.root57.js +376 -399
  55. package/dist/a_chunks/.root58.js +808 -687
  56. package/dist/a_chunks/.root59.js +495 -118
  57. package/dist/a_chunks/.root6.js +6 -9
  58. package/dist/a_chunks/.root60.js +773 -45
  59. package/dist/a_chunks/.root61.js +738 -97
  60. package/dist/a_chunks/.root62.js +105 -273
  61. package/dist/a_chunks/.root63.js +38 -22
  62. package/dist/a_chunks/.root64.js +184 -16
  63. package/dist/a_chunks/.root65.js +107 -241
  64. package/dist/a_chunks/.root66.js +132 -0
  65. package/dist/a_chunks/.root67.js +286 -0
  66. package/dist/a_chunks/.root68.js +817 -0
  67. package/dist/a_chunks/.root69.js +28 -0
  68. package/dist/a_chunks/.root7.js +2 -42
  69. package/dist/a_chunks/.root70.js +19 -0
  70. package/dist/a_chunks/.root71.js +247 -0
  71. package/dist/a_chunks/.root8.js +2 -12
  72. package/dist/a_chunks/.root9.js +16 -26
  73. package/dist/a_chunks/Form.js +3 -5
  74. package/dist/a_chunks/ModalForm.js +254 -280
  75. package/dist/a_chunks/api.js +311 -325
  76. package/dist/a_chunks/common.js +0 -1
  77. package/dist/a_chunks/config.js +135 -164
  78. package/dist/a_chunks/form_config.js +11 -130
  79. package/dist/a_chunks/index.js +43 -57
  80. package/dist/a_chunks/index2.js +148 -64
  81. package/dist/a_chunks/index3.js +131 -1151
  82. package/dist/a_chunks/index4.js +57 -1040
  83. package/dist/a_chunks/index5.js +142 -0
  84. package/dist/a_chunks/index6.js +1169 -0
  85. package/dist/a_chunks/index7.js +1006 -0
  86. package/dist/a_chunks/style-inject.es.js +0 -1
  87. package/dist/a_chunks/tslib.es6.js +1 -2
  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 +10 -5
  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/folic-acid/file-management/list/index copy.d.ts +1 -1
  93. 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
  94. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/form_config.d.ts +2 -1
  95. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index copy.d.ts +18 -0
  96. package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index.d.ts +3 -18
  97. package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/form_config_nv.d.ts +4 -0
  98. package/dist/pages/fubao/premarital-care/file-management/config/table.d.ts +1 -1
  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.map +0 -1
  113. package/dist/a_chunks/.root13.js.map +0 -1
  114. package/dist/a_chunks/.root14.js.map +0 -1
  115. package/dist/a_chunks/.root15.js.map +0 -1
  116. package/dist/a_chunks/.root16.js.map +0 -1
  117. package/dist/a_chunks/.root17.js.map +0 -1
  118. package/dist/a_chunks/.root18.js.map +0 -1
  119. package/dist/a_chunks/.root19.js.map +0 -1
  120. package/dist/a_chunks/.root2.js.map +0 -1
  121. package/dist/a_chunks/.root20.js.map +0 -1
  122. package/dist/a_chunks/.root21.js.map +0 -1
  123. package/dist/a_chunks/.root22.js.map +0 -1
  124. package/dist/a_chunks/.root23.js.map +0 -1
  125. package/dist/a_chunks/.root24.js.map +0 -1
  126. package/dist/a_chunks/.root25.js.map +0 -1
  127. package/dist/a_chunks/.root26.js.map +0 -1
  128. package/dist/a_chunks/.root27.js.map +0 -1
  129. package/dist/a_chunks/.root28.js.map +0 -1
  130. package/dist/a_chunks/.root29.js.map +0 -1
  131. package/dist/a_chunks/.root3.js.map +0 -1
  132. package/dist/a_chunks/.root30.js.map +0 -1
  133. package/dist/a_chunks/.root31.js.map +0 -1
  134. package/dist/a_chunks/.root32.js.map +0 -1
  135. package/dist/a_chunks/.root33.js.map +0 -1
  136. package/dist/a_chunks/.root34.js.map +0 -1
  137. package/dist/a_chunks/.root35.js.map +0 -1
  138. package/dist/a_chunks/.root36.js.map +0 -1
  139. package/dist/a_chunks/.root37.js.map +0 -1
  140. package/dist/a_chunks/.root38.js.map +0 -1
  141. package/dist/a_chunks/.root39.js.map +0 -1
  142. package/dist/a_chunks/.root4.js.map +0 -1
  143. package/dist/a_chunks/.root40.js.map +0 -1
  144. package/dist/a_chunks/.root41.js.map +0 -1
  145. package/dist/a_chunks/.root42.js.map +0 -1
  146. package/dist/a_chunks/.root43.js.map +0 -1
  147. package/dist/a_chunks/.root44.js.map +0 -1
  148. package/dist/a_chunks/.root45.js.map +0 -1
  149. package/dist/a_chunks/.root46.js.map +0 -1
  150. package/dist/a_chunks/.root47.js.map +0 -1
  151. package/dist/a_chunks/.root48.js.map +0 -1
  152. package/dist/a_chunks/.root49.js.map +0 -1
  153. package/dist/a_chunks/.root5.js.map +0 -1
  154. package/dist/a_chunks/.root50.js.map +0 -1
  155. package/dist/a_chunks/.root51.js.map +0 -1
  156. package/dist/a_chunks/.root52.js.map +0 -1
  157. package/dist/a_chunks/.root53.js.map +0 -1
  158. package/dist/a_chunks/.root54.js.map +0 -1
  159. package/dist/a_chunks/.root55.js.map +0 -1
  160. package/dist/a_chunks/.root56.js.map +0 -1
  161. package/dist/a_chunks/.root57.js.map +0 -1
  162. package/dist/a_chunks/.root58.js.map +0 -1
  163. package/dist/a_chunks/.root59.js.map +0 -1
  164. package/dist/a_chunks/.root6.js.map +0 -1
  165. package/dist/a_chunks/.root60.js.map +0 -1
  166. package/dist/a_chunks/.root61.js.map +0 -1
  167. package/dist/a_chunks/.root62.js.map +0 -1
  168. package/dist/a_chunks/.root63.js.map +0 -1
  169. package/dist/a_chunks/.root64.js.map +0 -1
  170. package/dist/a_chunks/.root65.js.map +0 -1
  171. package/dist/a_chunks/.root7.js.map +0 -1
  172. package/dist/a_chunks/.root8.js.map +0 -1
  173. package/dist/a_chunks/.root9.js.map +0 -1
  174. package/dist/a_chunks/Form.js.map +0 -1
  175. package/dist/a_chunks/ModalForm.js.map +0 -1
  176. package/dist/a_chunks/api.js.map +0 -1
  177. package/dist/a_chunks/common.js.map +0 -1
  178. package/dist/a_chunks/config.js.map +0 -1
  179. package/dist/a_chunks/extends.js +0 -11
  180. package/dist/a_chunks/extends.js.map +0 -1
  181. package/dist/a_chunks/form_config.js.map +0 -1
  182. package/dist/a_chunks/index.js.map +0 -1
  183. package/dist/a_chunks/index2.js.map +0 -1
  184. package/dist/a_chunks/index3.js.map +0 -1
  185. package/dist/a_chunks/index4.js.map +0 -1
  186. package/dist/a_chunks/style-inject.es.js.map +0 -1
  187. package/dist/a_chunks/tslib.es6.js.map +0 -1
  188. package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js.map +0 -1
  189. package/dist/index.js.map +0 -1
  190. package/dist/pages/fubao/pre-pregnancy-care/.public-exam/config/adapter.d.ts +0 -2
  191. package/dist/pages/fubao/premarital-care/.public-exam/config/adapter.d.ts +0 -2
  192. /package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/{form_config.d.ts → form_config_nan.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { mchcEnv, rt_ctx } from '@lm_fe/env';
2
2
  import { defineFormConfig } from '@lm_fe/service';
3
- var options_正常异常$1 = [{
3
+ var options_正常异常 = [{
4
4
  label: '正常',
5
5
  value: 1
6
6
  }, {
@@ -27,16 +27,13 @@ var options_无有 = [{
27
27
  warning: true,
28
28
  inputType: 'input'
29
29
  }];
30
- var form_config$2 = defineFormConfig([{
30
+ var form_config$1 = defineFormConfig([{
31
31
  "name": "基础体检",
32
32
  "fields": [{
33
33
  "key": "weight",
34
34
  "label": "体重(kg)",
35
35
  "inputType": "input_number",
36
- "rules": [{
37
- 'required': true,
38
- 'message': '体重(kg)是必填项'
39
- }],
36
+ required: true,
40
37
  "inputProps": {
41
38
  'placeholder': '请输入体重'
42
39
  },
@@ -45,10 +42,7 @@ var form_config$2 = defineFormConfig([{
45
42
  "key": "bmi",
46
43
  "label": "BMI",
47
44
  "inputType": "input_with_range",
48
- "rules": [{
49
- 'required': true,
50
- 'message': 'BMI是必填项'
51
- }],
45
+ required: true,
52
46
  "specialConfig": {
53
47
  'tip': 'BMI的正常范围值是18.5~24.9kg/㎡',
54
48
  'min': 18.5,
@@ -88,7 +82,7 @@ var form_config$2 = defineFormConfig([{
88
82
  "label": "智力",
89
83
  "inputType": "MC",
90
84
  "inputProps": {
91
- options: options_正常异常$1
85
+ options: options_正常异常
92
86
  },
93
87
  layout: '1/3'
94
88
  }, {
@@ -96,7 +90,7 @@ var form_config$2 = defineFormConfig([{
96
90
  "label": "四肢脊柱",
97
91
  "inputType": "MC",
98
92
  "inputProps": {
99
- options: options_正常异常$1
93
+ options: options_正常异常
100
94
  },
101
95
  layout: '1/3'
102
96
  }, {
@@ -109,7 +103,7 @@ var form_config$2 = defineFormConfig([{
109
103
  "label": "特殊体态",
110
104
  "inputType": "MC",
111
105
  "inputProps": {
112
- options: options_正常异常$1
106
+ options: options_正常异常
113
107
  },
114
108
  layout: '1/3'
115
109
  }, {
@@ -117,7 +111,7 @@ var form_config$2 = defineFormConfig([{
117
111
  "label": "特殊面容",
118
112
  "inputType": "MC",
119
113
  "inputProps": {
120
- options: options_正常异常$1
114
+ options: options_正常异常
121
115
  },
122
116
  layout: '1/3'
123
117
  }, {
@@ -125,7 +119,7 @@ var form_config$2 = defineFormConfig([{
125
119
  "label": "精神状态",
126
120
  "inputType": "MC",
127
121
  "inputProps": {
128
- options: options_正常异常$1
122
+ options: options_正常异常
129
123
  },
130
124
  layout: '1/3'
131
125
  }, {
@@ -133,7 +127,7 @@ var form_config$2 = defineFormConfig([{
133
127
  "label": "皮肤毛发",
134
128
  "inputType": "MC",
135
129
  "inputProps": {
136
- options: options_正常异常$1
130
+ options: options_正常异常
137
131
  },
138
132
  layout: '1/3'
139
133
  }, {
@@ -305,118 +299,6 @@ var form_config$2 = defineFormConfig([{
305
299
  "required": true,
306
300
  layout: '1/3'
307
301
  }]);
308
- var options_正常异常 = [{
309
- label: '正常',
310
- value: 1
311
- }, {
312
- label: '异常',
313
- value: 2,
314
- warning: true,
315
- inputType: 'input'
316
- }];
317
- var options_未见异常 = [{
318
- label: '未见异常',
319
- value: 1
320
- }, {
321
- label: '异常',
322
- value: 2,
323
- warning: true,
324
- inputType: 'input'
325
- }];
326
- var form_config$1 = defineFormConfig([{
327
- "name": "第二性征",
328
- "children": [{
329
- "key": "adamsApple__",
330
- "label": "喉结",
331
- "inputType": "MC",
332
- required: true,
333
- "inputProps": {
334
- options: options_正常异常
335
- },
336
- layout: '1/3'
337
- }, {
338
- "key": "pubes__",
339
- "label": "阴毛",
340
- "inputType": "MC",
341
- required: true,
342
- "inputProps": {
343
- options: options_正常异常
344
- },
345
- layout: '1/3'
346
- }, {
347
- "key": "secondSexCharacterOther",
348
- "label": "其他",
349
- "inputType": "input",
350
- layout: '1/3'
351
- }]
352
- }, {
353
- "name": "生殖器官",
354
- "children": [{
355
- "key": "penis__",
356
- "label": "阴茎",
357
- "inputType": "MC",
358
- required: true,
359
- layout: '1/3',
360
- inputProps: {
361
- options: options_未见异常
362
- }
363
- }, {
364
- "key": "prepuce__",
365
- "label": "包皮",
366
- "inputType": "MC",
367
- required: true,
368
- layout: '1/3',
369
- inputProps: {
370
- options: options_未见异常
371
- }
372
- }, {
373
- "key": "testes__",
374
- "label": "睾丸",
375
- "inputType": "MC",
376
- required: true,
377
- layout: '1/3',
378
- inputProps: {
379
- options: options_未见异常
380
- }
381
- }, {
382
- "key": "epididymides__",
383
- "label": "附睾",
384
- "inputType": "MC",
385
- required: true,
386
- layout: '1/3',
387
- inputProps: {
388
- options: options_未见异常
389
- }
390
- }, {
391
- "key": "anus__",
392
- "label": "肛门",
393
- "inputType": "MC",
394
- required: true,
395
- layout: '1/3',
396
- inputProps: {
397
- options: options_未见异常
398
- }
399
- }, {
400
- "key": "genitalsOther",
401
- "label": "其他",
402
- "inputType": "input",
403
- layout: '1/3'
404
- }, {
405
- "key": "selectBtn2",
406
- "label": "一键勾选",
407
- "inputType": "check_invert_button",
408
- layout: '1/3'
409
- }]
410
- }, {
411
- "label": "检查医生",
412
- "key": "checkDoctor",
413
- required: true,
414
- layout: '1/3',
415
- "inputType": "MA",
416
- inputProps: {
417
- memorieskey: '妇保-检查医生'
418
- }
419
- }]);
420
302
  var ctx = rt_ctx;
421
303
  var options_正常异常未查 = [{
422
304
  label: '正常',
@@ -821,5 +703,4 @@ var form_config = defineFormConfig([{
821
703
  memorieskey: '妇保-检查医生'
822
704
  }
823
705
  }]);
824
- export { form_config$1 as a, form_config as b, form_config$2 as f };
825
- //# sourceMappingURL=form_config.js.map
706
+ export { form_config as a, form_config$1 as f };
@@ -1,25 +1,12 @@
1
- import 'antd/es/message/style';
2
- import _message from 'antd/es/message';
3
- import _set from 'lodash/set';
4
- import _map from 'lodash/map';
5
- import _isEmpty from 'lodash/isEmpty';
6
- import _get from 'lodash/get';
7
- import { b as __extends, _ as __awaiter, a as __generator } from './tslib.es6.js';
1
+ import { c as __extends, _ as __awaiter, a as __generator } from './tslib.es6.js';
8
2
  import { LazyAntd, fromApi, resolveFubaoPath, BaseEditPanelForm, formDescriptionsWithoutSectionApi, formatTimeToStandard, BaseEditPanel, toApi } from '@lm_fe/components_m';
9
3
  import { SLocal_History, SLocal_State } from '@lm_fe/service';
10
4
  import { request, safe_json_parse, expect_array, formatDate } from '@lm_fe/utils';
5
+ import { get, cloneDeep, isEmpty, omit, size, map, set } from 'lodash';
11
6
  import dayjs from 'dayjs';
12
- import 'antd/es/space/style';
13
- import _Space from 'antd/es/space';
14
- import 'antd/es/button/style';
15
- import _Button from 'antd/es/button';
16
- import 'antd/es/modal/style';
17
- import _Modal from 'antd/es/modal';
18
- import _size from 'lodash/size';
19
- import _omit from 'lodash/omit';
20
- import _cloneDeep from 'lodash/cloneDeep';
21
7
  import { CloseOutlined, SaveOutlined } from '@ant-design/icons';
22
- import { mchcUtils } from '@lm_fe/env';
8
+ import { mchcUtils, mchcEnv } from '@lm_fe/env';
9
+ import { message, Modal, Button, Space } from 'antd';
23
10
  import React from 'react';
24
11
  var tableColumn = [{
25
12
  title: '姓名',
@@ -51,7 +38,7 @@ var AdmissionForm = function (_super) {
51
38
  };
52
39
  _this.getRegistrationEvents = function () {
53
40
  return {
54
- onBlur: _get(_this.getEvents(), 'handleInputBlur')
41
+ onBlur: get(_this.getEvents(), 'handleInputBlur')
55
42
  };
56
43
  };
57
44
  _this.getEvents = function () {
@@ -64,7 +51,7 @@ var AdmissionForm = function (_super) {
64
51
  switch (_b.label) {
65
52
  case 0:
66
53
  data = this.props.data;
67
- id = _get(data, 'id');
54
+ id = get(data, 'id');
68
55
  name = (_a = this.form) === null || _a === void 0 ? void 0 : _a.getFieldValue('name');
69
56
  if (!(!id && e.target.id == 'name' && name)) return [3, 2];
70
57
  param = {
@@ -79,9 +66,9 @@ var AdmissionForm = function (_super) {
79
66
  })];
80
67
  case 1:
81
68
  data_1 = _b.sent().data;
82
- if (_get(data_1, 'data.pageData').length > 0) {
69
+ if (get(data_1, 'data.pageData').length > 0) {
83
70
  this.setState({
84
- importData: _get(data_1, 'data.pageData'),
71
+ importData: get(data_1, 'data.pageData'),
85
72
  renderModal: true
86
73
  });
87
74
  }
@@ -98,12 +85,12 @@ var AdmissionForm = function (_super) {
98
85
  var _a;
99
86
  var selectRow = _this.state.selectRow;
100
87
  var formDescriptionsWithoutSection = _this.props.formDescriptionsWithoutSection;
101
- var dd = fromApi(_cloneDeep(selectRow), formDescriptionsWithoutSection);
102
- if (_isEmpty(selectRow)) {
103
- _message.warning('请选择一份档案信息');
88
+ var dd = fromApi(cloneDeep(selectRow), formDescriptionsWithoutSection);
89
+ if (isEmpty(selectRow)) {
90
+ message.warning('请选择一份档案信息');
104
91
  return;
105
92
  }
106
- var omitDd = _omit(dd, ['filingDate']);
93
+ var omitDd = omit(dd, ['filingDate']);
107
94
  (_a = _this.form) === null || _a === void 0 ? void 0 : _a.setFieldsValue(omitDd);
108
95
  _this.setState({
109
96
  renderModal: false
@@ -113,7 +100,7 @@ var AdmissionForm = function (_super) {
113
100
  var _a = _this.state,
114
101
  renderModal = _a.renderModal,
115
102
  importData = _a.importData;
116
- return /*#__PURE__*/React.createElement(_Modal, {
103
+ return /*#__PURE__*/React.createElement(Modal, {
117
104
  title: "\u5BFC\u5165\u4FE1\u606F",
118
105
  width: 520,
119
106
  visible: renderModal,
@@ -144,8 +131,8 @@ var AdmissionForm = function (_super) {
144
131
  var form, idNO, personal;
145
132
  return __generator(this, function (_a) {
146
133
  form = this.form;
147
- if (_get(allValues, 'idType') === 1 && _size(_get(allValues, 'idNO')) === 18 && (_get(changedValues, 'idType') || _get(changedValues, 'idNO'))) {
148
- idNO = _get(allValues, 'idNO');
134
+ if (get(allValues, 'idType') === 1 && size(get(allValues, 'idNO')) === 18 && (get(changedValues, 'idType') || get(changedValues, 'idNO'))) {
135
+ idNO = get(allValues, 'idNO');
149
136
  personal = mchcUtils.checkIdNo(idNO);
150
137
  if (personal.status) {
151
138
  form && form.setFieldsValue({
@@ -155,7 +142,7 @@ var AdmissionForm = function (_super) {
155
142
  age: personal.age
156
143
  });
157
144
  } else {
158
- _message.warning("".concat(_get(personal, 'message')));
145
+ message.warning("".concat(get(personal, 'message')));
159
146
  }
160
147
  }
161
148
  return [2];
@@ -168,21 +155,21 @@ var AdmissionForm = function (_super) {
168
155
  return __generator(this, function (_b) {
169
156
  _a = this.props, _a.history, data = _a.data, _a.deleteTab, _a.routerPath, _a.tabs, _a.keepAliveProviderRef, _a.updateTabs;
170
157
  form = this.form;
171
- if (!_get(data, 'id')) form.resetFields();
158
+ if (!get(data, 'id')) form.resetFields();
172
159
  SLocal_History.closeAndPush(resolveFubaoPath("/folic-acid/file-management/list"));
173
160
  return [2];
174
161
  });
175
162
  });
176
163
  };
177
164
  _this.renderCancelBtn = function () {
178
- return /*#__PURE__*/React.createElement(_Button, {
165
+ return /*#__PURE__*/React.createElement(Button, {
179
166
  size: "large",
180
167
  icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
181
168
  onClick: _this.handleCancel
182
169
  }, "\u5173\u95ED");
183
170
  };
184
171
  _this.renderCheckBtn = function () {
185
- return /*#__PURE__*/React.createElement(_Button, {
172
+ return /*#__PURE__*/React.createElement(Button, {
186
173
  size: "large",
187
174
  type: "primary",
188
175
  icon: /*#__PURE__*/React.createElement(SaveOutlined, null),
@@ -193,7 +180,7 @@ var AdmissionForm = function (_super) {
193
180
  };
194
181
  _this.renderBtns = function () {
195
182
  var history = _this.props.history;
196
- return /*#__PURE__*/React.createElement(_Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
183
+ return /*#__PURE__*/React.createElement(Space, null, history && _this.renderCancelBtn(), _this.renderCheckBtn());
197
184
  };
198
185
  _this.readIDCard = function () {
199
186
  var websocketServices = window.websocketServices;
@@ -226,7 +213,7 @@ var AdmissionForm = function (_super) {
226
213
  _this.setState({
227
214
  IDCardLoading: false
228
215
  });
229
- return _message.info("".concat(e.data, "\uFF0C\u8BF7\u91CD\u65B0\u8BFB\u5361"));
216
+ return mchcEnv.info("".concat(e.data, "\uFF0C\u8BF7\u91CD\u65B0\u8BFB\u5361"));
230
217
  }
231
218
  if (e && e.data && e.data.includes('{')) {
232
219
  d = JSON.parse(e.data);
@@ -531,7 +518,7 @@ var FolicAcidNurse = function (_super) {
531
518
  switch (_d.label) {
532
519
  case 0:
533
520
  _a = this.props, routerQuery = _a.routerQuery, _a.moduleName, _b = _a.fromApi, fromApi$1 = _b === void 0 ? fromApi : _b;
534
- id = _get(this.props, 'id') || _get(routerQuery, 'id');
521
+ id = get(this.props, 'id') || get(routerQuery, 'id');
535
522
  this.setState({
536
523
  spinning: false
537
524
  });
@@ -547,24 +534,24 @@ var FolicAcidNurse = function (_super) {
547
534
  case 3:
548
535
  data = _c;
549
536
  if (data) {
550
- data = _get(data, 'data');
537
+ data = get(data, 'data');
551
538
  }
552
539
  data = id ? fromApi$1(data, formDescriptionsWithoutSection) : {};
553
- formKey = _get(data, 'id') || Math.random();
554
- if (!_isEmpty(data)) {
540
+ formKey = get(data, 'id') || Math.random();
541
+ if (!isEmpty(data)) {
555
542
  folateDistributionRecords = data.folateDistributionRecords;
556
- if (!_isEmpty(folateDistributionRecords)) {
557
- _map(folateDistributionRecords, function (item) {
558
- var effectiveDate = _get(item, 'effectiveDate');
543
+ if (!isEmpty(folateDistributionRecords)) {
544
+ map(folateDistributionRecords, function (item) {
545
+ var effectiveDate = get(item, 'effectiveDate');
559
546
  if (effectiveDate) {
560
547
  var effectiveDateArr = effectiveDate.split('~');
561
- _set(item, 'effectiveDateBegin', effectiveDateArr[0]);
562
- _set(item, 'effectiveDateEnd', effectiveDateArr[1]);
548
+ set(item, 'effectiveDateBegin', effectiveDateArr[0]);
549
+ set(item, 'effectiveDateEnd', effectiveDateArr[1]);
563
550
  }
564
551
  });
565
552
  }
566
553
  }
567
- if (!_get(data, 'filingDate')) _set(data, 'filingDate', dayjs(new Date()));
554
+ if (!get(data, 'filingDate')) set(data, 'filingDate', dayjs(new Date()));
568
555
  this.setState({
569
556
  formDescriptions: form_config,
570
557
  formDescriptionsWithoutSection: formDescriptionsWithoutSection,
@@ -588,19 +575,19 @@ var FolicAcidNurse = function (_super) {
588
575
  return [4, toApi$1(values, formDescriptionsWithoutSection)];
589
576
  case 1:
590
577
  params = _d.sent();
591
- folateDistributionRecords = _get(params, 'folateDistributionRecords');
592
- _map(folateDistributionRecords, function (item) {
593
- if (!_get(item, 'issueDate')) {
594
- _set(item, 'issueDate', formatTimeToStandard(dayjs(new Date()), 'YYYY-MM-DD'));
578
+ folateDistributionRecords = get(params, 'folateDistributionRecords');
579
+ map(folateDistributionRecords, function (item) {
580
+ if (!get(item, 'issueDate')) {
581
+ set(item, 'issueDate', formatTimeToStandard(dayjs(new Date()), 'YYYY-MM-DD'));
595
582
  }
596
- if (!_get(item, 'registerPerson')) {
597
- _set(item, 'registerPerson', _get(user, 'basicInfo.firstName'));
583
+ if (!get(item, 'registerPerson')) {
584
+ set(item, 'registerPerson', get(user, 'basicInfo.firstName'));
598
585
  }
599
- if (_get(item, 'effectiveDateBegin') && _get(item, 'effectiveDateEnd')) {
600
- _set(item, 'effectiveDate', "".concat(_get(item, 'effectiveDateBegin'), "~").concat(_get(item, 'effectiveDateEnd')));
586
+ if (get(item, 'effectiveDateBegin') && get(item, 'effectiveDateEnd')) {
587
+ set(item, 'effectiveDate', "".concat(get(item, 'effectiveDateBegin'), "~").concat(get(item, 'effectiveDateEnd')));
601
588
  }
602
589
  });
603
- if (!_get(values, 'id')) return [3, 3];
590
+ if (!get(values, 'id')) return [3, 3];
604
591
  return [4, request.put('/api/updateFolateManagementFile', params)];
605
592
  case 2:
606
593
  _c = _d.sent().data;
@@ -612,11 +599,11 @@ var FolicAcidNurse = function (_super) {
612
599
  _d.label = 5;
613
600
  case 5:
614
601
  res = _c;
615
- if (_get(res, 'code') === 1) {
616
- _message.success(_get(res, 'msg'));
602
+ if (get(res, 'code') === 1) {
603
+ mchcEnv.success(get(res, 'msg'));
617
604
  SLocal_History.closeAndPush('/fubao/folic-acid/file-management/list');
618
605
  } else {
619
- _message.warning(_get(res, 'msg'));
606
+ mchcEnv.warning(get(res, 'msg'));
620
607
  }
621
608
  return [2];
622
609
  }
@@ -643,4 +630,3 @@ var FolicAcidNurse = function (_super) {
643
630
  }(BaseEditPanel);
644
631
  var FolicAcidNurse$1 = FolicAcidNurse;
645
632
  export { FolicAcidNurse$1 as F };
646
- //# sourceMappingURL=index.js.map
@@ -1,66 +1,150 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
- var classnames$1 = {
3
- exports: {}
4
- };
5
-
6
- /*!
7
- Copyright (c) 2018 Jed Watson.
8
- Licensed under the MIT License (MIT), see
9
- http://jedwatson.github.io/classnames
10
- */
11
- (function (module) {
12
- /* global define */
13
-
14
- (function () {
15
- var hasOwn = {}.hasOwnProperty;
16
- function classNames() {
17
- var classes = '';
18
- for (var i = 0; i < arguments.length; i++) {
19
- var arg = arguments[i];
20
- if (arg) {
21
- classes = appendClass(classes, parseValue(arg));
1
+ import { _ as __awaiter, a as __generator } from './tslib.es6.js';
2
+ import { OkButton } from '@lm_fe/components_m';
3
+ import { mchcModal__ } from '@lm_fe/pages';
4
+ import { safe_async_call, request } from '@lm_fe/utils';
5
+ import React from 'react';
6
+ import { rt_ctx } from '@lm_fe/env';
7
+ var ctx = rt_ctx;
8
+ var form_config = [{
9
+ label: "档案类型",
10
+ name: "fileType",
11
+ inputType: 'MC',
12
+ inputProps: {
13
+ uniqueKey: '性别2',
14
+ marshal: 0
15
+ },
16
+ layout: '1/1'
17
+ }, {
18
+ label: "女方姓名",
19
+ name: "womanName",
20
+ inputType: 'MA',
21
+ layout: '1/3'
22
+ }, {
23
+ label: "女方年龄",
24
+ name: "womanAge",
25
+ inputType: 'input_number',
26
+ layout: '1/3'
27
+ }, {
28
+ label: "女方电话号码",
29
+ name: "womanTelephone",
30
+ inputType: 'MA',
31
+ layout: '1/3'
32
+ }, {
33
+ label: "男方姓名",
34
+ name: "manName",
35
+ inputType: 'MA',
36
+ layout: '1/3'
37
+ }, {
38
+ label: "男方年龄",
39
+ name: "manAge",
40
+ inputType: 'input_number',
41
+ layout: '1/3'
42
+ }, {
43
+ label: "男方电话号码",
44
+ name: "manTelephone",
45
+ inputType: 'MA',
46
+ layout: '1/3'
47
+ }, {
48
+ label: "追踪随访内容",
49
+ children: [{
50
+ name: "followupRecordVMList",
51
+ inputType: "MyEditTable",
52
+ inputProps: {
53
+ marshal: 0,
54
+ genRowData: function genRowData(list) {
55
+ return {
56
+ followupDate: ctx.utils.formatDate()
57
+ };
58
+ },
59
+ formDescriptions: [{
60
+ title: '怀孕状态',
61
+ dataIndex: 'pregnancyStatus',
62
+ inputType: 'MS',
63
+ inputProps: {
64
+ uniqueKey: 'Pregnancy.pregnancyStatus',
65
+ marshal: 0
22
66
  }
23
- }
24
- return classes;
25
- }
26
- function parseValue(arg) {
27
- if (typeof arg === 'string' || typeof arg === 'number') {
28
- return arg;
29
- }
30
- if (_typeof(arg) !== 'object') {
31
- return '';
32
- }
33
- if (Array.isArray(arg)) {
34
- return classNames.apply(null, arg);
35
- }
36
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
37
- return arg.toString();
38
- }
39
- var classes = '';
40
- for (var key in arg) {
41
- if (hasOwn.call(arg, key) && arg[key]) {
42
- classes = appendClass(classes, key);
67
+ }, {
68
+ title: '传染病内容',
69
+ dataIndex: 'infectionContent',
70
+ inputType: 'Input'
71
+ }, {
72
+ title: '随访内容',
73
+ dataIndex: 'followupContent',
74
+ inputType: 'Input'
75
+ }, {
76
+ title: '随访状态',
77
+ dataIndex: 'followupState',
78
+ inputType: 'MS',
79
+ inputProps: {
80
+ uniqueKey: '随访状态',
81
+ marshal: 0
43
82
  }
44
- }
45
- return classes;
46
- }
47
- function appendClass(value, newClass) {
48
- if (!newClass) {
49
- return value;
50
- }
51
- if (value) {
52
- return value + ' ' + newClass;
53
- }
54
- return value + newClass;
55
- }
56
- if (module.exports) {
57
- classNames["default"] = classNames;
58
- module.exports = classNames;
59
- } else {
60
- window.classNames = classNames;
61
- }
62
- })();
63
- })(classnames$1);
64
- var classnames = classnames$1.exports;
65
- export { classnames as c };
66
- //# sourceMappingURL=index2.js.map
83
+ }]
84
+ },
85
+ layout: '1/1'
86
+ }]
87
+ }];
88
+ var opt_url = '/api/premarital/check/followup/premaritalCheckFollowupCase';
89
+ function Follow_up_btn_婚前(props) {
90
+ var handleSearch = props.handleSearch,
91
+ _a = props.rowData,
92
+ rowData = _a === void 0 ? {} : _a;
93
+ var premaritalCheckArchivesId = rowData.premaritalCheckArchivesId,
94
+ fileType = rowData.fileType;
95
+ function showView() {
96
+ return __awaiter(this, void 0, void 0, function () {
97
+ var record;
98
+ return __generator(this, function (_a) {
99
+ switch (_a.label) {
100
+ case 0:
101
+ return [4, request.get("/api/premarital/check/followup/premaritalCheckFollowup", {
102
+ params: {
103
+ premaritalCheckArchivesId: premaritalCheckArchivesId,
104
+ fileType: fileType
105
+ },
106
+ unboxing: true,
107
+ ignore_usr: true
108
+ })];
109
+ case 1:
110
+ record = _a.sent();
111
+ mchcModal__.open('modal_form', {
112
+ modal_data: {
113
+ bf_title: '婚前检查-随访',
114
+ formDescriptions: form_config,
115
+ getInitialData: function getInitialData() {
116
+ return record.data;
117
+ },
118
+ onSubmit: function onSubmit(data) {
119
+ return __awaiter(this, void 0, void 0, function () {
120
+ var fn;
121
+ return __generator(this, function (_a) {
122
+ switch (_a.label) {
123
+ case 0:
124
+ fn = data.id ? request.put : request.post;
125
+ return [4, fn(opt_url, data, {
126
+ successText: '操作成功',
127
+ ignore_usr: true
128
+ })];
129
+ case 1:
130
+ _a.sent();
131
+ safe_async_call(handleSearch);
132
+ return [2, 1];
133
+ }
134
+ });
135
+ });
136
+ }
137
+ }
138
+ });
139
+ return [2];
140
+ }
141
+ });
142
+ });
143
+ }
144
+ return /*#__PURE__*/React.createElement(OkButton, {
145
+ type: "link",
146
+ size: "small",
147
+ onClick: showView
148
+ }, "\u968F\u8BBF");
149
+ }
150
+ export { Follow_up_btn_婚前 as F };