@lm_fe/pages 0.2.2 → 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 (52) hide show
  1. package/README.md +1 -1
  2. package/dist/a_chunks/{.root5.js → components.doctor_end.HeaderInfo.js} +3 -4
  3. package/dist/a_chunks/index.js +150 -64
  4. package/dist/a_chunks/{.root22.js → modals.entries.template_modal3.js} +5 -5
  5. package/dist/a_chunks/modals.entries./346/213/223/345/261/225/351/207/217/350/241/250.js +257 -0
  6. package/dist/a_chunks/{.root28.js → modals.entries./346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250.js} +1 -1
  7. package/dist/a_chunks/{.root32.js → modals.entries./351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206.js} +3 -2
  8. package/dist/a_chunks/{.root33.js → modals.entries./351/253/230/345/215/261/351/232/217/350/256/277.js} +1 -1
  9. package/dist/a_chunks/{.root10.js → src.block./346/243/200/351/252/214/346/243/200/346/237/245.js} +48 -149
  10. package/dist/a_chunks/{.root4.js → src.components.Base_List.js} +14 -3
  11. package/dist/a_chunks/{.root2.js → src.components.Layout_Sider.js} +1 -4
  12. package/dist/a_chunks/{.root3.js → src.components.Layout_TabButton.js} +4 -1
  13. package/dist/components/HighRiskTableEntry/utils.d.ts +4 -3
  14. package/dist/curve/components/FetusCanvas/use_fetus.d.ts +33 -0
  15. package/dist/curve/components-new/BmiCanvas/index.d.ts +23 -0
  16. package/dist/curve/components-new/FetusCanvas/index.d.ts +19 -0
  17. package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +21 -0
  18. package/dist/curve/components-new/Pregnogram/index.d.ts +13 -0
  19. package/dist/hooks/use_duck_form.d.ts +18 -0
  20. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +22 -0
  21. package/dist/modals/entries/template_modal3/index.d.ts +1 -0
  22. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/History.d.ts +10 -0
  23. package/dist/modals/entries//346/213/223/345/261/225/351/207/217/350/241/250/index.d.ts +9 -0
  24. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +12 -0
  25. package/dist/modals/index.d.ts +2 -1
  26. package/dist/modals/meta.d.ts +2 -1
  27. package/package.json +8 -8
  28. /package/dist/a_chunks/{.root6.js → components.doctor_end.ExemplaryCase.js} +0 -0
  29. /package/dist/a_chunks/{.root11.js → curve.components.BmiCanvas.js} +0 -0
  30. /package/dist/a_chunks/{.root12.js → curve.components.FetusCanvas.js} +0 -0
  31. /package/dist/a_chunks/{.root13.js → curve.components.FetusCanvasNICHD.js} +0 -0
  32. /package/dist/a_chunks/{.root14.js → curve.components.Pregnogram.js} +0 -0
  33. /package/dist/a_chunks/{.root15.js → modals.entries.BF_Form.js} +0 -0
  34. /package/dist/a_chunks/{.root16.js → modals.entries.StupidTemplateModal2.js} +0 -0
  35. /package/dist/a_chunks/{.root17.js → modals.entries.box.js} +0 -0
  36. /package/dist/a_chunks/{.root18.js → modals.entries.modal_form.js} +0 -0
  37. /package/dist/a_chunks/{.root19.js → modals.entries.modal_page.js} +0 -0
  38. /package/dist/a_chunks/{.root20.js → modals.entries.print_modal.js} +0 -0
  39. /package/dist/a_chunks/{.root21.js → modals.entries.result_template.js} +0 -0
  40. /package/dist/a_chunks/{.root23.js → modals.entries.test.js} +0 -0
  41. /package/dist/a_chunks/{.root24.js → modals.entries.text_search.js} +0 -0
  42. /package/dist/a_chunks/{.root25.js → modals.entries./344/271/231/350/202/235/347/256/241/347/220/206.js"} +0 -0
  43. /package/dist/a_chunks/{.root26.js → modals.entries./345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250.js"} +0 -0
  44. /package/dist/a_chunks/{.root27.js → modals.entries./346/242/205/346/257/222/347/256/241/347/220/206.js"} +0 -0
  45. /package/dist/a_chunks/{.root29.js → modals.entries./347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250.js"} +0 -0
  46. /package/dist/a_chunks/{.root30.js → modals.entries./350/257/212/346/226/255/345/216/206/345/217/262.js"} +0 -0
  47. /package/dist/a_chunks/{.root31.js → modals.entries./351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257.js"} +0 -0
  48. /package/dist/a_chunks/{.root34.js → modals.entries./351/253/230/345/215/261/351/232/217/350/256/2772.js"} +0 -0
  49. /package/dist/a_chunks/{.root7.js → src.components.Login.js} +0 -0
  50. /package/dist/a_chunks/{.root9.js → src.components.MenuSearch.js} +0 -0
  51. /package/dist/a_chunks/{.root8.js → src.components.QuickDocButton.js} +0 -0
  52. /package/dist/a_chunks/{.root.js → src.pages.questionnaire.js} +0 -0
@@ -0,0 +1,257 @@
1
+ import { d as __rest, i as BF_Wrap2, a as __assign, b as __awaiter, c as __generator, m as mchcModal__ } from './index.js';
2
+ import { validate_form } from '@lm_fe/components';
3
+ import { Form, Empty, Row, Col, List, Modal, Space } from 'antd';
4
+ import React, { useState, useEffect } from 'react';
5
+ import { FormSectionForm, OkButton } from '@lm_fe/components_m';
6
+ import { request, get } from '@lm_fe/utils';
7
+ import '@lm_fe/env';
8
+ import '@lm_fe/provoke';
9
+ import '@lm_fe/service';
10
+ import 'lodash';
11
+ import 'classnames';
12
+ function ExtHistory(_a) {
13
+ var _b;
14
+ var ext = _a.ext,
15
+ config = _a.config,
16
+ recordId = _a.recordId;
17
+ var _c = useState([{
18
+ modifiedDate: '2025-10-22 12:44:01',
19
+ version: 1,
20
+ modifiedBy: 'admin'
21
+ }, {
22
+ modifiedDate: '2025-10-22 12:44:01',
23
+ version: 2,
24
+ modifiedBy: 'admin'
25
+ }, {
26
+ modifiedDate: '2025-10-22 12:44:01',
27
+ version: 3,
28
+ modifiedBy: 'admin'
29
+ }, {
30
+ modifiedDate: '2025-10-22 12:44:01',
31
+ version: 4,
32
+ modifiedBy: 'admin'
33
+ }, {
34
+ modifiedDate: '2025-10-22 12:44:01',
35
+ version: 5,
36
+ modifiedBy: 'admin'
37
+ }, {
38
+ modifiedDate: '2025-10-22 12:44:01',
39
+ version: 6,
40
+ modifiedBy: 'admin'
41
+ }, {
42
+ modifiedDate: '2025-10-22 12:44:01',
43
+ version: 7,
44
+ modifiedBy: 'admin'
45
+ }]),
46
+ list = _c[0],
47
+ set_list = _c[1];
48
+ var _d = useState(),
49
+ active = _d[0],
50
+ set_active = _d[1];
51
+ var ext_value = ext.value;
52
+ var base_args = {
53
+ recordId: recordId
54
+ };
55
+ var form = Form.useForm()[0];
56
+ useEffect(function () {
57
+ request.get("/api/assessment/".concat(ext_value, "/historyList"), {
58
+ params: base_args
59
+ }).then(function (res) {
60
+ var arr = res.data;
61
+ set_list(arr);
62
+ if (arr.length) set_active(arr[0]);
63
+ });
64
+ return function () {};
65
+ }, []);
66
+ useEffect(function () {
67
+ if (active) getDetail(active);
68
+ return function () {};
69
+ }, [active]);
70
+ function getDetail(item) {
71
+ request.get("/api/assessment/".concat(ext_value, "/historyDetail"), {
72
+ params: item
73
+ }).then(function (res) {
74
+ return form.setFieldsValue(res.data);
75
+ });
76
+ }
77
+ if (!list.length) return /*#__PURE__*/React.createElement(Empty, null);
78
+ return /*#__PURE__*/React.createElement(Row, {
79
+ style: {
80
+ height: '100%'
81
+ }
82
+ }, /*#__PURE__*/React.createElement(Col, {
83
+ span: 4,
84
+ style: {
85
+ height: '100%',
86
+ overflow: 'auto'
87
+ }
88
+ }, /*#__PURE__*/React.createElement(List, {
89
+ dataSource: list,
90
+ renderItem: function renderItem(item, index) {
91
+ return /*#__PURE__*/React.createElement(List.Item, {
92
+ onClick: function onClick() {
93
+ return set_active(item);
94
+ }
95
+ }, /*#__PURE__*/React.createElement(List.Item.Meta, {
96
+ style: {
97
+ cursor: 'pointer',
98
+ background: item.version === (active === null || active === void 0 ? void 0 : active.version) ? '#ddd' : ''
99
+ },
100
+ title: item.modifiedDate,
101
+ description: item.modifiedBy
102
+ }));
103
+ }
104
+ })), /*#__PURE__*/React.createElement(Col, {
105
+ span: 20,
106
+ style: {
107
+ height: '100%',
108
+ overflow: 'auto'
109
+ }
110
+ }, /*#__PURE__*/React.createElement(FormSectionForm, {
111
+ targetLabelCol: (_b = config === null || config === void 0 ? void 0 : config.targetLabelCol) !== null && _b !== void 0 ? _b : 8,
112
+ form: form,
113
+ bf_config: config
114
+ })));
115
+ }
116
+ function Index(props) {
117
+ var _a;
118
+ var modal_data = props.modal_data;
119
+ props.close;
120
+ var others = __rest(props, ["modal_data", "close"]);
121
+ var headerInfo = modal_data.headerInfo,
122
+ ext = modal_data.ext;
123
+ var ext_value = ext.value;
124
+ var ext_label = ext.label;
125
+ if (!ext_label || !ext_label || !headerInfo) return /*#__PURE__*/React.createElement(Empty, null);
126
+ var _b = useState({}),
127
+ data = _b[0],
128
+ setData = _b[1];
129
+ var relationId = headerInfo.id;
130
+ var form = Form.useForm()[0];
131
+ var _c = BF_Wrap2({
132
+ default_conf: {
133
+ title: "\u62D3\u5C55\u91CF\u8868-".concat(ext.value)
134
+ }
135
+ }),
136
+ config = _c.config,
137
+ Wrap = _c.Wrap;
138
+ var base_args = {
139
+ relationId: relationId
140
+ };
141
+ function fetch_data() {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var res;
144
+ return __generator(this, function (_a) {
145
+ switch (_a.label) {
146
+ case 0:
147
+ return [4, request.get("/api/assessment/".concat(ext_value), {
148
+ params: base_args
149
+ })];
150
+ case 1:
151
+ res = _a.sent();
152
+ setData(res.data);
153
+ return [2];
154
+ }
155
+ });
156
+ });
157
+ }
158
+ useEffect(function () {
159
+ fetch_data();
160
+ return function () {};
161
+ }, []);
162
+ useEffect(function () {
163
+ form.setFieldsValue(data);
164
+ return function () {};
165
+ }, [data]);
166
+ var data_id = get(data, 'id');
167
+ function handleOk() {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ var values, res;
170
+ return __generator(this, function (_a) {
171
+ switch (_a.label) {
172
+ case 0:
173
+ return [4, validate_form(form)];
174
+ case 1:
175
+ values = _a.sent();
176
+ if (!values) return [3, 3];
177
+ return [4, request.put("/api/assessment/".concat(ext_value), values, {
178
+ successText: '操作成功'
179
+ })];
180
+ case 2:
181
+ res = _a.sent();
182
+ setData(res.data);
183
+ _a.label = 3;
184
+ case 3:
185
+ return [2];
186
+ }
187
+ });
188
+ });
189
+ }
190
+ function open_history() {
191
+ mchcModal__.open('box', {
192
+ footer: null,
193
+ title: '历史记录',
194
+ width: '90vw',
195
+ styles: {
196
+ body: {
197
+ height: '80vh',
198
+ overflow: 'auto'
199
+ }
200
+ },
201
+ modal_data: {
202
+ content: /*#__PURE__*/React.createElement(ExtHistory, {
203
+ ext: ext,
204
+ recordId: data_id,
205
+ config: config
206
+ })
207
+ }
208
+ });
209
+ }
210
+ function renderFooter() {
211
+ return /*#__PURE__*/React.createElement(Space, {
212
+ style: {
213
+ display: 'flex',
214
+ alignItems: 'center',
215
+ justifyContent: 'center'
216
+ }
217
+ }, /*#__PURE__*/React.createElement(OkButton, {
218
+ hidden: !data_id,
219
+ onClick: open_history
220
+ }, "\u67E5\u770B\u5386\u53F2"), /*#__PURE__*/React.createElement(OkButton, {
221
+ hidden: !data_id,
222
+ onClick: function onClick() {
223
+ return mchcModal__.open('print_modal', {
224
+ modal_data: {
225
+ requestData: {
226
+ url: "/api/assessment/".concat(ext_value, "/print"),
227
+ template: ext_value,
228
+ relationId: relationId,
229
+ id: data_id
230
+ }
231
+ }
232
+ });
233
+ }
234
+ }, "\u6253\u5370"), /*#__PURE__*/React.createElement(OkButton, {
235
+ type: "primary",
236
+ onClick: handleOk
237
+ }, "\u786E\u5B9A"));
238
+ }
239
+ return /*#__PURE__*/React.createElement(Modal, __assign({}, others, {
240
+ title: ext_label,
241
+ width: '70vw',
242
+ styles: {
243
+ body: {
244
+ height: '80vh',
245
+ overflow: 'auto'
246
+ }
247
+ },
248
+ onOk: handleOk,
249
+ maskClosable: false,
250
+ footer: renderFooter()
251
+ }), /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(FormSectionForm, {
252
+ targetLabelCol: (_a = config === null || config === void 0 ? void 0 : config.targetLabelCol) !== null && _a !== void 0 ? _a : 8,
253
+ form: form,
254
+ bf_config: config
255
+ })));
256
+ }
257
+ export { Index as default };
@@ -47,7 +47,7 @@ function ThrombusDefault(props) {
47
47
  var _d = useState([]),
48
48
  guideKeys = _d[0],
49
49
  setGuideKeys = _d[1];
50
- var pregnancyId = headerInfo.id;
50
+ var pregnancyId = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id;
51
51
  useEffect(function () {
52
52
  (function () {
53
53
  return __awaiter(_this, void 0, void 0, function () {
@@ -608,9 +608,10 @@ function HighriskSign_Tag(props) {
608
608
  calAndSetData(tree_items, tag_arr);
609
609
  }
610
610
  function handle_tree_select(ids, e) {
611
- var custom_tags = get(initData, KEY, '').split(',').filter(function (_) {
611
+ var _a, _b;
612
+ var custom_tags = (_b = (_a = get(initData, KEY)) === null || _a === void 0 ? void 0 : _a.split(',').filter(function (_) {
612
613
  return !_.includes(':');
613
- });
614
+ })) !== null && _b !== void 0 ? _b : [];
614
615
  var tree_items = [];
615
616
  ids.forEach(function (k) {
616
617
  var _item = highRiskTreeDataMapping.current[k];
@@ -22,7 +22,7 @@ function Test(_a) {
22
22
  default_conf: {
23
23
  title: '高危管理-高危随访',
24
24
  tableColumns: function tableColumns() {
25
- return import('./.root34.js');
25
+ return import('./modals.entries.高危随访2.js');
26
26
  }
27
27
  }
28
28
  }),