@lm_fe/pages-mchc 0.2.5 → 0.2.7

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 (62) hide show
  1. package/README.md +1 -1
  2. package/dist/a_chunks/diagnoses-week.js +1 -1
  3. package/dist/a_chunks/index.js +16 -18
  4. package/dist/a_chunks/index2.js +1 -1
  5. package/dist/a_chunks/pages.config-table.list.js +1 -1
  6. package/dist/a_chunks/pages.config-table.panel.js +1 -1
  7. package/dist/a_chunks/pages.config-table.panel2.js +1 -1
  8. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end.js +7 -7
  9. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end10.js +46 -79
  10. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end11.js +75 -363
  11. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end12.js +334 -188
  12. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end13.js +213 -470
  13. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end14.js +463 -163
  14. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end15.js +135 -304
  15. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end16.js +320 -152
  16. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end17.js +181 -77
  17. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end18.js +70 -234
  18. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end19.js +239 -52
  19. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end2.js +1132 -341
  20. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end20.js +52 -251
  21. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end21.js +243 -99
  22. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end22.js +95 -83
  23. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end23.js +94 -515
  24. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end24.js +507 -297
  25. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end25.js +279 -408
  26. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end26.js +419 -103
  27. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end27.js +101 -187
  28. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end28.js +185 -423
  29. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end29.js +313 -246
  30. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end3.js +344 -550
  31. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end30.js +223 -133
  32. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end31.js +271 -93
  33. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end32.js +96 -216
  34. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end33.js +215 -117
  35. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end34.js +102 -91
  36. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end35.js +94 -22
  37. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end36.js +9 -16
  38. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end37.js +28 -44
  39. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end38.js +45 -41
  40. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end39.js +55 -108
  41. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end4.js +552 -30
  42. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end40.js +54 -105
  43. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end41.js +160 -234
  44. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end42.js +235 -0
  45. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end5.js +33 -40
  46. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end6.js +40 -33
  47. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end7.js +33 -40
  48. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end8.js +39 -33
  49. package/dist/a_chunks/prenatal-visit.pregnancy.doctor-end9.js +33 -39
  50. package/dist/a_chunks/prenatal-visit.pregnancy.nurse-end.js +4 -2
  51. package/dist/a_chunks/src.pages.config-table.js +1 -1
  52. package/dist/a_chunks/src.pages.system-config2.js +68 -56
  53. package/dist/a_chunks/utils.js +60 -110
  54. package/dist/a_chunks/utils2.js +113 -56
  55. package/dist/a_chunks/utils3.js +57 -0
  56. package/dist/pages/config-table/utils.d.ts +1 -0
  57. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherTable/index.d.ts +1 -0
  58. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/utils.d.ts +9 -0
  59. package/package.json +9 -9
  60. package/dist/a_chunks/DoctorEnd_FurtherPage.js +0 -1244
  61. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/config.d.ts +0 -9
  62. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherForm/config.d.ts +0 -6
@@ -0,0 +1,235 @@
1
+ import { s as styleInject, f as __rest, _ as __awaiter, a as __generator } from './index.js';
2
+ import { formatTimeToStandard, MyIcon } from '@lm_fe/components_m';
3
+ import { request } from '@lm_fe/utils';
4
+ import { Input, Popover, Popconfirm } from 'antd';
5
+ import classnames from 'classnames';
6
+ import { get, cloneDeep, map, set, size } from 'lodash';
7
+ import React, { useState, useEffect, useMemo } from 'react';
8
+ import { r as requestMethods_further } from './diagnoses-week.js';
9
+ import '@lm_fe/env';
10
+ import '@lm_fe/pages';
11
+ import '@lm_fe/service';
12
+ import '@lm_fe/components';
13
+ import '@lm_fe/provoke';
14
+ var css_248z = ".diag-title-tip {\n background-color: #515254;\n color: #fff;\n font-size: 14px;\n display: flex;\n flex-direction: column;\n}\n.diagnoses-container {\n margin-bottom: 12px;\n display: flex;\n align-items: center;\n padding-right: 20px;\n}\n.diagnoses-container:hover .delBtn {\n display: inline;\n float: right;\n}\n.diagnoses-container .diagnoses-item-content {\n display: flex;\n flex-direction: column;\n padding-left: 30px;\n position: relative;\n flex: 1;\n width: 100%;\n}\n.diagnoses-container .diagnoses-item-content .border {\n width: 0px;\n border-left: 2px dotted #d7dce7;\n height: calc(100% - 30px);\n position: absolute;\n top: 20px;\n left: 14px;\n z-index: 1;\n}\n.diagnoses-container .diagnoses-item-content .border::after {\n content: ' ';\n height: 8px;\n width: 8px;\n border-radius: 50%;\n background-color: #d7dce7;\n position: absolute;\n bottom: 0px;\n left: -5px;\n}\n.diagnoses-container .diagnoses-item-content .item-number {\n position: absolute;\n top: 10px;\n left: 5px;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n border: 2px solid #d7dce7;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2;\n color: #333541;\n font-weight: 400;\n}\n.diagnoses-container .diagnoses-item-content .note-content {\n background-color: #f3f6fd;\n border-radius: 4px;\n line-height: 32px;\n margin-top: 4px;\n padding: 0 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.diagnoses-container .diagnoses-item-content .prenote-val-content {\n background-color: #e7f4fe;\n display: flex;\n align-items: center;\n line-height: 32px;\n width: 100%;\n border-radius: 4px;\n}\n.diagnoses-container .diagnoses-item-content .prenote-val-content .prenote {\n width: 72px;\n height: 20px;\n font-size: 14px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #535881;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0 4px;\n}\n.diagnoses-container .diagnoses-item-content .prenote-val-content .diagnoses-val {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0px;\n border-radius: 4px;\n}\n.diagnoses-container .diagnoses-item-content .prenote-val-content .highrisk {\n background-color: #fcb9c5;\n}\n.diagnoses-container .diagnoses-item-content .diagnoses-val {\n background-color: #e7f4fe;\n color: #150f55;\n font-size: 14px;\n font-weight: 600;\n line-height: 32px;\n border-radius: 4px;\n padding: 0 6px;\n}\n.diagnoses-container .diagnoses-item-content .margin {\n margin: 4px 0;\n}\n.diagnoses-container .diagnoses-item-content .highrisk {\n background-color: #fcb9c5;\n}\n.diagnoses-container .diagnoses-item-content .input-conetnt {\n background-color: #f3f6fd;\n border-radius: 4px;\n display: flex;\n align-items: center;\n}\n.diagnoses-container .diagnoses-item-content .input-conetnt .input-title {\n color: #828c99;\n font-weight: 600;\n font-size: 14px;\n width: 60px;\n}\n.diagnoses-container .diagnoses-item-content .input-conetnt .ant-input {\n border: none;\n background: #f3f6fd;\n line-height: 32px;\n padding: 0 6px;\n}\n.diagnoses-container .diagnoses-item-content .input-conetnt .ant-input:focus {\n box-shadow: none;\n}\n.diagnoses-container .delBtn {\n display: none;\n}\n.diagnoses-container input::-webkit-input-placeholder {\n /* WebKit browsers */\n color: #828c99;\n font-weight: 400;\n font-size: 14px;\n}\n.diagnoses-container input:-moz-placeholder {\n /* Mozilla Firefox 4 to 18 */\n color: #828c99;\n font-weight: 400;\n font-size: 14px;\n}\n.diagnoses-container input::-moz-placeholder {\n /* Mozilla Firefox 19+ */\n color: #828c99;\n font-weight: 400;\n font-size: 14px;\n}\n.diagnoses-container input:-ms-input-placeholder {\n /* Internet Explorer 10+ */\n color: #828c99;\n font-weight: 400;\n font-size: 14px;\n}\n.noedit {\n margin-bottom: 6px;\n}\n";
15
+ styleInject(css_248z);
16
+ function DiagnosesItem(_a) {
17
+ var _this = this;
18
+ var updateNote = _a.updateNote,
19
+ handleDelete = _a.handleDelete;
20
+ _a.changeNote;
21
+ var diagnose = _a.diagnose,
22
+ index = _a.index,
23
+ edit = _a.edit,
24
+ props = __rest(_a, ["updateNote", "handleDelete", "changeNote", "diagnose", "index", "edit"]);
25
+ var _b = useState(get(diagnose, "note")),
26
+ note = _b[0],
27
+ setNote = _b[1];
28
+ var _c = useState(get(diagnose, "preNote")),
29
+ preNote = _c[0],
30
+ setPreNote = _c[1];
31
+ var _d = useState(null),
32
+ visibleId = _d[0],
33
+ setVisibleId = _d[1];
34
+ useEffect(function () {
35
+ setNote(get(diagnose, "note"));
36
+ setPreNote(get(diagnose, "preNote"));
37
+ }, [diagnose]);
38
+ function inputChange3(e) {
39
+ setNote(e.target.value);
40
+ }
41
+ function inputChange2(e) {
42
+ setPreNote(e.target.value);
43
+ }
44
+ function itemDelete() {
45
+ handleDelete && handleDelete(diagnose, index);
46
+ }
47
+ function inputBlur(key) {
48
+ return function () {
49
+ updateNote && updateNote(key == 'note' ? note : preNote, index, key);
50
+ };
51
+ }
52
+ var getTitle = useMemo(function () {
53
+ var createdDate = diagnose.createdDate ? "\u8BCA\u65AD\u65F6\u95F4: ".concat(formatTimeToStandard(diagnose.createdDate), "\n") : '';
54
+ var diagnosis = diagnose.diagnosis ? "\u8BCA\u65AD\u5168\u79F0: ".concat(diagnose.diagnosis, "\n") : '';
55
+ var preNote = diagnose.preNote ? "\u524D\u5907\u6CE8: ".concat(diagnose.preNote, "\n") : '';
56
+ var note = diagnose.note ? "\u540E\u5907\u6CE8: ".concat(diagnose.note, "\n") : '';
57
+ var doctor = diagnose.doctor ? "\u8BCA\u65AD\u533B\u751F: ".concat(diagnose.doctor, "\n") : '';
58
+ return "".concat(createdDate).concat(diagnosis).concat(preNote).concat(note).concat(doctor);
59
+ }, [diagnose]);
60
+ function changeHeaderInfo() {
61
+ return __awaiter(this, void 0, void 0, function () {
62
+ var headerInfo, saveHeaderInfo, res;
63
+ return __generator(this, function (_a) {
64
+ switch (_a.label) {
65
+ case 0:
66
+ headerInfo = props.headerInfo, saveHeaderInfo = props.saveHeaderInfo;
67
+ return [4, request.get('/api/doctor/getOutpatientHeaderInfo?id=' + get(headerInfo, "id"))];
68
+ case 1:
69
+ res = _a.sent();
70
+ saveHeaderInfo(res.data);
71
+ return [2];
72
+ }
73
+ });
74
+ });
75
+ }
76
+ function handleVisibleChange(visible, i) {
77
+ var diagnosesList = props.diagnosesList,
78
+ setDiagnosesList = props.setDiagnosesList;
79
+ var newList = cloneDeep(diagnosesList);
80
+ var item = newList[i];
81
+ map(newList, function (it, ind) {
82
+ if (get(it, "visible")) {
83
+ set(it, "visible", false);
84
+ }
85
+ });
86
+ item.visible = visible;
87
+ setDiagnosesList(newList);
88
+ }
89
+ var popoverContent = function popoverContent(item, i) {
90
+ var diagnosesList = props.diagnosesList,
91
+ setDiagnosesList = props.setDiagnosesList;
92
+ var handleHighrisk = function handleHighrisk() {
93
+ return __awaiter(_this, void 0, void 0, function () {
94
+ var newList, postData;
95
+ return __generator(this, function (_a) {
96
+ switch (_a.label) {
97
+ case 0:
98
+ newList = cloneDeep(diagnosesList);
99
+ set(newList, "[".concat(i, "].highrisk"), newList[i].highrisk ? false : true);
100
+ postData = newList[i];
101
+ return [4, requestMethods_further.newAddDiagnosis(postData)];
102
+ case 1:
103
+ _a.sent();
104
+ setDiagnosesList(newList);
105
+ changeHeaderInfo();
106
+ return [2];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ var handleSortChange = function handleSortChange(n) {
112
+ return __awaiter(_this, void 0, void 0, function () {
113
+ var newList;
114
+ return __generator(this, function (_a) {
115
+ switch (_a.label) {
116
+ case 0:
117
+ newList = cloneDeep(diagnosesList);
118
+ item.visible = false;
119
+ newList[i] = newList[i + n];
120
+ newList[i + n] = item;
121
+ newList.forEach(function (subItem, subIndex) {
122
+ subItem.sort = subIndex + 1;
123
+ });
124
+ return [4, requestMethods_further.sortDiagnoses(newList)];
125
+ case 1:
126
+ _a.sent();
127
+ setDiagnosesList(newList);
128
+ return [2];
129
+ }
130
+ });
131
+ });
132
+ };
133
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("span", {
134
+ className: "diagHandle",
135
+ onClick: function onClick() {
136
+ return handleHighrisk();
137
+ }
138
+ }, item.highrisk === true ? '取消高危诊断' : '标记高危诊断')), i ? (/*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("span", {
139
+ className: "diagHandle",
140
+ onClick: function onClick() {
141
+ return handleSortChange(-1);
142
+ }
143
+ }, "\u4E0A \u79FB"))) : null, i + 1 < size(diagnosesList) ? (/*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("span", {
144
+ className: "diagHandle",
145
+ onClick: function onClick() {
146
+ return handleSortChange(1);
147
+ }
148
+ }, "\u4E0B \u79FB"))) : null);
149
+ };
150
+ return /*#__PURE__*/React.createElement("div", {
151
+ id: edit ? "edit".concat(index) : "noedit".concat(index),
152
+ className: classnames('diagnoses-container', {
153
+ noedit: !edit
154
+ }),
155
+ title: getTitle
156
+ }, edit && (/*#__PURE__*/React.createElement("div", {
157
+ className: "diagnoses-item-content"
158
+ }, /*#__PURE__*/React.createElement("span", {
159
+ className: "item-number"
160
+ }, index + 2), /*#__PURE__*/React.createElement("div", {
161
+ className: "border"
162
+ }), /*#__PURE__*/React.createElement("div", {
163
+ className: "input-conetnt"
164
+ }, /*#__PURE__*/React.createElement(Input, {
165
+ placeholder: "\u8BF7\u8F93\u5165\u524D\u5907\u6CE8",
166
+ onChange: inputChange2,
167
+ onBlur: inputBlur('preNote'),
168
+ className: "my-input pre-input",
169
+ value: preNote
170
+ })), /*#__PURE__*/React.createElement(Popover, {
171
+ className: "diag-popover2",
172
+ trigger: "click",
173
+ content: popoverContent(diagnose, index),
174
+ visible: get(diagnose, "id") == visibleId,
175
+ onVisibleChange: function onVisibleChange(visible) {
176
+ return setTimeout(function () {
177
+ if (visible) {
178
+ setVisibleId(get(diagnose, "id"));
179
+ } else {
180
+ setVisibleId(null);
181
+ }
182
+ }, 200);
183
+ }
184
+ }, /*#__PURE__*/React.createElement("div", {
185
+ className: classnames('diagnoses-val margin', {
186
+ highrisk: get(diagnose, "highrisk")
187
+ })
188
+ }, get(diagnose, "diagnosis"))), /*#__PURE__*/React.createElement("div", {
189
+ className: "input-conetnt"
190
+ }, /*#__PURE__*/React.createElement(Input, {
191
+ placeholder: "\u8BF7\u8F93\u5165\u540E\u5907\u6CE8",
192
+ onChange: inputChange3,
193
+ onBlur: inputBlur('note'),
194
+ className: "my-input",
195
+ value: note
196
+ })))), !edit && (/*#__PURE__*/React.createElement("div", {
197
+ className: "diagnoses-item-content"
198
+ }, /*#__PURE__*/React.createElement("span", {
199
+ className: "item-number"
200
+ }, index + 2), /*#__PURE__*/React.createElement(Popover, {
201
+ className: "diag-popover2",
202
+ trigger: "click",
203
+ content: popoverContent(diagnose, index),
204
+ visible: !props.isShowDiagnosesTemplate && !!diagnose.visible,
205
+ onVisibleChange: function onVisibleChange(visible) {
206
+ return setTimeout(function () {
207
+ handleVisibleChange(visible, index);
208
+ }, 200);
209
+ }
210
+ }, /*#__PURE__*/React.createElement("div", {
211
+ className: classnames('prenote-val-content', {
212
+ highrisk: get(diagnose, "highrisk")
213
+ })
214
+ }, preNote && /*#__PURE__*/React.createElement("div", {
215
+ className: "prenote"
216
+ }, preNote), /*#__PURE__*/React.createElement("div", {
217
+ className: classnames('diagnoses-val', {
218
+ highrisk: get(diagnose, "highrisk")
219
+ })
220
+ }, get(diagnose, "diagnosis")))), note && /*#__PURE__*/React.createElement("div", {
221
+ className: "note-content"
222
+ }, note))), /*#__PURE__*/React.createElement(Popconfirm, {
223
+ placement: "topRight",
224
+ title: '你确定要删除这个诊断吗?',
225
+ onConfirm: itemDelete,
226
+ okText: "\u786E\u5B9A",
227
+ cancelText: "\u53D6\u6D88"
228
+ }, /*#__PURE__*/React.createElement(MyIcon, {
229
+ value: 'DeleteOutlined',
230
+ size: 6,
231
+ className: "delBtn",
232
+ type: "icon-cacncel"
233
+ })));
234
+ }
235
+ export { DiagnosesItem as default };
@@ -1,48 +1,41 @@
1
+ import { Table_L } from '@lm_fe/components';
1
2
  import { rt_ctx } from '@lm_fe/env';
2
- import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
3
- import { defineFormConfig } from '@lm_fe/service';
4
- import React from 'react';
5
- var ctx = rt_ctx;
6
- function BG(props) {
7
- var _a = BF_Wrap2({
3
+ import { BF_Wrap2 } from '@lm_fe/pages';
4
+ import { useState, useEffect } from 'react';
5
+ import { b as api } from './index.js';
6
+ import 'antd';
7
+ import '@lm_fe/components_m';
8
+ import '@lm_fe/service';
9
+ import '@lm_fe/utils';
10
+ import 'lodash';
11
+ var React = rt_ctx.React;
12
+ function BloodGlucose(_a) {
13
+ var pregnancyId = _a.pregnancyId;
14
+ var _b = useState([]),
15
+ data = _b[0],
16
+ setData = _b[1];
17
+ var _c = BF_Wrap2({
8
18
  default_conf: {
9
- title: '居家监护-血糖列表-可编辑',
10
19
  tableColumns: function tableColumns() {
11
20
  return import('./prenatal-visit.pregnancy.doctor-end34.js');
12
21
  },
13
- name: '/api/blood-glucoses',
14
- searchParams: function searchParams() {
15
- return {
16
- 'pregnancyId.equals': ctx.props.pregnancyId
17
- };
18
- },
19
- searchConfig: defineFormConfig([{
20
- name: 'timestamp',
21
- title: '日期',
22
- inputType: 'MyRangeDateTime'
23
- }]),
24
- initialSearchValue: function initialSearchValue() {
25
- return {
26
- timestamp: ctx.utils.getMomentRange().近一月.map(ctx.utils.formatDateTime)
27
- };
28
- },
29
- handleBeforePopup: function handleBeforePopup(v) {
30
- if (!v.pregnancy) {
31
- v.pregnancy = {
32
- id: ctx.props.pregnancyId
33
- };
34
- }
35
- if (!v.timestamp) {
36
- v.timestamp = ctx.utils.formatDateTime();
37
- }
38
- return v;
39
- }
22
+ title: '居家监护-血糖列表'
40
23
  }
41
- }, props),
42
- Wrap = _a.Wrap,
43
- config = _a.config;
44
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
45
- bf_conf: config
24
+ }),
25
+ Wrap = _c.Wrap,
26
+ config = _c.config;
27
+ useEffect(function () {
28
+ api.home.getBloodGlucoseInHome(pregnancyId).then(setData);
29
+ return function () {};
30
+ }, []);
31
+ return React.createElement(Wrap, null, React.createElement(Table_L, {
32
+ bordered: true,
33
+ style: {
34
+ marginTop: 12
35
+ },
36
+ columns: config === null || config === void 0 ? void 0 : config.tableColumns,
37
+ dataSource: data,
38
+ pagination: false
46
39
  }));
47
40
  }
48
- export { BG as default };
41
+ export { BloodGlucose as default };
@@ -1,41 +1,48 @@
1
- import { Table_L } from '@lm_fe/components';
2
1
  import { rt_ctx } from '@lm_fe/env';
3
- import { BF_Wrap2 } from '@lm_fe/pages';
4
- import { useState, useEffect } from 'react';
5
- import { b as api } from './index.js';
6
- import 'antd';
7
- import '@lm_fe/components_m';
8
- import '@lm_fe/service';
9
- import '@lm_fe/utils';
10
- import 'lodash';
11
- var React = rt_ctx.React;
12
- function BloodGlucose(_a) {
13
- var pregnancyId = _a.pregnancyId;
14
- var _b = useState([]),
15
- data = _b[0],
16
- setData = _b[1];
17
- var _c = BF_Wrap2({
2
+ import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
3
+ import { defineFormConfig } from '@lm_fe/service';
4
+ import React from 'react';
5
+ var ctx = rt_ctx;
6
+ function BG(props) {
7
+ var _a = BF_Wrap2({
18
8
  default_conf: {
9
+ title: '居家监护-血糖列表-可编辑',
19
10
  tableColumns: function tableColumns() {
20
11
  return import('./prenatal-visit.pregnancy.doctor-end35.js');
21
12
  },
22
- title: '居家监护-血压列表'
13
+ name: '/api/blood-glucoses',
14
+ searchParams: function searchParams() {
15
+ return {
16
+ 'pregnancyId.equals': ctx.props.pregnancyId
17
+ };
18
+ },
19
+ searchConfig: defineFormConfig([{
20
+ name: 'timestamp',
21
+ title: '日期',
22
+ inputType: 'MyRangeDateTime'
23
+ }]),
24
+ initialSearchValue: function initialSearchValue() {
25
+ return {
26
+ timestamp: ctx.utils.getMomentRange().近一月.map(ctx.utils.formatDateTime)
27
+ };
28
+ },
29
+ handleBeforePopup: function handleBeforePopup(v) {
30
+ if (!v.pregnancy) {
31
+ v.pregnancy = {
32
+ id: ctx.props.pregnancyId
33
+ };
34
+ }
35
+ if (!v.timestamp) {
36
+ v.timestamp = ctx.utils.formatDateTime();
37
+ }
38
+ return v;
39
+ }
23
40
  }
24
- }, {}),
25
- Wrap = _c.Wrap,
26
- config = _c.config;
27
- useEffect(function () {
28
- api.home.getBloodPressureInHome(pregnancyId).then(setData);
29
- return function () {};
30
- }, []);
31
- return React.createElement(Wrap, null, React.createElement(Table_L, {
32
- bordered: true,
33
- style: {
34
- marginTop: 12
35
- },
36
- columns: config === null || config === void 0 ? void 0 : config.tableColumns,
37
- dataSource: data,
38
- pagination: false
41
+ }, props),
42
+ Wrap = _a.Wrap,
43
+ config = _a.config;
44
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
45
+ bf_conf: config
39
46
  }));
40
47
  }
41
- export { BloodGlucose as default };
48
+ export { BG as default };
@@ -1,48 +1,41 @@
1
+ import { Table_L } from '@lm_fe/components';
1
2
  import { rt_ctx } from '@lm_fe/env';
2
- import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
3
- import { defineFormConfig } from '@lm_fe/service';
4
- import React from 'react';
5
- var ctx = rt_ctx;
6
- function BP(props) {
7
- var _a = BF_Wrap2({
3
+ import { BF_Wrap2 } from '@lm_fe/pages';
4
+ import { useState, useEffect } from 'react';
5
+ import { b as api } from './index.js';
6
+ import 'antd';
7
+ import '@lm_fe/components_m';
8
+ import '@lm_fe/service';
9
+ import '@lm_fe/utils';
10
+ import 'lodash';
11
+ var React = rt_ctx.React;
12
+ function BloodGlucose(_a) {
13
+ var pregnancyId = _a.pregnancyId;
14
+ var _b = useState([]),
15
+ data = _b[0],
16
+ setData = _b[1];
17
+ var _c = BF_Wrap2({
8
18
  default_conf: {
9
- title: '居家监护-血压列表-可编辑',
10
19
  tableColumns: function tableColumns() {
11
20
  return import('./prenatal-visit.pregnancy.doctor-end36.js');
12
21
  },
13
- name: '/api/blood-pressures',
14
- searchParams: function searchParams() {
15
- return {
16
- 'pregnancyId.equals': ctx.props.pregnancyId
17
- };
18
- },
19
- searchConfig: defineFormConfig([{
20
- name: 'timestamp',
21
- title: '日期',
22
- inputType: 'MyRangeDateTime'
23
- }]),
24
- initialSearchValue: function initialSearchValue() {
25
- return {
26
- timestamp: ctx.utils.getMomentRange().近一月.map(ctx.utils.formatDateTime)
27
- };
28
- },
29
- handleBeforePopup: function handleBeforePopup(v) {
30
- if (!v.pregnancy) {
31
- v.pregnancy = {
32
- id: ctx.props.pregnancyId
33
- };
34
- }
35
- if (!v.timestamp) {
36
- v.timestamp = ctx.utils.formatDateTime();
37
- }
38
- return v;
39
- }
22
+ title: '居家监护-血压列表'
40
23
  }
41
- }, props),
42
- Wrap = _a.Wrap,
43
- config = _a.config;
44
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
45
- bf_conf: config
24
+ }, {}),
25
+ Wrap = _c.Wrap,
26
+ config = _c.config;
27
+ useEffect(function () {
28
+ api.home.getBloodPressureInHome(pregnancyId).then(setData);
29
+ return function () {};
30
+ }, []);
31
+ return React.createElement(Wrap, null, React.createElement(Table_L, {
32
+ bordered: true,
33
+ style: {
34
+ marginTop: 12
35
+ },
36
+ columns: config === null || config === void 0 ? void 0 : config.tableColumns,
37
+ dataSource: data,
38
+ pagination: false
46
39
  }));
47
40
  }
48
- export { BP as default };
41
+ export { BloodGlucose as default };
@@ -1,42 +1,48 @@
1
- import { Table_L } from '@lm_fe/components';
2
1
  import { rt_ctx } from '@lm_fe/env';
3
- import { BF_Wrap2 } from '@lm_fe/pages';
4
- import { useState, useEffect } from 'react';
5
- import { b as api } from './index.js';
6
- import 'antd';
7
- import '@lm_fe/components_m';
8
- import '@lm_fe/service';
9
- import '@lm_fe/utils';
10
- import 'lodash';
2
+ import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
3
+ import { defineFormConfig } from '@lm_fe/service';
4
+ import React from 'react';
11
5
  var ctx = rt_ctx;
12
- var React = ctx.React;
13
- function FetalMovement(_a) {
14
- var pregnancyId = _a.pregnancyId;
15
- var _b = useState([]),
16
- data = _b[0],
17
- setData = _b[1];
18
- var _c = BF_Wrap2({
6
+ function BP(props) {
7
+ var _a = BF_Wrap2({
19
8
  default_conf: {
9
+ title: '居家监护-血压列表-可编辑',
20
10
  tableColumns: function tableColumns() {
21
11
  return import('./prenatal-visit.pregnancy.doctor-end37.js');
22
12
  },
23
- title: '居家监护-胎动列表'
13
+ name: '/api/blood-pressures',
14
+ searchParams: function searchParams() {
15
+ return {
16
+ 'pregnancyId.equals': ctx.props.pregnancyId
17
+ };
18
+ },
19
+ searchConfig: defineFormConfig([{
20
+ name: 'timestamp',
21
+ title: '日期',
22
+ inputType: 'MyRangeDateTime'
23
+ }]),
24
+ initialSearchValue: function initialSearchValue() {
25
+ return {
26
+ timestamp: ctx.utils.getMomentRange().近一月.map(ctx.utils.formatDateTime)
27
+ };
28
+ },
29
+ handleBeforePopup: function handleBeforePopup(v) {
30
+ if (!v.pregnancy) {
31
+ v.pregnancy = {
32
+ id: ctx.props.pregnancyId
33
+ };
34
+ }
35
+ if (!v.timestamp) {
36
+ v.timestamp = ctx.utils.formatDateTime();
37
+ }
38
+ return v;
39
+ }
24
40
  }
25
- }),
26
- Wrap = _c.Wrap,
27
- config = _c.config;
28
- useEffect(function () {
29
- api.home.getFetalMovementInHome(pregnancyId).then(setData);
30
- return function () {};
31
- }, []);
32
- return React.createElement(Wrap, null, React.createElement(Table_L, {
33
- bordered: true,
34
- style: {
35
- marginTop: 12
36
- },
37
- columns: config === null || config === void 0 ? void 0 : config.tableColumns,
38
- dataSource: data,
39
- pagination: false
41
+ }, props),
42
+ Wrap = _a.Wrap,
43
+ config = _a.config;
44
+ return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
45
+ bf_conf: config
40
46
  }));
41
47
  }
42
- export { FetalMovement as default };
48
+ export { BP as default };
@@ -1,48 +1,42 @@
1
+ import { Table_L } from '@lm_fe/components';
1
2
  import { rt_ctx } from '@lm_fe/env';
2
- import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
3
- import { defineFormConfig } from '@lm_fe/service';
4
- import React from 'react';
3
+ import { BF_Wrap2 } from '@lm_fe/pages';
4
+ import { useState, useEffect } from 'react';
5
+ import { b as api } from './index.js';
6
+ import 'antd';
7
+ import '@lm_fe/components_m';
8
+ import '@lm_fe/service';
9
+ import '@lm_fe/utils';
10
+ import 'lodash';
5
11
  var ctx = rt_ctx;
6
- function BP(props) {
7
- var _a = BF_Wrap2({
12
+ var React = ctx.React;
13
+ function FetalMovement(_a) {
14
+ var pregnancyId = _a.pregnancyId;
15
+ var _b = useState([]),
16
+ data = _b[0],
17
+ setData = _b[1];
18
+ var _c = BF_Wrap2({
8
19
  default_conf: {
9
- title: '居家监护-胎动列表-可编辑',
10
20
  tableColumns: function tableColumns() {
11
21
  return import('./prenatal-visit.pregnancy.doctor-end38.js');
12
22
  },
13
- name: '/api/fetal-movements',
14
- searchConfig: defineFormConfig([{
15
- name: 'timestamp',
16
- title: '日期',
17
- inputType: 'MyRangeDateTime'
18
- }]),
19
- initialSearchValue: function initialSearchValue() {
20
- return {
21
- timestamp: ctx.utils.getMomentRange().近一月.map(ctx.utils.formatDateTime)
22
- };
23
- },
24
- searchParams: function searchParams() {
25
- return {
26
- 'pregnancyId.equals': ctx.props.pregnancyId
27
- };
28
- },
29
- handleBeforePopup: function handleBeforePopup(v) {
30
- if (!v.pregnancy) {
31
- v.pregnancy = {
32
- id: ctx.props.pregnancyId
33
- };
34
- }
35
- if (!v.timestamp) {
36
- v.timestamp = ctx.utils.formatDateTime();
37
- }
38
- return v;
39
- }
23
+ title: '居家监护-胎动列表'
40
24
  }
41
- }, props),
42
- Wrap = _a.Wrap,
43
- config = _a.config;
44
- return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
45
- bf_conf: config
25
+ }),
26
+ Wrap = _c.Wrap,
27
+ config = _c.config;
28
+ useEffect(function () {
29
+ api.home.getFetalMovementInHome(pregnancyId).then(setData);
30
+ return function () {};
31
+ }, []);
32
+ return React.createElement(Wrap, null, React.createElement(Table_L, {
33
+ bordered: true,
34
+ style: {
35
+ marginTop: 12
36
+ },
37
+ columns: config === null || config === void 0 ? void 0 : config.tableColumns,
38
+ dataSource: data,
39
+ pagination: false
46
40
  }));
47
41
  }
48
- export { BP as default };
42
+ export { FetalMovement as default };
@@ -335,8 +335,10 @@ function NurseMain(props) {
335
335
  var pregnancy_id = (_a = get(props, "id")) !== null && _a !== void 0 ? _a : getSearchParamsValue('id');
336
336
  useEffect(function () {
337
337
  var _a;
338
- getHeaderInfo();
339
- set_activeKey((_a = mm[0]) === null || _a === void 0 ? void 0 : _a.title);
338
+ if (pregnancy_id) {
339
+ getHeaderInfo();
340
+ set_activeKey((_a = mm[0]) === null || _a === void 0 ? void 0 : _a.title);
341
+ }
340
342
  return function () {};
341
343
  }, [pregnancy_id]);
342
344
  function getHeaderData() {
@@ -11,7 +11,7 @@ import '@lm_fe/service';
11
11
  import '@lm_fe/utils';
12
12
  import 'lodash';
13
13
  import '@lm_fe/components';
14
- import './utils.js';
14
+ import './utils2.js';
15
15
  var index = function index(props) {
16
16
  useHistory();
17
17
  useEffect(function () {