@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.
- package/README.md +4 -2
- package/dist/a_chunks/.root.js +240 -280
- package/dist/a_chunks/.root10.js +9 -15
- package/dist/a_chunks/.root11.js +210 -244
- package/dist/a_chunks/.root12.js +2 -33
- package/dist/a_chunks/.root13.js +300 -331
- package/dist/a_chunks/.root14.js +2 -16
- package/dist/a_chunks/.root15.js +2 -16
- package/dist/a_chunks/.root16.js +4 -6
- package/dist/a_chunks/.root17.js +11 -2
- package/dist/a_chunks/.root18.js +10 -1
- package/dist/a_chunks/.root19.js +16 -27
- package/dist/a_chunks/.root2.js +22 -30
- package/dist/a_chunks/.root20.js +34 -38
- package/dist/a_chunks/.root21.js +16 -18
- package/dist/a_chunks/.root22.js +34 -38
- package/dist/a_chunks/.root23.js +16 -18
- package/dist/a_chunks/.root24.js +10 -14
- package/dist/a_chunks/.root25.js +10 -14
- package/dist/a_chunks/.root26.js +10 -14
- package/dist/a_chunks/.root27.js +16 -27
- package/dist/a_chunks/.root28.js +15 -19
- package/dist/a_chunks/.root29.js +15 -19
- package/dist/a_chunks/.root3.js +4 -6
- package/dist/a_chunks/.root30.js +9 -14
- package/dist/a_chunks/.root31.js +2 -10
- package/dist/a_chunks/.root32.js +11 -19
- package/dist/a_chunks/.root33.js +308 -335
- package/dist/a_chunks/.root34.js +1 -2
- package/dist/a_chunks/.root35.js +14 -154
- package/dist/a_chunks/.root36.js +7 -21
- package/dist/a_chunks/.root37.js +183 -1481
- package/dist/a_chunks/.root38.js +32 -2496
- package/dist/a_chunks/.root39.js +56 -83
- package/dist/a_chunks/.root4.js +4 -6
- package/dist/a_chunks/.root40.js +3 -3
- package/dist/a_chunks/.root41.js +56 -83
- package/dist/a_chunks/.root42.js +6 -20
- package/dist/a_chunks/.root43.js +183 -1526
- package/dist/a_chunks/.root44.js +13 -19
- package/dist/a_chunks/.root45.js +55 -82
- package/dist/a_chunks/.root46.js +55 -82
- package/dist/a_chunks/.root47.js +5 -8
- package/dist/a_chunks/.root48.js +30 -22
- package/dist/a_chunks/.root49.js +30 -43
- package/dist/a_chunks/.root5.js +3 -3
- package/dist/a_chunks/.root50.js +53 -226
- package/dist/a_chunks/.root51.js +64 -188
- package/dist/a_chunks/.root52.js +113 -3122
- package/dist/a_chunks/.root53.js +85 -134
- package/dist/a_chunks/.root54.js +3071 -175
- package/dist/a_chunks/.root55.js +127 -478
- package/dist/a_chunks/.root56.js +170 -910
- package/dist/a_chunks/.root57.js +376 -399
- package/dist/a_chunks/.root58.js +808 -687
- package/dist/a_chunks/.root59.js +495 -118
- package/dist/a_chunks/.root6.js +6 -9
- package/dist/a_chunks/.root60.js +773 -45
- package/dist/a_chunks/.root61.js +738 -97
- package/dist/a_chunks/.root62.js +105 -273
- package/dist/a_chunks/.root63.js +38 -22
- package/dist/a_chunks/.root64.js +184 -16
- package/dist/a_chunks/.root65.js +107 -241
- package/dist/a_chunks/.root66.js +132 -0
- package/dist/a_chunks/.root67.js +286 -0
- package/dist/a_chunks/.root68.js +817 -0
- package/dist/a_chunks/.root69.js +28 -0
- package/dist/a_chunks/.root7.js +2 -42
- package/dist/a_chunks/.root70.js +19 -0
- package/dist/a_chunks/.root71.js +247 -0
- package/dist/a_chunks/.root8.js +2 -12
- package/dist/a_chunks/.root9.js +16 -26
- package/dist/a_chunks/Form.js +3 -5
- package/dist/a_chunks/ModalForm.js +254 -280
- package/dist/a_chunks/api.js +311 -325
- package/dist/a_chunks/common.js +0 -1
- package/dist/a_chunks/config.js +135 -164
- package/dist/a_chunks/form_config.js +11 -130
- package/dist/a_chunks/index.js +43 -57
- package/dist/a_chunks/index2.js +148 -64
- package/dist/a_chunks/index3.js +131 -1151
- package/dist/a_chunks/index4.js +57 -1040
- package/dist/a_chunks/index5.js +142 -0
- package/dist/a_chunks/index6.js +1169 -0
- package/dist/a_chunks/index7.js +1006 -0
- package/dist/a_chunks/style-inject.es.js +0 -1
- package/dist/a_chunks/tslib.es6.js +1 -2
- package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js +0 -1
- package/dist/index.js +10 -5
- package/dist/pages/fubao/family-planning/file-management/doctor-desk/components/SurgicalRecordv2/Curettage/index.d.ts +1 -1
- package/dist/pages/fubao/family-planning/file-management/doctor-desk/components/VideoReport/method.d.ts +1 -1
- package/dist/pages/fubao/folic-acid/file-management/list/index copy.d.ts +1 -1
- 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
- package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/form_config.d.ts +2 -1
- package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index copy.d.ts +18 -0
- package/dist/pages/fubao/pre-pregnancy-care/file-management/edit/index.d.ts +3 -18
- package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/form_config_nv.d.ts +4 -0
- package/dist/pages/fubao/premarital-care/file-management/config/table.d.ts +1 -1
- package/dist/pages/fubao/premarital-care/file-management/edit/form_config.d.ts +2 -1
- package/dist/pages/fubao/premarital-care/file-management/edit/index copy 2.d.ts +17 -0
- package/dist/pages/fubao/premarital-care/file-management/edit/index.d.ts +3 -17
- package/dist/pages/fubao/statistic/abnormal-breast-cancer/index.d.ts +2 -0
- package/dist/pages/fubao/statistic/abnormal-cervical-cancer/index.d.ts +2 -0
- package/dist/pages/fubao/statistic/premarital-checkup/./345/251/232/346/243/200/351/232/217/350/256/277/index.d.ts +1 -1
- package/dist/pages/fubao/statistic/progestation-checkup/./345/255/225/346/243/200/351/232/217/350/256/277/index.d.ts +1 -1
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/meta.d.ts +2 -0
- package/package.json +19 -14
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root26.js.map +0 -1
- package/dist/a_chunks/.root27.js.map +0 -1
- package/dist/a_chunks/.root28.js.map +0 -1
- package/dist/a_chunks/.root29.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root30.js.map +0 -1
- package/dist/a_chunks/.root31.js.map +0 -1
- package/dist/a_chunks/.root32.js.map +0 -1
- package/dist/a_chunks/.root33.js.map +0 -1
- package/dist/a_chunks/.root34.js.map +0 -1
- package/dist/a_chunks/.root35.js.map +0 -1
- package/dist/a_chunks/.root36.js.map +0 -1
- package/dist/a_chunks/.root37.js.map +0 -1
- package/dist/a_chunks/.root38.js.map +0 -1
- package/dist/a_chunks/.root39.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root40.js.map +0 -1
- package/dist/a_chunks/.root41.js.map +0 -1
- package/dist/a_chunks/.root42.js.map +0 -1
- package/dist/a_chunks/.root43.js.map +0 -1
- package/dist/a_chunks/.root44.js.map +0 -1
- package/dist/a_chunks/.root45.js.map +0 -1
- package/dist/a_chunks/.root46.js.map +0 -1
- package/dist/a_chunks/.root47.js.map +0 -1
- package/dist/a_chunks/.root48.js.map +0 -1
- package/dist/a_chunks/.root49.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root50.js.map +0 -1
- package/dist/a_chunks/.root51.js.map +0 -1
- package/dist/a_chunks/.root52.js.map +0 -1
- package/dist/a_chunks/.root53.js.map +0 -1
- package/dist/a_chunks/.root54.js.map +0 -1
- package/dist/a_chunks/.root55.js.map +0 -1
- package/dist/a_chunks/.root56.js.map +0 -1
- package/dist/a_chunks/.root57.js.map +0 -1
- package/dist/a_chunks/.root58.js.map +0 -1
- package/dist/a_chunks/.root59.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root60.js.map +0 -1
- package/dist/a_chunks/.root61.js.map +0 -1
- package/dist/a_chunks/.root62.js.map +0 -1
- package/dist/a_chunks/.root63.js.map +0 -1
- package/dist/a_chunks/.root64.js.map +0 -1
- package/dist/a_chunks/.root65.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/Form.js.map +0 -1
- package/dist/a_chunks/ModalForm.js.map +0 -1
- package/dist/a_chunks/api.js.map +0 -1
- package/dist/a_chunks/common.js.map +0 -1
- package/dist/a_chunks/config.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/form_config.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/a_chunks/index2.js.map +0 -1
- package/dist/a_chunks/index3.js.map +0 -1
- package/dist/a_chunks/index4.js.map +0 -1
- package/dist/a_chunks/style-inject.es.js.map +0 -1
- package/dist/a_chunks/tslib.es6.js.map +0 -1
- package/dist/a_chunks//344/275/223/346/240/274/346/243/200/346/237/245_config.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/pages/fubao/pre-pregnancy-care/.public-exam/config/adapter.d.ts +0 -2
- package/dist/pages/fubao/premarital-care/.public-exam/config/adapter.d.ts +0 -2
- /package/dist/pages/fubao/premarital-care/.public-exam/SecondSex/{form_config.d.ts → form_config_nan.d.ts} +0 -0
package/dist/a_chunks/.root52.js
CHANGED
|
@@ -1,3129 +1,120 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
8
|
-
import store from 'store';
|
|
9
|
-
import { b as __extends, d as __spreadArray, _ as __awaiter, a as __generator, c as __assign, e as __rest } from './tslib.es6.js';
|
|
10
|
-
import dayjs from 'dayjs';
|
|
11
|
-
import _set from 'lodash/set';
|
|
12
|
-
import _get from 'lodash/get';
|
|
13
|
-
import { fubaoRequest, formatDate } from '@lm_fe/utils';
|
|
14
|
-
import 'antd/es/message/style';
|
|
15
|
-
import _message from 'antd/es/message';
|
|
16
|
-
import { SLocal_State, ModelService, mchcEnums } from '@lm_fe/service';
|
|
17
|
-
import 'antd/es/row/style';
|
|
18
|
-
import _Row from 'antd/es/row';
|
|
19
|
-
import 'antd/es/input-number/style';
|
|
20
|
-
import _InputNumber from 'antd/es/input-number';
|
|
21
|
-
import 'antd/es/auto-complete/style';
|
|
22
|
-
import _AutoComplete from 'antd/es/auto-complete';
|
|
23
|
-
import 'antd/es/col/style';
|
|
24
|
-
import _Col from 'antd/es/col';
|
|
25
|
-
import 'antd/es/divider/style';
|
|
26
|
-
import _Divider from 'antd/es/divider';
|
|
27
|
-
import 'antd/es/input/style';
|
|
28
|
-
import _Input from 'antd/es/input';
|
|
29
|
-
import 'antd/es/form/style';
|
|
30
|
-
import _Form from 'antd/es/form';
|
|
31
|
-
import _debounce from 'lodash/debounce';
|
|
32
|
-
import { LazyAntd, DatePicker_L } from '@lm_fe/components';
|
|
33
|
-
import { mchcLogger } from '@lm_fe/env';
|
|
34
|
-
import { r as renderForm0_shared, v as valueToForm } from './ModalForm.js';
|
|
35
|
-
import { _ as _extends } from './extends.js';
|
|
36
|
-
import 'antd/es/radio/style';
|
|
37
|
-
import _Radio from 'antd/es/radio';
|
|
38
|
-
import 'antd/es/steps/style';
|
|
39
|
-
import _Steps from 'antd/es/steps';
|
|
40
|
-
import { mchcModal__ } from '@lm_fe/pages';
|
|
41
|
-
import 'antd/es/typography/style';
|
|
42
|
-
import _Typography from 'antd/es/typography';
|
|
43
|
-
import 'antd/es/tag/style';
|
|
44
|
-
import _Tag from 'antd/es/tag';
|
|
45
|
-
import 'antd/es/popconfirm/style';
|
|
46
|
-
import _Popconfirm from 'antd/es/popconfirm';
|
|
47
|
-
import { CloseOutlined, DownOutlined, UpOutlined, ExclamationCircleOutlined, QuestionCircleOutlined, EditOutlined, DeleteOutlined, PlusCircleOutlined, LeftOutlined, RightOutlined, SyncOutlined } from '@ant-design/icons';
|
|
48
|
-
import { s as styleInject } from './style-inject.es.js';
|
|
49
|
-
import 'antd/es/popover/style';
|
|
50
|
-
import _Popover from 'antd/es/popover';
|
|
51
|
-
import _map from 'lodash/map';
|
|
52
|
-
import { N as NurseTypesMapping } from './config.js';
|
|
53
|
-
import 'antd/es/modal/style';
|
|
54
|
-
import 'antd/es/modal';
|
|
55
|
-
import 'antd/es/tabs/style';
|
|
56
|
-
import 'antd/es/tabs';
|
|
57
|
-
import 'lodash/isEmpty';
|
|
58
|
-
import 'antd/es/checkbox/style';
|
|
59
|
-
import 'antd/es/checkbox';
|
|
60
|
-
import 'lodash/cloneDeep';
|
|
61
|
-
import 'lodash/indexOf';
|
|
62
|
-
import 'lodash/filter';
|
|
1
|
+
import { d as __spreadArray } from './tslib.es6.js';
|
|
2
|
+
import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
|
|
3
|
+
import { getMomentRange, formatDate } from '@lm_fe/utils';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { F as Follow_up_btn_婚前 } from './index2.js';
|
|
6
|
+
import { defineFormConfig } from '@lm_fe/service';
|
|
63
7
|
import '@lm_fe/components_m';
|
|
64
|
-
import '
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return this._request({
|
|
144
|
-
url: '/api/family/planning/getEarlyPregnancyCheckSurgicalTypeCPE',
|
|
145
|
-
method: 'GET',
|
|
146
|
-
params: this.transferParams({
|
|
147
|
-
name: name
|
|
148
|
-
})
|
|
149
|
-
}).then(function (r) {
|
|
150
|
-
return r.data.map(function (_) {
|
|
151
|
-
return _this.transferSourceData(_);
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
MY_ModelService.prototype.getOptionalDoctorAndNurse = function () {
|
|
156
|
-
return this._request({
|
|
157
|
-
url: '/api/family/planning/getDoctorAndNurse',
|
|
158
|
-
method: 'GET',
|
|
159
|
-
params: {}
|
|
160
|
-
}).then(function (r) {
|
|
161
|
-
return r.data;
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
MY_ModelService.prototype.getFamilyPlanningDefaultSetting = function () {
|
|
165
|
-
return this._request({
|
|
166
|
-
url: '/api/family/planning/getFamilyPlanningDefaultSetting',
|
|
167
|
-
method: 'GET',
|
|
168
|
-
params: {}
|
|
169
|
-
}).then(function (r) {
|
|
170
|
-
return r.data;
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
MY_ModelService.prototype.getStatistic = function (start, end) {
|
|
174
|
-
return this._request({
|
|
175
|
-
url: '/api/family/planning/getAppointmentSignCompleteTimeoutNum',
|
|
176
|
-
method: 'GET',
|
|
177
|
-
params: {
|
|
178
|
-
'appointmentDate.greaterOrEqualThan': start.format('YYYY-MM-DD'),
|
|
179
|
-
'appointmentDate.lessOrEqualThan': end.format('YYYY-MM-DD')
|
|
180
|
-
}
|
|
181
|
-
}).then(function (r) {
|
|
182
|
-
return r.data;
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
return MY_ModelService;
|
|
186
|
-
}(ModelService);
|
|
187
|
-
var SModel_EarlyPregnancyCheckSurgeryType = new MY_ModelService$1({
|
|
188
|
-
n: 'EarlyPregnancyCheckSurgicalType',
|
|
189
|
-
prePath: '/family/planning',
|
|
190
|
-
addictionalParams: {
|
|
191
|
-
deleteFlag: 0
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
SModel_EarlyPregnancyCheckSurgeryType.DateKeys.push('appointmentDate', 'registrationDate', 'admissionTime');
|
|
195
|
-
SModel_EarlyPregnancyCheckSurgeryType.TimeKeys.push('appointmentTimeRangeStart', 'appointmentTimeRangeEnd');
|
|
196
|
-
var SModel_EarlyPregnancySurgicalTemplate = new ModelService({
|
|
197
|
-
n: 'EarlyPregnancySurgicalTemplate',
|
|
198
|
-
prePath: '/family/planning',
|
|
199
|
-
addictionalParams: {
|
|
200
|
-
deleteFlag: 0
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
new ModelService({
|
|
204
|
-
n: 'FamilyPlanningDefaultSetting',
|
|
205
|
-
addictionalParams: {
|
|
206
|
-
deleteFlag: 0
|
|
207
|
-
},
|
|
208
|
-
prePath: '/family/planning'
|
|
209
|
-
});
|
|
210
|
-
var MY_ModelService = function (_super) {
|
|
211
|
-
__extends(MY_ModelService, _super);
|
|
212
|
-
function MY_ModelService() {
|
|
213
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
214
|
-
}
|
|
215
|
-
MY_ModelService.prototype.getOpenSurgicalBySchedulingDate = function (schedulingDate) {
|
|
216
|
-
return this._request({
|
|
217
|
-
url: '/api/family/planning/getOpenSurgicalBySchedulingDate',
|
|
218
|
-
method: 'GET',
|
|
219
|
-
params: this.transferParams({
|
|
220
|
-
schedulingDate: schedulingDate
|
|
221
|
-
})
|
|
222
|
-
}).then(function (res) {
|
|
223
|
-
return res.data;
|
|
224
|
-
});
|
|
225
|
-
};
|
|
226
|
-
MY_ModelService.prototype.getBetweenList = function (start, end) {
|
|
227
|
-
end = end || start;
|
|
228
|
-
return this.getList({
|
|
229
|
-
params: {
|
|
230
|
-
'schedulingDate.greaterOrEqualThan': start.format('YYYY-MM-DD'),
|
|
231
|
-
'schedulingDate.lessOrEqualThan': end.format('YYYY-MM-DD')
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
return MY_ModelService;
|
|
236
|
-
}(ModelService);
|
|
237
|
-
var SModel_FamilyPlaningSchedulingDetails = new MY_ModelService({
|
|
238
|
-
n: 'SchedulingInformation',
|
|
239
|
-
prePath: '/family/planning',
|
|
240
|
-
addictionalParams: {
|
|
241
|
-
deleteFlag: 0
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
SModel_FamilyPlaningSchedulingDetails.DateKeys.push('schedulingDate', 'schedulingDate');
|
|
245
|
-
SModel_FamilyPlaningSchedulingDetails.equalsKeys.push('schedulingDate', 'schedulingDate');
|
|
246
|
-
var SModel_WorkQuestions = new ModelService({
|
|
247
|
-
n: '/work-questions'
|
|
248
|
-
});
|
|
249
|
-
SModel_WorkQuestions.jsonKeys.push('questionnaire');
|
|
250
|
-
new ModelService({
|
|
251
|
-
n: '/template-trees'
|
|
252
|
-
});
|
|
253
|
-
var stupidEnums = mchcEnums;
|
|
254
|
-
var EProgressStatus;
|
|
255
|
-
(function (EProgressStatus) {
|
|
256
|
-
EProgressStatus[EProgressStatus["\u5F85\u9884\u7EA6"] = 1] = "\u5F85\u9884\u7EA6";
|
|
257
|
-
EProgressStatus[EProgressStatus["\u5F85\u7B7E\u5230"] = 2] = "\u5F85\u7B7E\u5230";
|
|
258
|
-
EProgressStatus[EProgressStatus["\u5DF2\u7B7E\u5230"] = 3] = "\u5DF2\u7B7E\u5230";
|
|
259
|
-
EProgressStatus[EProgressStatus["\u5DF2\u5B8C\u6210"] = 4] = "\u5DF2\u5B8C\u6210";
|
|
260
|
-
})(EProgressStatus || (EProgressStatus = {}));
|
|
261
|
-
var EExaminationStatus;
|
|
262
|
-
(function (EExaminationStatus) {
|
|
263
|
-
EExaminationStatus[EExaminationStatus["\u6B63\u5E38"] = 1] = "\u6B63\u5E38";
|
|
264
|
-
EExaminationStatus[EExaminationStatus["\u5F02\u5E38"] = 2] = "\u5F02\u5E38";
|
|
265
|
-
EExaminationStatus[EExaminationStatus["\u672A\u67E5"] = 3] = "\u672A\u67E5";
|
|
266
|
-
})(EExaminationStatus || (EExaminationStatus = {}));
|
|
267
|
-
LazyAntd.Tree;
|
|
268
|
-
LazyAntd.TreeSelect;
|
|
269
|
-
var Select$2 = LazyAntd.Select,
|
|
270
|
-
Table = LazyAntd.Table;
|
|
271
|
-
LazyAntd.Dropdown;
|
|
272
|
-
LazyAntd.Pagination;
|
|
273
|
-
var InformedConsentTable = function InformedConsentTable(_a) {
|
|
274
|
-
var data = _a.data,
|
|
275
|
-
onChange = _a.onChange,
|
|
276
|
-
disabled = _a.disabled;
|
|
277
|
-
var _b = useState();
|
|
278
|
-
_b[0];
|
|
279
|
-
_b[1];
|
|
280
|
-
var _c = useState(data || []),
|
|
281
|
-
_data = _c[0],
|
|
282
|
-
set_data = _c[1];
|
|
283
|
-
useEffect(function () {
|
|
284
|
-
var d = _data.map(function (_) {
|
|
285
|
-
return {
|
|
286
|
-
id: _.id,
|
|
287
|
-
state: _.state || 0,
|
|
288
|
-
archiveTime: _.archiveTime || '',
|
|
289
|
-
consentName: _.consentName || ''
|
|
290
|
-
};
|
|
291
|
-
});
|
|
292
|
-
onChange(d);
|
|
293
|
-
}, [_data]);
|
|
294
|
-
function setData(item, k, value) {
|
|
295
|
-
item[k] = value;
|
|
296
|
-
set_data(__spreadArray([], _data, true));
|
|
297
|
-
}
|
|
298
|
-
useEffect(function () {
|
|
299
|
-
set_data(data || []);
|
|
300
|
-
console.log('form0 ', data);
|
|
301
|
-
}, [data]);
|
|
302
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
303
|
-
style: {
|
|
304
|
-
width: '100%',
|
|
305
|
-
padding: '0 50px'
|
|
306
|
-
}
|
|
307
|
-
}, /*#__PURE__*/React$1.createElement(Table, {
|
|
308
|
-
style: {
|
|
309
|
-
width: '100%',
|
|
310
|
-
margin: '12px 0'
|
|
311
|
-
},
|
|
312
|
-
pagination: false,
|
|
313
|
-
bordered: true,
|
|
314
|
-
dataSource: _data,
|
|
315
|
-
columns: [{
|
|
316
|
-
title: '知情同意书名称',
|
|
317
|
-
dataIndex: 'consentName',
|
|
318
|
-
width: 350,
|
|
319
|
-
render: function render(a, b) {
|
|
320
|
-
return /*#__PURE__*/React$1.createElement(_Input, {
|
|
321
|
-
disabled: disabled,
|
|
322
|
-
value: a,
|
|
323
|
-
onChange: function onChange(e) {
|
|
324
|
-
return b.consentName = e.target.value;
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
}, {
|
|
329
|
-
title: '状态',
|
|
330
|
-
dataIndex: 'state',
|
|
331
|
-
width: 350,
|
|
332
|
-
render: function render(a, b) {
|
|
333
|
-
return /*#__PURE__*/React$1.createElement(Select$2, {
|
|
334
|
-
disabled: disabled,
|
|
335
|
-
value: a,
|
|
336
|
-
options: ['待归档', '已归档'].map(function (_, i) {
|
|
337
|
-
return {
|
|
338
|
-
label: _,
|
|
339
|
-
value: i
|
|
340
|
-
};
|
|
341
|
-
}),
|
|
342
|
-
onChange: function onChange(i) {
|
|
343
|
-
setData(b, 'state', i);
|
|
344
|
-
b.archiveTime = i ? dayjs().format('YYYY-MM-DD HH-mm:ss') : '';
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
}, {
|
|
349
|
-
title: '归档时间',
|
|
350
|
-
dataIndex: 'archiveTime',
|
|
351
|
-
width: 200
|
|
352
|
-
}, {
|
|
353
|
-
title: '操作',
|
|
354
|
-
dataIndex: '',
|
|
355
|
-
align: 'center',
|
|
356
|
-
render: function render(a, b, idx) {
|
|
357
|
-
return /*#__PURE__*/React$1.createElement(_Button, {
|
|
358
|
-
disabled: disabled,
|
|
359
|
-
onClick: function onClick() {
|
|
360
|
-
_data.splice(idx, 1);
|
|
361
|
-
set_data(__spreadArray([], _data, true));
|
|
362
|
-
}
|
|
363
|
-
}, "\u5220\u9664");
|
|
364
|
-
}
|
|
365
|
-
}]
|
|
366
|
-
}), /*#__PURE__*/React$1.createElement(_Button, {
|
|
367
|
-
disabled: disabled,
|
|
368
|
-
block: true,
|
|
369
|
-
onClick: function onClick() {
|
|
370
|
-
return set_data(__spreadArray(__spreadArray([], _data, true), [{}], false));
|
|
371
|
-
}
|
|
372
|
-
}, "\u6DFB\u52A0\u77E5\u60C5\u540C\u610F\u4E66"));
|
|
373
|
-
};
|
|
374
|
-
var BookingService = function () {
|
|
375
|
-
function BookingService() {}
|
|
376
|
-
BookingService.prototype.booking = function () {};
|
|
377
|
-
BookingService.prototype.getKnowledgeType = function () {
|
|
378
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
return __generator(this, function (_a) {
|
|
380
|
-
switch (_a.label) {
|
|
381
|
-
case 0:
|
|
382
|
-
return [4, fubaoRequest.get('/api/dictionaries/134')];
|
|
383
|
-
case 1:
|
|
384
|
-
return [2, _a.sent().data];
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
BookingService.prototype.getKnowledge = function (type) {
|
|
390
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
391
|
-
return __generator(this, function (_a) {
|
|
392
|
-
switch (_a.label) {
|
|
393
|
-
case 0:
|
|
394
|
-
return [4, fubaoRequest.get("/api/knowledges?sort=id,desc&page=0&size=999&type.equals=".concat(type))];
|
|
395
|
-
case 1:
|
|
396
|
-
return [2, _a.sent().data];
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
BookingService.prototype.appointmentSurgery = function (data) {
|
|
402
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
403
|
-
return __generator(this, function (_a) {
|
|
404
|
-
switch (_a.label) {
|
|
405
|
-
case 0:
|
|
406
|
-
return [4, fubaoRequest.post('/api/family/planning/appointmentSurgery', __assign(__assign({}, data), {
|
|
407
|
-
progressStatus: EProgressStatus.待签到
|
|
408
|
-
}))];
|
|
409
|
-
case 1:
|
|
410
|
-
return [2, _a.sent().data];
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
};
|
|
415
|
-
BookingService.prototype.appointmentSurgerySign = function (data) {
|
|
416
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
417
|
-
return __generator(this, function (_a) {
|
|
418
|
-
switch (_a.label) {
|
|
419
|
-
case 0:
|
|
420
|
-
return [4, fubaoRequest.put('/api/family/planning/updateSurgeryProgress', __assign(__assign({}, data), {
|
|
421
|
-
progressStatus: EProgressStatus.已签到
|
|
422
|
-
}))];
|
|
423
|
-
case 1:
|
|
424
|
-
return [2, _a.sent().data];
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
|
-
};
|
|
429
|
-
return BookingService;
|
|
430
|
-
}();
|
|
431
|
-
var bookingService = new BookingService();
|
|
432
|
-
var StupidRadioGroup = function StupidRadioGroup(props) {
|
|
433
|
-
var options = props.options,
|
|
434
|
-
name = props.name,
|
|
435
|
-
value = props.value,
|
|
436
|
-
disabled = props.disabled,
|
|
437
|
-
others = __rest(props, ["options", "name", "value", "disabled"]);
|
|
438
|
-
var fuckInputNode = /*#__PURE__*/React$1.createElement(_Form.Item, {
|
|
439
|
-
name: "".concat(name, "Note"),
|
|
440
|
-
noStyle: true
|
|
441
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
442
|
-
size: "small",
|
|
443
|
-
disabled: disabled,
|
|
444
|
-
style: {
|
|
445
|
-
border: 'none',
|
|
446
|
-
borderBottom: '2px solid red',
|
|
447
|
-
borderRadius: 0,
|
|
448
|
-
width: 60
|
|
449
|
-
}
|
|
450
|
-
}));
|
|
451
|
-
return /*#__PURE__*/React$1.createElement(_Radio.Group, _extends({}, others, {
|
|
452
|
-
value: value,
|
|
453
|
-
disabled: disabled
|
|
454
|
-
}), options === null || options === void 0 ? void 0 : options.map(function (_) {
|
|
455
|
-
var isActive = value == _.value;
|
|
456
|
-
var style = Object.assign({}, isActive ? _.activeStyle : {});
|
|
457
|
-
return /*#__PURE__*/React$1.createElement(_Radio, {
|
|
458
|
-
key: _.value.toString(),
|
|
459
|
-
value: _.value
|
|
460
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
461
|
-
style: style
|
|
462
|
-
}, _.label, _.withFuckedInput && _.value === value ? fuckInputNode : null));
|
|
463
|
-
}));
|
|
464
|
-
};
|
|
465
|
-
LazyAntd.Tree;
|
|
466
|
-
LazyAntd.TreeSelect;
|
|
467
|
-
var Select$1 = LazyAntd.Select;
|
|
468
|
-
LazyAntd.Table;
|
|
469
|
-
LazyAntd.Dropdown;
|
|
470
|
-
LazyAntd.Pagination;
|
|
471
|
-
var Item$2 = _Form.Item;
|
|
472
|
-
var requiredRule = [{
|
|
473
|
-
required: true,
|
|
474
|
-
message: ''
|
|
475
|
-
}];
|
|
476
|
-
var examStatusOptions = Object.keys(EExaminationStatus).filter(function (_) {
|
|
477
|
-
return isNaN(Number(_));
|
|
478
|
-
}).map(function (label) {
|
|
479
|
-
return {
|
|
480
|
-
label: label,
|
|
481
|
-
value: EExaminationStatus[label],
|
|
482
|
-
activeStyle: EExaminationStatus[label] === EExaminationStatus.正常 ? {} : {
|
|
483
|
-
color: 'red'
|
|
484
|
-
},
|
|
485
|
-
withFuckedInput: EExaminationStatus[label] === EExaminationStatus.异常
|
|
486
|
-
};
|
|
487
|
-
});
|
|
488
|
-
var Form0 = function Form0(_a) {
|
|
489
|
-
var _b, _c, _d;
|
|
490
|
-
var form = _a.form,
|
|
491
|
-
setCommonData = _a.setCommonData,
|
|
492
|
-
commonData = _a.commonData;
|
|
493
|
-
var remoteData = commonData === null || commonData === void 0 ? void 0 : commonData.data;
|
|
494
|
-
var status = stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getLabel(remoteData === null || remoteData === void 0 ? void 0 : remoteData.progressStatus);
|
|
495
|
-
var canEdit = !status;
|
|
496
|
-
var disabled = !canEdit;
|
|
497
|
-
var _e = useState(false),
|
|
498
|
-
selected = _e[0],
|
|
499
|
-
setSelected = _e[1];
|
|
500
|
-
var _f = useState(false),
|
|
501
|
-
tracingFormVisible = _f[0],
|
|
502
|
-
setTracingFormVisible = _f[1];
|
|
503
|
-
var informedConsents = useRef([]);
|
|
504
|
-
var _g = useState([]);
|
|
505
|
-
_g[0];
|
|
506
|
-
var setKnowledgeTypList = _g[1];
|
|
507
|
-
var _h = useState(true);
|
|
508
|
-
_h[0];
|
|
509
|
-
_h[1];
|
|
510
|
-
var _j = useState([]);
|
|
511
|
-
_j[0];
|
|
512
|
-
_j[1];
|
|
513
|
-
var _k = useState([]),
|
|
514
|
-
optionalPregnancy = _k[0],
|
|
515
|
-
setOptionalPregnancy = _k[1];
|
|
516
|
-
var _l = useState(),
|
|
517
|
-
scheduleData = _l[0],
|
|
518
|
-
setScheduleData = _l[1];
|
|
519
|
-
var _m = useState([]),
|
|
520
|
-
operationList = _m[0],
|
|
521
|
-
setOperationList = _m[1];
|
|
522
|
-
var _o = useState({}),
|
|
523
|
-
_formData = _o[0],
|
|
524
|
-
set_formData = _o[1];
|
|
525
|
-
var _p = useState([]),
|
|
526
|
-
yearsSchedul = _p[0],
|
|
527
|
-
setYearsSchedul = _p[1];
|
|
528
|
-
getAttendanceOfThisDay(scheduleData);
|
|
529
|
-
var _q = getOperationNum(scheduleData, _formData.operationName),
|
|
530
|
-
all = _q.all,
|
|
531
|
-
reserved = _q.reserved;
|
|
532
|
-
var morningReservationNum = (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.morningReservationNum) || 0;
|
|
533
|
-
var afternoonReservationNum = (scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.afternoonReservationNum) || 0;
|
|
534
|
-
function setFormData(formData) {
|
|
535
|
-
if (formData) {
|
|
536
|
-
set_formData(formData);
|
|
537
|
-
form.setFieldsValue(__assign({}, formData));
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
function handleDateChange(date) {
|
|
541
|
-
if (!date) return;
|
|
542
|
-
Promise.all([getSchedulingData(date), SModel_FamilyPlaningSchedulingDetails.getOpenSurgicalBySchedulingDate(date)]).then(function (_a) {
|
|
543
|
-
var _schedule = _a[0],
|
|
544
|
-
strArr = _a[1];
|
|
545
|
-
setScheduleData(_schedule);
|
|
546
|
-
setOperationList(strArr);
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
useEffect(function () {
|
|
550
|
-
var date = remoteData === null || remoteData === void 0 ? void 0 : remoteData.appointmentDate;
|
|
551
|
-
mchcLogger.log('fuck date', {
|
|
552
|
-
remoteData: remoteData,
|
|
553
|
-
commonData: commonData
|
|
554
|
-
});
|
|
555
|
-
if (remoteData) {
|
|
556
|
-
setFormData(__assign(__assign({
|
|
557
|
-
appointmentPeople: (remoteData === null || remoteData === void 0 ? void 0 : remoteData.appointmentPeople) || SLocal_State.getUserData().firstName,
|
|
558
|
-
registrationDate: (remoteData === null || remoteData === void 0 ? void 0 : remoteData.registrationDate) || dayjs()
|
|
559
|
-
}, remoteData), remoteData.preoperativeExamination ? remoteData.preoperativeExamination : {}));
|
|
560
|
-
}
|
|
561
|
-
if (date) {
|
|
562
|
-
handleDateChange(date);
|
|
563
|
-
SModel_FamilyPlaningSchedulingDetails.getBetweenList(date.clone().startOf('year').subtract(365, 'day'), date.clone().endOf('year').add(365, 'day')).then(setYearsSchedul);
|
|
564
|
-
}
|
|
565
|
-
return function () {};
|
|
566
|
-
}, [commonData]);
|
|
567
|
-
useEffect(function () {
|
|
568
|
-
bookingService.getKnowledgeType().then(function (data) {
|
|
569
|
-
setKnowledgeTypList(data.enumerations);
|
|
570
|
-
});
|
|
571
|
-
SModel_EarlyPregnancyCheckSurgeryType.getOptionalPregnancyList().then(setOptionalPregnancy);
|
|
572
|
-
}, []);
|
|
573
|
-
function doid() {
|
|
574
|
-
if (!canEdit) {
|
|
575
|
-
return Promise.resolve();
|
|
576
|
-
}
|
|
577
|
-
return form.validateFields().then(function (values) {
|
|
578
|
-
var _a;
|
|
579
|
-
var submitData = __assign(__assign({}, values), {
|
|
580
|
-
earlyPregnancyCheckPacTrackingFollowUpRecord: __assign(__assign({}, valueToForm(values)), {
|
|
581
|
-
followUpState: '已完成'
|
|
582
|
-
}),
|
|
583
|
-
preoperativeExamination: values,
|
|
584
|
-
id: remoteData === null || remoteData === void 0 ? void 0 : remoteData.id,
|
|
585
|
-
informedConsents: informedConsents.current,
|
|
586
|
-
progressStatus: (_a = remoteData === null || remoteData === void 0 ? void 0 : remoteData.progressStatus) !== null && _a !== void 0 ? _a : stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('待签到'),
|
|
587
|
-
registrationDate: (remoteData === null || remoteData === void 0 ? void 0 : remoteData.registrationDate) || dayjs()
|
|
588
|
-
});
|
|
589
|
-
var p = !(remoteData === null || remoteData === void 0 ? void 0 : remoteData.id) || (remoteData === null || remoteData === void 0 ? void 0 : remoteData.progressStatus) === stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('待预约') ? SModel_EarlyPregnancyCheckSurgeryType.appointmentSurgery(submitData) : SModel_EarlyPregnancyCheckSurgeryType.appointmentSurgery(submitData);
|
|
590
|
-
return p.then(function (r) {
|
|
591
|
-
setCommonData(__assign(__assign({}, commonData), {
|
|
592
|
-
data: r
|
|
593
|
-
}));
|
|
594
|
-
return r;
|
|
595
|
-
});
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
form._validateFields = doid;
|
|
599
|
-
form._save = doid;
|
|
600
|
-
var searchName = useCallback(_debounce(function (v) {
|
|
601
|
-
return SModel_EarlyPregnancyCheckSurgeryType.getOptionalPregnancyList(v).then(setOptionalPregnancy);
|
|
602
|
-
}, 500), []);
|
|
603
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
604
|
-
className: "stupid-modal-body"
|
|
605
|
-
}, /*#__PURE__*/React$1.createElement(_Form, {
|
|
606
|
-
form: form,
|
|
607
|
-
labelCol: {
|
|
608
|
-
xs: 6
|
|
609
|
-
},
|
|
610
|
-
wrapperCol: {
|
|
611
|
-
xs: 14
|
|
612
|
-
},
|
|
613
|
-
onValuesChange: function onValuesChange(a, b) {
|
|
614
|
-
console.log('props', a);
|
|
615
|
-
set_formData(b);
|
|
616
|
-
}
|
|
617
|
-
}, /*#__PURE__*/React$1.createElement(_Divider, null, "\u60A3\u8005\u4FE1\u606F "), /*#__PURE__*/React$1.createElement(_Row, null, /*#__PURE__*/React$1.createElement(_Col, {
|
|
618
|
-
xs: 8,
|
|
619
|
-
hidden: true
|
|
620
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
621
|
-
label: "",
|
|
622
|
-
name: "operatingRoom",
|
|
623
|
-
rules: [{
|
|
624
|
-
required: false
|
|
625
|
-
}]
|
|
626
|
-
}, /*#__PURE__*/React$1.createElement(_Input, null))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
627
|
-
xs: 8
|
|
628
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
629
|
-
hidden: !!(remoteData === null || remoteData === void 0 ? void 0 : remoteData.id),
|
|
630
|
-
label: "\u59D3\u540D",
|
|
631
|
-
name: "name",
|
|
632
|
-
rules: requiredRule
|
|
633
|
-
}, /*#__PURE__*/React$1.createElement(_AutoComplete, {
|
|
634
|
-
showSearch: true,
|
|
635
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
636
|
-
options: optionalPregnancy.map(function (_) {
|
|
637
|
-
return {
|
|
638
|
-
label: _.name,
|
|
639
|
-
value: _.id
|
|
640
|
-
};
|
|
641
|
-
}),
|
|
642
|
-
onChange: function onChange(v) {
|
|
643
|
-
var target = optionalPregnancy.find(function (_) {
|
|
644
|
-
return _.id.toString() === v.toString();
|
|
645
|
-
});
|
|
646
|
-
if (target) {
|
|
647
|
-
setFormData(target);
|
|
648
|
-
}
|
|
649
|
-
setSelected(!!target);
|
|
650
|
-
},
|
|
651
|
-
optionFilterProp: "label",
|
|
652
|
-
onSearch: searchName
|
|
653
|
-
})), /*#__PURE__*/React$1.createElement(Item$2, {
|
|
654
|
-
hidden: !(remoteData === null || remoteData === void 0 ? void 0 : remoteData.id),
|
|
655
|
-
label: "\u59D3\u540D",
|
|
656
|
-
name: "name",
|
|
657
|
-
rules: requiredRule
|
|
658
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
659
|
-
disabled: selected || disabled
|
|
660
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
661
|
-
xs: 8
|
|
662
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
663
|
-
label: "\u95E8\u8BCA\u53F7",
|
|
664
|
-
name: "outpatientNo",
|
|
665
|
-
rules: requiredRule
|
|
666
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
667
|
-
disabled: selected || disabled
|
|
668
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
669
|
-
xs: 8
|
|
670
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
671
|
-
label: "\u8BC1\u4EF6\u53F7\u7801",
|
|
672
|
-
name: "idNO",
|
|
673
|
-
rules: requiredRule
|
|
674
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
675
|
-
disabled: selected || disabled
|
|
676
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
677
|
-
xs: 8
|
|
678
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
679
|
-
label: "\u624B\u673A\u53F7\u7801",
|
|
680
|
-
name: "telephone",
|
|
681
|
-
rules: requiredRule
|
|
682
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
683
|
-
disabled: selected || disabled
|
|
684
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
685
|
-
xs: 16
|
|
686
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
687
|
-
label: "\u5BB6\u5EAD\u5730\u5740",
|
|
688
|
-
name: "residenceAddress",
|
|
689
|
-
labelCol: {
|
|
690
|
-
xs: 3
|
|
691
|
-
},
|
|
692
|
-
wrapperCol: {
|
|
693
|
-
xs: 19
|
|
694
|
-
}
|
|
695
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
696
|
-
disabled: selected || disabled
|
|
697
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
698
|
-
xs: 16
|
|
699
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
700
|
-
label: "\u672F\u524D\u8BCA\u65AD",
|
|
701
|
-
name: "preoperativeDiagnosis",
|
|
702
|
-
labelCol: {
|
|
703
|
-
xs: 3
|
|
704
|
-
},
|
|
705
|
-
wrapperCol: {
|
|
706
|
-
xs: 19
|
|
707
|
-
},
|
|
708
|
-
rules: [{
|
|
709
|
-
required: false
|
|
710
|
-
}]
|
|
711
|
-
}, /*#__PURE__*/React$1.createElement(_Input.TextArea, {
|
|
712
|
-
disabled: disabled
|
|
713
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
714
|
-
xs: 8
|
|
715
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
716
|
-
label: "\u63A5\u8BCA\u65E5\u671F",
|
|
717
|
-
name: "admissionTime",
|
|
718
|
-
rules: [{
|
|
719
|
-
required: false
|
|
720
|
-
}]
|
|
721
|
-
}, /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
722
|
-
format: "YYYY-MM-DD",
|
|
723
|
-
disabled: selected || disabled
|
|
724
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
725
|
-
xs: 16
|
|
726
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
727
|
-
label: "\u533B\u5631",
|
|
728
|
-
name: "doctorOrder",
|
|
729
|
-
labelCol: {
|
|
730
|
-
xs: 3
|
|
731
|
-
},
|
|
732
|
-
wrapperCol: {
|
|
733
|
-
xs: 19
|
|
734
|
-
},
|
|
735
|
-
rules: [{
|
|
736
|
-
required: false
|
|
737
|
-
}]
|
|
738
|
-
}, /*#__PURE__*/React$1.createElement(_Input.TextArea, {
|
|
739
|
-
disabled: disabled
|
|
740
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
741
|
-
xs: 8
|
|
742
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
743
|
-
label: "\u63A5\u8BCA\u533B\u751F",
|
|
744
|
-
name: "admissionDoctor"
|
|
745
|
-
}, /*#__PURE__*/React$1.createElement(Select$1, {
|
|
746
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
747
|
-
options: (_b = commonData === null || commonData === void 0 ? void 0 : commonData.optionalDoctor) === null || _b === void 0 ? void 0 : _b.map(function (_) {
|
|
748
|
-
return {
|
|
749
|
-
label: _,
|
|
750
|
-
value: _
|
|
751
|
-
};
|
|
752
|
-
}),
|
|
753
|
-
disabled: disabled
|
|
754
|
-
}))), /*#__PURE__*/React$1.createElement(_Divider, null, "\u672F\u524D\u68C0\u67E5"), /*#__PURE__*/React$1.createElement(_Col, {
|
|
755
|
-
xs: 8
|
|
756
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
757
|
-
label: "HIV",
|
|
758
|
-
name: "hiv"
|
|
759
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
760
|
-
name: "hiv",
|
|
761
|
-
options: examStatusOptions,
|
|
762
|
-
disabled: disabled
|
|
763
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
764
|
-
xs: 8
|
|
765
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
766
|
-
label: "\u6885\u6BD2",
|
|
767
|
-
name: "syphilis"
|
|
768
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
769
|
-
name: "syphilis",
|
|
770
|
-
options: examStatusOptions,
|
|
771
|
-
disabled: disabled
|
|
772
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
773
|
-
xs: 8
|
|
774
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
775
|
-
label: "\u4E59\u809D",
|
|
776
|
-
name: "hepatitisB"
|
|
777
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
778
|
-
name: "hepatitisB",
|
|
779
|
-
options: examStatusOptions,
|
|
780
|
-
disabled: disabled
|
|
781
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
782
|
-
xs: 8
|
|
783
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
784
|
-
label: "\u4E19\u809D",
|
|
785
|
-
name: "hepatitisC"
|
|
786
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
787
|
-
name: "hepatitisC",
|
|
788
|
-
options: examStatusOptions,
|
|
789
|
-
disabled: disabled
|
|
790
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
791
|
-
xs: 8
|
|
792
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
793
|
-
label: "\u51DD\u8840\u529F\u80FD",
|
|
794
|
-
name: "sixCoagulation"
|
|
795
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
796
|
-
name: "sixCoagulation",
|
|
797
|
-
options: examStatusOptions,
|
|
798
|
-
disabled: disabled
|
|
799
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
800
|
-
xs: 8
|
|
801
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
802
|
-
label: "\u767D\u5E26",
|
|
803
|
-
name: "leucorrhea"
|
|
804
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
805
|
-
name: "leucorrhea",
|
|
806
|
-
options: examStatusOptions,
|
|
807
|
-
disabled: disabled
|
|
808
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
809
|
-
xs: 8
|
|
810
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
811
|
-
label: "\u6838\u9178",
|
|
812
|
-
name: "nat"
|
|
813
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
814
|
-
name: "nat",
|
|
815
|
-
options: examStatusOptions,
|
|
816
|
-
disabled: disabled
|
|
817
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
818
|
-
xs: 8
|
|
819
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
820
|
-
label: "HB",
|
|
821
|
-
name: "hb"
|
|
822
|
-
}, /*#__PURE__*/React$1.createElement(_InputNumber, {
|
|
823
|
-
addonAfter: "g/L",
|
|
824
|
-
disabled: disabled
|
|
825
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
826
|
-
xs: 8
|
|
827
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
828
|
-
label: "MCV",
|
|
829
|
-
name: "mcv"
|
|
830
|
-
}, /*#__PURE__*/React$1.createElement(_InputNumber, {
|
|
831
|
-
addonAfter: "fL",
|
|
832
|
-
disabled: disabled
|
|
833
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
834
|
-
xs: 8
|
|
835
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
836
|
-
label: "PLT",
|
|
837
|
-
name: "plt"
|
|
838
|
-
}, /*#__PURE__*/React$1.createElement(_InputNumber, {
|
|
839
|
-
addonAfter: "10^9/L",
|
|
840
|
-
disabled: disabled
|
|
841
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
842
|
-
xs: 8
|
|
843
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
844
|
-
label: "\u9EBB\u9189\u8BC4\u4F30",
|
|
845
|
-
name: "preanestheticEvaluation"
|
|
846
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
847
|
-
name: "preanestheticEvaluation",
|
|
848
|
-
options: examStatusOptions,
|
|
849
|
-
disabled: disabled
|
|
850
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
851
|
-
xs: 8
|
|
852
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
853
|
-
label: "\u5FC3\u7535\u56FE",
|
|
854
|
-
name: "ecg"
|
|
855
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
856
|
-
name: "ecg",
|
|
857
|
-
options: examStatusOptions,
|
|
858
|
-
disabled: disabled
|
|
859
|
-
}))), /*#__PURE__*/React$1.createElement(InformedConsentTable, {
|
|
860
|
-
disabled: disabled,
|
|
861
|
-
onChange: function onChange(v) {
|
|
862
|
-
return informedConsents.current = v;
|
|
863
|
-
},
|
|
864
|
-
data: (_c = commonData === null || commonData === void 0 ? void 0 : commonData.data) === null || _c === void 0 ? void 0 : _c.informedConsents
|
|
865
|
-
}), /*#__PURE__*/React$1.createElement(_Divider, null, "\u624B\u672F\u9884\u7EA6"), /*#__PURE__*/React$1.createElement(_Col, {
|
|
866
|
-
xs: 8
|
|
867
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
868
|
-
label: "\u624B\u672F\u540D\u79F0",
|
|
869
|
-
name: "operationName",
|
|
870
|
-
rules: requiredRule
|
|
871
|
-
}, /*#__PURE__*/React$1.createElement(Select$1, {
|
|
872
|
-
options: operationList.map(function (_) {
|
|
873
|
-
return {
|
|
874
|
-
label: _,
|
|
875
|
-
value: _
|
|
876
|
-
};
|
|
877
|
-
}),
|
|
878
|
-
disabled: disabled,
|
|
879
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
880
|
-
onChange: function onChange(target) {
|
|
881
|
-
if (target) {
|
|
882
|
-
setTracingFormVisible(['人工流产', '药物流产'].includes(target) || __DEV__);
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
886
|
-
xs: 8
|
|
887
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
888
|
-
label: "\u9884\u7EA6\u65E5\u671F",
|
|
889
|
-
name: "appointmentDate",
|
|
890
|
-
rules: requiredRule
|
|
891
|
-
}, /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
892
|
-
disabled: status === '待签到' || status === '超时' ? false : disabled,
|
|
893
|
-
format: "YYYY-MM-DD",
|
|
894
|
-
onChange: function onChange(e) {
|
|
895
|
-
handleDateChange(e);
|
|
896
|
-
},
|
|
897
|
-
disabledDate: function disabledDate(d) {
|
|
898
|
-
var target = yearsSchedul.find(function (_) {
|
|
899
|
-
return _.schedulingDate.isSame(d, 'day');
|
|
900
|
-
});
|
|
901
|
-
return getAttendanceOfThisDay(target) === '休息';
|
|
902
|
-
}
|
|
903
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
904
|
-
xs: 8
|
|
905
|
-
}, /*#__PURE__*/React$1.createElement("div", null, "\u5269\u4F59\u53F7\u6E90\uFF1A", all - reserved, "\uFF0C\u5DF2\u9884\u7EA6\uFF1A", reserved, "\uFF0C\u5F00\u653E\u53F7\u6E90\uFF1A", all)), /*#__PURE__*/React$1.createElement(_Col, {
|
|
906
|
-
xs: 8
|
|
907
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
908
|
-
label: "\u65F6\u95F4\u6BB5",
|
|
909
|
-
name: "appointmentMorningOrAfternoon",
|
|
910
|
-
rules: requiredRule
|
|
911
|
-
}, /*#__PURE__*/React$1.createElement(Select$1, {
|
|
912
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
913
|
-
disabled: status === '待签到' || status === '超时' ? false : disabled,
|
|
914
|
-
allowClear: true,
|
|
915
|
-
options: ['上午', '下午'].map(function (_, idx) {
|
|
916
|
-
return {
|
|
917
|
-
value: _,
|
|
918
|
-
label: "".concat(_, " ").concat((idx ? afternoonReservationNum : morningReservationNum) >= 25 ? '(已满)' : ''),
|
|
919
|
-
disabled: checkDisabledHalfDay(scheduleData, _)
|
|
920
|
-
};
|
|
921
|
-
})
|
|
922
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
923
|
-
xs: 8
|
|
924
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
925
|
-
label: "\u7F34\u8D39\u60C5\u51B5",
|
|
926
|
-
name: "payment"
|
|
927
|
-
}, /*#__PURE__*/React$1.createElement(Select$1, {
|
|
928
|
-
disabled: true,
|
|
929
|
-
options: ['未缴费', '已缴费'].map(function (_, idx) {
|
|
930
|
-
return {
|
|
931
|
-
label: _,
|
|
932
|
-
value: idx
|
|
933
|
-
};
|
|
934
|
-
}),
|
|
935
|
-
placeholder: "\u672A\u7F34\u8D39"
|
|
936
|
-
}))), tracingFormVisible && /*#__PURE__*/React$1.createElement(_Col, {
|
|
937
|
-
xs: 24
|
|
938
|
-
}, renderForm0_shared('首次随访', false, remoteData, false, function () {}))), /*#__PURE__*/React$1.createElement(_Row, null, /*#__PURE__*/React$1.createElement(_Col, {
|
|
939
|
-
xs: 8
|
|
940
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
941
|
-
label: "\u767B\u8BB0\u65E5\u671F",
|
|
942
|
-
name: "registrationDate",
|
|
943
|
-
rules: requiredRule
|
|
944
|
-
}, /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
945
|
-
format: "YYYY-MM-DD",
|
|
946
|
-
disabled: true
|
|
947
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
948
|
-
xs: 8
|
|
949
|
-
}, /*#__PURE__*/React$1.createElement(Item$2, {
|
|
950
|
-
label: "\u767B\u8BB0\u8005",
|
|
951
|
-
name: "appointmentPeople",
|
|
952
|
-
rules: requiredRule
|
|
953
|
-
}, /*#__PURE__*/React$1.createElement(Select$1, {
|
|
954
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
955
|
-
options: (_d = commonData === null || commonData === void 0 ? void 0 : commonData.optionalNurse) === null || _d === void 0 ? void 0 : _d.map(function (_) {
|
|
956
|
-
return {
|
|
957
|
-
label: _,
|
|
958
|
-
value: _
|
|
959
|
-
};
|
|
960
|
-
}),
|
|
961
|
-
disabled: disabled
|
|
962
|
-
}))))));
|
|
963
|
-
};
|
|
964
|
-
var GlobalModal = function () {
|
|
965
|
-
function GlobalModal() {}
|
|
966
|
-
return GlobalModal;
|
|
967
|
-
}();
|
|
968
|
-
var stupidModal = new GlobalModal();
|
|
969
|
-
window.stupidModal = stupidModal;
|
|
970
|
-
LazyAntd.Tree;
|
|
971
|
-
LazyAntd.TreeSelect;
|
|
972
|
-
var Select = LazyAntd.Select;
|
|
973
|
-
LazyAntd.Table;
|
|
974
|
-
LazyAntd.Dropdown;
|
|
975
|
-
LazyAntd.Pagination;
|
|
976
|
-
var Item$1 = _Form.Item;
|
|
977
|
-
_Radio.Group;
|
|
978
|
-
var Form1 = function Form1(_a) {
|
|
979
|
-
var _b, _c;
|
|
980
|
-
var form = _a.form,
|
|
981
|
-
commonData = _a.commonData;
|
|
982
|
-
var data = commonData === null || commonData === void 0 ? void 0 : commonData.data;
|
|
983
|
-
var status = stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getLabel(data === null || data === void 0 ? void 0 : data.progressStatus);
|
|
984
|
-
var isDone = status === '已签到' || status === '已完成';
|
|
985
|
-
function doid() {
|
|
986
|
-
if (!data) return;
|
|
987
|
-
if (isDone) return;
|
|
988
|
-
return form.validateFields().then(function (values) {
|
|
989
|
-
return SModel_EarlyPregnancyCheckSurgeryType.appointmentSurgery(__assign(__assign(__assign({}, data), values), {
|
|
990
|
-
progressStatus: stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('已签到')
|
|
991
|
-
})).then(function () {
|
|
992
|
-
return confirm('签到成功,是否关闭弹窗?') && stupidModal.pop();
|
|
993
|
-
});
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
form._validateFields = doid;
|
|
997
|
-
form._save = doid;
|
|
998
|
-
useEffect(function () {
|
|
999
|
-
var remoteData = commonData === null || commonData === void 0 ? void 0 : commonData.data;
|
|
1000
|
-
if (remoteData) {
|
|
1001
|
-
form.setFieldsValue(__assign(__assign({}, remoteData), {
|
|
1002
|
-
appointmentPeople: (remoteData === null || remoteData === void 0 ? void 0 : remoteData.appointmentPeople) || SLocal_State.getUserData(),
|
|
1003
|
-
signInRegistrant: (remoteData === null || remoteData === void 0 ? void 0 : remoteData.signInRegistrant) || SLocal_State.getUserData(),
|
|
1004
|
-
signInTime: (remoteData === null || remoteData === void 0 ? void 0 : remoteData.signInTime) || dayjs()
|
|
1005
|
-
}));
|
|
1006
|
-
}
|
|
1007
|
-
return function () {};
|
|
1008
|
-
}, [commonData]);
|
|
1009
|
-
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(_Form, {
|
|
1010
|
-
form: form,
|
|
1011
|
-
labelCol: {
|
|
1012
|
-
xs: 6
|
|
1013
|
-
},
|
|
1014
|
-
wrapperCol: {
|
|
1015
|
-
xs: 14
|
|
1016
|
-
},
|
|
1017
|
-
onValuesChange: function onValuesChange(a, b) {}
|
|
1018
|
-
}, /*#__PURE__*/React$1.createElement(_Divider, null, "\u57FA\u672C\u4FE1\u606F"), /*#__PURE__*/React$1.createElement(_Row, null, /*#__PURE__*/React$1.createElement(_Col, {
|
|
1019
|
-
xs: 8,
|
|
1020
|
-
hidden: true
|
|
1021
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1022
|
-
label: "",
|
|
1023
|
-
name: "operatingRoom",
|
|
1024
|
-
rules: [{
|
|
1025
|
-
required: false
|
|
1026
|
-
}]
|
|
1027
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1028
|
-
placeholder: "\u8BF7\u8F93\u5165\u624B\u672F\u5BA4",
|
|
1029
|
-
disabled: true
|
|
1030
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1031
|
-
xs: 8
|
|
1032
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1033
|
-
label: "\u59D3\u540D",
|
|
1034
|
-
name: "name",
|
|
1035
|
-
rules: [{
|
|
1036
|
-
required: false
|
|
1037
|
-
}]
|
|
1038
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1039
|
-
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D",
|
|
1040
|
-
disabled: true
|
|
1041
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1042
|
-
xs: 8
|
|
1043
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1044
|
-
label: "\u95E8\u8BCA\u53F7",
|
|
1045
|
-
name: "outpatientNo"
|
|
1046
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1047
|
-
placeholder: "\u8BF7\u8F93\u5165\u95E8\u8BCA\u53F7",
|
|
1048
|
-
disabled: true
|
|
1049
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1050
|
-
xs: 8
|
|
1051
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1052
|
-
label: "\u8BC1\u4EF6\u53F7\u7801",
|
|
1053
|
-
name: "idNO"
|
|
1054
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1055
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7\u7801",
|
|
1056
|
-
disabled: true
|
|
1057
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1058
|
-
xs: 8
|
|
1059
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1060
|
-
label: "\u624B\u673A\u53F7\u7801",
|
|
1061
|
-
name: "telephone",
|
|
1062
|
-
rules: [{}]
|
|
1063
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1064
|
-
placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",
|
|
1065
|
-
disabled: true
|
|
1066
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1067
|
-
xs: 8
|
|
1068
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1069
|
-
label: "\u5BB6\u5EAD\u5730\u5740",
|
|
1070
|
-
name: "residenceAddress"
|
|
1071
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1072
|
-
placeholder: "\u8BF7\u8F93\u5165\u5BB6\u5EAD\u5730\u5740",
|
|
1073
|
-
disabled: true
|
|
1074
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1075
|
-
xs: 8
|
|
1076
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1077
|
-
label: "\u63A5\u8BCA\u65E5\u671F",
|
|
1078
|
-
name: "admissionTime",
|
|
1079
|
-
rules: [{
|
|
1080
|
-
required: false
|
|
1081
|
-
}]
|
|
1082
|
-
}, /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
1083
|
-
placeholder: "\u8BF7\u8F93\u5165\u63A5\u8BCA\u65E5\u671F",
|
|
1084
|
-
format: "YYYY-MM-DD",
|
|
1085
|
-
disabled: true
|
|
1086
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1087
|
-
xs: 16
|
|
1088
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1089
|
-
label: "\u533B\u5631",
|
|
1090
|
-
name: "doctorOrder",
|
|
1091
|
-
labelCol: {
|
|
1092
|
-
xs: 3
|
|
1093
|
-
},
|
|
1094
|
-
wrapperCol: {
|
|
1095
|
-
xs: 19
|
|
1096
|
-
},
|
|
1097
|
-
rules: [{
|
|
1098
|
-
required: false
|
|
1099
|
-
}]
|
|
1100
|
-
}, /*#__PURE__*/React$1.createElement(_Input.TextArea, {
|
|
1101
|
-
placeholder: "\u8BF7\u8F93\u5165\u533B\u5631",
|
|
1102
|
-
disabled: true
|
|
1103
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1104
|
-
xs: 8
|
|
1105
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1106
|
-
label: "\u63A5\u8BCA\u533B\u751F",
|
|
1107
|
-
name: "admissionDoctor"
|
|
1108
|
-
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
1109
|
-
disabled: true,
|
|
1110
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
1111
|
-
options: (_b = commonData === null || commonData === void 0 ? void 0 : commonData.optionalDoctor) === null || _b === void 0 ? void 0 : _b.map(function (_) {
|
|
1112
|
-
return {
|
|
1113
|
-
label: _,
|
|
1114
|
-
value: _
|
|
1115
|
-
};
|
|
1116
|
-
})
|
|
1117
|
-
}))), /*#__PURE__*/React$1.createElement(_Divider, null, "\u624B\u672F\u9884\u7EA6"), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1118
|
-
xs: 8
|
|
1119
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1120
|
-
label: "\u624B\u672F\u540D\u79F0",
|
|
1121
|
-
name: "operationName"
|
|
1122
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1123
|
-
disabled: true,
|
|
1124
|
-
placeholder: "\u8BF7\u8F93\u5165\u624B\u672F\u540D\u79F0"
|
|
1125
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1126
|
-
xs: 8
|
|
1127
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1128
|
-
label: "\u767B\u8BB0\u8005",
|
|
1129
|
-
name: "appointmentPeople"
|
|
1130
|
-
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
1131
|
-
disabled: true,
|
|
1132
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
1133
|
-
options: (_c = commonData === null || commonData === void 0 ? void 0 : commonData.optionalNurse) === null || _c === void 0 ? void 0 : _c.map(function (_) {
|
|
1134
|
-
return {
|
|
1135
|
-
label: _,
|
|
1136
|
-
value: _
|
|
1137
|
-
};
|
|
1138
|
-
})
|
|
1139
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1140
|
-
xs: 8
|
|
1141
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1142
|
-
label: "\u9884\u7EA6\u65E5\u671F",
|
|
1143
|
-
name: "appointmentDate",
|
|
1144
|
-
rules: [{
|
|
1145
|
-
required: false,
|
|
1146
|
-
message: ''
|
|
1147
|
-
}]
|
|
1148
|
-
}, /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
1149
|
-
placeholder: "\u8BF7\u8F93\u5165\u9884\u7EA6\u65F6\u95F4",
|
|
1150
|
-
format: "YYYY-MM-DD",
|
|
1151
|
-
disabled: true
|
|
1152
|
-
})))), /*#__PURE__*/React$1.createElement(_Divider, null, "\u672F\u524D\u7B7E\u5230"), /*#__PURE__*/React$1.createElement(_Row, null, /*#__PURE__*/React$1.createElement(_Col, {
|
|
1153
|
-
xs: 8
|
|
1154
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1155
|
-
label: "\u8840\u538B",
|
|
1156
|
-
name: "preoperativeDiastolic",
|
|
1157
|
-
rules: [{
|
|
1158
|
-
required: true,
|
|
1159
|
-
message: ''
|
|
1160
|
-
}]
|
|
1161
|
-
}, /*#__PURE__*/React$1.createElement(_Input.Group, {
|
|
1162
|
-
compact: true
|
|
1163
|
-
}, /*#__PURE__*/React$1.createElement(_Form.Item, {
|
|
1164
|
-
rules: [{
|
|
1165
|
-
required: true,
|
|
1166
|
-
message: ''
|
|
1167
|
-
}],
|
|
1168
|
-
name: "preoperativeDiastolic",
|
|
1169
|
-
style: {
|
|
1170
|
-
width: '30%'
|
|
1171
|
-
}
|
|
1172
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1173
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1174
|
-
placeholder: "\u8212\u5F20\u538B",
|
|
1175
|
-
type: "number"
|
|
1176
|
-
})), /*#__PURE__*/React$1.createElement(_Input, {
|
|
1177
|
-
style: {
|
|
1178
|
-
width: 30,
|
|
1179
|
-
borderLeft: 0,
|
|
1180
|
-
margin: '0 1px',
|
|
1181
|
-
borderRight: 0,
|
|
1182
|
-
pointerEvents: 'none',
|
|
1183
|
-
textAlign: 'center'
|
|
1184
|
-
},
|
|
1185
|
-
placeholder: "/",
|
|
1186
|
-
disabled: true
|
|
1187
|
-
}), /*#__PURE__*/React$1.createElement(_Form.Item, {
|
|
1188
|
-
rules: [{
|
|
1189
|
-
required: true,
|
|
1190
|
-
message: ''
|
|
1191
|
-
}],
|
|
1192
|
-
name: "preoperativeSystolic",
|
|
1193
|
-
style: {
|
|
1194
|
-
width: '30%'
|
|
1195
|
-
}
|
|
1196
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1197
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1198
|
-
placeholder: "\u6536\u7F29\u538B",
|
|
1199
|
-
type: "number"
|
|
1200
|
-
}))))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1201
|
-
xs: 8
|
|
1202
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1203
|
-
label: "\u4F53\u6E29",
|
|
1204
|
-
name: "preoperativeBodyTemperature",
|
|
1205
|
-
rules: [{
|
|
1206
|
-
required: true,
|
|
1207
|
-
message: ''
|
|
1208
|
-
}]
|
|
1209
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1210
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1211
|
-
placeholder: "\u8BF7\u8F93\u5165\u4F53\u6E29",
|
|
1212
|
-
type: "number",
|
|
1213
|
-
addonAfter: "\xB0C"
|
|
1214
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1215
|
-
xs: 8
|
|
1216
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1217
|
-
label: "\u662F\u5426\u7A7A\u8179",
|
|
1218
|
-
name: "preoperativeFasting",
|
|
1219
|
-
rules: [{
|
|
1220
|
-
required: true,
|
|
1221
|
-
message: ''
|
|
1222
|
-
}]
|
|
1223
|
-
}, /*#__PURE__*/React$1.createElement(StupidRadioGroup, {
|
|
1224
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1225
|
-
name: "preoperativeFasting",
|
|
1226
|
-
options: ['是', '否'].map(function (_, i) {
|
|
1227
|
-
return {
|
|
1228
|
-
label: _,
|
|
1229
|
-
value: i + 1,
|
|
1230
|
-
withFuckedInput: !!i
|
|
1231
|
-
};
|
|
1232
|
-
})
|
|
1233
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1234
|
-
xs: 24
|
|
1235
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1236
|
-
label: "\u5907\u6CE8",
|
|
1237
|
-
name: "preoperativeNote",
|
|
1238
|
-
labelCol: {
|
|
1239
|
-
xs: 2
|
|
1240
|
-
},
|
|
1241
|
-
wrapperCol: {
|
|
1242
|
-
xs: 21
|
|
1243
|
-
}
|
|
1244
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1245
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1246
|
-
placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8"
|
|
1247
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1248
|
-
xs: 8
|
|
1249
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1250
|
-
label: "\u7B7E\u5230\u65F6\u95F4",
|
|
1251
|
-
name: "signInTime"
|
|
1252
|
-
}, /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
1253
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1254
|
-
placeholder: "\u8BF7\u8F93\u5165\u7B7E\u5230\u65F6\u95F4",
|
|
1255
|
-
format: "YYYY-MM-DD HH:mm",
|
|
1256
|
-
showTime: true
|
|
1257
|
-
}))), /*#__PURE__*/React$1.createElement(_Col, {
|
|
1258
|
-
xs: 8
|
|
1259
|
-
}, /*#__PURE__*/React$1.createElement(Item$1, {
|
|
1260
|
-
label: "\u7B7E\u5230\u767B\u8BB0\u8005",
|
|
1261
|
-
name: "signInRegistrant"
|
|
1262
|
-
}, /*#__PURE__*/React$1.createElement(_Input, {
|
|
1263
|
-
disabled: status === '已签到' ? false : isDone,
|
|
1264
|
-
placeholder: "\u8BF7\u8F93\u5165\u7B7E\u5230\u767B\u8BB0\u8005"
|
|
1265
|
-
}))))));
|
|
1266
|
-
};
|
|
1267
|
-
var StepFrom = function StepFrom(props) {
|
|
1268
|
-
var data = props.data,
|
|
1269
|
-
step = props.step,
|
|
1270
|
-
initData = props.initData;
|
|
1271
|
-
var _a = useState(step || 0),
|
|
1272
|
-
currentStep = _a[0],
|
|
1273
|
-
setCurrentStep = _a[1];
|
|
1274
|
-
var forms = Array(data.length).fill(0).map(function (_) {
|
|
1275
|
-
return _Form.useForm()[0];
|
|
1276
|
-
});
|
|
1277
|
-
var _b = useState(),
|
|
1278
|
-
commonData = _b[0],
|
|
1279
|
-
setCommonData = _b[1];
|
|
1280
|
-
useEffect(function () {
|
|
1281
|
-
if (initData) {
|
|
1282
|
-
setCommonData(initData);
|
|
1283
|
-
}
|
|
1284
|
-
}, [initData]);
|
|
1285
|
-
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(_Steps, {
|
|
1286
|
-
current: currentStep,
|
|
1287
|
-
style: {
|
|
1288
|
-
marginBottom: 24
|
|
1289
|
-
}
|
|
1290
|
-
}, data.map(function (_a, idx) {
|
|
1291
|
-
var title = _a.title,
|
|
1292
|
-
subTitle = _a.subTitle,
|
|
1293
|
-
description = _a.description;
|
|
1294
|
-
return /*#__PURE__*/React$1.createElement(_Steps.Step, {
|
|
1295
|
-
key: idx,
|
|
1296
|
-
title: title,
|
|
1297
|
-
subTitle: subTitle,
|
|
1298
|
-
description: description
|
|
1299
|
-
});
|
|
1300
|
-
})), data.map(function (_a, idx) {
|
|
1301
|
-
var Component = _a.Component;
|
|
1302
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
1303
|
-
hidden: currentStep !== idx,
|
|
1304
|
-
key: idx
|
|
1305
|
-
}, /*#__PURE__*/React$1.createElement(Component, {
|
|
1306
|
-
commonData: commonData,
|
|
1307
|
-
setCommonData: setCommonData,
|
|
1308
|
-
form: forms[idx]
|
|
1309
|
-
}));
|
|
1310
|
-
}), /*#__PURE__*/React$1.createElement("div", {
|
|
1311
|
-
style: {
|
|
1312
|
-
display: 'flex',
|
|
1313
|
-
justifyContent: 'center',
|
|
1314
|
-
paddingTop: 12
|
|
1315
|
-
}
|
|
1316
|
-
}, /*#__PURE__*/React$1.createElement(_Button, {
|
|
1317
|
-
type: "primary",
|
|
1318
|
-
hidden: currentStep === 0,
|
|
1319
|
-
onClick: function onClick() {
|
|
1320
|
-
return setCurrentStep(currentStep - 1);
|
|
1321
|
-
},
|
|
1322
|
-
style: {
|
|
1323
|
-
marginLeft: 16
|
|
1324
|
-
}
|
|
1325
|
-
}, "\u4E0A\u4E00\u9875"), /*#__PURE__*/React$1.createElement(_Button, {
|
|
1326
|
-
type: "primary",
|
|
1327
|
-
hidden: currentStep === data.length - 1,
|
|
1328
|
-
onClick: function onClick() {
|
|
1329
|
-
var _a, _b;
|
|
1330
|
-
return (_b = (_a = forms[currentStep]) === null || _a === void 0 ? void 0 : _a._validateFields()) === null || _b === void 0 ? void 0 : _b.then(function () {
|
|
1331
|
-
setCurrentStep(currentStep + 1);
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
}, "\u4E0B\u4E00\u9875"), /*#__PURE__*/React$1.createElement(_Button, {
|
|
1335
|
-
type: "primary",
|
|
1336
|
-
hidden: _get(initData, 'data.progressStatus') === 3 || _get(initData, 'data.progressStatus') === 4,
|
|
1337
|
-
onClick: function onClick() {
|
|
1338
|
-
var _a;
|
|
1339
|
-
return (_a = forms[currentStep]) === null || _a === void 0 ? void 0 : _a._save();
|
|
1340
|
-
},
|
|
1341
|
-
style: {
|
|
1342
|
-
marginLeft: 16
|
|
1343
|
-
}
|
|
1344
|
-
}, (_get(initData, 'data.progressStatus') === 0 || _get(initData, 'data.progressStatus') === 2) && currentStep === 1 ? '保存并签到' : '保存')));
|
|
1345
|
-
};
|
|
1346
|
-
var BookingModalNew = function BookingModalNew(props) {
|
|
1347
|
-
var step = props.step,
|
|
1348
|
-
data = props.data;
|
|
1349
|
-
var _a = useState(),
|
|
1350
|
-
commonData = _a[0],
|
|
1351
|
-
setCommonData = _a[1];
|
|
1352
|
-
useEffect(function () {
|
|
1353
|
-
Promise.all([SModel_EarlyPregnancyCheckSurgeryType.getOptionalDoctorAndNurse()]).then(function (arr) {
|
|
1354
|
-
setCommonData({
|
|
1355
|
-
data: data,
|
|
1356
|
-
optionalDoctor: arr[0].DOCTOR,
|
|
1357
|
-
optionalNurse: arr[0].NURSE
|
|
1358
|
-
});
|
|
1359
|
-
});
|
|
1360
|
-
return function () {};
|
|
1361
|
-
}, [data]);
|
|
1362
|
-
return /*#__PURE__*/React$1.createElement(StepFrom, {
|
|
1363
|
-
initData: commonData,
|
|
1364
|
-
step: step,
|
|
1365
|
-
data: [{
|
|
1366
|
-
title: '手术预约',
|
|
1367
|
-
Component: Form0
|
|
1368
|
-
}, {
|
|
1369
|
-
title: '术前签到',
|
|
1370
|
-
Component: Form1
|
|
1371
|
-
}]
|
|
1372
|
-
});
|
|
1373
|
-
};
|
|
1374
|
-
function handleIsBefore(date) {
|
|
1375
|
-
var today = dayjs();
|
|
1376
|
-
var isBefore = dayjs(formatDate(date)).diff(dayjs(formatDate(today)), 'days');
|
|
1377
|
-
return isBefore;
|
|
1378
|
-
}
|
|
1379
|
-
function getResidue(activeOperationType, scheduleDataOfThisDay) {
|
|
1380
|
-
var isOpen = true;
|
|
1381
|
-
var obj = {};
|
|
1382
|
-
var flagArr = [];
|
|
1383
|
-
if (!scheduleDataOfThisDay) return {
|
|
1384
|
-
isOpen: false
|
|
1385
|
-
};
|
|
1386
|
-
if (activeOperationType.size) {
|
|
1387
|
-
for (var _i = 0, activeOperationType_1 = activeOperationType; _i < activeOperationType_1.length; _i++) {
|
|
1388
|
-
var item = activeOperationType_1[_i];
|
|
1389
|
-
var key = OPERATION_NAME_MAP[item];
|
|
1390
|
-
var residueNum = _get(scheduleDataOfThisDay, "".concat(key, "ResidueNum"));
|
|
1391
|
-
var flag = true;
|
|
1392
|
-
if (residueNum === 0 || !_get(scheduleDataOfThisDay, "".concat(key))) {
|
|
1393
|
-
flag = false;
|
|
1394
|
-
}
|
|
1395
|
-
flagArr.push(flag);
|
|
1396
|
-
if (_get(scheduleDataOfThisDay, "".concat(key))) {
|
|
1397
|
-
_set(obj, key, residueNum);
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
if (flagArr.length > 0) {
|
|
1402
|
-
if (flagArr.includes(true)) {
|
|
1403
|
-
isOpen = true;
|
|
1404
|
-
} else {
|
|
1405
|
-
isOpen = false;
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
return __assign({
|
|
1409
|
-
isOpen: isOpen
|
|
1410
|
-
}, obj);
|
|
1411
|
-
}
|
|
1412
|
-
function getOperationNum(config, type) {
|
|
1413
|
-
if (!config) return {
|
|
1414
|
-
all: 0,
|
|
1415
|
-
reserved: 0,
|
|
1416
|
-
isOpen: false,
|
|
1417
|
-
left: 0
|
|
1418
|
-
};
|
|
1419
|
-
if (!type) return {
|
|
1420
|
-
all: config.totalNumOfDay,
|
|
1421
|
-
reserved: config.totalReservationNumOfDay,
|
|
1422
|
-
left: config.totalNumOfDay - config.totalReservationNumOfDay,
|
|
1423
|
-
isOpen: !!config.openReservation
|
|
1424
|
-
};
|
|
1425
|
-
var key = OPERATION_NAME_MAP[type];
|
|
1426
|
-
var all = config["".concat(key, "Num")] || 0;
|
|
1427
|
-
var reserved = config["".concat(key, "ReservationNum")] || 0;
|
|
1428
|
-
return {
|
|
1429
|
-
all: all,
|
|
1430
|
-
reserved: reserved,
|
|
1431
|
-
left: all - reserved,
|
|
1432
|
-
isOpen: !!config[key]
|
|
1433
|
-
};
|
|
1434
|
-
}
|
|
1435
|
-
function getAttendanceOfThisDay(todaySetting) {
|
|
1436
|
-
if (!todaySetting) return '休息';
|
|
1437
|
-
return ATTENDANCE_MAP[todaySetting.attendanceSet];
|
|
1438
|
-
}
|
|
1439
|
-
function checkDisabledHalfDay(scheduleData, type) {
|
|
1440
|
-
var _a;
|
|
1441
|
-
if (!scheduleData || !type) return true;
|
|
1442
|
-
var schedulingDate = scheduleData.schedulingDate;
|
|
1443
|
-
var attendency = getAttendanceOfThisDay(scheduleData);
|
|
1444
|
-
if (!schedulingDate.isSameOrAfter(dayjs(), 'day')) return true;
|
|
1445
|
-
if (schedulingDate.isSame(dayjs(), 'day') && type === '上午' && dayjs().hours() >= 12) return true;
|
|
1446
|
-
var opposite = type === '上午' ? '下午' : '上午';
|
|
1447
|
-
return attendency === '休息' || attendency === opposite || ((_a = type === '上午' ? scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.morningReservationNum : scheduleData === null || scheduleData === void 0 ? void 0 : scheduleData.afternoonReservationNum) !== null && _a !== void 0 ? _a : 0) >= 25;
|
|
1448
|
-
}
|
|
1449
|
-
function getWeekStartEnd(date) {
|
|
1450
|
-
var startDayOfWeek = date.clone().subtract(date.weekday(), 'days');
|
|
1451
|
-
var endDayOfWeek = startDayOfWeek.clone().add(6, 'day');
|
|
1452
|
-
return [startDayOfWeek, endDayOfWeek];
|
|
1453
|
-
}
|
|
1454
|
-
function getMonthStartEnd(date) {
|
|
1455
|
-
var startDayOfWeek = date.clone().subtract(date.date() - 1, 'days');
|
|
1456
|
-
var endDayOfWeek = startDayOfWeek.clone().add(date.daysInMonth() - 1, 'day');
|
|
1457
|
-
return [startDayOfWeek, endDayOfWeek];
|
|
1458
|
-
}
|
|
1459
|
-
var getSchedulingData = function () {
|
|
1460
|
-
var allSchedulingData = {};
|
|
1461
|
-
return function _getSchedulingData(date) {
|
|
1462
|
-
var dateStr = date.format('YYYY-MM-DD');
|
|
1463
|
-
var data = allSchedulingData[dateStr];
|
|
1464
|
-
return new Promise(function (res, rej) {
|
|
1465
|
-
if (data && false) {
|
|
1466
|
-
res(data);
|
|
1467
|
-
} else {
|
|
1468
|
-
SModel_FamilyPlaningSchedulingDetails.getList({
|
|
1469
|
-
params: {
|
|
1470
|
-
schedulingDate: date
|
|
1471
|
-
}
|
|
1472
|
-
}).then(function (_) {
|
|
1473
|
-
var target = _[0];
|
|
1474
|
-
if (target) {
|
|
1475
|
-
allSchedulingData[dateStr] = target;
|
|
1476
|
-
res(target);
|
|
1477
|
-
} else {
|
|
1478
|
-
res(undefined);
|
|
1479
|
-
}
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
});
|
|
1483
|
-
};
|
|
1484
|
-
}();
|
|
1485
|
-
function getTimeFrame(mode, selectMoment) {
|
|
1486
|
-
var start, end;
|
|
1487
|
-
if (mode === 'day') {
|
|
1488
|
-
start = selectMoment;
|
|
1489
|
-
end = selectMoment;
|
|
1490
|
-
} else if (mode === 'week') {
|
|
1491
|
-
var _a = getWeekStartEnd(selectMoment),
|
|
1492
|
-
_start = _a[0],
|
|
1493
|
-
_end = _a[1];
|
|
1494
|
-
start = _start;
|
|
1495
|
-
end = _end;
|
|
1496
|
-
} else {
|
|
1497
|
-
var _b = getMonthStartEnd(selectMoment),
|
|
1498
|
-
_start = _b[0],
|
|
1499
|
-
_end = _b[1];
|
|
1500
|
-
start = _start.subtract(7, 'day');
|
|
1501
|
-
end = _end.add(7, 'day');
|
|
1502
|
-
start = _start;
|
|
1503
|
-
end = _end;
|
|
1504
|
-
}
|
|
1505
|
-
return {
|
|
1506
|
-
start: start,
|
|
1507
|
-
end: end
|
|
1508
|
-
};
|
|
1509
|
-
}
|
|
1510
|
-
function findOperationColor(colorList, operationName) {
|
|
1511
|
-
var target = colorList.find(function (_) {
|
|
1512
|
-
return _.operationName === operationName;
|
|
1513
|
-
}) || colorList[0];
|
|
1514
|
-
return target ? [target.backgroundColor, target.fontColor] : ['#fff', '#000'];
|
|
1515
|
-
}
|
|
1516
|
-
function openBookingModal(appointmentDate, appointmentMorningOrAfternoon, data, onClose, stepNumber) {
|
|
1517
|
-
if (data === void 0) {
|
|
1518
|
-
data = {};
|
|
1519
|
-
}
|
|
1520
|
-
if (onClose === void 0) {
|
|
1521
|
-
onClose = function onClose() {};
|
|
1522
|
-
}
|
|
1523
|
-
mchcModal__.open('test', {
|
|
1524
|
-
onClose: onClose,
|
|
1525
|
-
modal_data: {
|
|
1526
|
-
content: /*#__PURE__*/React$1.createElement(BookingModalNew, {
|
|
1527
|
-
step: stepNumber === 0 || stepNumber === 1 ? stepNumber : data.id ? data.progressStatus === stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('已签到') || data.progressStatus === stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('已完成') ? 0 : 1 : 0,
|
|
1528
|
-
data: __assign(__assign({}, data), {
|
|
1529
|
-
appointmentMorningOrAfternoon: appointmentMorningOrAfternoon,
|
|
1530
|
-
appointmentDate: appointmentDate
|
|
1531
|
-
})
|
|
1532
|
-
})
|
|
1533
|
-
}
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
var COLS_OF_SAME_INTERVAL_KEY = 'COLS_OF_SAME_INTERVAL_KEY';
|
|
1537
|
-
var DD = function () {
|
|
1538
|
-
function DD() {
|
|
1539
|
-
this.bookings = [];
|
|
1540
|
-
this.statisticData = {};
|
|
1541
|
-
this.scheduleArr = [];
|
|
1542
|
-
this.start = dayjs();
|
|
1543
|
-
this.end = dayjs();
|
|
1544
|
-
this.mode = 'day';
|
|
1545
|
-
this.selectMoment = dayjs();
|
|
1546
|
-
this.observers = [];
|
|
1547
|
-
this.disabledStartTime = dayjs('2000-01-01 12:00');
|
|
1548
|
-
this.disabledEndTime = dayjs('2000-01-01 14:00');
|
|
1549
|
-
this.colsOfSameInterval = 1;
|
|
1550
|
-
this.init();
|
|
1551
|
-
}
|
|
1552
|
-
DD.prototype.init = function (cols) {
|
|
1553
|
-
if (cols === void 0) {
|
|
1554
|
-
cols = store.get(COLS_OF_SAME_INTERVAL_KEY) || 6;
|
|
1555
|
-
}
|
|
1556
|
-
store.set(COLS_OF_SAME_INTERVAL_KEY, cols);
|
|
1557
|
-
this.colsOfSameInterval = 6;
|
|
1558
|
-
};
|
|
1559
|
-
DD.prototype.observe = function (o) {
|
|
1560
|
-
var _this = this;
|
|
1561
|
-
this.observers.push(o);
|
|
1562
|
-
return function () {
|
|
1563
|
-
_this.observers = _this.observers.filter(function (t) {
|
|
1564
|
-
return t !== o;
|
|
1565
|
-
});
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
DD.prototype.setData = function (data) {
|
|
1569
|
-
this.bookings = data;
|
|
1570
|
-
this.emitChange();
|
|
1571
|
-
};
|
|
1572
|
-
DD.prototype.setStatisticData = function (data) {
|
|
1573
|
-
this.statisticData = __assign({}, data);
|
|
1574
|
-
};
|
|
1575
|
-
DD.prototype.setScheduleArr = function (data) {
|
|
1576
|
-
this.scheduleArr = __spreadArray([], data, true);
|
|
1577
|
-
};
|
|
1578
|
-
DD.prototype.setStartAndEnd = function (start, end) {
|
|
1579
|
-
this.start = start;
|
|
1580
|
-
this.end = end;
|
|
1581
|
-
};
|
|
1582
|
-
DD.prototype.addToDayView = function (data) {
|
|
1583
|
-
this.addToRemote(data);
|
|
1584
|
-
};
|
|
1585
|
-
DD.prototype.addToWeekView = function (data) {
|
|
1586
|
-
this.addToRemote(data);
|
|
1587
|
-
};
|
|
1588
|
-
DD.prototype.addToMonthView = function (data) {
|
|
1589
|
-
var _this = this;
|
|
1590
|
-
var dayStart = data.appointmentDate.clone().set({
|
|
1591
|
-
hour: START_HOUR
|
|
1592
|
-
});
|
|
1593
|
-
var arr = Array(DIFF_HOUR / HOUR_SPAN).fill(0).map(function (_, idx) {
|
|
1594
|
-
var s = dayStart.clone().add(idx * HOUR_SPAN * 60, 'minute');
|
|
1595
|
-
var e = dayStart.clone().add((idx + 1) * HOUR_SPAN * 60, 'minute');
|
|
1596
|
-
return {
|
|
1597
|
-
availableCols: _this.findStartColToAdd(s, e),
|
|
1598
|
-
s: s,
|
|
1599
|
-
e: e
|
|
1600
|
-
};
|
|
1601
|
-
}).filter(function (_) {
|
|
1602
|
-
return _.availableCols.length;
|
|
1603
|
-
});
|
|
1604
|
-
if (arr.length) {
|
|
1605
|
-
var target = arr[0];
|
|
1606
|
-
this.addToRemote({
|
|
1607
|
-
appointmentDate: target.s,
|
|
1608
|
-
data: data.data,
|
|
1609
|
-
appointmentMorningOrAfternoon: '上午'
|
|
1610
|
-
});
|
|
1611
|
-
this.emitChange();
|
|
1612
|
-
}
|
|
1613
|
-
};
|
|
1614
|
-
DD.prototype.equalDay = function (a, b) {
|
|
1615
|
-
return true;
|
|
1616
|
-
};
|
|
1617
|
-
DD.prototype.checkInRestTime = function (startTime) {
|
|
1618
|
-
return false;
|
|
1619
|
-
};
|
|
1620
|
-
DD.prototype.canAddInDayView = function (appointmentDate, colIndex, rowIndex, type) {
|
|
1621
|
-
return false;
|
|
1622
|
-
};
|
|
1623
|
-
DD.prototype.findStartColToAdd = function (startTime, endTime) {
|
|
1624
|
-
var _this = this;
|
|
1625
|
-
return Array(this.colsOfSameInterval).fill(0).map(function (_, i) {
|
|
1626
|
-
var isOk = _this.canAddInDayView(startTime, endTime, i, i + 1);
|
|
1627
|
-
return isOk ? i : -1;
|
|
1628
|
-
}).filter(function (_) {
|
|
1629
|
-
return _ !== -1;
|
|
1630
|
-
});
|
|
1631
|
-
};
|
|
1632
|
-
DD.prototype.canAddInWeekView = function (startTime, endTime) {
|
|
1633
|
-
var colArr = this.findStartColToAdd(startTime, endTime);
|
|
1634
|
-
return !!colArr.length;
|
|
1635
|
-
};
|
|
1636
|
-
DD.prototype.canAddInMonthView = function (startTime) {
|
|
1637
|
-
var _this = this;
|
|
1638
|
-
var dayStart = startTime.clone().set({
|
|
1639
|
-
hour: START_HOUR
|
|
1640
|
-
});
|
|
1641
|
-
return Array(DIFF_HOUR / HOUR_SPAN).fill(0).map(function (_, idx) {
|
|
1642
|
-
return _this.canAddInWeekView(dayStart.clone().add(idx * HOUR_SPAN * 60, 'minute'), dayStart.clone().add((idx + 1) * HOUR_SPAN * 60, 'minute'));
|
|
1643
|
-
}).some(function (_) {
|
|
1644
|
-
return _;
|
|
1645
|
-
});
|
|
1646
|
-
};
|
|
1647
|
-
DD.prototype.emitChange = function () {
|
|
1648
|
-
var _this = this;
|
|
1649
|
-
this.observers.forEach(function (o) {
|
|
1650
|
-
return o === null || o === void 0 ? void 0 : o.call(null, _this.bookings);
|
|
1651
|
-
});
|
|
1652
|
-
};
|
|
1653
|
-
DD.prototype.addToRemote = function (item) {
|
|
1654
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1655
|
-
var data, appointmentDate, appointmentMorningOrAfternoon;
|
|
1656
|
-
var _this = this;
|
|
1657
|
-
return __generator(this, function (_a) {
|
|
1658
|
-
data = item.data, appointmentDate = item.appointmentDate, appointmentMorningOrAfternoon = item.appointmentMorningOrAfternoon;
|
|
1659
|
-
SModel_EarlyPregnancyCheckSurgeryType.appointmentSurgery(__assign(__assign({}, data), {
|
|
1660
|
-
progressStatus: stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('待签到'),
|
|
1661
|
-
appointmentMorningOrAfternoon: appointmentMorningOrAfternoon,
|
|
1662
|
-
appointmentDate: appointmentDate
|
|
1663
|
-
})).then(function () {
|
|
1664
|
-
_this.initData();
|
|
1665
|
-
_this.getStatistic();
|
|
1666
|
-
_this.getBetweenList();
|
|
1667
|
-
})["catch"](function (e) {
|
|
1668
|
-
var _a;
|
|
1669
|
-
if ((_a = e === null || e === void 0 ? void 0 : e.msg) === null || _a === void 0 ? void 0 : _a.includes('号源不足')) ;
|
|
1670
|
-
});
|
|
1671
|
-
return [2];
|
|
1672
|
-
});
|
|
1673
|
-
});
|
|
1674
|
-
};
|
|
1675
|
-
DD.prototype.initData = function () {
|
|
1676
|
-
var _this = this;
|
|
1677
|
-
var start, end;
|
|
1678
|
-
if (this.mode === 'day') {
|
|
1679
|
-
start = this.selectMoment;
|
|
1680
|
-
end = this.selectMoment;
|
|
1681
|
-
} else if (this.mode === 'week') {
|
|
1682
|
-
var _a = getWeekStartEnd(this.selectMoment),
|
|
1683
|
-
_start = _a[0],
|
|
1684
|
-
_end = _a[1];
|
|
1685
|
-
start = _start;
|
|
1686
|
-
end = _end;
|
|
1687
|
-
} else {
|
|
1688
|
-
var _b = getMonthStartEnd(this.selectMoment),
|
|
1689
|
-
_start = _b[0],
|
|
1690
|
-
_end = _b[1];
|
|
1691
|
-
start = _start.subtract(7, 'day');
|
|
1692
|
-
end = _end.add(7, 'day');
|
|
1693
|
-
}
|
|
1694
|
-
SModel_EarlyPregnancyCheckSurgeryType.getList({
|
|
1695
|
-
params: {
|
|
1696
|
-
'appointmentDate.greaterOrEqualThan': start.format('YYYY-MM-DD'),
|
|
1697
|
-
'appointmentDate.lessOrEqualThan': end.format('YYYY-MM-DD')
|
|
1698
|
-
}
|
|
1699
|
-
}).then(function (r) {
|
|
1700
|
-
var resData = r.filter(function (_) {
|
|
1701
|
-
return _.progressStatus !== stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('待预约');
|
|
1702
|
-
});
|
|
1703
|
-
if (Array.isArray(resData)) {
|
|
1704
|
-
var validData = resData.filter(function (_) {
|
|
1705
|
-
var _a;
|
|
1706
|
-
return (_a = _.appointmentDate) === null || _a === void 0 ? void 0 : _a.isValid();
|
|
1707
|
-
});
|
|
1708
|
-
var data = validData.map(function (_) {
|
|
1709
|
-
return {
|
|
1710
|
-
data: _,
|
|
1711
|
-
appointmentDate: _.appointmentDate,
|
|
1712
|
-
appointmentMorningOrAfternoon: _.appointmentMorningOrAfternoon || '上午'
|
|
1713
|
-
};
|
|
1714
|
-
});
|
|
1715
|
-
_this.setData(data);
|
|
1716
|
-
}
|
|
1717
|
-
});
|
|
1718
|
-
};
|
|
1719
|
-
DD.prototype.getStatistic = function () {
|
|
1720
|
-
var _this = this;
|
|
1721
|
-
var _a = getTimeFrame(this.mode, this.selectMoment),
|
|
1722
|
-
start = _a.start,
|
|
1723
|
-
end = _a.end;
|
|
1724
|
-
SModel_EarlyPregnancyCheckSurgeryType.getStatistic(start, end).then(function (res) {
|
|
1725
|
-
_this.setStatisticData(res);
|
|
1726
|
-
});
|
|
1727
|
-
};
|
|
1728
|
-
DD.prototype.getBetweenList = function () {
|
|
1729
|
-
var _this = this;
|
|
1730
|
-
var isMonth = this.mode === 'month';
|
|
1731
|
-
var _a = getTimeFrame(this.mode, this.selectMoment),
|
|
1732
|
-
start = _a.start,
|
|
1733
|
-
end = _a.end;
|
|
1734
|
-
this.setStartAndEnd(start, end);
|
|
1735
|
-
SModel_FamilyPlaningSchedulingDetails.getBetweenList(isMonth ? start.subtract(7, 'day') : start, isMonth ? end.add(7, 'day') : end).then(function (res) {
|
|
1736
|
-
_this.setScheduleArr(res);
|
|
1737
|
-
});
|
|
1738
|
-
};
|
|
1739
|
-
return DD;
|
|
1740
|
-
}();
|
|
1741
|
-
var ItemTypes = '__ItemTypes';
|
|
1742
|
-
var style = {
|
|
1743
|
-
cursor: 'move',
|
|
1744
|
-
listStyleType: 'none'
|
|
1745
|
-
};
|
|
1746
|
-
var DragItem = function DragItem(_a) {
|
|
1747
|
-
_a.name;
|
|
1748
|
-
var children = _a.children,
|
|
1749
|
-
onDragEnd = _a.onDragEnd,
|
|
1750
|
-
data = _a.data;
|
|
1751
|
-
var _b = useDrag({
|
|
1752
|
-
item: __assign(__assign({}, data), {
|
|
1753
|
-
type: ItemTypes
|
|
1754
|
-
}),
|
|
1755
|
-
collect: function collect(monitor) {
|
|
1756
|
-
return {
|
|
1757
|
-
isDragging: monitor.isDragging()
|
|
1758
|
-
};
|
|
1759
|
-
},
|
|
1760
|
-
end: function end(item, monitor) {
|
|
1761
|
-
var dropResult = monitor.getDropResult();
|
|
1762
|
-
if (item && dropResult) {
|
|
1763
|
-
onDragEnd && onDragEnd(item, dropResult.position);
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
}),
|
|
1767
|
-
isDragging = _b[0].isDragging,
|
|
1768
|
-
dragRef = _b[1];
|
|
1769
|
-
_b[2];
|
|
1770
|
-
var opacity = isDragging ? 0.6 : 1;
|
|
1771
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("li", {
|
|
1772
|
-
ref: dragRef,
|
|
1773
|
-
style: __assign(__assign({}, style), {
|
|
1774
|
-
opacity: opacity
|
|
1775
|
-
})
|
|
1776
|
-
}, children));
|
|
1777
|
-
};
|
|
1778
|
-
var DragItem$1 = DragItem;
|
|
1779
|
-
var css_248z$1 = ".close {\n display: none;\n}\n.item .payment {\n position: absolute;\n top: 10px;\n right: 20px;\n}\n.item:hover .close {\n display: inline-block;\n}\n.lately-appointmentDate {\n display: flex;\n align-items: center;\n margin-bottom: 24px;\n padding: 2px 8px 2px;\n border-top: 2px solid #ff9b66;\n border-bottom: 2px solid #ff9b66;\n border-radius: 0 0 4px 4px;\n}\n.lately-appointmentDate .icon {\n color: #ff9b66;\n}\n.lately-appointmentDate .content {\n margin-left: 14px;\n color: #383f4a;\n}\n";
|
|
1780
|
-
styleInject(css_248z$1);
|
|
1781
|
-
var statusMap = {
|
|
1782
|
-
1: '正常',
|
|
1783
|
-
2: '异常',
|
|
1784
|
-
3: '未查',
|
|
1785
|
-
"null": '未查'
|
|
1786
|
-
};
|
|
1787
|
-
var colorMap = new Map([['正常', ''], ['异常', 'red'], ['未查', '']]);
|
|
1788
|
-
var dangerColor = '#FE547B';
|
|
1789
|
-
var weakColor = '#828C99';
|
|
1790
|
-
function getA(data, key) {
|
|
1791
|
-
if (!data || !key) return /*#__PURE__*/React$1.createElement("span", {
|
|
1792
|
-
style: {
|
|
1793
|
-
color: dangerColor
|
|
1794
|
-
}
|
|
1795
|
-
}, "\u7F3A\u5C11\u8BE5\u68C0\u67E5");
|
|
1796
|
-
var value = data[key] + '';
|
|
1797
|
-
var type = statusMap[value];
|
|
1798
|
-
var colorString = colorMap.get(type);
|
|
1799
|
-
var extraText = data["".concat(key, "Note")];
|
|
1800
|
-
return /*#__PURE__*/React$1.createElement("span", {
|
|
1801
|
-
style: {
|
|
1802
|
-
color: colorString || ''
|
|
1803
|
-
}
|
|
1804
|
-
}, extraText ? extraText : type);
|
|
1805
|
-
}
|
|
1806
|
-
var examEnties = Object.entries(EXAM_MAP);
|
|
1807
|
-
var firstExamEntry = examEnties.slice(0, 1)[0];
|
|
1808
|
-
var baseHeight = 140;
|
|
1809
|
-
function Item(_a) {
|
|
1810
|
-
var _b;
|
|
1811
|
-
var data = _a.data,
|
|
1812
|
-
onClose = _a.onClose,
|
|
1813
|
-
color = _a.color,
|
|
1814
|
-
dd = _a.dd;
|
|
1815
|
-
var _c = useState(true),
|
|
1816
|
-
hidden = _c[0],
|
|
1817
|
-
setHidden = _c[1];
|
|
1818
|
-
var _d = useState(false),
|
|
1819
|
-
isDel = _d[0],
|
|
1820
|
-
setIsDel = _d[1];
|
|
1821
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
1822
|
-
className: "item",
|
|
1823
|
-
style: {
|
|
1824
|
-
background: color || '#fff',
|
|
1825
|
-
padding: isDel ? 0 : 12,
|
|
1826
|
-
fontSize: 12,
|
|
1827
|
-
position: 'relative',
|
|
1828
|
-
transition: 'all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0s',
|
|
1829
|
-
lineHeight: '24px',
|
|
1830
|
-
overflow: 'hidden',
|
|
1831
|
-
height: isDel ? 0 : hidden ? baseHeight : baseHeight + Object.entries(EXAM_MAP).length * 24,
|
|
1832
|
-
borderRadius: 4
|
|
1833
|
-
},
|
|
1834
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
1835
|
-
return setHidden(false);
|
|
1836
|
-
},
|
|
1837
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
1838
|
-
return setHidden(true);
|
|
1839
|
-
}
|
|
1840
|
-
}, /*#__PURE__*/React$1.createElement(_Popconfirm, {
|
|
1841
|
-
title: "\u5173\u95ED\u540E\uFF0C\u5F85\u9884\u7EA6\u5217\u8868\u5219\u4E0D\u518D\u663E\u793A\u8BE5\u60A3\u8005\u3002",
|
|
1842
|
-
onConfirm: function onConfirm() {
|
|
1843
|
-
setIsDel(true);
|
|
1844
|
-
onClose();
|
|
1845
|
-
},
|
|
1846
|
-
okText: "\u786E\u5B9A",
|
|
1847
|
-
cancelText: "\u53D6\u6D88"
|
|
1848
|
-
}, /*#__PURE__*/React$1.createElement(_Button, {
|
|
1849
|
-
className: "close",
|
|
1850
|
-
type: "text",
|
|
1851
|
-
style: {
|
|
1852
|
-
position: 'absolute',
|
|
1853
|
-
top: 6,
|
|
1854
|
-
right: 6,
|
|
1855
|
-
border: '2px solid #828C99',
|
|
1856
|
-
color: '#828C99'
|
|
1857
|
-
},
|
|
1858
|
-
size: "small",
|
|
1859
|
-
shape: "circle",
|
|
1860
|
-
icon: /*#__PURE__*/React$1.createElement(CloseOutlined, null)
|
|
1861
|
-
})), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
1862
|
-
style: {
|
|
1863
|
-
color: '#150F55',
|
|
1864
|
-
fontWeight: 600,
|
|
1865
|
-
fontSize: 14,
|
|
1866
|
-
marginRight: 6
|
|
1867
|
-
}
|
|
1868
|
-
}, data.name), /*#__PURE__*/React$1.createElement("span", null, data.age, "\u5C81 / ", data.telephone), /*#__PURE__*/React$1.createElement("span", {
|
|
1869
|
-
style: {
|
|
1870
|
-
marginLeft: 12
|
|
1871
|
-
}
|
|
1872
|
-
}, data.payment ? null : /*#__PURE__*/React$1.createElement(_Tag, {
|
|
1873
|
-
color: dangerColor
|
|
1874
|
-
}, "\u672A\u7F34\u8D39"))), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
1875
|
-
style: {
|
|
1876
|
-
color: weakColor
|
|
1877
|
-
}
|
|
1878
|
-
}, "\u63A5\u8BCA\uFF1A"), /*#__PURE__*/React$1.createElement("span", {
|
|
1879
|
-
style: {
|
|
1880
|
-
marginRight: 6
|
|
1881
|
-
}
|
|
1882
|
-
}, data.diagnoseDoctor, " "), /*#__PURE__*/React$1.createElement("span", {
|
|
1883
|
-
style: {
|
|
1884
|
-
color: weakColor
|
|
1885
|
-
}
|
|
1886
|
-
}, (_b = data.registrationDate) === null || _b === void 0 ? void 0 : _b.format('YYYY-MM-DD'))), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
1887
|
-
style: {
|
|
1888
|
-
color: weakColor
|
|
1889
|
-
}
|
|
1890
|
-
}, "\u533B\u5631\uFF1A"), data.doctorOrder), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
1891
|
-
style: {
|
|
1892
|
-
color: weakColor
|
|
1893
|
-
}
|
|
1894
|
-
}, "\u624B\u672F\u7C7B\u578B\uFF1A"), data.operationName), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
1895
|
-
style: {
|
|
1896
|
-
color: '#150F55',
|
|
1897
|
-
fontWeight: 600,
|
|
1898
|
-
fontSize: 14
|
|
1899
|
-
}
|
|
1900
|
-
}, "\u68C0\u9A8C\u68C0\u67E5\uFF1A"), /*#__PURE__*/React$1.createElement("span", {
|
|
1901
|
-
hidden: !hidden
|
|
1902
|
-
}, firstExamEntry[0], "\uFF1A", getA(data.preoperativeExamination, firstExamEntry[1]))), examEnties.map(function (_a) {
|
|
1903
|
-
var title = _a[0],
|
|
1904
|
-
key = _a[1];
|
|
1905
|
-
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", null, /*#__PURE__*/React$1.createElement("span", {
|
|
1906
|
-
style: {
|
|
1907
|
-
color: weakColor
|
|
1908
|
-
}
|
|
1909
|
-
}, title, "\uFF1A"), getA(data.preoperativeExamination, key)));
|
|
1910
|
-
}), /*#__PURE__*/React$1.createElement(_Button, {
|
|
1911
|
-
type: "text",
|
|
1912
|
-
style: {
|
|
1913
|
-
position: 'absolute',
|
|
1914
|
-
bottom: 6,
|
|
1915
|
-
right: 6,
|
|
1916
|
-
color: '#828C99'
|
|
1917
|
-
},
|
|
1918
|
-
shape: "circle",
|
|
1919
|
-
size: "small",
|
|
1920
|
-
icon: hidden ? /*#__PURE__*/React$1.createElement(DownOutlined, null) : /*#__PURE__*/React$1.createElement(UpOutlined, null)
|
|
1921
|
-
}), /*#__PURE__*/React$1.createElement("div", {
|
|
1922
|
-
className: "payment"
|
|
1923
|
-
}, data.payment === 1 ? "<img src={payment} />" : /*#__PURE__*/React$1.createElement(React$1.Fragment, null))), /*#__PURE__*/React$1.createElement("div", {
|
|
1924
|
-
className: "lately-appointmentDate"
|
|
1925
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
1926
|
-
className: "icon"
|
|
1927
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null)), /*#__PURE__*/React$1.createElement("div", {
|
|
1928
|
-
className: "content"
|
|
1929
|
-
}, dd.mode === 'month' ? '当前选中视图,无法预约,请切换日、周视图' : data.latelyAppointmentDateExplain)));
|
|
1930
|
-
}
|
|
1931
|
-
function WorkFlow$1(props) {
|
|
1932
|
-
var leftList = props.leftList,
|
|
1933
|
-
colorList = props.colorList,
|
|
1934
|
-
fetchLeftData = props.fetchLeftData,
|
|
1935
|
-
name = props.name,
|
|
1936
|
-
setName = props.setName,
|
|
1937
|
-
dd = props.dd;
|
|
1938
|
-
var handleDragEnd = function handleDragEnd(item, position) {};
|
|
1939
|
-
useEffect(function () {}, []);
|
|
1940
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
1941
|
-
style: {
|
|
1942
|
-
height: '100%',
|
|
1943
|
-
display: 'flex',
|
|
1944
|
-
flexDirection: 'column'
|
|
1945
|
-
}
|
|
1946
|
-
}, /*#__PURE__*/React$1.createElement(_Typography.Title, {
|
|
1947
|
-
onClick: function onClick(e) {},
|
|
1948
|
-
level: 5,
|
|
1949
|
-
style: {
|
|
1950
|
-
display: 'flex',
|
|
1951
|
-
justifyContent: 'space-between',
|
|
1952
|
-
alignItems: 'center',
|
|
1953
|
-
borderBottom: '1px solid #eee',
|
|
1954
|
-
height: 46,
|
|
1955
|
-
padding: '9px 0',
|
|
1956
|
-
margin: '0 12px'
|
|
1957
|
-
}
|
|
1958
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
1959
|
-
style: {
|
|
1960
|
-
color: '#150F55'
|
|
1961
|
-
},
|
|
1962
|
-
onClick: function onClick() {}
|
|
1963
|
-
}, "\u5F85\u9884\u7EA6\u60A3\u8005", /*#__PURE__*/React$1.createElement("span", {
|
|
1964
|
-
style: {
|
|
1965
|
-
color: '#828C99',
|
|
1966
|
-
fontSize: 12,
|
|
1967
|
-
paddingLeft: 8
|
|
1968
|
-
}
|
|
1969
|
-
}, "(".concat(leftList.length, ")")))), /*#__PURE__*/React$1.createElement(_Input.Search, {
|
|
1970
|
-
style: {
|
|
1971
|
-
padding: 12
|
|
1972
|
-
},
|
|
1973
|
-
value: name,
|
|
1974
|
-
placeholder: "\u8BF7\u8F93\u5165\u60A3\u8005\u59D3\u540D",
|
|
1975
|
-
onChange: function onChange(e) {
|
|
1976
|
-
return setName(e.target.value);
|
|
1977
|
-
},
|
|
1978
|
-
allowClear: true,
|
|
1979
|
-
onSearch: function onSearch(value) {
|
|
1980
|
-
return fetchLeftData(value);
|
|
1981
|
-
}
|
|
1982
|
-
}), /*#__PURE__*/React$1.createElement("div", {
|
|
1983
|
-
style: {
|
|
1984
|
-
overflowY: 'scroll'
|
|
1985
|
-
}
|
|
1986
|
-
}, leftList.length > 0 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("ul", {
|
|
1987
|
-
style: {
|
|
1988
|
-
padding: '0 12px'
|
|
1989
|
-
}
|
|
1990
|
-
}, leftList.map(function (_) {
|
|
1991
|
-
return /*#__PURE__*/React$1.createElement(DragItem$1, {
|
|
1992
|
-
name: "rect",
|
|
1993
|
-
data: _,
|
|
1994
|
-
onDragEnd: handleDragEnd,
|
|
1995
|
-
key: _.id
|
|
1996
|
-
}, /*#__PURE__*/React$1.createElement(Item, {
|
|
1997
|
-
color: findOperationColor(colorList, _ === null || _ === void 0 ? void 0 : _.operationName)[0],
|
|
1998
|
-
data: _,
|
|
1999
|
-
dd: dd,
|
|
2000
|
-
onClose: function onClose() {
|
|
2001
|
-
SModel_EarlyPregnancyCheckSurgeryType.del(_.id).then(function () {
|
|
2002
|
-
return fetchLeftData();
|
|
2003
|
-
});
|
|
2004
|
-
}
|
|
2005
|
-
}));
|
|
2006
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
2007
|
-
style: {
|
|
2008
|
-
fontSize: 12,
|
|
2009
|
-
color: '#8D8DAC',
|
|
2010
|
-
textAlign: 'center',
|
|
2011
|
-
marginBottom: 16
|
|
2012
|
-
}
|
|
2013
|
-
}, "\u6CA1\u6709\u66F4\u591A\u4E86")) : /*#__PURE__*/React$1.createElement("div", {
|
|
2014
|
-
style: {
|
|
2015
|
-
fontSize: 12,
|
|
2016
|
-
color: '#8D8DAC',
|
|
2017
|
-
textAlign: 'center'
|
|
2018
|
-
}
|
|
2019
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2020
|
-
style: {
|
|
2021
|
-
margin: '16px 21px'
|
|
2022
|
-
}
|
|
2023
|
-
}, /*#__PURE__*/React$1.createElement("img", {
|
|
2024
|
-
src: "/lm_imgs/gy-not-thing.png"
|
|
2025
|
-
})), /*#__PURE__*/React$1.createElement("div", null, "\u6682\u65E0\u7528\u6237\u9700\u8981\u9884\u7EA6"))));
|
|
2026
|
-
}
|
|
2027
|
-
var OverlayType;
|
|
2028
|
-
(function (OverlayType) {
|
|
2029
|
-
OverlayType[OverlayType["IllegalMoveHover"] = 0] = "IllegalMoveHover";
|
|
2030
|
-
OverlayType[OverlayType["LegalMoveHover"] = 1] = "LegalMoveHover";
|
|
2031
|
-
OverlayType[OverlayType["PossibleMove"] = 2] = "PossibleMove";
|
|
2032
|
-
})(OverlayType || (OverlayType = {}));
|
|
2033
|
-
var Overlay = function Overlay(_a) {
|
|
2034
|
-
var type = _a.type;
|
|
2035
|
-
var color = getOverlayColor(type);
|
|
2036
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
2037
|
-
className: "overlay",
|
|
2038
|
-
style: {
|
|
2039
|
-
position: 'absolute',
|
|
2040
|
-
top: 0,
|
|
2041
|
-
left: 0,
|
|
2042
|
-
height: '100%',
|
|
2043
|
-
width: '100%',
|
|
2044
|
-
zIndex: 1,
|
|
2045
|
-
opacity: 0.5,
|
|
2046
|
-
backgroundColor: color
|
|
2047
|
-
}
|
|
2048
|
-
});
|
|
2049
|
-
};
|
|
2050
|
-
function getOverlayColor(type) {
|
|
2051
|
-
switch (type) {
|
|
2052
|
-
case OverlayType.IllegalMoveHover:
|
|
2053
|
-
return 'red';
|
|
2054
|
-
case OverlayType.LegalMoveHover:
|
|
2055
|
-
return 'green';
|
|
2056
|
-
case OverlayType.PossibleMove:
|
|
2057
|
-
return '';
|
|
2058
|
-
}
|
|
2059
|
-
}
|
|
2060
|
-
var DropContainer = function DropContainer(_a) {
|
|
2061
|
-
var children = _a.children,
|
|
2062
|
-
dd = _a.dd,
|
|
2063
|
-
mode = _a.mode,
|
|
2064
|
-
appointmentDate = _a.appointmentDate,
|
|
2065
|
-
appointmentMorningOrAfternoon = _a.appointmentMorningOrAfternoon,
|
|
2066
|
-
scheduling = _a.scheduling,
|
|
2067
|
-
isDisabled = _a.isDisabled;
|
|
2068
|
-
var disabledAllday = checkDisabledHalfDay(scheduling, '上午') && checkDisabledHalfDay(scheduling, '下午');
|
|
2069
|
-
var disabled = mode === 'month' ? disabledAllday : checkDisabledHalfDay(scheduling, appointmentMorningOrAfternoon);
|
|
2070
|
-
var isBefore = handleIsBefore(appointmentDate);
|
|
2071
|
-
var isWeekend = isDisabled;
|
|
2072
|
-
var isBeforeFlag = isBefore < 0 ? true : false;
|
|
2073
|
-
var schedulingFlag = _get(scheduling, 'attendanceSet') === 3 ? true : false;
|
|
2074
|
-
var _b = useDrop({
|
|
2075
|
-
accept: ItemTypes,
|
|
2076
|
-
canDrop: function canDrop(item) {
|
|
2077
|
-
return !disabled;
|
|
2078
|
-
},
|
|
2079
|
-
drop: function drop(item) {
|
|
2080
|
-
if (mode === 'day') dd.addToDayView({
|
|
2081
|
-
data: item,
|
|
2082
|
-
appointmentMorningOrAfternoon: appointmentMorningOrAfternoon,
|
|
2083
|
-
appointmentDate: appointmentDate
|
|
2084
|
-
});
|
|
2085
|
-
if (mode === 'week') dd.addToWeekView({
|
|
2086
|
-
data: item,
|
|
2087
|
-
appointmentMorningOrAfternoon: appointmentMorningOrAfternoon,
|
|
2088
|
-
appointmentDate: appointmentDate
|
|
2089
|
-
});
|
|
2090
|
-
return true;
|
|
2091
|
-
},
|
|
2092
|
-
collect: function collect(monitor) {
|
|
2093
|
-
return {
|
|
2094
|
-
isOver: monitor.isOver(),
|
|
2095
|
-
canDrop: monitor.canDrop()
|
|
2096
|
-
};
|
|
8
|
+
import '@lm_fe/env';
|
|
9
|
+
function BreastCancerDataReport(prop) {
|
|
10
|
+
var _a = BF_Wrap2({
|
|
11
|
+
default_conf: {
|
|
12
|
+
title: '婚前检查-统计',
|
|
13
|
+
name: '/api/statistics/premarital/check/findAll',
|
|
14
|
+
searchConfig: defineFormConfig([{
|
|
15
|
+
label: '门诊号',
|
|
16
|
+
name: 'outpatientNO',
|
|
17
|
+
inputType: 'Input'
|
|
18
|
+
}, {
|
|
19
|
+
label: '姓名',
|
|
20
|
+
name: 'name',
|
|
21
|
+
inputType: 'Input'
|
|
22
|
+
}, {
|
|
23
|
+
label: '证件号码',
|
|
24
|
+
name: 'idNO',
|
|
25
|
+
inputType: 'Input'
|
|
26
|
+
}, {
|
|
27
|
+
label: '梅毒',
|
|
28
|
+
name: 'syphilis',
|
|
29
|
+
inputType: 'MS',
|
|
30
|
+
inputProps: {
|
|
31
|
+
options: '阴性,阳性'
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
label: 'HIV',
|
|
35
|
+
name: 'hiv',
|
|
36
|
+
inputType: 'MS',
|
|
37
|
+
inputProps: {
|
|
38
|
+
options: '阴性,阳性'
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
label: '淋球菌',
|
|
42
|
+
name: 'gonococcus',
|
|
43
|
+
inputType: 'MS',
|
|
44
|
+
inputProps: {
|
|
45
|
+
options: '阴性,阳性'
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
label: '档案类型',
|
|
49
|
+
name: 'fileType',
|
|
50
|
+
inputType: 'MS',
|
|
51
|
+
inputProps: {
|
|
52
|
+
uniqueKey: '性别2'
|
|
53
|
+
}
|
|
54
|
+
}]),
|
|
55
|
+
tableColumns: defineFormConfig([{
|
|
56
|
+
title: '档案类型',
|
|
57
|
+
dataIndex: 'fileType',
|
|
58
|
+
inputType: 'MS',
|
|
59
|
+
inputProps: {
|
|
60
|
+
uniqueKey: '性别2'
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
title: '门诊号',
|
|
64
|
+
dataIndex: 'outpatientNO'
|
|
65
|
+
}, {
|
|
66
|
+
title: '姓名',
|
|
67
|
+
dataIndex: 'name'
|
|
68
|
+
}, {
|
|
69
|
+
title: '年龄',
|
|
70
|
+
dataIndex: 'age'
|
|
71
|
+
}, {
|
|
72
|
+
title: '电话',
|
|
73
|
+
dataIndex: 'telephone'
|
|
74
|
+
}, {
|
|
75
|
+
title: '证件号码',
|
|
76
|
+
dataIndex: 'idNO'
|
|
77
|
+
}, {
|
|
78
|
+
title: '地址',
|
|
79
|
+
dataIndex: 'permanentResidenceAddress'
|
|
80
|
+
}, {
|
|
81
|
+
title: '随访时间',
|
|
82
|
+
dataIndex: 'followupDate'
|
|
83
|
+
}, {
|
|
84
|
+
title: '随访内容',
|
|
85
|
+
dataIndex: 'followupContent'
|
|
86
|
+
}])
|
|
2097
87
|
}
|
|
2098
88
|
}),
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
display: 'flex',
|
|
2125
|
-
justifyContent: 'center',
|
|
2126
|
-
alignItems: 'center'
|
|
2127
|
-
}
|
|
2128
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2129
|
-
className: "disabled-img"
|
|
2130
|
-
}), /*#__PURE__*/React$1.createElement("span", {
|
|
2131
|
-
className: "disabled-word"
|
|
2132
|
-
}, "\u4E0D\u53EF\u7EA6")), isOver && !canDrop && /*#__PURE__*/React$1.createElement(Overlay, {
|
|
2133
|
-
type: OverlayType.IllegalMoveHover
|
|
2134
|
-
}), !isOver && canDrop && /*#__PURE__*/React$1.createElement(Overlay, {
|
|
2135
|
-
type: OverlayType.PossibleMove
|
|
2136
|
-
}), isOver && canDrop && /*#__PURE__*/React$1.createElement(Overlay, {
|
|
2137
|
-
type: OverlayType.LegalMoveHover
|
|
2138
|
-
}));
|
|
2139
|
-
};
|
|
2140
|
-
var DropContainer$1 = DropContainer;
|
|
2141
|
-
function DateSelect$2(props) {
|
|
2142
|
-
var bookingData = props.bookingData,
|
|
2143
|
-
dd = props.dd,
|
|
2144
|
-
selectedDate = props.selectedDate,
|
|
2145
|
-
findColor2 = props.findColor2,
|
|
2146
|
-
scheduleArr = props.scheduleArr,
|
|
2147
|
-
activeOperationType = props.activeOperationType;
|
|
2148
|
-
var morningNum = 5,
|
|
2149
|
-
afternoonNum = 5;
|
|
2150
|
-
var scheduleDataOfThisDay = scheduleArr[0];
|
|
2151
|
-
var rowHeight = "calc((100% - 30px) / ".concat(morningNum + afternoonNum, ")");
|
|
2152
|
-
var residueObj = getResidue(activeOperationType, scheduleDataOfThisDay);
|
|
2153
|
-
var getDateTips = function getDateTips() {
|
|
2154
|
-
var attendanceSet = _get(scheduleDataOfThisDay, 'attendanceSet');
|
|
2155
|
-
if (attendanceSet === 0) {
|
|
2156
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2157
|
-
className: "date-tips-day date-tips"
|
|
2158
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2159
|
-
className: "disabled-img"
|
|
2160
|
-
}), /*#__PURE__*/React$1.createElement("span", {
|
|
2161
|
-
className: "disabled-word"
|
|
2162
|
-
}, "\u5F53\u5929\u6682\u65E0\u5F00\u653E\u7684\u624B\u672F\u7C7B\u578B\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u65E5\u671F\u9884\u7EA6!"));
|
|
2163
|
-
}
|
|
2164
|
-
if (attendanceSet === 1) {
|
|
2165
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2166
|
-
className: "date-tips-afternoon date-tips"
|
|
2167
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2168
|
-
className: "disabled-img"
|
|
2169
|
-
}), /*#__PURE__*/React$1.createElement("span", {
|
|
2170
|
-
className: "disabled-word"
|
|
2171
|
-
}, "\u5F53\u5929\u4E0B\u5348\u6682\u65E0\u5F00\u653E\u7684\u624B\u672F\u7C7B\u578B\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u65E5\u671F\u9884\u7EA6!"));
|
|
2172
|
-
}
|
|
2173
|
-
if (attendanceSet === 2) {
|
|
2174
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2175
|
-
className: "date-tips-morning date-tips"
|
|
2176
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2177
|
-
className: "disabled-img"
|
|
2178
|
-
}), /*#__PURE__*/React$1.createElement("span", {
|
|
2179
|
-
className: "disabled-word"
|
|
2180
|
-
}, "\u5F53\u5929\u4E0A\u5348\u6682\u65E0\u5F00\u653E\u7684\u624B\u672F\u7C7B\u578B\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u65E5\u671F\u9884\u7EA6!"));
|
|
2181
|
-
}
|
|
2182
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
2183
|
-
};
|
|
2184
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2185
|
-
style: {
|
|
2186
|
-
flex: 1,
|
|
2187
|
-
display: 'flex',
|
|
2188
|
-
justifyContent: 'center',
|
|
2189
|
-
position: 'relative'
|
|
2190
|
-
}
|
|
2191
|
-
}, handleIsBefore(selectedDate) >= 0 && getDateTips(), /*#__PURE__*/React$1.createElement("table", {
|
|
2192
|
-
width: "98%",
|
|
2193
|
-
cellSpacing: 0,
|
|
2194
|
-
cellPadding: 0,
|
|
2195
|
-
border: 1,
|
|
2196
|
-
style: {
|
|
2197
|
-
height: '100%'
|
|
2198
|
-
},
|
|
2199
|
-
borderColor: "#EDEEF6"
|
|
2200
|
-
}, /*#__PURE__*/React$1.createElement("tbody", {
|
|
2201
|
-
style: {
|
|
2202
|
-
height: '100%'
|
|
2203
|
-
}
|
|
2204
|
-
}, Array(morningNum + afternoonNum).fill(0).map(function (_, rowIndex) {
|
|
2205
|
-
var morningOrAfternoon = rowIndex < morningNum ? '上午' : '下午';
|
|
2206
|
-
var realRowIndex = morningOrAfternoon === '上午' ? rowIndex : rowIndex - morningNum;
|
|
2207
|
-
var realDataArr = bookingData.filter(function (_) {
|
|
2208
|
-
return _.appointmentMorningOrAfternoon === morningOrAfternoon;
|
|
2209
|
-
});
|
|
2210
|
-
var disabled = checkDisabledHalfDay(scheduleDataOfThisDay, morningOrAfternoon);
|
|
2211
|
-
return /*#__PURE__*/React$1.createElement("tr", {
|
|
2212
|
-
key: rowIndex,
|
|
2213
|
-
style: {
|
|
2214
|
-
height: rowHeight
|
|
2215
|
-
}
|
|
2216
|
-
}, rowIndex % ((morningNum + afternoonNum) / 2) === 0 ? /*#__PURE__*/React$1.createElement("td", {
|
|
2217
|
-
width: 40,
|
|
2218
|
-
rowSpan: 5,
|
|
2219
|
-
style: {
|
|
2220
|
-
textAlign: 'center',
|
|
2221
|
-
writingMode: 'vertical-lr'
|
|
2222
|
-
}
|
|
2223
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2224
|
-
style: {
|
|
2225
|
-
letterSpacing: 8,
|
|
2226
|
-
fontSize: 16
|
|
2227
|
-
}
|
|
2228
|
-
}, morningOrAfternoon)) : null, Array(OPERATION_ARR.length).fill(0).map(function (_, colIndex) {
|
|
2229
|
-
var realIndex = realRowIndex * OPERATION_ARR.length + colIndex;
|
|
2230
|
-
var item = realDataArr[realIndex];
|
|
2231
|
-
var data = item === null || item === void 0 ? void 0 : item.data;
|
|
2232
|
-
var _a = findColor2(data === null || data === void 0 ? void 0 : data.operationName),
|
|
2233
|
-
backgroundColor = _a[0],
|
|
2234
|
-
fontColor = _a[1],
|
|
2235
|
-
textColor = _a[2];
|
|
2236
|
-
var statusLabel = stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getLabel(data === null || data === void 0 ? void 0 : data.progressStatus);
|
|
2237
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
2238
|
-
rowSpan: 1,
|
|
2239
|
-
key: colIndex,
|
|
2240
|
-
style: {
|
|
2241
|
-
position: 'relative'
|
|
2242
|
-
}
|
|
2243
|
-
}, /*#__PURE__*/React$1.createElement(DropContainer$1, {
|
|
2244
|
-
scheduling: scheduleDataOfThisDay,
|
|
2245
|
-
mode: 'day',
|
|
2246
|
-
appointmentDate: selectedDate,
|
|
2247
|
-
dd: dd,
|
|
2248
|
-
appointmentMorningOrAfternoon: morningOrAfternoon,
|
|
2249
|
-
isDisabled: disabled
|
|
2250
|
-
}, data ? /*#__PURE__*/React$1.createElement("div", {
|
|
2251
|
-
onClick: statusLabel === '已完成' ? function () {
|
|
2252
|
-
openBookingModal(selectedDate, morningOrAfternoon, data, function () {
|
|
2253
|
-
dd.initData();
|
|
2254
|
-
dd.getStatistic();
|
|
2255
|
-
dd.getBetweenList();
|
|
2256
|
-
});
|
|
2257
|
-
} : function () {},
|
|
2258
|
-
className: "hover-shadow date-item",
|
|
2259
|
-
style: {
|
|
2260
|
-
cursor: 'pointer',
|
|
2261
|
-
borderLeft: "4px solid ".concat(fontColor),
|
|
2262
|
-
borderRadius: 4,
|
|
2263
|
-
display: 'flex',
|
|
2264
|
-
flex: 1,
|
|
2265
|
-
margin: 4,
|
|
2266
|
-
padding: '4px 0 4px 4px',
|
|
2267
|
-
background: backgroundColor,
|
|
2268
|
-
position: 'relative'
|
|
2269
|
-
}
|
|
2270
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2271
|
-
style: {
|
|
2272
|
-
flex: 1,
|
|
2273
|
-
display: 'flex',
|
|
2274
|
-
flexDirection: 'column'
|
|
2275
|
-
}
|
|
2276
|
-
}, /*#__PURE__*/React$1.createElement(_Row, {
|
|
2277
|
-
gutter: 8,
|
|
2278
|
-
className: "operation-name-row"
|
|
2279
|
-
}, /*#__PURE__*/React$1.createElement(_Col, null, /*#__PURE__*/React$1.createElement("span", {
|
|
2280
|
-
className: "word",
|
|
2281
|
-
style: {
|
|
2282
|
-
color: textColor || '#150F55',
|
|
2283
|
-
fontWeight: 600
|
|
2284
|
-
}
|
|
2285
|
-
}, data.name)), /*#__PURE__*/React$1.createElement(_Col, null, /*#__PURE__*/React$1.createElement("span", {
|
|
2286
|
-
className: "word",
|
|
2287
|
-
style: {
|
|
2288
|
-
color: textColor || '#383F4A',
|
|
2289
|
-
fontSize: 12
|
|
2290
|
-
}
|
|
2291
|
-
}, data.telephone))), /*#__PURE__*/React$1.createElement("span", {
|
|
2292
|
-
className: "word operation-name",
|
|
2293
|
-
style: {
|
|
2294
|
-
fontSize: 12,
|
|
2295
|
-
color: textColor
|
|
2296
|
-
}
|
|
2297
|
-
}, data.operationName)), /*#__PURE__*/React$1.createElement("div", {
|
|
2298
|
-
style: {
|
|
2299
|
-
display: 'flex',
|
|
2300
|
-
flexDirection: 'column',
|
|
2301
|
-
textAlign: 'center'
|
|
2302
|
-
}
|
|
2303
|
-
}, /*#__PURE__*/React$1.createElement(_Tag, {
|
|
2304
|
-
color: fontColor
|
|
2305
|
-
}, statusLabel), /*#__PURE__*/React$1.createElement("div", {
|
|
2306
|
-
className: "handle"
|
|
2307
|
-
}, (statusLabel === '待签到' || statusLabel === '超时') && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(QuestionCircleOutlined, {
|
|
2308
|
-
title: "\u7B7E\u5230",
|
|
2309
|
-
style: {
|
|
2310
|
-
color: fontColor
|
|
2311
|
-
},
|
|
2312
|
-
onClick: function onClick(e) {
|
|
2313
|
-
e.stopPropagation();
|
|
2314
|
-
openBookingModal(selectedDate, morningOrAfternoon, data, function () {
|
|
2315
|
-
dd.initData();
|
|
2316
|
-
dd.getStatistic();
|
|
2317
|
-
dd.getBetweenList();
|
|
2318
|
-
}, 1);
|
|
2319
|
-
}
|
|
2320
|
-
}), /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2321
|
-
title: "\u7F16\u8F91",
|
|
2322
|
-
className: "space",
|
|
2323
|
-
style: {
|
|
2324
|
-
color: fontColor
|
|
2325
|
-
},
|
|
2326
|
-
onClick: function onClick(e) {
|
|
2327
|
-
e.stopPropagation();
|
|
2328
|
-
openBookingModal(selectedDate, morningOrAfternoon, data, function () {
|
|
2329
|
-
dd.initData();
|
|
2330
|
-
dd.getStatistic();
|
|
2331
|
-
dd.getBetweenList();
|
|
2332
|
-
}, 0);
|
|
2333
|
-
}
|
|
2334
|
-
}), /*#__PURE__*/React$1.createElement(_Popconfirm, {
|
|
2335
|
-
title: "\u53D6\u6D88\u540E\u5219\u4E0D\u518D\u663E\u793A\uFF0C\u662F\u5426\u786E\u8BA4\u53D6\u6D88?",
|
|
2336
|
-
onConfirm: function onConfirm() {
|
|
2337
|
-
SModel_EarlyPregnancyCheckSurgeryType.cancelAppointmentSurgery(data.id).then(function () {
|
|
2338
|
-
dd.initData();
|
|
2339
|
-
dd.getStatistic();
|
|
2340
|
-
dd.getBetweenList();
|
|
2341
|
-
});
|
|
2342
|
-
},
|
|
2343
|
-
okText: "\u786E\u5B9A",
|
|
2344
|
-
cancelText: "\u53D6\u6D88"
|
|
2345
|
-
}, /*#__PURE__*/React$1.createElement(DeleteOutlined, {
|
|
2346
|
-
title: "\u53D6\u6D88",
|
|
2347
|
-
style: {
|
|
2348
|
-
color: fontColor
|
|
2349
|
-
}
|
|
2350
|
-
}))), statusLabel === '已签到' && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(EditOutlined, {
|
|
2351
|
-
title: "\u7F16\u8F91",
|
|
2352
|
-
style: {
|
|
2353
|
-
color: fontColor
|
|
2354
|
-
},
|
|
2355
|
-
onClick: function onClick(e) {
|
|
2356
|
-
e.stopPropagation();
|
|
2357
|
-
openBookingModal(selectedDate, morningOrAfternoon, data, function () {
|
|
2358
|
-
dd.initData();
|
|
2359
|
-
dd.getStatistic();
|
|
2360
|
-
dd.getBetweenList();
|
|
2361
|
-
}, 1);
|
|
2362
|
-
}
|
|
2363
|
-
}))))) : /*#__PURE__*/React$1.createElement("div", {
|
|
2364
|
-
className: "date-booking-button ".concat(realDataArr.length === realIndex ? 'visible' : ''),
|
|
2365
|
-
hidden: disabled || !_get(residueObj, 'isOpen'),
|
|
2366
|
-
title: "\u6DFB\u52A0\u6216\u62D6\u52A8\u9884\u7EA6",
|
|
2367
|
-
onClick: function onClick() {
|
|
2368
|
-
return openBookingModal(selectedDate, morningOrAfternoon, {}, function () {
|
|
2369
|
-
dd.initData();
|
|
2370
|
-
dd.getStatistic();
|
|
2371
|
-
dd.getBetweenList();
|
|
89
|
+
config = _a.config,
|
|
90
|
+
Wrap = _a.Wrap;
|
|
91
|
+
return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(MyBaseList, {
|
|
92
|
+
name: config === null || config === void 0 ? void 0 : config.name,
|
|
93
|
+
searchParams: {},
|
|
94
|
+
needChecked: true,
|
|
95
|
+
useListSourceCount: true,
|
|
96
|
+
initialSearchValue: {
|
|
97
|
+
filingDay: getMomentRange().近一周.map(formatDate)
|
|
98
|
+
},
|
|
99
|
+
baseTitle: "\u5A5A\u524D\u68C0\u67E5\u7EDF\u8BA1",
|
|
100
|
+
searchConfig: config === null || config === void 0 ? void 0 : config.searchConfig,
|
|
101
|
+
showAction: false,
|
|
102
|
+
showAdd: false,
|
|
103
|
+
showExport: true,
|
|
104
|
+
genColumns: function genColumns(_a) {
|
|
105
|
+
var _b;
|
|
106
|
+
var handleSearch = _a.handleSearch;
|
|
107
|
+
return __spreadArray(__spreadArray([], (_b = config === null || config === void 0 ? void 0 : config.tableColumns) !== null && _b !== void 0 ? _b : [], true), [{
|
|
108
|
+
title: '操作',
|
|
109
|
+
dataIndex: 'pathologyResult',
|
|
110
|
+
render: function render(a, rowData) {
|
|
111
|
+
return /*#__PURE__*/React.createElement(Follow_up_btn_婚前, {
|
|
112
|
+
handleSearch: handleSearch,
|
|
113
|
+
rowData: rowData
|
|
2372
114
|
});
|
|
2373
|
-
},
|
|
2374
|
-
style: {
|
|
2375
|
-
height: '100%',
|
|
2376
|
-
display: 'flex',
|
|
2377
|
-
alignItems: 'center',
|
|
2378
|
-
justifyContent: 'center',
|
|
2379
|
-
color: '#8A96A0'
|
|
2380
115
|
}
|
|
2381
|
-
},
|
|
2382
|
-
style: {
|
|
2383
|
-
marginRight: 4
|
|
2384
|
-
}
|
|
2385
|
-
}), "\u6DFB\u52A0\u6216\u62D6\u52A8\u9884\u7EA6")));
|
|
2386
|
-
}));
|
|
2387
|
-
}))));
|
|
2388
|
-
}
|
|
2389
|
-
function DateSelect$1(props) {
|
|
2390
|
-
var findColor2 = props.findColor2,
|
|
2391
|
-
dd = props.dd,
|
|
2392
|
-
selectedDate = props.selectedDate,
|
|
2393
|
-
setSelectedDate = props.setSelectedDate,
|
|
2394
|
-
setMode = props.setMode,
|
|
2395
|
-
scheduleArr = props.scheduleArr;
|
|
2396
|
-
var staticDataSouce = useMemo(function () {
|
|
2397
|
-
var firstDayOfMonth = selectedDate.clone().startOf('month');
|
|
2398
|
-
var firstDayOfFirstWeek = firstDayOfMonth.startOf('week');
|
|
2399
|
-
return Array(6).fill(0).map(function (zero, row) {
|
|
2400
|
-
var startMoment = firstDayOfFirstWeek.clone().add(7 * row, 'day').set({
|
|
2401
|
-
hour: START_HOUR
|
|
2402
|
-
});
|
|
2403
|
-
return {
|
|
2404
|
-
startMoment: startMoment,
|
|
2405
|
-
endMoment: startMoment,
|
|
2406
|
-
row: row
|
|
2407
|
-
};
|
|
2408
|
-
});
|
|
2409
|
-
}, [selectedDate]);
|
|
2410
|
-
var rowHeight = "".concat(100 / 6, "%");
|
|
2411
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2412
|
-
style: {
|
|
2413
|
-
flex: 1,
|
|
2414
|
-
display: 'flex',
|
|
2415
|
-
justifyContent: 'center',
|
|
2416
|
-
overflowY: 'scroll'
|
|
116
|
+
}], false);
|
|
2417
117
|
}
|
|
2418
|
-
}
|
|
2419
|
-
width: "98%",
|
|
2420
|
-
style: {
|
|
2421
|
-
height: '100%'
|
|
2422
|
-
},
|
|
2423
|
-
cellSpacing: 0,
|
|
2424
|
-
cellPadding: 0,
|
|
2425
|
-
border: 1,
|
|
2426
|
-
borderColor: "#EDEEF6"
|
|
2427
|
-
}, /*#__PURE__*/React$1.createElement("tr", {
|
|
2428
|
-
style: {
|
|
2429
|
-
height: 30,
|
|
2430
|
-
backgroundColor: '#F9F9FC'
|
|
2431
|
-
}
|
|
2432
|
-
}, Array(7).fill(0).map(function (_, colIndex) {
|
|
2433
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
2434
|
-
style: {
|
|
2435
|
-
textAlign: 'center'
|
|
2436
|
-
}
|
|
2437
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2438
|
-
style: {
|
|
2439
|
-
height: 1,
|
|
2440
|
-
lineHeight: '1px',
|
|
2441
|
-
color: '#8A96A0'
|
|
2442
|
-
}
|
|
2443
|
-
}, staticDataSouce[0].startMoment.clone().add(colIndex, 'day').format('dddd')));
|
|
2444
|
-
})), staticDataSouce.map(function (_a, rowIndex) {
|
|
2445
|
-
var startMoment = _a.startMoment;
|
|
2446
|
-
_a.endMoment;
|
|
2447
|
-
return /*#__PURE__*/React$1.createElement("tr", {
|
|
2448
|
-
key: rowIndex,
|
|
2449
|
-
style: {
|
|
2450
|
-
height: rowHeight
|
|
2451
|
-
}
|
|
2452
|
-
}, Array(7).fill(0).map(function (_, colIndex) {
|
|
2453
|
-
var targetStartMoment = startMoment.clone().add(colIndex, 'day');
|
|
2454
|
-
var scheduling = scheduleArr.find(function (_) {
|
|
2455
|
-
return _.schedulingDate.isSame(targetStartMoment, 'day');
|
|
2456
|
-
});
|
|
2457
|
-
var disabled = checkDisabledHalfDay(scheduling, '上午') && checkDisabledHalfDay(scheduling, '下午');
|
|
2458
|
-
var isInThisMonth = targetStartMoment.isSame(selectedDate, 'month');
|
|
2459
|
-
var _a = getOperationNum(scheduling),
|
|
2460
|
-
dayLeft = _a.left,
|
|
2461
|
-
isDayOpen = _a.isOpen;
|
|
2462
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
2463
|
-
rowSpan: 1,
|
|
2464
|
-
key: colIndex,
|
|
2465
|
-
style: {
|
|
2466
|
-
position: 'relative'
|
|
2467
|
-
}
|
|
2468
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2469
|
-
style: {
|
|
2470
|
-
position: 'relative',
|
|
2471
|
-
height: '100%',
|
|
2472
|
-
cursor: 'pointer'
|
|
2473
|
-
},
|
|
2474
|
-
onClick: function onClick() {
|
|
2475
|
-
setSelectedDate(targetStartMoment);
|
|
2476
|
-
setMode('day');
|
|
2477
|
-
}
|
|
2478
|
-
}, /*#__PURE__*/React$1.createElement(DropContainer$1, {
|
|
2479
|
-
mode: 'month',
|
|
2480
|
-
scheduling: scheduling,
|
|
2481
|
-
appointmentDate: targetStartMoment,
|
|
2482
|
-
appointmentMorningOrAfternoon: "\u4E0A\u5348",
|
|
2483
|
-
dd: dd,
|
|
2484
|
-
isDisabled: disabled
|
|
2485
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2486
|
-
style: {
|
|
2487
|
-
userSelect: 'none',
|
|
2488
|
-
padding: '6px 8px',
|
|
2489
|
-
opacity: isInThisMonth ? 1 : 0.4
|
|
2490
|
-
},
|
|
2491
|
-
className: "month-item ".concat(targetStartMoment.isSame(dayjs(), 'day') ? 'today' : '')
|
|
2492
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2493
|
-
className: "head-line"
|
|
2494
|
-
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
2495
|
-
className: "day-num"
|
|
2496
|
-
}, targetStartMoment.date())), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("span", {
|
|
2497
|
-
style: {
|
|
2498
|
-
fontSize: 12,
|
|
2499
|
-
color: '#828C99'
|
|
2500
|
-
},
|
|
2501
|
-
hidden: !isDayOpen
|
|
2502
|
-
}, handleIsBefore(targetStartMoment) >= 0 && dayLeft ? "\u5269\u4F59\u53EF\u9884\u7EA6".concat(dayLeft, "\u4E2A\u53F7\u6E90") : ''))), Object.entries(OPERATION_NAME_MAP).map(function (_a) {
|
|
2503
|
-
var title = _a[0];
|
|
2504
|
-
_a[1];
|
|
2505
|
-
var _b = findColor2(title);
|
|
2506
|
-
_b[0];
|
|
2507
|
-
var fontColor = _b[1],
|
|
2508
|
-
textColor = _b[2];
|
|
2509
|
-
var _c = getOperationNum(scheduling, title),
|
|
2510
|
-
isOpen = _c.isOpen,
|
|
2511
|
-
reserved = _c.reserved,
|
|
2512
|
-
all = _c.all;
|
|
2513
|
-
return isOpen ? /*#__PURE__*/React$1.createElement("div", {
|
|
2514
|
-
style: {
|
|
2515
|
-
lineHeight: '20px'
|
|
2516
|
-
}
|
|
2517
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2518
|
-
style: {
|
|
2519
|
-
color: "".concat(fontColor !== '#ddd' ? '#828C99' : fontColor),
|
|
2520
|
-
fontSize: 12,
|
|
2521
|
-
display: 'inline-block',
|
|
2522
|
-
verticalAlign: 'middle',
|
|
2523
|
-
maxWidth: '62%'
|
|
2524
|
-
}
|
|
2525
|
-
}, title), /*#__PURE__*/React$1.createElement("span", {
|
|
2526
|
-
style: {
|
|
2527
|
-
"float": 'right',
|
|
2528
|
-
color: textColor,
|
|
2529
|
-
fontSize: 12
|
|
2530
|
-
}
|
|
2531
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2532
|
-
style: {
|
|
2533
|
-
color: "".concat(textColor !== '#ccc' ? '#333' : textColor)
|
|
2534
|
-
}
|
|
2535
|
-
}, reserved), ' ', "/", ' ', /*#__PURE__*/React$1.createElement("span", {
|
|
2536
|
-
style: {
|
|
2537
|
-
color: "".concat(textColor !== '#ccc' ? '#828c99' : textColor)
|
|
2538
|
-
}
|
|
2539
|
-
}, all))) : null;
|
|
2540
|
-
})))));
|
|
2541
|
-
}));
|
|
2542
|
-
})));
|
|
2543
|
-
}
|
|
2544
|
-
var css_248z = ".month-item {\n position: relative;\n height: 100%;\n min-height: 100%;\n overflow: hidden;\n transition: all 0.2s;\n}\n.month-item .head-line {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.month-item .day-num {\n color: #2b384f;\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n}\n.month-item:hover {\n z-index: 1;\n height: unset;\n overflow: visible;\n background: #fff;\n box-shadow: 0px 0px 12px 2px #aaa;\n opacity: 1 !important;\n}\n.month-item.today {\n border-bottom: 1px solid #0f318d;\n}\n.month-item.today .day-num {\n padding: 5px;\n color: #fff;\n background-color: #0f318d;\n border-radius: 50%;\n}\n.border-left-right {\n border-right: 2px solid #2c81e2;\n border-left: 2px solid #2c81e2;\n}\n.date-item .handle {\n margin: 8px 8px 0 0;\n text-align: right;\n}\n.date-item .space {\n margin: 0 16px;\n}\n.date-item .ant-col {\n line-height: 14px;\n}\n.date-item .word.operation-name {\n margin: 14px 0 0 0;\n}\n.date-item .operation-name-row {\n padding-top: 4px;\n}\n.date-booking-button {\n opacity: 0;\n transition: all 0.3s;\n}\n.date-booking-button:hover {\n opacity: 1;\n}\n.date-booking-button.visible {\n opacity: 1;\n}\n.drop-container .disabled-img {\n display: inline-block;\n width: 24px;\n height: 24px;\n vertical-align: middle;\n background-size: contain;\n transform: rotateZ(45deg);\n}\n.drop-container .disabled-word {\n display: inline-block;\n padding-left: 6px;\n color: #fb9824;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n vertical-align: middle;\n}\n.date-tips {\n padding: 10px 20px;\n color: #856404;\n background: #fff3cd;\n border-radius: 4px 4px 4px 4px;\n box-shadow: 0px 0px 10px 1px rgba(158, 158, 158, 0.19);\n}\n.date-tips .disabled-img {\n display: inline-block;\n width: 24px;\n height: 24px;\n vertical-align: middle;\n background-size: contain;\n transform: rotateZ(45deg);\n}\n.date-tips .disabled-word {\n display: inline-block;\n padding-left: 6px;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n vertical-align: middle;\n}\n.date-tips-day {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 2;\n transform: translate(-50%, -50%);\n}\n.date-tips-morning {\n position: absolute;\n top: 21%;\n left: 50%;\n z-index: 2;\n transform: translateX(-50%);\n}\n.date-tips-afternoon {\n position: absolute;\n bottom: 21%;\n left: 50%;\n z-index: 2;\n transform: translateX(-50%);\n}\n.stupid-modal-body .ant-table-thead > tr > th {\n background: #edeef6;\n}\n.week-add-button {\n color: #5a6676;\n border: 1px dashed #5a6676;\n}\n.week-add-button:hover {\n color: #383f4a;\n border: 1px dashed #383f4a;\n}\n.week-add-button.disabled {\n color: rgba(130, 140, 153, 0.2);\n border: 1px dashed rgba(130, 140, 153, 0.2);\n}\n@media (max-width: 1601px) {\n .date-item {\n margin: 0 2px !important;\n }\n .date-item .word {\n font-size: 12px;\n line-height: 14px;\n }\n .date-item .handle {\n margin: 2px 8px 0 0;\n }\n .date-item .space {\n margin: 0 8px;\n }\n .date-item .word.operation-name {\n margin: 0;\n }\n .date-item .operation-name-row {\n padding-top: 0;\n }\n .month-item:hover {\n z-index: 1;\n width: 188px;\n height: unset;\n overflow: visible;\n background: #fff;\n box-shadow: 0px 0px 12px 2px #aaa;\n opacity: 1 !important;\n }\n}\n";
|
|
2545
|
-
styleInject(css_248z);
|
|
2546
|
-
function DateSelect(props) {
|
|
2547
|
-
var setMode = props.setMode,
|
|
2548
|
-
setSelectedDate = props.setSelectedDate,
|
|
2549
|
-
bookingData = props.bookingData,
|
|
2550
|
-
dd = props.dd,
|
|
2551
|
-
selectedDate = props.selectedDate,
|
|
2552
|
-
findColor2 = props.findColor2,
|
|
2553
|
-
scheduleArr = props.scheduleArr,
|
|
2554
|
-
activeOperationType = props.activeOperationType;
|
|
2555
|
-
var _a = getWeekStartEnd(selectedDate),
|
|
2556
|
-
startDayOfWeek = _a[0];
|
|
2557
|
-
_a[1];
|
|
2558
|
-
var borderStyle = '1px solid #EDEEF6';
|
|
2559
|
-
var headHeight = 10;
|
|
2560
|
-
var renderResidueContent = function renderResidueContent(residueObj) {
|
|
2561
|
-
return _map(residueObj, function (value, key) {
|
|
2562
|
-
if (key !== 'isOpen') {
|
|
2563
|
-
var _a = findColor2(NurseTypesMapping[key]['name']);
|
|
2564
|
-
_a[0];
|
|
2565
|
-
var fontColor = _a[1];
|
|
2566
|
-
_a[2];
|
|
2567
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2568
|
-
key: key,
|
|
2569
|
-
style: {
|
|
2570
|
-
fontSize: 12
|
|
2571
|
-
}
|
|
2572
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2573
|
-
style: {
|
|
2574
|
-
color: fontColor,
|
|
2575
|
-
fontWeight: 600
|
|
2576
|
-
}
|
|
2577
|
-
}, NurseTypesMapping[key]['name'], ":"), /*#__PURE__*/React$1.createElement("span", {
|
|
2578
|
-
style: {
|
|
2579
|
-
color: '#8A96A0'
|
|
2580
|
-
}
|
|
2581
|
-
}, "\u5269\u4F59\u53EF\u7EA6\u53F7", value, "\u4E2A"));
|
|
2582
|
-
} else {
|
|
2583
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
2584
|
-
}
|
|
2585
|
-
});
|
|
2586
|
-
};
|
|
2587
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2588
|
-
style: {
|
|
2589
|
-
flex: 1,
|
|
2590
|
-
display: 'flex',
|
|
2591
|
-
justifyContent: 'center'
|
|
2592
|
-
}
|
|
2593
|
-
}, /*#__PURE__*/React$1.createElement("table", {
|
|
2594
|
-
width: "98%",
|
|
2595
|
-
cellSpacing: '10px',
|
|
2596
|
-
cellPadding: 0,
|
|
2597
|
-
style: {
|
|
2598
|
-
height: '100%'
|
|
2599
|
-
},
|
|
2600
|
-
borderColor: "#EDEEF6",
|
|
2601
|
-
border: 1
|
|
2602
|
-
}, /*#__PURE__*/React$1.createElement("tr", {
|
|
2603
|
-
style: {
|
|
2604
|
-
height: '6%',
|
|
2605
|
-
backgroundColor: '#F9F9FC'
|
|
2606
|
-
}
|
|
2607
|
-
}, /*#__PURE__*/React$1.createElement("td", null), Array(7).fill(0).map(function (_, colIndex) {
|
|
2608
|
-
var date = startDayOfWeek.clone().add(colIndex, 'day');
|
|
2609
|
-
var isToday = date.isSame(dayjs(), 'day');
|
|
2610
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
2611
|
-
style: {
|
|
2612
|
-
textAlign: 'center',
|
|
2613
|
-
lineHeight: "".concat(headHeight, "px"),
|
|
2614
|
-
height: headHeight
|
|
2615
|
-
}
|
|
2616
|
-
}, /*#__PURE__*/React$1.createElement(_Button, {
|
|
2617
|
-
type: isToday ? 'primary' : 'text',
|
|
2618
|
-
size: "small",
|
|
2619
|
-
onClick: function onClick() {
|
|
2620
|
-
setSelectedDate(date);
|
|
2621
|
-
setMode('day');
|
|
2622
|
-
}
|
|
2623
|
-
}, date.format('MM-DD dddd')));
|
|
2624
|
-
})), [0, 0].map(function (_, rowIndex) {
|
|
2625
|
-
var morningOrAfternoon = rowIndex < 1 ? '上午' : '下午';
|
|
2626
|
-
var realDataArr = bookingData.filter(function (_) {
|
|
2627
|
-
return _.appointmentMorningOrAfternoon === morningOrAfternoon;
|
|
2628
|
-
});
|
|
2629
|
-
return /*#__PURE__*/React$1.createElement("tr", {
|
|
2630
|
-
key: rowIndex,
|
|
2631
|
-
style: {
|
|
2632
|
-
height: "47%"
|
|
2633
|
-
}
|
|
2634
|
-
}, /*#__PURE__*/React$1.createElement("td", {
|
|
2635
|
-
width: 40,
|
|
2636
|
-
style: {
|
|
2637
|
-
textAlign: 'center',
|
|
2638
|
-
writingMode: 'vertical-lr',
|
|
2639
|
-
borderRight: borderStyle
|
|
2640
|
-
}
|
|
2641
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2642
|
-
style: {
|
|
2643
|
-
letterSpacing: 8,
|
|
2644
|
-
fontSize: 16
|
|
2645
|
-
}
|
|
2646
|
-
}, morningOrAfternoon)), Array(7).fill(0).map(function (_, colIndex) {
|
|
2647
|
-
var targetStartMoment = startDayOfWeek.clone().add(colIndex, 'day');
|
|
2648
|
-
var item = realDataArr.filter(function (_) {
|
|
2649
|
-
return _.appointmentDate.isSame(targetStartMoment, 'day');
|
|
2650
|
-
});
|
|
2651
|
-
var scheduling = scheduleArr.find(function (_) {
|
|
2652
|
-
return _.schedulingDate.isSame(targetStartMoment, 'day');
|
|
2653
|
-
});
|
|
2654
|
-
var disabled = checkDisabledHalfDay(scheduling, morningOrAfternoon);
|
|
2655
|
-
var isToday = targetStartMoment.isSame(dayjs(), 'day');
|
|
2656
|
-
var residueObj = getResidue(activeOperationType, scheduling);
|
|
2657
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
2658
|
-
rowSpan: 1,
|
|
2659
|
-
key: colIndex,
|
|
2660
|
-
className: isToday ? 'border-left-right' : '',
|
|
2661
|
-
style: {
|
|
2662
|
-
position: 'relative'
|
|
2663
|
-
}
|
|
2664
|
-
}, /*#__PURE__*/React$1.createElement(DropContainer$1, {
|
|
2665
|
-
mode: 'week',
|
|
2666
|
-
scheduling: scheduling,
|
|
2667
|
-
appointmentDate: targetStartMoment,
|
|
2668
|
-
dd: dd,
|
|
2669
|
-
appointmentMorningOrAfternoon: morningOrAfternoon,
|
|
2670
|
-
isDisabled: disabled
|
|
2671
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2672
|
-
style: {
|
|
2673
|
-
height: '100%',
|
|
2674
|
-
padding: 4,
|
|
2675
|
-
overflowY: 'auto'
|
|
2676
|
-
}
|
|
2677
|
-
}, item.map(function (_) {
|
|
2678
|
-
var _a;
|
|
2679
|
-
var data = _.data;
|
|
2680
|
-
var _b = findColor2((_a = _.data) === null || _a === void 0 ? void 0 : _a.operationName),
|
|
2681
|
-
backgroundColor = _b[0],
|
|
2682
|
-
fontColor = _b[1],
|
|
2683
|
-
textColor = _b[2];
|
|
2684
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2685
|
-
className: "hover-shadow",
|
|
2686
|
-
onClick: function onClick() {
|
|
2687
|
-
return openBookingModal(targetStartMoment, morningOrAfternoon, data, function () {
|
|
2688
|
-
dd.initData();
|
|
2689
|
-
dd.getStatistic();
|
|
2690
|
-
dd.getBetweenList();
|
|
2691
|
-
});
|
|
2692
|
-
},
|
|
2693
|
-
style: {
|
|
2694
|
-
borderLeft: "4px solid ".concat(fontColor),
|
|
2695
|
-
borderRadius: 4,
|
|
2696
|
-
display: 'flex',
|
|
2697
|
-
flex: 1,
|
|
2698
|
-
margin: '6px 4px',
|
|
2699
|
-
padding: '2px 0 2px 4px',
|
|
2700
|
-
background: backgroundColor,
|
|
2701
|
-
position: 'relative'
|
|
2702
|
-
}
|
|
2703
|
-
}, /*#__PURE__*/React$1.createElement(_Row, {
|
|
2704
|
-
style: {
|
|
2705
|
-
lineHeight: '20px'
|
|
2706
|
-
}
|
|
2707
|
-
}, /*#__PURE__*/React$1.createElement(_Col, null, /*#__PURE__*/React$1.createElement("span", {
|
|
2708
|
-
style: {
|
|
2709
|
-
color: textColor || '#150F55',
|
|
2710
|
-
fontWeight: 600,
|
|
2711
|
-
marginRight: 4
|
|
2712
|
-
}
|
|
2713
|
-
}, data.name)), /*#__PURE__*/React$1.createElement(_Col, null, /*#__PURE__*/React$1.createElement("span", {
|
|
2714
|
-
style: {
|
|
2715
|
-
fontSize: 12,
|
|
2716
|
-
color: textColor
|
|
2717
|
-
}
|
|
2718
|
-
}, data.operationName))));
|
|
2719
|
-
}) || null, _get(residueObj, 'isOpen') && Object.keys(residueObj).length > 1 ? /*#__PURE__*/React$1.createElement(_Popover, {
|
|
2720
|
-
content: renderResidueContent(residueObj),
|
|
2721
|
-
title: ""
|
|
2722
|
-
}, /*#__PURE__*/React$1.createElement(_Button, {
|
|
2723
|
-
className: "week-add-button ".concat(!_get(residueObj, 'isOpen') ? 'disabled' : ''),
|
|
2724
|
-
hidden: disabled,
|
|
2725
|
-
type: "dashed",
|
|
2726
|
-
block: true,
|
|
2727
|
-
icon: /*#__PURE__*/React$1.createElement(PlusCircleOutlined, null),
|
|
2728
|
-
style: {
|
|
2729
|
-
margin: '4px 0',
|
|
2730
|
-
position: 'sticky',
|
|
2731
|
-
bottom: 0
|
|
2732
|
-
},
|
|
2733
|
-
onClick: function onClick() {
|
|
2734
|
-
return openBookingModal(targetStartMoment, morningOrAfternoon, {}, function () {
|
|
2735
|
-
dd.initData();
|
|
2736
|
-
dd.getStatistic();
|
|
2737
|
-
dd.getBetweenList();
|
|
2738
|
-
});
|
|
2739
|
-
}
|
|
2740
|
-
}, "\u6DFB\u52A0")) : /*#__PURE__*/React$1.createElement(_Button, {
|
|
2741
|
-
className: "week-add-button ".concat(!_get(residueObj, 'isOpen') ? 'disabled' : ''),
|
|
2742
|
-
hidden: disabled,
|
|
2743
|
-
type: "dashed",
|
|
2744
|
-
block: true,
|
|
2745
|
-
icon: /*#__PURE__*/React$1.createElement(PlusCircleOutlined, null),
|
|
2746
|
-
style: {
|
|
2747
|
-
margin: '4px 0',
|
|
2748
|
-
position: 'sticky',
|
|
2749
|
-
bottom: 0,
|
|
2750
|
-
cursor: "".concat(!_get(residueObj, 'isOpen') ? 'not-allowed' : 'pointer')
|
|
2751
|
-
},
|
|
2752
|
-
onClick: !_get(residueObj, 'isOpen') ? function () {} : function () {
|
|
2753
|
-
return openBookingModal(targetStartMoment, morningOrAfternoon, {}, function () {
|
|
2754
|
-
dd.initData();
|
|
2755
|
-
dd.getStatistic();
|
|
2756
|
-
dd.getBetweenList();
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
}, "\u6DFB\u52A0"))));
|
|
2760
|
-
}));
|
|
2761
|
-
})));
|
|
2762
|
-
}
|
|
2763
|
-
function Label(props) {
|
|
2764
|
-
return /*#__PURE__*/React$1.createElement("span", {
|
|
2765
|
-
style: {
|
|
2766
|
-
fontSize: 16,
|
|
2767
|
-
color: '#828C99'
|
|
2768
|
-
}
|
|
2769
|
-
}, props.title, "\uFF1A", /*#__PURE__*/React$1.createElement("span", {
|
|
2770
|
-
style: {
|
|
2771
|
-
fontSize: 36,
|
|
2772
|
-
color: props.color
|
|
2773
|
-
}
|
|
2774
|
-
}, props.num), "\u4EBA");
|
|
2775
|
-
}
|
|
2776
|
-
var tagHeight = 44;
|
|
2777
|
-
function Right(props) {
|
|
2778
|
-
var _a, _b, _c;
|
|
2779
|
-
var dd = props.dd,
|
|
2780
|
-
colorList = props.colorList,
|
|
2781
|
-
toggleNode = props.toggleNode;
|
|
2782
|
-
var _d = useState('day'),
|
|
2783
|
-
mode = _d[0],
|
|
2784
|
-
setMode = _d[1];
|
|
2785
|
-
var _e = useState([]),
|
|
2786
|
-
bookingData = _e[0],
|
|
2787
|
-
setBookingData = _e[1];
|
|
2788
|
-
var _f = useState(dayjs()),
|
|
2789
|
-
selectedDate = _f[0],
|
|
2790
|
-
setSelectedDate = _f[1];
|
|
2791
|
-
var _g = useState(),
|
|
2792
|
-
daysSetting = _g[0],
|
|
2793
|
-
setDaysSetting = _g[1];
|
|
2794
|
-
var _h = useState(new Set()),
|
|
2795
|
-
activeOperationType = _h[0],
|
|
2796
|
-
setActiveOperationType = _h[1];
|
|
2797
|
-
var _j = useState([]);
|
|
2798
|
-
_j[0];
|
|
2799
|
-
_j[1];
|
|
2800
|
-
var _k = useState();
|
|
2801
|
-
_k[0];
|
|
2802
|
-
_k[1];
|
|
2803
|
-
function findColor2(type) {
|
|
2804
|
-
if (!activeOperationType.size) return findOperationColor(colorList, type);
|
|
2805
|
-
return activeOperationType.has(type) ? findOperationColor(colorList, type) : ['transparent', '#ddd', '#ccc'];
|
|
2806
|
-
}
|
|
2807
|
-
var baseData = __assign({
|
|
2808
|
-
setMode: setMode,
|
|
2809
|
-
setSelectedDate: setSelectedDate,
|
|
2810
|
-
mode: mode,
|
|
2811
|
-
selectedDate: selectedDate,
|
|
2812
|
-
bookingData: bookingData,
|
|
2813
|
-
daysSetting: daysSetting,
|
|
2814
|
-
findColor2: findColor2,
|
|
2815
|
-
scheduleArr: dd.scheduleArr,
|
|
2816
|
-
activeOperationType: activeOperationType
|
|
2817
|
-
}, props);
|
|
2818
|
-
useEffect(function () {
|
|
2819
|
-
dd.selectMoment = selectedDate;
|
|
2820
|
-
dd.mode = mode;
|
|
2821
|
-
dd.initData();
|
|
2822
|
-
dd.getStatistic();
|
|
2823
|
-
dd.getBetweenList();
|
|
2824
|
-
setActiveOperationType(new Set());
|
|
2825
|
-
}, [mode, selectedDate, dd]);
|
|
2826
|
-
useEffect(function () {
|
|
2827
|
-
SModel_EarlyPregnancyCheckSurgeryType.getFamilyPlanningDefaultSetting().then(setDaysSetting);
|
|
2828
|
-
var cb = dd.observe(setBookingData);
|
|
2829
|
-
return cb;
|
|
2830
|
-
}, []);
|
|
2831
|
-
function next() {
|
|
2832
|
-
var target = selectedDate.clone().add(1, mode);
|
|
2833
|
-
setSelectedDate(target);
|
|
2834
|
-
}
|
|
2835
|
-
function pre() {
|
|
2836
|
-
var target = selectedDate.clone().subtract(1, mode);
|
|
2837
|
-
setSelectedDate(target);
|
|
2838
|
-
}
|
|
2839
|
-
function toggleActiveType(type) {
|
|
2840
|
-
var isActive = activeOperationType.has(type);
|
|
2841
|
-
activeOperationType[isActive ? 'delete' : 'add'](type);
|
|
2842
|
-
setActiveOperationType(new Set(activeOperationType));
|
|
2843
|
-
}
|
|
2844
|
-
var headHeight = 54;
|
|
2845
|
-
var middleHeight = 42;
|
|
2846
|
-
return /*#__PURE__*/React$1.createElement("div", {
|
|
2847
|
-
style: {
|
|
2848
|
-
background: '#fff',
|
|
2849
|
-
position: 'relative',
|
|
2850
|
-
height: '100%',
|
|
2851
|
-
display: 'flex',
|
|
2852
|
-
flexDirection: 'column'
|
|
2853
|
-
}
|
|
2854
|
-
}, toggleNode, /*#__PURE__*/React$1.createElement("div", {
|
|
2855
|
-
style: {
|
|
2856
|
-
height: headHeight,
|
|
2857
|
-
padding: '0 18px'
|
|
2858
|
-
}
|
|
2859
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
2860
|
-
style: {
|
|
2861
|
-
display: 'flex',
|
|
2862
|
-
justifyContent: 'space-evenly',
|
|
2863
|
-
alignItems: 'center',
|
|
2864
|
-
width: '100%'
|
|
2865
|
-
}
|
|
2866
|
-
}, /*#__PURE__*/React$1.createElement(Label, {
|
|
2867
|
-
title: "\u5DF2\u9884\u7EA6",
|
|
2868
|
-
num: (_a = dd.statisticData) === null || _a === void 0 ? void 0 : _a.appointmentNum,
|
|
2869
|
-
color: "#828C99"
|
|
2870
|
-
}), /*#__PURE__*/React$1.createElement(Label, {
|
|
2871
|
-
title: "\u5DF2\u7B7E\u5230",
|
|
2872
|
-
num: (_b = dd.statisticData) === null || _b === void 0 ? void 0 : _b.signNum,
|
|
2873
|
-
color: "#314BD2"
|
|
2874
|
-
}), /*#__PURE__*/React$1.createElement(Label, {
|
|
2875
|
-
title: "\u5DF2\u5B8C\u6210",
|
|
2876
|
-
num: (_c = dd.statisticData) === null || _c === void 0 ? void 0 : _c.completeNum,
|
|
2877
|
-
color: "#02937F"
|
|
2878
|
-
})), /*#__PURE__*/React$1.createElement(_Divider, {
|
|
2879
|
-
style: {
|
|
2880
|
-
margin: 0
|
|
2881
|
-
}
|
|
2882
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
2883
|
-
style: {
|
|
2884
|
-
padding: '4px 18px 0',
|
|
2885
|
-
position: 'relative',
|
|
2886
|
-
height: middleHeight
|
|
2887
|
-
}
|
|
2888
|
-
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(_Button, {
|
|
2889
|
-
style: {
|
|
2890
|
-
color: '#979797'
|
|
2891
|
-
},
|
|
2892
|
-
size: "small",
|
|
2893
|
-
type: "text",
|
|
2894
|
-
icon: /*#__PURE__*/React$1.createElement(LeftOutlined, null),
|
|
2895
|
-
onClick: pre
|
|
2896
|
-
}), /*#__PURE__*/React$1.createElement(DatePicker_L, {
|
|
2897
|
-
value: selectedDate,
|
|
2898
|
-
onChange: function onChange(v) {
|
|
2899
|
-
return v && setSelectedDate(v);
|
|
2900
|
-
},
|
|
2901
|
-
picker: mode === 'day' ? 'date' : mode,
|
|
2902
|
-
bordered: false,
|
|
2903
|
-
style: {
|
|
2904
|
-
width: 110
|
|
2905
|
-
}
|
|
2906
|
-
}), /*#__PURE__*/React$1.createElement(_Button, {
|
|
2907
|
-
style: {
|
|
2908
|
-
color: '#979797'
|
|
2909
|
-
},
|
|
2910
|
-
size: "small",
|
|
2911
|
-
type: "text",
|
|
2912
|
-
icon: /*#__PURE__*/React$1.createElement(RightOutlined, null),
|
|
2913
|
-
onClick: next
|
|
2914
|
-
}), /*#__PURE__*/React$1.createElement(_Button, {
|
|
2915
|
-
type: "text",
|
|
2916
|
-
style: {
|
|
2917
|
-
background: '#fff',
|
|
2918
|
-
color: '#979797',
|
|
2919
|
-
marginLeft: 16
|
|
2920
|
-
},
|
|
2921
|
-
onClick: function onClick() {
|
|
2922
|
-
return setSelectedDate(selectedDate.clone());
|
|
2923
|
-
},
|
|
2924
|
-
title: "\u5237\u65B0\u6570\u636E",
|
|
2925
|
-
icon: /*#__PURE__*/React$1.createElement(SyncOutlined, null)
|
|
2926
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
2927
|
-
style: {
|
|
2928
|
-
position: 'absolute',
|
|
2929
|
-
left: '50%',
|
|
2930
|
-
top: '50%',
|
|
2931
|
-
transform: 'translate(-50%,-50%)'
|
|
2932
|
-
}
|
|
2933
|
-
}, /*#__PURE__*/React$1.createElement(_Button.Group, {
|
|
2934
|
-
style: {}
|
|
2935
|
-
}, /*#__PURE__*/React$1.createElement(_Button, {
|
|
2936
|
-
type: mode === 'day' ? 'primary' : 'text',
|
|
2937
|
-
onClick: function onClick(e) {
|
|
2938
|
-
return setMode('day');
|
|
2939
|
-
},
|
|
2940
|
-
style: {
|
|
2941
|
-
borderRadius: 4
|
|
2942
|
-
}
|
|
2943
|
-
}, "\u65E5"), /*#__PURE__*/React$1.createElement(_Button, {
|
|
2944
|
-
type: mode === 'week' ? 'primary' : 'text',
|
|
2945
|
-
onClick: function onClick(e) {
|
|
2946
|
-
return setMode('week');
|
|
2947
|
-
},
|
|
2948
|
-
style: {
|
|
2949
|
-
margin: '0 28px',
|
|
2950
|
-
borderRadius: 4
|
|
2951
|
-
}
|
|
2952
|
-
}, "\u5468"), /*#__PURE__*/React$1.createElement(_Button, {
|
|
2953
|
-
type: mode === 'month' ? 'primary' : 'text',
|
|
2954
|
-
onClick: function onClick(e) {
|
|
2955
|
-
return setMode('month');
|
|
2956
|
-
},
|
|
2957
|
-
style: {
|
|
2958
|
-
borderRadius: 4
|
|
2959
|
-
}
|
|
2960
|
-
}, "\u6708"))), /*#__PURE__*/React$1.createElement(_Divider, {
|
|
2961
|
-
style: {
|
|
2962
|
-
margin: '4px 0 0 0'
|
|
2963
|
-
}
|
|
2964
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
2965
|
-
style: {
|
|
2966
|
-
height: tagHeight,
|
|
2967
|
-
lineHeight: "".concat(tagHeight, "px"),
|
|
2968
|
-
background: '#fff',
|
|
2969
|
-
zIndex: 1,
|
|
2970
|
-
position: 'relative',
|
|
2971
|
-
overflowX: 'hidden',
|
|
2972
|
-
userSelect: 'none'
|
|
2973
|
-
}
|
|
2974
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
2975
|
-
style: {
|
|
2976
|
-
marginLeft: 24,
|
|
2977
|
-
color: '#828C99',
|
|
2978
|
-
fontSize: 14
|
|
2979
|
-
}
|
|
2980
|
-
}, "\u7C7B\u578B\uFF1A"), mode === 'day' && !_get(dd.scheduleArr[0], 'attendanceSet') ? /*#__PURE__*/React$1.createElement("span", {
|
|
2981
|
-
style: {
|
|
2982
|
-
color: 'rgb(130, 140, 153)'
|
|
2983
|
-
}
|
|
2984
|
-
}, "\u6682\u65E0") : colorList.filter(function (_) {
|
|
2985
|
-
var isOpen = getOperationNum(dd.scheduleArr[0], _.operationName).isOpen;
|
|
2986
|
-
return mode === 'day' ? isOpen : OPERATION_ARR.includes(_.operationName);
|
|
2987
|
-
}).map(function (_) {
|
|
2988
|
-
var isActive = activeOperationType.has(_.operationName);
|
|
2989
|
-
var reservedData = getOperationNum(dd.scheduleArr[0], _.operationName);
|
|
2990
|
-
return /*#__PURE__*/React$1.createElement(_Tag, {
|
|
2991
|
-
onClick: function onClick() {
|
|
2992
|
-
return toggleActiveType(_.operationName);
|
|
2993
|
-
},
|
|
2994
|
-
color: _.backgroundColor,
|
|
2995
|
-
style: {
|
|
2996
|
-
cursor: 'pointer',
|
|
2997
|
-
outline: isActive ? "2px solid ".concat(_.fontColor) : '',
|
|
2998
|
-
transform: isActive ? 'translateY(-8px)' : '',
|
|
2999
|
-
position: 'relative'
|
|
3000
|
-
}
|
|
3001
|
-
}, /*#__PURE__*/React$1.createElement("span", {
|
|
3002
|
-
style: {
|
|
3003
|
-
color: _.fontColor
|
|
3004
|
-
}
|
|
3005
|
-
}, _.operationName, mode === 'day' ? "".concat(reservedData.reserved, "/").concat(reservedData.all) : ''), isActive ? /*#__PURE__*/React$1.createElement("span", {
|
|
3006
|
-
style: {
|
|
3007
|
-
width: 6,
|
|
3008
|
-
height: 6,
|
|
3009
|
-
borderRadius: '50%',
|
|
3010
|
-
position: 'absolute',
|
|
3011
|
-
left: '50%',
|
|
3012
|
-
bottom: '-11px',
|
|
3013
|
-
transform: 'translateX(-50%)',
|
|
3014
|
-
backgroundColor: _.fontColor
|
|
3015
|
-
}
|
|
3016
|
-
}) : '');
|
|
3017
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
3018
|
-
style: {
|
|
3019
|
-
height: "calc(100% - ".concat(headHeight, "px - ").concat(middleHeight, "px - ").concat(tagHeight, "px)"),
|
|
3020
|
-
display: 'flex'
|
|
3021
|
-
}
|
|
3022
|
-
}, mode === 'day' && /*#__PURE__*/React$1.createElement(DateSelect$2, baseData), mode === 'week' && /*#__PURE__*/React$1.createElement(DateSelect, baseData), mode === 'month' && /*#__PURE__*/React$1.createElement(DateSelect$1, baseData)));
|
|
3023
|
-
}
|
|
3024
|
-
var Content = _Layout.Content,
|
|
3025
|
-
Sider = _Layout.Sider;
|
|
3026
|
-
var FAMILY_PLANNING_BOOKING_MANAGEMENT_COLLAPSED_KEY = 'FAMILY_PLANNING_BOOKING_MANAGEMENT_COLLAPSED_KEY';
|
|
3027
|
-
function WorkFlow() {
|
|
3028
|
-
var _a = useState(store.get(FAMILY_PLANNING_BOOKING_MANAGEMENT_COLLAPSED_KEY) || false),
|
|
3029
|
-
collapsed = _a[0],
|
|
3030
|
-
setCollapsed = _a[1];
|
|
3031
|
-
var _b = useState([]),
|
|
3032
|
-
leftList = _b[0],
|
|
3033
|
-
setLeftList = _b[1];
|
|
3034
|
-
var _c = useState([]),
|
|
3035
|
-
colorList = _c[0],
|
|
3036
|
-
setColorList = _c[1];
|
|
3037
|
-
var _d = useState(),
|
|
3038
|
-
name = _d[0],
|
|
3039
|
-
setName = _d[1];
|
|
3040
|
-
var dd = useMemo(function () {
|
|
3041
|
-
return new DD();
|
|
3042
|
-
}, []);
|
|
3043
|
-
var onCollapse = function onCollapse(status) {
|
|
3044
|
-
store.set(FAMILY_PLANNING_BOOKING_MANAGEMENT_COLLAPSED_KEY, status);
|
|
3045
|
-
setCollapsed(status);
|
|
3046
|
-
};
|
|
3047
|
-
function fetchLeftData(_name) {
|
|
3048
|
-
if (_name === void 0) {
|
|
3049
|
-
_name = name;
|
|
3050
|
-
}
|
|
3051
|
-
SModel_EarlyPregnancyCheckSurgeryType.getList({
|
|
3052
|
-
params: {
|
|
3053
|
-
progressStatus: stupidEnums.EarlyPregnancyCheckSurgeryType.progressStatus.getValue('待预约'),
|
|
3054
|
-
name: _name,
|
|
3055
|
-
'schedulingDate.greaterOrEqualThan': dd.start.format('YYYY-MM-DD'),
|
|
3056
|
-
'schedulingDate.lessOrEqualThan': dd.end.format('YYYY-MM-DD')
|
|
3057
|
-
}
|
|
3058
|
-
}).then(function (r) {
|
|
3059
|
-
return setLeftList(r.length ? r : []);
|
|
3060
|
-
});
|
|
3061
|
-
SModel_EarlyPregnancySurgicalTemplate.getList().then(function (r) {
|
|
3062
|
-
setColorList(r);
|
|
3063
|
-
});
|
|
3064
|
-
}
|
|
3065
|
-
useEffect(function () {
|
|
3066
|
-
var cb = dd.observe(function (data) {
|
|
3067
|
-
return fetchLeftData(name);
|
|
3068
|
-
});
|
|
3069
|
-
return cb;
|
|
3070
|
-
}, [name]);
|
|
3071
|
-
useEffect(function () {}, []);
|
|
3072
|
-
var footHeight = 0;
|
|
3073
|
-
var ToggleIcon = collapsed ? RightOutlined : LeftOutlined;
|
|
3074
|
-
return /*#__PURE__*/React$1.createElement(DndProvider, {
|
|
3075
|
-
backend: HTML5Backend
|
|
3076
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
3077
|
-
style: {
|
|
3078
|
-
userSelect: 'none'
|
|
3079
|
-
}
|
|
3080
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
3081
|
-
style: {
|
|
3082
|
-
display: 'flex',
|
|
3083
|
-
height: "calc(((100vh - 48px) - 36px) - 24px - ".concat(footHeight, "px)"),
|
|
3084
|
-
overflowY: 'hidden'
|
|
3085
|
-
}
|
|
3086
|
-
}, /*#__PURE__*/React$1.createElement(Sider, {
|
|
3087
|
-
style: {},
|
|
3088
|
-
theme: "light",
|
|
3089
|
-
collapsedWidth: 0,
|
|
3090
|
-
width: 340,
|
|
3091
|
-
collapsed: collapsed,
|
|
3092
|
-
onCollapse: onCollapse
|
|
3093
|
-
}, /*#__PURE__*/React$1.createElement(WorkFlow$1, {
|
|
3094
|
-
leftList: leftList,
|
|
3095
|
-
name: name,
|
|
3096
|
-
setName: setName,
|
|
3097
|
-
fetchLeftData: fetchLeftData,
|
|
3098
|
-
colorList: colorList,
|
|
3099
|
-
dd: dd
|
|
3100
|
-
})), /*#__PURE__*/React$1.createElement(Content, {
|
|
3101
|
-
style: {
|
|
3102
|
-
margin: '0',
|
|
3103
|
-
paddingBottom: 6,
|
|
3104
|
-
background: '#fff',
|
|
3105
|
-
position: 'relative'
|
|
3106
|
-
}
|
|
3107
|
-
}, /*#__PURE__*/React$1.createElement(Right, {
|
|
3108
|
-
dd: dd,
|
|
3109
|
-
colorList: colorList,
|
|
3110
|
-
toggleNode: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(_Button, {
|
|
3111
|
-
type: "text",
|
|
3112
|
-
onClick: function onClick() {
|
|
3113
|
-
return onCollapse(!collapsed);
|
|
3114
|
-
},
|
|
3115
|
-
style: {
|
|
3116
|
-
background: '#fff',
|
|
3117
|
-
boxShadow: '0px 0px 9px 1px rgba(131, 131, 131, 0.12), 0px 2px 4px 1px rgba(0, 0, 0, 0.09)',
|
|
3118
|
-
position: 'absolute',
|
|
3119
|
-
left: 14,
|
|
3120
|
-
top: 12
|
|
3121
|
-
},
|
|
3122
|
-
shape: "circle",
|
|
3123
|
-
title: "\u5207\u6362",
|
|
3124
|
-
icon: /*#__PURE__*/React$1.createElement(ToggleIcon, null)
|
|
3125
|
-
}))
|
|
3126
|
-
})))));
|
|
118
|
+
}));
|
|
3127
119
|
}
|
|
3128
|
-
export {
|
|
3129
|
-
//# sourceMappingURL=.root52.js.map
|
|
120
|
+
export { BreastCancerDataReport as default };
|