@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,20 +1,10 @@
1
- import 'antd/es/message/style';
2
- import _message from 'antd/es/message';
3
- import 'antd/es/popconfirm/style';
4
- import _Popconfirm from 'antd/es/popconfirm';
5
- import 'antd/es/divider/style';
6
- import _Divider from 'antd/es/divider';
7
- import 'antd/es/button/style';
8
- import _Button from 'antd/es/button';
9
- import _isArray from 'lodash/isArray';
10
- import _isNil from 'lodash/isNil';
11
- import _get from 'lodash/get';
12
- import { b as __extends, _ as __awaiter, a as __generator, c as __assign, d as __spreadArray } from './tslib.es6.js';
1
+ import { c as __extends, _ as __awaiter, a as __generator, b as __assign, d as __spreadArray } from './tslib.es6.js';
13
2
  import React from 'react';
14
3
  import { BaseTableOld, BaseQuery, APP_CONFIG, getDataSource, BaseListOld } from '@lm_fe/components_m';
15
- import _map from 'lodash/map';
4
+ import { Button, Divider, Popconfirm, message } from 'antd';
16
5
  import { RedoOutlined, SearchOutlined, ExportOutlined, EyeOutlined, DeleteOutlined } from '@ant-design/icons';
17
6
  import { downloadFile, formatDate, fubaoRequest } from '@lm_fe/utils';
7
+ import { map, isNil, get, isArray } from 'lodash';
18
8
  var ProductsTable = function (_super) {
19
9
  __extends(ProductsTable, _super);
20
10
  function ProductsTable() {
@@ -86,14 +76,14 @@ var Query = function (_super) {
86
76
  queryFormDescriptions: queryFormDescriptions
87
77
  };
88
78
  _this.renderBtn = function () {
89
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button, {
79
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
90
80
  icon: /*#__PURE__*/React.createElement(RedoOutlined, null),
91
81
  onClick: _this.handleReset
92
- }, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(_Button, {
82
+ }, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(Button, {
93
83
  type: "primary",
94
84
  icon: /*#__PURE__*/React.createElement(SearchOutlined, null),
95
85
  htmlType: "submit"
96
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
86
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
97
87
  type: "primary",
98
88
  icon: /*#__PURE__*/React.createElement(ExportOutlined, null),
99
89
  onClick: _this.handleExport
@@ -109,9 +99,9 @@ var Query = function (_super) {
109
99
  case 1:
110
100
  data = _a.sent();
111
101
  queryData = {};
112
- _map(data, function (value, key) {
102
+ map(data, function (value, key) {
113
103
  var _a;
114
- if (!_isNil(value)) {
104
+ if (!isNil(value)) {
115
105
  if (key === 'reportdate') {
116
106
  var startDate = formatDate(value[0]);
117
107
  var endDate = formatDate(value[1]);
@@ -392,21 +382,21 @@ var List = function (_super) {
392
382
  width: 150,
393
383
  align: 'center',
394
384
  render: function render(value, rowData, index) {
395
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button, {
385
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
396
386
  type: "link",
397
387
  size: "small",
398
388
  icon: /*#__PURE__*/React.createElement(EyeOutlined, {
399
389
  className: "global-table-action-icon global-table-action-edit"
400
390
  }),
401
391
  onClick: _this.handleEdit(rowData)
402
- }, "\u7F16\u8F91"), /*#__PURE__*/React.createElement(_Divider, {
392
+ }, "\u7F16\u8F91"), /*#__PURE__*/React.createElement(Divider, {
403
393
  type: "vertical"
404
- }), /*#__PURE__*/React.createElement(_Popconfirm, {
405
- title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A".concat(_get(_this.props, 'baseTitle'), "\u5417?"),
394
+ }), /*#__PURE__*/React.createElement(Popconfirm, {
395
+ title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A".concat(get(_this.props, 'baseTitle'), "\u5417?"),
406
396
  onConfirm: _this.handleDelete(rowData),
407
397
  okText: "\u786E\u5B9A",
408
398
  cancelText: "\u53D6\u6D88"
409
- }, /*#__PURE__*/React.createElement(_Button, {
399
+ }, /*#__PURE__*/React.createElement(Button, {
410
400
  type: "link",
411
401
  size: "small"
412
402
  }, /*#__PURE__*/React.createElement(DeleteOutlined, {
@@ -425,8 +415,8 @@ var List = function (_super) {
425
415
  if (!baseUrl) {
426
416
  return [2];
427
417
  }
428
- if (!_isNil(editKey)) {
429
- _message.error('请保存未保存的记录');
418
+ if (!isNil(editKey)) {
419
+ message.error('请保存未保存的记录');
430
420
  return [2];
431
421
  }
432
422
  this.setState({
@@ -437,7 +427,7 @@ var List = function (_super) {
437
427
  return [4, getDataSource(baseUrl, query, processFromApi)];
438
428
  case 1:
439
429
  _c = _d.sent(), data = _c.data, count = _c.count;
440
- if (data && _isArray(data)) ;
430
+ if (data && isArray(data)) ;
441
431
  if (count) {
442
432
  total = Number(count);
443
433
  }
@@ -479,4 +469,3 @@ var List = function (_super) {
479
469
  return List;
480
470
  }(BaseListOld);
481
471
  export { List as default };
482
- //# sourceMappingURL=.root19.js.map
@@ -0,0 +1,121 @@
1
+ import { c as __extends, b as __assign, d as __spreadArray } from './tslib.es6.js';
2
+ import { BaseEditPanelForm, BaseEditPanel } from '@lm_fe/components_m';
3
+ import { formatDateTime, fubaoRequest } from '@lm_fe/utils';
4
+ import { map, get, set, isObject } from 'lodash';
5
+ import dayjs from 'dayjs';
6
+ var AdmissionForm = function (_super) {
7
+ __extends(AdmissionForm, _super);
8
+ function AdmissionForm() {
9
+ return _super !== null && _super.apply(this, arguments) || this;
10
+ }
11
+ return AdmissionForm;
12
+ }(BaseEditPanelForm);
13
+ var fromApi = function fromApi(data, nativeFormDescriptions) {
14
+ var result = {};
15
+ map(nativeFormDescriptions, function (desctiption, key) {
16
+ var tranferRules = desctiption.tranfer_rules;
17
+ var type = 'default';
18
+ var path = key;
19
+ if (tranferRules && JSON.parse(tranferRules)) {
20
+ var tranferRulesJson = JSON.parse(tranferRules);
21
+ type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
22
+ path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
23
+ }
24
+ switch (type) {
25
+ case 'key_and_keyNote':
26
+ set(result, "".concat(key, ".key"), get(data, path));
27
+ set(result, "".concat(key, ".keyNote"), get(data, "".concat(path, "Note")));
28
+ break;
29
+ case 'stage':
30
+ set(result, "".concat(key, ".0"), get(data, "".concat(key, "h")));
31
+ set(result, "".concat(key, ".1"), get(data, "".concat(key, "m")));
32
+ break;
33
+ case 'apgar':
34
+ map(get(data, 'noenateRecord'), function (record, index) {
35
+ set(result, "".concat(key, ".").concat(index, ".apgar1"), get(record, 'apgar1'));
36
+ set(result, "".concat(key, ".").concat(index, ".apgar5"), get(record, 'apgar5'));
37
+ set(result, "".concat(key, ".").concat(index, ".apgar10"), get(record, 'apgar10'));
38
+ });
39
+ break;
40
+ case 'moment':
41
+ set(result, key, dayjs(get(data, path)));
42
+ break;
43
+ case 'default':
44
+ default:
45
+ set(result, key, get(data, path));
46
+ break;
47
+ }
48
+ });
49
+ return __assign(__assign({}, result), {
50
+ id: get(data, 'id')
51
+ });
52
+ };
53
+ var toApi = function toApi(data, nativeFormDescriptions) {
54
+ var isObjectKeyArray = [];
55
+ var isNotObjectKeyArray = [];
56
+ map(data, function (item, key) {
57
+ if (isObject(item)) {
58
+ isObjectKeyArray.push(key);
59
+ } else {
60
+ isNotObjectKeyArray.push(key);
61
+ }
62
+ });
63
+ var result = {};
64
+ var dataKeys = __spreadArray(__spreadArray([], isObjectKeyArray, true), isNotObjectKeyArray, true);
65
+ set(result, 'noenateRecords', get(data, 'fetusAppendages'));
66
+ map(dataKeys, function (key) {
67
+ var item = get(data, key);
68
+ var tranferRules = get(nativeFormDescriptions, "".concat(key, ".tranfer_rules"));
69
+ var type = 'default';
70
+ var path = key;
71
+ if (tranferRules && JSON.parse(tranferRules)) {
72
+ var tranferRulesJson = JSON.parse(tranferRules);
73
+ type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
74
+ path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
75
+ }
76
+ switch (type) {
77
+ case 'key_and_keyNote':
78
+ set(result, path, get(item, 'key'));
79
+ set(result, "".concat(path, "Note"), get(item, 'keyNote'));
80
+ break;
81
+ case 'stage':
82
+ set(result, "".concat(key, "h"), Number(get(item, '0')));
83
+ set(result, "".concat(key, "m"), Number(get(item, '1')));
84
+ break;
85
+ case 'apgar':
86
+ map(get(data, 'noenateRecord'), function (record, index) {
87
+ set(result, "".concat(key, ".").concat(index, ".apgar1"), get(record, 'apgar1'));
88
+ set(result, "".concat(key, ".").concat(index, ".apgar5"), get(record, 'apgar5'));
89
+ set(result, "".concat(key, ".").concat(index, ".apgar10"), get(record, 'apgar10'));
90
+ });
91
+ break;
92
+ case 'moment':
93
+ set(result, path, formatDateTime(item));
94
+ break;
95
+ case 'fetusAppendages':
96
+ break;
97
+ case 'default':
98
+ default:
99
+ set(result, path, item);
100
+ break;
101
+ }
102
+ });
103
+ return result;
104
+ };
105
+ var Panel = function (_super) {
106
+ __extends(Panel, _super);
107
+ function Panel() {
108
+ return _super !== null && _super.apply(this, arguments) || this;
109
+ }
110
+ Panel.defaultProps = {
111
+ baseUrl: '/api/breast-cancers',
112
+ request: fubaoRequest,
113
+ moduleName: 'breast-cancer',
114
+ title: '乳腺癌筛查情况',
115
+ toApi: toApi,
116
+ fromApi: fromApi,
117
+ Form: AdmissionForm
118
+ };
119
+ return Panel;
120
+ }(BaseEditPanel);
121
+ export { Panel as default };
@@ -1,8 +1,7 @@
1
- import _get from 'lodash/get';
2
- import { b as __extends, c as __assign, _ as __awaiter, a as __generator } from './tslib.es6.js';
1
+ import { c as __extends, b as __assign, _ as __awaiter, a as __generator } from './tslib.es6.js';
3
2
  import { BaseTableOld, BaseQuery, fubaoHistoryPush, BaseListOld } from '@lm_fe/components_m';
4
3
  import { formatDateTime, fubaoRequest } from '@lm_fe/utils';
5
- import _map from 'lodash/map';
4
+ import { get, map } from 'lodash';
6
5
  var ProductsTable = function (_super) {
7
6
  __extends(ProductsTable, _super);
8
7
  function ProductsTable() {
@@ -43,21 +42,21 @@ var tableColumns = [{
43
42
  dataIndex: 'outpatientNO',
44
43
  align: 'center',
45
44
  render: function render(value, rowData) {
46
- return _get(rowData, 'gynecologicalPatient.outpatientNO');
45
+ return get(rowData, 'gynecologicalPatient.outpatientNO');
47
46
  }
48
47
  }, {
49
48
  title: '姓名',
50
49
  dataIndex: 'name',
51
50
  align: 'center',
52
51
  render: function render(value, rowData) {
53
- return _get(rowData, 'gynecologicalPatient.name');
52
+ return get(rowData, 'gynecologicalPatient.name');
54
53
  }
55
54
  }, {
56
55
  title: '证件号码',
57
56
  dataIndex: 'idNO',
58
57
  align: 'center',
59
58
  render: function render(value, rowData) {
60
- return _get(rowData, 'gynecologicalPatient.idNO');
59
+ return get(rowData, 'gynecologicalPatient.idNO');
61
60
  }
62
61
  }, {
63
62
  title: '检查日期',
@@ -88,11 +87,11 @@ var tableColumns = [{
88
87
  align: 'center'
89
88
  }];
90
89
  var processFromApi = function processFromApi(data) {
91
- return _map(data, function (item) {
90
+ return map(data, function (item) {
92
91
  return __assign(__assign({}, item), {
93
- name: _get(item, 'wife.name'),
94
- age: _get(item, 'wife.age'),
95
- husbandname: _get(item, 'husband.name')
92
+ name: get(item, 'wife.name'),
93
+ age: get(item, 'wife.age'),
94
+ husbandname: get(item, 'husband.name')
96
95
  });
97
96
  });
98
97
  };
@@ -106,7 +105,7 @@ var List = function (_super) {
106
105
  };
107
106
  _this.handleEdit = function (rowData) {
108
107
  return function () {
109
- var id = _get(rowData, 'id');
108
+ var id = get(rowData, 'id');
110
109
  _this.props.history;
111
110
  fubaoHistoryPush("/gynecological-diseases/breast-cancer-screen/edit?id=".concat(id), _this.props);
112
111
  };
@@ -122,19 +121,19 @@ var List = function (_super) {
122
121
  switch (_a.label) {
123
122
  case 0:
124
123
  queryData = __assign({}, this.staticDefaultQuery);
125
- if (_get(data, 'outpatientNO')) {
124
+ if (get(data, 'outpatientNO')) {
126
125
  queryData = __assign(__assign({}, queryData), {
127
- 'gynecologicalPatientCriteria.outpatientNO.contains': _get(data, 'outpatientNO')
126
+ 'gynecologicalPatientCriteria.outpatientNO.contains': get(data, 'outpatientNO')
128
127
  });
129
128
  }
130
- if (_get(data, 'name')) {
129
+ if (get(data, 'name')) {
131
130
  queryData = __assign(__assign({}, queryData), {
132
- 'gynecologicalPatientCriteria.name.contains': _get(data, 'name')
131
+ 'gynecologicalPatientCriteria.name.contains': get(data, 'name')
133
132
  });
134
133
  }
135
- if (_get(data, 'idNO')) {
134
+ if (get(data, 'idNO')) {
136
135
  queryData = __assign(__assign({}, queryData), {
137
- 'gynecologicalPatientCriteria.idNO.contains': _get(data, 'idNO')
136
+ 'gynecologicalPatientCriteria.idNO.contains': get(data, 'idNO')
138
137
  });
139
138
  }
140
139
  return [4, this.setState({
@@ -167,4 +166,3 @@ var List = function (_super) {
167
166
  return List;
168
167
  }(BaseListOld);
169
168
  export { List as default };
170
- //# sourceMappingURL=.root21.js.map
@@ -1,10 +1,7 @@
1
- import 'antd/es/form/style';
2
- import _Form from 'antd/es/form';
3
- import 'antd/es/button/style';
4
- import _Button from 'antd/es/button';
5
- 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';
6
2
  import { RedoOutlined, SearchOutlined, ExportOutlined } from '@ant-design/icons';
7
3
  import { LazyAntd, RangePicker_L } from '@lm_fe/components';
4
+ import { Button, Form } from 'antd';
8
5
  import React, { Component } from 'react';
9
6
  var tableColumns1 = [{
10
7
  title: '项目县(区)',
@@ -445,14 +442,14 @@ var List = function (_super) {
445
442
  });
446
443
  };
447
444
  _this.renderBtn = function () {
448
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button, {
445
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
449
446
  icon: /*#__PURE__*/React.createElement(RedoOutlined, null),
450
447
  onClick: _this.handleReset
451
- }, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(_Button, {
448
+ }, "\u91CD\u7F6E"), /*#__PURE__*/React.createElement(Button, {
452
449
  type: "primary",
453
450
  icon: /*#__PURE__*/React.createElement(SearchOutlined, null),
454
451
  htmlType: "submit"
455
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
452
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
456
453
  type: "primary",
457
454
  icon: /*#__PURE__*/React.createElement(ExportOutlined, null),
458
455
  onClick: _this.handleExport
@@ -482,14 +479,14 @@ var List = function (_super) {
482
479
  paddingTop: 14,
483
480
  paddingBottom: 14
484
481
  }
485
- }, /*#__PURE__*/React.createElement(_Form, {
482
+ }, /*#__PURE__*/React.createElement(Form, {
486
483
  autoComplete: "off",
487
484
  ref: function ref(form) {
488
485
  _this.form = form;
489
486
  },
490
487
  layout: "inline",
491
488
  onFinish: this.handleSearch
492
- }, /*#__PURE__*/React.createElement(_Form.Item, {
489
+ }, /*#__PURE__*/React.createElement(Form.Item, {
493
490
  label: "\u5EFA\u6863\u65E5\u671F",
494
491
  name: "createDate"
495
492
  }, /*#__PURE__*/React.createElement(Select, {
@@ -506,7 +503,7 @@ var List = function (_super) {
506
503
  value: "3"
507
504
  }, "\u6309\u5B63\u5EA6"), /*#__PURE__*/React.createElement(Option, {
508
505
  value: "4"
509
- }, "\u6309\u6708\u5EA6"))), /*#__PURE__*/React.createElement(_Form.Item, {
506
+ }, "\u6309\u6708\u5EA6"))), /*#__PURE__*/React.createElement(Form.Item, {
510
507
  label: "",
511
508
  name: "date"
512
509
  }, /*#__PURE__*/React.createElement(RangePicker_L, {
@@ -515,13 +512,13 @@ var List = function (_super) {
515
512
  style: {
516
513
  width: 216
517
514
  }
518
- })), /*#__PURE__*/React.createElement(_Form.Item, {
515
+ })), /*#__PURE__*/React.createElement(Form.Item, {
519
516
  colon: false,
520
517
  label: "",
521
518
  style: {
522
519
  marginLeft: 12
523
520
  }
524
- }, /*#__PURE__*/React.createElement(_Button.Group, null, this.renderBtn())))), /*#__PURE__*/React.createElement("div", {
521
+ }, /*#__PURE__*/React.createElement(Button.Group, null, this.renderBtn())))), /*#__PURE__*/React.createElement("div", {
525
522
  id: "table-scrollContainer",
526
523
  className: "global-base-table_table"
527
524
  }, /*#__PURE__*/React.createElement(Table, {
@@ -550,4 +547,3 @@ var List = function (_super) {
550
547
  return List;
551
548
  }(Component);
552
549
  export { List as default };
553
- //# sourceMappingURL=.root24.js.map
@@ -0,0 +1,121 @@
1
+ import { c as __extends, b as __assign, d as __spreadArray } from './tslib.es6.js';
2
+ import { BaseEditPanelForm, BaseEditPanel } from '@lm_fe/components_m';
3
+ import { formatDateTime, fubaoRequest } from '@lm_fe/utils';
4
+ import { map, get, set, isObject } from 'lodash';
5
+ import dayjs from 'dayjs';
6
+ var AdmissionForm = function (_super) {
7
+ __extends(AdmissionForm, _super);
8
+ function AdmissionForm() {
9
+ return _super !== null && _super.apply(this, arguments) || this;
10
+ }
11
+ return AdmissionForm;
12
+ }(BaseEditPanelForm);
13
+ var fromApi = function fromApi(data, nativeFormDescriptions) {
14
+ var result = {};
15
+ map(nativeFormDescriptions, function (desctiption, key) {
16
+ var tranferRules = desctiption.tranfer_rules;
17
+ var type = 'default';
18
+ var path = key;
19
+ if (tranferRules && JSON.parse(tranferRules)) {
20
+ var tranferRulesJson = JSON.parse(tranferRules);
21
+ type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
22
+ path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
23
+ }
24
+ switch (type) {
25
+ case 'key_and_keyNote':
26
+ set(result, "".concat(key, ".key"), get(data, path));
27
+ set(result, "".concat(key, ".keyNote"), get(data, "".concat(path, "Note")));
28
+ break;
29
+ case 'stage':
30
+ set(result, "".concat(key, ".0"), get(data, "".concat(key, "h")));
31
+ set(result, "".concat(key, ".1"), get(data, "".concat(key, "m")));
32
+ break;
33
+ case 'apgar':
34
+ map(get(data, 'noenateRecord'), function (record, index) {
35
+ set(result, "".concat(key, ".").concat(index, ".apgar1"), get(record, 'apgar1'));
36
+ set(result, "".concat(key, ".").concat(index, ".apgar5"), get(record, 'apgar5'));
37
+ set(result, "".concat(key, ".").concat(index, ".apgar10"), get(record, 'apgar10'));
38
+ });
39
+ break;
40
+ case 'moment':
41
+ set(result, key, dayjs(get(data, path)));
42
+ break;
43
+ case 'default':
44
+ default:
45
+ set(result, key, get(data, path));
46
+ break;
47
+ }
48
+ });
49
+ return __assign(__assign({}, result), {
50
+ id: get(data, 'id')
51
+ });
52
+ };
53
+ var toApi = function toApi(data, nativeFormDescriptions) {
54
+ var isObjectKeyArray = [];
55
+ var isNotObjectKeyArray = [];
56
+ map(data, function (item, key) {
57
+ if (isObject(item)) {
58
+ isObjectKeyArray.push(key);
59
+ } else {
60
+ isNotObjectKeyArray.push(key);
61
+ }
62
+ });
63
+ var result = {};
64
+ var dataKeys = __spreadArray(__spreadArray([], isObjectKeyArray, true), isNotObjectKeyArray, true);
65
+ set(result, 'noenateRecords', get(data, 'fetusAppendages'));
66
+ map(dataKeys, function (key) {
67
+ var item = get(data, key);
68
+ var tranferRules = get(nativeFormDescriptions, "".concat(key, ".tranfer_rules"));
69
+ var type = 'default';
70
+ var path = key;
71
+ if (tranferRules && JSON.parse(tranferRules)) {
72
+ var tranferRulesJson = JSON.parse(tranferRules);
73
+ type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
74
+ path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
75
+ }
76
+ switch (type) {
77
+ case 'key_and_keyNote':
78
+ set(result, path, get(item, 'key'));
79
+ set(result, "".concat(path, "Note"), get(item, 'keyNote'));
80
+ break;
81
+ case 'stage':
82
+ set(result, "".concat(key, "h"), Number(get(item, '0')));
83
+ set(result, "".concat(key, "m"), Number(get(item, '1')));
84
+ break;
85
+ case 'apgar':
86
+ map(get(data, 'noenateRecord'), function (record, index) {
87
+ set(result, "".concat(key, ".").concat(index, ".apgar1"), get(record, 'apgar1'));
88
+ set(result, "".concat(key, ".").concat(index, ".apgar5"), get(record, 'apgar5'));
89
+ set(result, "".concat(key, ".").concat(index, ".apgar10"), get(record, 'apgar10'));
90
+ });
91
+ break;
92
+ case 'moment':
93
+ set(result, path, formatDateTime(item));
94
+ break;
95
+ case 'fetusAppendages':
96
+ break;
97
+ case 'default':
98
+ default:
99
+ set(result, path, item);
100
+ break;
101
+ }
102
+ });
103
+ return result;
104
+ };
105
+ var Panel = function (_super) {
106
+ __extends(Panel, _super);
107
+ function Panel() {
108
+ return _super !== null && _super.apply(this, arguments) || this;
109
+ }
110
+ Panel.defaultProps = {
111
+ baseUrl: '/api/cervical-cancers',
112
+ request: fubaoRequest,
113
+ moduleName: 'cervical-cancer',
114
+ title: '宫颈癌筛查情况',
115
+ toApi: toApi,
116
+ fromApi: fromApi,
117
+ Form: AdmissionForm
118
+ };
119
+ return Panel;
120
+ }(BaseEditPanel);
121
+ export { Panel as default };
@@ -1,8 +1,7 @@
1
- import _get from 'lodash/get';
2
- import { b as __extends, c as __assign, _ as __awaiter, a as __generator } from './tslib.es6.js';
1
+ import { c as __extends, b as __assign, _ as __awaiter, a as __generator } from './tslib.es6.js';
3
2
  import { BaseTableOld, BaseQuery, fubaoHistoryPush, BaseListOld } from '@lm_fe/components_m';
4
3
  import { formatDateTime, fubaoRequest } from '@lm_fe/utils';
5
- import _map from 'lodash/map';
4
+ import { get, map } from 'lodash';
6
5
  var ProductsTable = function (_super) {
7
6
  __extends(ProductsTable, _super);
8
7
  function ProductsTable() {
@@ -43,21 +42,21 @@ var tableColumns = [{
43
42
  dataIndex: 'outpatientNO',
44
43
  align: 'center',
45
44
  render: function render(value, rowData) {
46
- return _get(rowData, 'gynecologicalPatient.outpatientNO');
45
+ return get(rowData, 'gynecologicalPatient.outpatientNO');
47
46
  }
48
47
  }, {
49
48
  title: '姓名',
50
49
  dataIndex: 'name',
51
50
  align: 'center',
52
51
  render: function render(value, rowData) {
53
- return _get(rowData, 'gynecologicalPatient.name');
52
+ return get(rowData, 'gynecologicalPatient.name');
54
53
  }
55
54
  }, {
56
55
  title: '证件号码',
57
56
  dataIndex: 'idNO',
58
57
  align: 'center',
59
58
  render: function render(value, rowData) {
60
- return _get(rowData, 'gynecologicalPatient.idNO');
59
+ return get(rowData, 'gynecologicalPatient.idNO');
61
60
  }
62
61
  }, {
63
62
  title: '检查日期',
@@ -88,11 +87,11 @@ var tableColumns = [{
88
87
  align: 'center'
89
88
  }];
90
89
  var processFromApi = function processFromApi(data) {
91
- return _map(data, function (item) {
90
+ return map(data, function (item) {
92
91
  return __assign(__assign({}, item), {
93
- name: _get(item, 'wife.name'),
94
- age: _get(item, 'wife.age'),
95
- husbandname: _get(item, 'husband.name')
92
+ name: get(item, 'wife.name'),
93
+ age: get(item, 'wife.age'),
94
+ husbandname: get(item, 'husband.name')
96
95
  });
97
96
  });
98
97
  };
@@ -106,7 +105,7 @@ var List = function (_super) {
106
105
  };
107
106
  _this.handleEdit = function (rowData) {
108
107
  return function () {
109
- var id = _get(rowData, 'id');
108
+ var id = get(rowData, 'id');
110
109
  _this.props.history;
111
110
  fubaoHistoryPush("/gynecological-diseases/cervical-cancer-screen/edit?id=".concat(id), _this.props);
112
111
  };
@@ -122,19 +121,19 @@ var List = function (_super) {
122
121
  switch (_a.label) {
123
122
  case 0:
124
123
  queryData = __assign({}, this.staticDefaultQuery);
125
- if (_get(data, 'outpatientNO')) {
124
+ if (get(data, 'outpatientNO')) {
126
125
  queryData = __assign(__assign({}, queryData), {
127
- 'gynecologicalPatientCriteria.outpatientNO.contains': _get(data, 'outpatientNO')
126
+ 'gynecologicalPatientCriteria.outpatientNO.contains': get(data, 'outpatientNO')
128
127
  });
129
128
  }
130
- if (_get(data, 'name')) {
129
+ if (get(data, 'name')) {
131
130
  queryData = __assign(__assign({}, queryData), {
132
- 'gynecologicalPatientCriteria.name.contains': _get(data, 'name')
131
+ 'gynecologicalPatientCriteria.name.contains': get(data, 'name')
133
132
  });
134
133
  }
135
- if (_get(data, 'idNO')) {
134
+ if (get(data, 'idNO')) {
136
135
  queryData = __assign(__assign({}, queryData), {
137
- 'gynecologicalPatientCriteria.idNO.contains': _get(data, 'idNO')
136
+ 'gynecologicalPatientCriteria.idNO.contains': get(data, 'idNO')
138
137
  });
139
138
  }
140
139
  return [4, this.setState({
@@ -167,4 +166,3 @@ var List = function (_super) {
167
166
  return List;
168
167
  }(BaseListOld);
169
168
  export { List as default };
170
- //# sourceMappingURL=.root23.js.map