@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,287 +1,119 @@
1
- import 'antd/es/space/style';
2
- import _Space from 'antd/es/space';
3
- import 'antd/es/button/style';
4
- import _Button from 'antd/es/button';
5
- import 'antd/es/divider/style';
6
- import _Divider from 'antd/es/divider';
7
- import 'antd/es/form/style';
8
- import _Form from 'antd/es/form';
9
- import { c as __assign, _ as __awaiter, a as __generator } from './tslib.es6.js';
10
- import { BF_Wrap2, MyBaseList, mchcModal__ } from '@lm_fe/pages';
11
- import { getSearchParamsValue, request, getMomentRange, formatDate } from '@lm_fe/utils';
12
- import React, { useState, useEffect } from 'react';
13
- import 'antd/es/empty/style';
14
- import _Empty from 'antd/es/empty';
15
- import 'antd/es/row/style';
16
- import _Row from 'antd/es/row';
17
- import 'antd/es/col/style';
18
- import _Col from 'antd/es/col';
19
- import { MyFormSectionForm, LoadingPlaceholder, PanelTitleWrapper } from '@lm_fe/components_m';
20
- import { mchcEnv } from '@lm_fe/env';
21
- function Template(props) {
22
- var _a;
23
- var data = props.data,
24
- form = props.form,
25
- deptLink = props.deptLink,
26
- disabled = props.disabled;
27
- if (!deptLink) return /*#__PURE__*/React.createElement("span", null, "\u672A\u80FD\u786E\u5B9A deptLink\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");
28
- var conf_fn = function conf_fn() {
29
- return import('./.root65.js');
30
- };
31
- var _b = useState(),
32
- cur_tmp = _b[0],
33
- setCur_tmp = _b[1];
34
- var _c = BF_Wrap2({
35
- default_conf: {
36
- title: "\u62A5\u544A\u5F55\u5165-\u6A21\u677F-".concat(deptLink),
37
- tableColumns: conf_fn
38
- }
39
- }),
40
- config = _c.config,
41
- Wrap = _c.Wrap;
42
- var tpl_conf = (_a = config === null || config === void 0 ? void 0 : config.tableColumns) !== null && _a !== void 0 ? _a : [];
43
- useEffect(function () {
44
- if (data) {
45
- var cur = tpl_conf.find(function (_) {
46
- return _.tpl_values.suitNO === data.suitNO;
47
- });
48
- if (cur) {
49
- cur.tpl_values = data;
50
- pick_tmp(cur);
51
- }
52
- } else {
53
- pick_tmp(tpl_conf[0]);
54
- }
55
- return function () {};
56
- }, [data, tpl_conf]);
57
- function pick_tmp(c) {
58
- if (!c) return;
59
- form.resetFields();
60
- setCur_tmp(c);
61
- form.setFieldsValue(c.tpl_values);
62
- }
63
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
64
- span: 2
65
- }, "\u8BF7\u9009\u62E9\u7EC4\u5957"), /*#__PURE__*/React.createElement(_Col, {
66
- span: 20
67
- }, tpl_conf.map(function (c) {
68
- var is_cur = (cur_tmp === null || cur_tmp === void 0 ? void 0 : cur_tmp.tpl_name) === c.tpl_name;
69
- var is_frozen = is_cur ? false : disabled || !!(data === null || data === void 0 ? void 0 : data.id);
70
- return /*#__PURE__*/React.createElement(_Button, {
71
- disabled: is_frozen,
72
- size: "small",
73
- onClick: function onClick() {
74
- return pick_tmp(c);
75
- },
76
- type: is_cur ? 'primary' : 'dashed',
77
- key: c.tpl_name
78
- }, c.tpl_name);
79
- }))), cur_tmp ? /*#__PURE__*/React.createElement(MyFormSectionForm, {
80
- disableAll: disabled,
81
- form: form,
82
- formDescriptions: cur_tmp === null || cur_tmp === void 0 ? void 0 : cur_tmp.tpl_form
83
- }) : /*#__PURE__*/React.createElement(_Empty, {
84
- description: "\u8BF7\u9009\u62E9\u6A21\u677F"
85
- }));
86
- }
87
- function ReportEntryInner(props) {
88
- var _this = this;
89
- var _a;
90
- var injected = props.injected;
91
- var idNO = (_a = props.idNO) !== null && _a !== void 0 ? _a : getSearchParamsValue('idNO');
92
- var conf_fn = function conf_fn() {
93
- return import('./.root64.js');
94
- };
95
- var _b = useState(),
96
- patient = _b[0],
97
- setPatient = _b[1];
98
- var form = _Form.useForm()[0];
99
- var _c = BF_Wrap2({
100
- default_conf: {
101
- title: '报告录入-报告列表',
102
- tableColumns: conf_fn,
103
- searchConfig: []
104
- }
105
- }),
106
- config = _c.config,
107
- Wrap = _c.Wrap;
108
- useEffect(function () {
109
- request.get('/api/patients', {
110
- params: {
111
- 'idNO.equals': idNO
112
- },
113
- ignore_usr: true
114
- }).then(function (res) {
115
- return setPatient(res.data[0]);
116
- });
117
- return function () {};
118
- }, []);
119
- function pop_modal() {
120
- mchcModal__.pop();
121
- }
122
- if (!patient) return /*#__PURE__*/React.createElement(LoadingPlaceholder, {
123
- tip: "\u6B63\u5728\u52A0\u8F7D ".concat(idNO, " \u7684\u62A5\u544A...")
124
- });
125
- /*#__PURE__*/
126
- React.createElement("div", {
127
- style: {
128
- padding: 4
129
- }
130
- }, /*#__PURE__*/React.createElement("span", null, "\u59D3\u540D:", patient.name), /*#__PURE__*/React.createElement(_Divider, {
131
- type: "vertical"
132
- }), /*#__PURE__*/React.createElement("span", null, "\u8BC1\u4EF6\u53F7:", idNO), /*#__PURE__*/React.createElement(_Divider, {
133
- type: "vertical"
134
- }), /*#__PURE__*/React.createElement("span", null, "\u6027\u522B:", mchcEnv.get_option_label('性别2', patient.gender)), /*#__PURE__*/React.createElement(_Divider, {
135
- type: "vertical"
136
- }), /*#__PURE__*/React.createElement("span", null, "\u5E74\u9F84:", patient.age));
137
- function check_row_disabled(rowData) {
138
- var 已审核 = (rowData === null || rowData === void 0 ? void 0 : rowData.state) === 2;
139
- return injected || 已审核;
140
- }
141
- function review(rows, cb) {
142
- return __awaiter(this, void 0, void 0, function () {
143
- var _rows;
144
- return __generator(this, function (_a) {
145
- switch (_a.label) {
146
- case 0:
147
- _rows = rows.filter(function (_) {
148
- return _.state !== 2;
149
- });
150
- if (!confirm("\u8BF7\u786E\u8BA4\u5BA1\u6838 ".concat(_rows.map(function (_) {
151
- return "".concat(_.suitName, "_").concat(_.examinationDate);
152
- }).join('、')))) return [3, 2];
153
- return [4, request.put('/api/reports/batch-review', {
154
- ids: _rows.map(function (_) {
155
- return _.id;
156
- })
157
- }, {
158
- ignore_usr: true
159
- })];
160
- case 1:
161
- _a.sent();
162
- cb();
163
- _a.label = 2;
164
- case 2:
165
- return [2];
166
- }
167
- });
168
- });
1
+ import { APP_CONFIG } from '@lm_fe/components_m';
2
+ import { rt_ctx } from '@lm_fe/env';
3
+ import { defineFormConfig } from '@lm_fe/service';
4
+ var ctx = rt_ctx;
5
+ var React = ctx.React;
6
+ function tableColumns(is_孕前) {
7
+ if (is_孕前 === void 0) {
8
+ is_孕前 = false;
169
9
  }
170
- var node = /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
171
- ignore_usr: true,
172
- name: "/api/reports",
173
- searchParams: idNO ? {
174
- 'patientInformationId.equals': patient.id
175
- } : undefined,
176
- needChecked: !injected,
177
- useListSourceCount: true,
178
- initialSearchValue: {
179
- validateDate: getMomentRange().近一周.map(formatDate)
180
- },
181
- searchConfig: idNO ? undefined : config === null || config === void 0 ? void 0 : config.searchConfig,
182
- showAdd: !injected,
183
- RenderBtns: function RenderBtns(ctx) {
184
- var selectRows = ctx.getCheckRows();
185
- return /*#__PURE__*/React.createElement(_Button.Group, null, /*#__PURE__*/React.createElement(_Button, {
186
- hidden: injected,
187
- disabled: !selectRows.length,
10
+ return defineFormConfig([{
11
+ title: '建档日期',
12
+ dataIndex: 'filingDay',
13
+ width: APP_CONFIG.CELL_WIDTH_SMALL
14
+ }, {
15
+ title: '女方姓名',
16
+ dataIndex: 'womanName',
17
+ width: APP_CONFIG.CELL_WIDTH_SMALL,
18
+ render: is_孕前 ? function (text, record) {
19
+ var id = record.id;
20
+ var _path = ctx.utils.transmit_happy_pre("/pre-pregnancy-care/wife/wife-exam?id=".concat(id), '/fubao');
21
+ return React.createElement(ctx.ui.Button, {
22
+ size: "small",
23
+ type: 'link',
188
24
  onClick: function onClick() {
189
- return review(selectRows, ctx.handleSearch);
25
+ return ctx.safeTo(_path);
190
26
  }
191
- }, "\u5BA1\u6838"), /*#__PURE__*/React.createElement(_Button, {
27
+ }, text);
28
+ } : function (text, record) {
29
+ var id = record.id;
30
+ var _path = ctx.utils.transmit_happy_pre("/premarital-care/wife-v2/wife-exam?id=".concat(id), '/fubao');
31
+ return React.createElement(ctx.ui.Button, {
32
+ size: "small",
33
+ type: 'link',
192
34
  onClick: function onClick() {
193
- mchcModal__.open('print_modal', {
194
- modal_data: {
195
- requestData: __assign({
196
- url: '/api/printReport'
197
- }, patient)
198
- }
199
- });
35
+ return ctx.safeTo(_path);
200
36
  }
201
- }, "\u6253\u5370"));
202
- },
203
- tableColumns: __DEV__ ? conf_fn : config === null || config === void 0 ? void 0 : config.tableColumns,
204
- RenderAction: function RenderAction(ctx) {
205
- var rowData = ctx.rowData;
206
- var row_disabled = check_row_disabled(rowData);
207
- return /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
37
+ }, text);
38
+ }
39
+ }, {
40
+ title: '女方门诊号',
41
+ dataIndex: 'womanOutpatientNo',
42
+ width: APP_CONFIG.CELL_WIDTH_SMALL
43
+ }, {
44
+ title: '女方年龄(岁)',
45
+ dataIndex: 'womanAge',
46
+ width: APP_CONFIG.CELL_WIDTH_SMALL
47
+ }, {
48
+ title: '女方手机号码',
49
+ dataIndex: 'womanTelephone',
50
+ width: APP_CONFIG.CELL_WIDTH_SMALL
51
+ }, {
52
+ title: '男方姓名',
53
+ dataIndex: 'manName',
54
+ width: APP_CONFIG.CELL_WIDTH_SMALL,
55
+ render: is_孕前 ? function (text, record) {
56
+ var id = record.id;
57
+ var _path = ctx.utils.transmit_happy_pre("/pre-pregnancy-care/husband/husband-exam?id=".concat(id), '/fubao');
58
+ return React.createElement(ctx.ui.Button, {
208
59
  size: "small",
209
- type: "primary",
60
+ type: 'link',
210
61
  onClick: function onClick() {
211
- return ctx.handleEdit(rowData);
62
+ return ctx.safeTo(_path);
212
63
  }
213
- }, "\u67E5\u770B"), /*#__PURE__*/React.createElement(_Button, {
214
- danger: true,
64
+ }, text);
65
+ } : function (text, record) {
66
+ var id = record.id;
67
+ var _path = ctx.utils.transmit_happy_pre("/premarital-care/husband-v2/husband-exam?id=".concat(id), '/fubao');
68
+ return React.createElement(ctx.ui.Button, {
215
69
  size: "small",
216
- hidden: row_disabled,
70
+ type: 'link',
217
71
  onClick: function onClick() {
218
- return ctx.handleDelete(rowData);
72
+ return ctx.safeTo(_path);
219
73
  }
220
- }, "\u5220\u9664"));
221
- },
222
- onModalOpen: function onModalOpen(ctx) {
223
- var _a;
224
- var rowData = ctx.rowData;
225
- var _id = (_a = rowData === null || rowData === void 0 ? void 0 : rowData.patientInformationId) !== null && _a !== void 0 ? _a : patient.id;
226
- var row_disabled = check_row_disabled(rowData);
227
- mchcModal__.open('test', {
228
- title: '报告查看',
229
- width: '66vw',
230
- modal_data: {
231
- content: /*#__PURE__*/React.createElement(Template, {
232
- disabled: row_disabled,
233
- deptLink: patient.deptLink,
234
- form: form,
235
- data: ctx.rowData
236
- })
74
+ }, text);
75
+ }
76
+ }, {
77
+ title: '男方门诊号',
78
+ dataIndex: 'manOutpatientNo',
79
+ width: APP_CONFIG.CELL_WIDTH_SMALL
80
+ }, {
81
+ title: '男方年龄(岁)',
82
+ dataIndex: 'manAge',
83
+ width: APP_CONFIG.CELL_WIDTH_SMALL
84
+ }, {
85
+ title: '男方手机号码',
86
+ dataIndex: 'manTelephone',
87
+ width: APP_CONFIG.CELL_WIDTH_SMALL
88
+ }, {
89
+ title: '档案状态',
90
+ dataIndex: 'fileStatus',
91
+ width: 68,
92
+ fixed: 'right',
93
+ align: 'center',
94
+ render: is_孕前 ? function (fileStatus, rowData) {
95
+ var id = rowData.id;
96
+ var _path = ctx.utils.transmit_happy_pre("/pre-pregnancy-care/file-management/edit?id=".concat(id), '/fubao');
97
+ var 已审核 = fileStatus === 2;
98
+ return React.createElement(ctx.ui.Button, {
99
+ onClick: function onClick() {
100
+ return ctx.safeTo(_path);
237
101
  },
238
- centered: false,
239
- footer: /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
240
- onClick: function onClick() {
241
- return __awaiter(_this, void 0, void 0, function () {
242
- var _a;
243
- return __generator(this, function (_b) {
244
- switch (_b.label) {
245
- case 0:
246
- if (!!row_disabled) return [3, 3];
247
- return [4, ctx.create_or_update(__assign(__assign(__assign({}, (_a = ctx.rowData) !== null && _a !== void 0 ? _a : {}), form.getFieldsValue()), {
248
- patientInformationId: _id
249
- }))];
250
- case 1:
251
- _b.sent();
252
- return [4, ctx.handleSearch()];
253
- case 2:
254
- _b.sent();
255
- _b.label = 3;
256
- case 3:
257
- pop_modal();
258
- return [2];
259
- }
260
- });
261
- });
262
- }
263
- }, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(_Button, {
264
- onClick: pop_modal
265
- }, "\u53D6\u6D88"))
266
- });
102
+ size: "small",
103
+ type: 已审核 ? 'default' : 'primary'
104
+ }, 已审核 ? '已审核' : '待审核');
105
+ } : function (fileStatus, rowData) {
106
+ var id = rowData.id;
107
+ var _path = ctx.utils.transmit_happy_pre("/premarital-care/file-management/edit?id=".concat(id), '/fubao');
108
+ var 已审核 = fileStatus === 2;
109
+ return React.createElement(ctx.ui.Button, {
110
+ onClick: function onClick() {
111
+ return ctx.safeTo(_path);
112
+ },
113
+ size: "small",
114
+ type: 已审核 ? 'default' : 'primary'
115
+ }, 已审核 ? '已审核' : '待审核');
267
116
  }
268
- }));
269
- if (injected) return node;
270
- return /*#__PURE__*/React.createElement(PanelTitleWrapper, {
271
- headerItems: [{
272
- title: '姓名',
273
- value: patient === null || patient === void 0 ? void 0 : patient.name
274
- }, {
275
- title: '性别',
276
- value: mchcEnv.get_option_label('性别2', patient === null || patient === void 0 ? void 0 : patient.gender)
277
- }, {
278
- title: '年龄',
279
- value: patient === null || patient === void 0 ? void 0 : patient.age
280
- }, {
281
- title: '证件号',
282
- value: patient === null || patient === void 0 ? void 0 : patient.idNO
283
- }]
284
- }, node);
117
+ }]);
285
118
  }
286
- export { ReportEntryInner as default };
287
- //# sourceMappingURL=.root62.js.map
119
+ export { tableColumns as default };
@@ -1,29 +1,45 @@
1
+ import '@lm_fe/env';
1
2
  import { defineFormConfig } from '@lm_fe/service';
2
- var form_config = defineFormConfig([{
3
- "title": "姓名",
4
- "dataIndex": "name"
3
+ var search = defineFormConfig([{
4
+ inputType: 'rangeDate',
5
+ name: 'filingDay',
6
+ label: '建档日期',
7
+ props: {}
5
8
  }, {
6
- "title": "证件号",
7
- "dataIndex": "idNO"
8
- }, {
9
- "title": "年龄",
10
- "dataIndex": "age"
11
- }, {
12
- "title": "性别",
13
- "dataIndex": "gender",
14
- inputType: 'MS',
15
- "inputProps": {
16
- "optionKey": "性别2"
9
+ inputType: 'Input',
10
+ name: 'womanTelephone',
11
+ label: '女方手机号码',
12
+ props: {
13
+ style: {
14
+ width: 130
15
+ }
17
16
  }
18
17
  }, {
19
- "title": "申请日期",
20
- "dataIndex": "applicationDate"
18
+ inputType: 'Input',
19
+ name: 'womanName',
20
+ label: '女方姓名',
21
+ props: {
22
+ style: {
23
+ width: 130
24
+ }
25
+ }
21
26
  }, {
22
- "title": "申请医生",
23
- "dataIndex": "applicationDoctor"
27
+ inputType: 'Input',
28
+ name: 'manTelephone',
29
+ label: '男方手机号码',
30
+ props: {
31
+ style: {
32
+ width: 130
33
+ }
34
+ }
24
35
  }, {
25
- "title": "科室",
26
- "dataIndex": "dept"
36
+ inputType: 'Input',
37
+ name: 'manName',
38
+ label: '男方姓名',
39
+ props: {
40
+ style: {
41
+ width: 130
42
+ }
43
+ }
27
44
  }]);
28
- export { form_config as default };
29
- //# sourceMappingURL=.root63.js.map
45
+ export { search as default };
@@ -1,20 +1,188 @@
1
+ import { rt_ctx } from '@lm_fe/env';
1
2
  import { defineFormConfig } from '@lm_fe/service';
3
+ var ctx = rt_ctx;
2
4
  var form_config = defineFormConfig([{
3
- title: '组套名',
4
- dataIndex: 'suitName'
5
- }, {
6
- title: '检验日期',
7
- dataIndex: 'examinationDate'
8
- }, {
9
- title: '审核状态',
10
- dataIndex: 'state',
11
- inputType: 'MS',
12
- inputProps: {
13
- options: '未审核,已审核'
14
- }
15
- }, {
16
- title: '审核人',
17
- dataIndex: 'reviewer'
5
+ "name": "基本信息",
6
+ "children": [{
7
+ "key": "name",
8
+ "label": "姓名",
9
+ "inputType": "input",
10
+ required: function required() {
11
+ return ctx.required;
12
+ },
13
+ layout: '1/3'
14
+ }, {
15
+ "key": "outpatientNo",
16
+ "label": "门诊号",
17
+ "inputType": "input",
18
+ required: function required() {
19
+ return ctx.required;
20
+ },
21
+ layout: '1/3'
22
+ }, {
23
+ "key": "telephone",
24
+ "label": "电话号码",
25
+ "inputType": "input",
26
+ "rules": [{
27
+ 'type': 'string',
28
+ 'min': 11,
29
+ 'message': '请输入11位手机号码'
30
+ }, {
31
+ 'max': 11,
32
+ 'message': '请输入正确的手机号码格式'
33
+ }],
34
+ layout: '1/3'
35
+ }, {
36
+ "key": "idType",
37
+ "label": "证件类型",
38
+ "inputType": "normal_select",
39
+ "tranferRules": {
40
+ 'type': 'IDCardMapping'
41
+ },
42
+ required: function required() {
43
+ return ctx.required;
44
+ },
45
+ layout: '1/3'
46
+ }, {
47
+ "key": "idNO",
48
+ "label": "证件号码",
49
+ "inputType": "input",
50
+ required: function required() {
51
+ return ctx.required;
52
+ },
53
+ layout: '1/3'
54
+ }, {
55
+ "key": "dob",
56
+ "label": "出生日期",
57
+ "inputType": "single_date_picker",
58
+ "tranferRules": {
59
+ 'type': 'dayjs()'
60
+ },
61
+ required: function required() {
62
+ return ctx.required;
63
+ },
64
+ layout: '1/3'
65
+ }, {
66
+ "key": "ethnic",
67
+ "label": "民族",
68
+ "inputType": "MS",
69
+ required: function required() {
70
+ return ctx.required;
71
+ },
72
+ "inputProps": {
73
+ uniqueKey: '民族s',
74
+ marshal: 0
75
+ },
76
+ layout: '1/3'
77
+ }, {
78
+ "key": "age",
79
+ "label": "年龄",
80
+ "inputType": "input_number",
81
+ required: function required() {
82
+ return ctx.required;
83
+ },
84
+ layout: '1/3'
85
+ }, {
86
+ "key": "permanentResidence",
87
+ "label": "籍贯",
88
+ "inputType": "MS",
89
+ required: function required() {
90
+ return ctx.required;
91
+ },
92
+ "inputProps": {
93
+ uniqueKey: '省份s'
94
+ },
95
+ layout: '1/3'
96
+ }, {
97
+ "key": "education",
98
+ "label": "文化程度",
99
+ "inputType": "MS",
100
+ "inputProps": {
101
+ uniqueKey: '文化程度s',
102
+ marshal: 0
103
+ },
104
+ layout: '1/3'
105
+ }, {
106
+ "key": "profession",
107
+ "label": "职业",
108
+ "inputType": "MS",
109
+ "inputProps": {
110
+ uniqueKey: '职业s',
111
+ marshal: 0
112
+ },
113
+ layout: '1/3'
114
+ }, {
115
+ "key": "nationality",
116
+ "label": "国籍",
117
+ "inputType": "country_select",
118
+ required: function required() {
119
+ return ctx.required;
120
+ },
121
+ layout: '1/3'
122
+ }, {
123
+ "key": "permanentResidenceAddress",
124
+ "label": "户口地址",
125
+ "inputType": "MyAddress",
126
+ required: function required() {
127
+ return ctx.required;
128
+ },
129
+ layout: '2/3'
130
+ }, {
131
+ "key": "residenceAddress",
132
+ "label": "居住地址",
133
+ "inputType": "MyAddress",
134
+ required: function required() {
135
+ return ctx.required;
136
+ },
137
+ "inputProps": {
138
+ addressBtns: [{
139
+ name: 'permanentResidenceAddress',
140
+ label: '同上'
141
+ }]
142
+ },
143
+ layout: '2/3'
144
+ }, {
145
+ "key": "imageAddress",
146
+ "label": "上传图片",
147
+ "inputType": "image_upload_preview_Intranet",
148
+ "inputProps": {
149
+ 'placeholder': '',
150
+ 'actionApi': '/api/premarital/check/uploadImage',
151
+ 'outputParamType': 'new'
152
+ },
153
+ "span": 12,
154
+ "offset": 0,
155
+ "formItemLayout": {
156
+ 'labelCol': {
157
+ 'span': 4
158
+ },
159
+ 'wrapperCol': {
160
+ 'span': 8
161
+ }
162
+ }
163
+ }, {
164
+ "key": "imageName",
165
+ "label": "图片名称",
166
+ "inputType": "input",
167
+ required: function required() {
168
+ return ctx.required;
169
+ },
170
+ "inputProps": {
171
+ 'placeholder': ''
172
+ },
173
+ "span": 12,
174
+ "offset": 0,
175
+ "formItemLayout": {
176
+ 'labelCol': {
177
+ 'span': 4
178
+ },
179
+ 'wrapperCol': {
180
+ 'span': 8
181
+ }
182
+ },
183
+ "styles": {
184
+ 'opacity': 0
185
+ }
186
+ }]
18
187
  }]);
19
188
  export { form_config as default };
20
- //# sourceMappingURL=.root64.js.map