@pisell/private-materials 3.0.119 → 3.0.121
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/productItem/index.js +8 -7
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/header/index.d.ts +2 -2
- package/es/components/booking/info/header/index.js +436 -44
- package/es/components/booking/info/header/index.less +110 -1
- package/es/components/booking/info/service/addService/index.js +3 -1
- package/es/components/booking/info/service/editService/index.js +3 -1
- package/es/components/booking/locales.d.ts +63 -0
- package/es/components/booking/locales.js +78 -6
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +40 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +5 -4
- package/es/components/schedules/components/ScheduleList/index.js +53 -43
- package/es/components/schedules/hooks/useSchedulesDataSource.js +5 -3
- package/es/components/schedules/products/list/index.d.ts +2 -2
- package/es/components/schedules/products/list/index.js +8 -8
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
- package/es/components/schedules/schedules/AllSchedules/index.js +9 -6
- package/es/components/schedules/schedules/AllSchedules/index.less +11 -3
- package/es/components/schedules/schedules/serve.d.ts +7 -0
- package/es/components/schedules/schedules/serve.js +24 -3
- package/es/components/schedules/schedules/utils.d.ts +22 -0
- package/es/components/schedules/schedules/utils.js +143 -1
- package/es/components/schedules/type.d.ts +7 -0
- package/es/components/tabProduct/index.d.ts +3 -2
- package/es/components/tabProduct/index.js +27 -18
- package/es/components/tabProduct/tabs/index.d.ts +3 -3
- package/es/components/tabProduct/tabs/index.js +34 -21
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/productItem/index.js +2 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/header/index.d.ts +2 -2
- package/lib/components/booking/info/header/index.js +212 -11
- package/lib/components/booking/info/header/index.less +110 -1
- package/lib/components/booking/info/service/addService/index.js +3 -1
- package/lib/components/booking/info/service/editService/index.js +3 -1
- package/lib/components/booking/locales.d.ts +63 -0
- package/lib/components/booking/locales.js +72 -6
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +77 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +5 -4
- package/lib/components/schedules/components/ScheduleList/index.js +38 -31
- package/lib/components/schedules/hooks/useSchedulesDataSource.js +8 -2
- package/lib/components/schedules/products/list/index.d.ts +2 -2
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
- package/lib/components/schedules/schedules/AllSchedules/index.js +3 -2
- package/lib/components/schedules/schedules/AllSchedules/index.less +11 -3
- package/lib/components/schedules/schedules/serve.d.ts +7 -0
- package/lib/components/schedules/schedules/serve.js +5 -2
- package/lib/components/schedules/schedules/utils.d.ts +22 -0
- package/lib/components/schedules/schedules/utils.js +98 -0
- package/lib/components/schedules/type.d.ts +7 -0
- package/lib/components/tabProduct/index.d.ts +3 -2
- package/lib/components/tabProduct/index.js +15 -6
- package/lib/components/tabProduct/tabs/index.d.ts +3 -3
- package/lib/components/tabProduct/tabs/index.js +10 -6
- package/package.json +4 -4
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
gap: 10px;
|
|
51
|
-
color: var(--Base-White, #FFF);
|
|
51
|
+
color: var(--Base-White, #FFF) !important;
|
|
52
52
|
font-size: 18px;
|
|
53
53
|
font-style: normal;
|
|
54
54
|
font-weight: 400;
|
|
@@ -57,10 +57,119 @@
|
|
|
57
57
|
padding: 4px 12px;
|
|
58
58
|
border-radius: 24px;
|
|
59
59
|
|
|
60
|
+
span {
|
|
61
|
+
color: var(--Base-White, #FFF) !important;
|
|
62
|
+
}
|
|
60
63
|
|
|
61
64
|
.booking-header-right-status-icon {
|
|
62
65
|
font-size: 20px;
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.go-payments-modal-wrap {
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.go-payments-modal-content {
|
|
76
|
+
margin: 0 -24px;
|
|
77
|
+
|
|
78
|
+
.go-payments-modal-content-title {
|
|
79
|
+
color: var(--Gray-900, #101828);
|
|
80
|
+
font-size: 24px;
|
|
81
|
+
font-style: normal;
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
line-height: 32px;
|
|
84
|
+
padding: 0 24px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.go-payments-modal-content-desc {
|
|
88
|
+
color: var(--Gray-900, #101828);
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
line-height: 24px;
|
|
93
|
+
padding: 0 24px;
|
|
94
|
+
margin-top: 4px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cancelled-modal-content-title {
|
|
98
|
+
color: var(--Gray-900, #101828);
|
|
99
|
+
font-size: 24px;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
line-height: 32px;
|
|
103
|
+
padding: 0 24px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.cancelled-modal-content-desc {
|
|
107
|
+
margin-top: 4px;
|
|
108
|
+
color: #101828;
|
|
109
|
+
font-size: 16px;
|
|
110
|
+
font-style: normal;
|
|
111
|
+
font-weight: 500;
|
|
112
|
+
line-height: 24px;
|
|
113
|
+
padding: 0 24px;
|
|
114
|
+
|
|
115
|
+
&.cancelled-modal-content-desc-red {
|
|
116
|
+
color: var(--Error-600, #D92D20);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.cancelled-modal-content-list-wrap {
|
|
121
|
+
padding: 0 24px;
|
|
122
|
+
|
|
123
|
+
.cancelled-modal-content-list-title {
|
|
124
|
+
color: var(--Gray-900, #101828);
|
|
125
|
+
font-size: 16px;
|
|
126
|
+
font-style: normal;
|
|
127
|
+
font-weight: 500;
|
|
128
|
+
line-height: 24px;
|
|
129
|
+
margin-top: 4px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cancelled-modal-content-ul {
|
|
133
|
+
margin-top: 4px;
|
|
134
|
+
|
|
135
|
+
.cancelled-modal-content-li {
|
|
136
|
+
color: var(--Gray-900, #101828);
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
font-style: normal;
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
line-height: 24px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.go-payments-footer {
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
gap: 12px;
|
|
151
|
+
border-top: 1px solid var(--Gray-200, #EAECF0);
|
|
152
|
+
margin-top: 16px;
|
|
153
|
+
padding: 24px 24px 4px;
|
|
154
|
+
width: 100%;
|
|
155
|
+
|
|
156
|
+
.go-payments-footer-btn {
|
|
157
|
+
flex: 1;
|
|
158
|
+
font-size: 16px;
|
|
159
|
+
font-style: normal;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.go-payments-footer-column {
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
gap: 12px;
|
|
166
|
+
|
|
167
|
+
.go-payments-footer-btn {
|
|
168
|
+
width: 100%;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
|
|
66
175
|
}
|
|
@@ -303,7 +303,9 @@ var Info = function Info(_ref) {
|
|
|
303
303
|
|
|
304
304
|
// 如果弹窗打开,并且是创建, 则自动打开选择服务的弹窗
|
|
305
305
|
if (state.modalOpen && !state.bookingId && state.renderType !== 'eventBooking' && ((_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : (_state$service4$value = _state$service4.value) === null || _state$service4$value === void 0 ? void 0 : _state$service4$value.length) === 0) {
|
|
306
|
-
|
|
306
|
+
setTimeout(function () {
|
|
307
|
+
handleSelectService();
|
|
308
|
+
}, 10);
|
|
307
309
|
}
|
|
308
310
|
}, [state.modalOpen, state.bookingId, (_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : _state$service5.value]);
|
|
309
311
|
var showAddButton = useMemo(function () {
|
|
@@ -163,6 +163,13 @@ declare const _default: {
|
|
|
163
163
|
'pisell2.text.terminal-edit-message': string;
|
|
164
164
|
"pisell2.text.actions": string;
|
|
165
165
|
"pisell2.text.add-client": string;
|
|
166
|
+
"pisell2.schedule.tab.all": string;
|
|
167
|
+
"pisell2.schedule.tab.surcharge": string;
|
|
168
|
+
"pisell2.schedule.tab.resources": string;
|
|
169
|
+
"pisell2.schedule.tab.products": string;
|
|
170
|
+
"pisell2.schedule.tab.events": string;
|
|
171
|
+
"pisell2.schedule.tab.quotation": string;
|
|
172
|
+
"pisell2.schedule.tab.open-hours": string;
|
|
166
173
|
'pisell2.text.variant-client-change': string;
|
|
167
174
|
'pisell2.text.variant-client-no-data': string;
|
|
168
175
|
'page.event.booking.text.duplicate-enrollment': string;
|
|
@@ -172,6 +179,20 @@ declare const _default: {
|
|
|
172
179
|
list: any[];
|
|
173
180
|
}) => string;
|
|
174
181
|
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
182
|
+
'page.booking.text.unconfirmed-payements': string;
|
|
183
|
+
'page.booking.text.unconfirmed-payements.msg': string;
|
|
184
|
+
'page.booking.text.go-to-payments': string;
|
|
185
|
+
'page.booking.text.cancel-only': string;
|
|
186
|
+
'page.booking.text.refund': string;
|
|
187
|
+
'page.booking.text.confirm': string;
|
|
188
|
+
'page.booking.text.go-back': string;
|
|
189
|
+
'page.booking.text.cancel-booking': string;
|
|
190
|
+
'page.booking.text.cancel-booking.msg': string;
|
|
191
|
+
'page.booking.text.disabled-tickets': string;
|
|
192
|
+
'page.booking.text.paid.msg': (x: string) => string;
|
|
193
|
+
'page.booking.text.please-choose-an-option': string;
|
|
194
|
+
'page.booking.text.please-choose-an-option-1': string;
|
|
195
|
+
'page.booking.text.please-choose-an-option-2': string;
|
|
175
196
|
};
|
|
176
197
|
'zh-CN': {
|
|
177
198
|
'pisell2.text.refunded-amount': string;
|
|
@@ -337,6 +358,13 @@ declare const _default: {
|
|
|
337
358
|
'page.booking.text.unlimited': string;
|
|
338
359
|
"pisell2.text.actions": string;
|
|
339
360
|
"pisell2.text.add-client": string;
|
|
361
|
+
"pisell2.schedule.tab.all": string;
|
|
362
|
+
"pisell2.schedule.tab.surcharge": string;
|
|
363
|
+
"pisell2.schedule.tab.resources": string;
|
|
364
|
+
"pisell2.schedule.tab.products": string;
|
|
365
|
+
"pisell2.schedule.tab.events": string;
|
|
366
|
+
"pisell2.schedule.tab.quotation": string;
|
|
367
|
+
"pisell2.schedule.tab.open-hours": string;
|
|
340
368
|
'pisell2.text.variant-client-change': string;
|
|
341
369
|
'pisell2.text.variant-client-no-data': string;
|
|
342
370
|
'page.event.booking.text.duplicate-enrollment': string;
|
|
@@ -346,6 +374,20 @@ declare const _default: {
|
|
|
346
374
|
list: any[];
|
|
347
375
|
}) => string;
|
|
348
376
|
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
377
|
+
'page.booking.text.unconfirmed-payements': string;
|
|
378
|
+
'page.booking.text.unconfirmed-payements.msg': string;
|
|
379
|
+
'page.booking.text.go-to-payments': string;
|
|
380
|
+
'page.booking.text.cancel-only': string;
|
|
381
|
+
'page.booking.text.refund': string;
|
|
382
|
+
'page.booking.text.confirm': string;
|
|
383
|
+
'page.booking.text.go-back': string;
|
|
384
|
+
'page.booking.text.cancel-booking': string;
|
|
385
|
+
'page.booking.text.cancel-booking.msg': string;
|
|
386
|
+
'page.booking.text.disabled-tickets': string;
|
|
387
|
+
'page.booking.text.paid.msg': (x: string) => string;
|
|
388
|
+
'page.booking.text.please-choose-an-option': string;
|
|
389
|
+
'page.booking.text.please-choose-an-option-1': string;
|
|
390
|
+
'page.booking.text.please-choose-an-option-2': string;
|
|
349
391
|
};
|
|
350
392
|
'zh-HK': {
|
|
351
393
|
'pisell2.text.refunded-amount': string;
|
|
@@ -511,6 +553,13 @@ declare const _default: {
|
|
|
511
553
|
'page.booking.text.unlimited': string;
|
|
512
554
|
"pisell2.text.actions": string;
|
|
513
555
|
"pisell2.text.add-client": string;
|
|
556
|
+
"pisell2.schedule.tab.all": string;
|
|
557
|
+
"pisell2.schedule.tab.surcharge": string;
|
|
558
|
+
"pisell2.schedule.tab.resources": string;
|
|
559
|
+
"pisell2.schedule.tab.products": string;
|
|
560
|
+
"pisell2.schedule.tab.events": string;
|
|
561
|
+
"pisell2.schedule.tab.quotation": string;
|
|
562
|
+
"pisell2.schedule.tab.open-hours": string;
|
|
514
563
|
'pisell2.text.variant-client-change': string;
|
|
515
564
|
'pisell2.text.variant-client-no-data': string;
|
|
516
565
|
'page.event.booking.text.duplicate-enrollment': string;
|
|
@@ -520,6 +569,20 @@ declare const _default: {
|
|
|
520
569
|
list: any[];
|
|
521
570
|
}) => string;
|
|
522
571
|
'page.event.booking.text.duplicate-enrollment-confirm': string;
|
|
572
|
+
'page.booking.text.unconfirmed-payements': string;
|
|
573
|
+
'page.booking.text.unconfirmed-payements.msg': string;
|
|
574
|
+
'page.booking.text.go-to-payments': string;
|
|
575
|
+
'page.booking.text.cancel-only': string;
|
|
576
|
+
'page.booking.text.refund': string;
|
|
577
|
+
'page.booking.text.confirm': string;
|
|
578
|
+
'page.booking.text.go-back': string;
|
|
579
|
+
'page.booking.text.cancel-booking': string;
|
|
580
|
+
'page.booking.text.cancel-booking.msg': string;
|
|
581
|
+
'page.booking.text.disabled-tickets': string;
|
|
582
|
+
'page.booking.text.paid.msg': (x: string) => string;
|
|
583
|
+
'page.booking.text.please-choose-an-option': string;
|
|
584
|
+
'page.booking.text.please-choose-an-option-1': string;
|
|
585
|
+
'page.booking.text.please-choose-an-option-2': string;
|
|
523
586
|
};
|
|
524
587
|
};
|
|
525
588
|
export default _default;
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
'pisell2.text.status.confirmed': 'Confirmed',
|
|
59
59
|
'pisell2.text.status.arrived': 'Arrived',
|
|
60
60
|
'pisell2.text.status.started': 'Started',
|
|
61
|
-
'pisell2.text.status.cancelled': '
|
|
61
|
+
'pisell2.text.status.cancelled': 'Cancel',
|
|
62
62
|
'pisell2.text.status.no_show': 'No show',
|
|
63
63
|
'pisell2.text.status.completed': 'Completed',
|
|
64
64
|
'pisell2.text.status.booking_id': 'Booking ID',
|
|
@@ -179,6 +179,14 @@ export default {
|
|
|
179
179
|
'pisell2.text.terminal-edit-message': "This operation cannot be performed. To proceed, please use the Pisell Terminal.",
|
|
180
180
|
"pisell2.text.actions": "Actions",
|
|
181
181
|
"pisell2.text.add-client": "Add customer",
|
|
182
|
+
// 日称tab
|
|
183
|
+
"pisell2.schedule.tab.all": "All",
|
|
184
|
+
"pisell2.schedule.tab.surcharge": "Surcharge",
|
|
185
|
+
"pisell2.schedule.tab.resources": "Resources",
|
|
186
|
+
"pisell2.schedule.tab.products": "Products",
|
|
187
|
+
"pisell2.schedule.tab.events": "Events",
|
|
188
|
+
"pisell2.schedule.tab.quotation": "Quotation",
|
|
189
|
+
"pisell2.schedule.tab.open-hours": "Open hours",
|
|
182
190
|
'pisell2.text.variant-client-change': 'Change',
|
|
183
191
|
'pisell2.text.variant-client-no-data': "No record",
|
|
184
192
|
'page.event.booking.text.duplicate-enrollment': "Duplicate Enrollment",
|
|
@@ -197,7 +205,23 @@ export default {
|
|
|
197
205
|
});
|
|
198
206
|
return "".concat(customerName || '', " has already enrolled in the ").concat(title, " ").concat(listStr.join(','), ", Are you sure you want to enroll again\uFF1F");
|
|
199
207
|
},
|
|
200
|
-
'page.event.booking.text.duplicate-enrollment-confirm': 'Confirm'
|
|
208
|
+
'page.event.booking.text.duplicate-enrollment-confirm': 'Confirm',
|
|
209
|
+
'page.booking.text.unconfirmed-payements': 'Unconfirmed payements',
|
|
210
|
+
'page.booking.text.unconfirmed-payements.msg': 'There are unconfirmed payments, please confirm or void the payments first.',
|
|
211
|
+
'page.booking.text.go-to-payments': 'Go to payments',
|
|
212
|
+
'page.booking.text.cancel-only': 'Cancel only',
|
|
213
|
+
'page.booking.text.refund': 'Refund',
|
|
214
|
+
'page.booking.text.confirm': 'Confirm',
|
|
215
|
+
'page.booking.text.go-back': 'Go back',
|
|
216
|
+
'page.booking.text.cancel-booking': "Cancel Booking",
|
|
217
|
+
'page.booking.text.cancel-booking.msg': "The action is irreversible. Please proceed with caution. ",
|
|
218
|
+
'page.booking.text.disabled-tickets': "All tickets will be disabled.",
|
|
219
|
+
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
220
|
+
return "The related order is ".concat(x === 'paid' ? 'paid' : 'partially paid', ".");
|
|
221
|
+
},
|
|
222
|
+
'page.booking.text.please-choose-an-option': "Please choose an option:",
|
|
223
|
+
'page.booking.text.please-choose-an-option-1': "Refund: Cancel the appointment and process a refund.",
|
|
224
|
+
'page.booking.text.please-choose-an-option-2': "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)"
|
|
201
225
|
},
|
|
202
226
|
'zh-CN': {
|
|
203
227
|
'pisell2.text.refunded-amount': '已退金额',
|
|
@@ -265,7 +289,7 @@ export default {
|
|
|
265
289
|
'pisell2.text.status.confirmed': '已确认',
|
|
266
290
|
'pisell2.text.status.arrived': '已到达',
|
|
267
291
|
'pisell2.text.status.started': '已开始',
|
|
268
|
-
'pisell2.text.status.cancelled': '
|
|
292
|
+
'pisell2.text.status.cancelled': '取消',
|
|
269
293
|
'pisell2.text.status.no_show': '失约',
|
|
270
294
|
'pisell2.text.status.completed': '已完成',
|
|
271
295
|
'pisell2.text.status.booking_id': '预约 ID',
|
|
@@ -383,6 +407,14 @@ export default {
|
|
|
383
407
|
'page.booking.text.unlimited': '无限制',
|
|
384
408
|
"pisell2.text.actions": "操作选项",
|
|
385
409
|
"pisell2.text.add-client": "添加客户",
|
|
410
|
+
// 日称tab
|
|
411
|
+
"pisell2.schedule.tab.all": "全部",
|
|
412
|
+
"pisell2.schedule.tab.surcharge": "附加费",
|
|
413
|
+
"pisell2.schedule.tab.resources": "资源",
|
|
414
|
+
"pisell2.schedule.tab.products": "商品",
|
|
415
|
+
"pisell2.schedule.tab.events": "活动",
|
|
416
|
+
"pisell2.schedule.tab.quotation": "报价单",
|
|
417
|
+
"pisell2.schedule.tab.open-hours": "营业时间",
|
|
386
418
|
'pisell2.text.variant-client-change': '更改客户',
|
|
387
419
|
'pisell2.text.variant-client-no-data': "暂无数据",
|
|
388
420
|
'page.event.booking.text.duplicate-enrollment': "重复报名",
|
|
@@ -401,7 +433,23 @@ export default {
|
|
|
401
433
|
});
|
|
402
434
|
return "".concat(customerName || '', "\u5DF2\u62A5\u540D").concat(title, " ").concat(listStr.join(','), ", \u786E\u5B9A\u8981\u518D\u6B21\u62A5\u540D\u5417\uFF1F");
|
|
403
435
|
},
|
|
404
|
-
'page.event.booking.text.duplicate-enrollment-confirm': '确认'
|
|
436
|
+
'page.event.booking.text.duplicate-enrollment-confirm': '确认',
|
|
437
|
+
'page.booking.text.unconfirmed-payements': '未确认的付款',
|
|
438
|
+
'page.booking.text.unconfirmed-payements.msg': '存在未确认的付款,请先确认收款或作废。',
|
|
439
|
+
'page.booking.text.go-to-payments': '前往收款界面',
|
|
440
|
+
'page.booking.text.cancel-only': '仅取消',
|
|
441
|
+
'page.booking.text.refund': '退款',
|
|
442
|
+
'page.booking.text.confirm': '确认',
|
|
443
|
+
'page.booking.text.go-back': '返回',
|
|
444
|
+
'page.booking.text.cancel-booking': "取消预约",
|
|
445
|
+
'page.booking.text.cancel-booking.msg': "该操作不可撤销,请谨慎操作。",
|
|
446
|
+
'page.booking.text.disabled-tickets': "所有票单将被禁用。",
|
|
447
|
+
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
448
|
+
return "\u5173\u8054\u8BA2\u5355".concat(x === 'paid' ? '已支付' : '部分支付', "\u3002");
|
|
449
|
+
},
|
|
450
|
+
'page.booking.text.please-choose-an-option': "请选择:",
|
|
451
|
+
'page.booking.text.please-choose-an-option-1': "退款:取消预约,同时处理退款。",
|
|
452
|
+
'page.booking.text.please-choose-an-option-2': "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)"
|
|
405
453
|
},
|
|
406
454
|
'zh-HK': {
|
|
407
455
|
'pisell2.text.refunded-amount': '已退金額',
|
|
@@ -467,7 +515,7 @@ export default {
|
|
|
467
515
|
'pisell2.text.status.confirmed': '已确認',
|
|
468
516
|
'pisell2.text.status.arrived': '已到達',
|
|
469
517
|
'pisell2.text.status.started': '已開始',
|
|
470
|
-
'pisell2.text.status.cancelled': '
|
|
518
|
+
'pisell2.text.status.cancelled': '取消',
|
|
471
519
|
'pisell2.text.status.no_show': '失約',
|
|
472
520
|
'pisell2.text.status.completed': '已完成',
|
|
473
521
|
'pisell2.text.status.booking_id': '預約 ID',
|
|
@@ -587,6 +635,14 @@ export default {
|
|
|
587
635
|
'page.booking.text.unlimited': '無限制',
|
|
588
636
|
"pisell2.text.actions": "操作選項",
|
|
589
637
|
"pisell2.text.add-client": "添加客戶",
|
|
638
|
+
// 日称tab
|
|
639
|
+
"pisell2.schedule.tab.all": "全部",
|
|
640
|
+
"pisell2.schedule.tab.surcharge": "附加費",
|
|
641
|
+
"pisell2.schedule.tab.resources": "資源",
|
|
642
|
+
"pisell2.schedule.tab.products": "商品",
|
|
643
|
+
"pisell2.schedule.tab.events": "活動",
|
|
644
|
+
"pisell2.schedule.tab.quotation": "報價單",
|
|
645
|
+
"pisell2.schedule.tab.open-hours": "營業時間",
|
|
590
646
|
'pisell2.text.variant-client-change': '更改客戶',
|
|
591
647
|
'pisell2.text.variant-client-no-data': "暫無數據",
|
|
592
648
|
'page.event.booking.text.duplicate-enrollment': "重複報名",
|
|
@@ -605,6 +661,22 @@ export default {
|
|
|
605
661
|
});
|
|
606
662
|
return "".concat(customerName || '', "\u5DF2\u5831\u540D").concat(title, " ").concat(listStr.join(','), ", \u78BA\u5B9A\u8981\u518D\u6B21\u5831\u540D\u55CE\uFF1F");
|
|
607
663
|
},
|
|
608
|
-
'page.event.booking.text.duplicate-enrollment-confirm': '確認'
|
|
664
|
+
'page.event.booking.text.duplicate-enrollment-confirm': '確認',
|
|
665
|
+
'page.booking.text.unconfirmed-payements': '未確認的付款',
|
|
666
|
+
'page.booking.text.unconfirmed-payements.msg': '存在未確認的付款,請先確認收款或作廢。',
|
|
667
|
+
'page.booking.text.go-to-payments': '前往收款界面',
|
|
668
|
+
'page.booking.text.cancel-only': '僅取消',
|
|
669
|
+
'page.booking.text.refund': '退款',
|
|
670
|
+
'page.booking.text.confirm': '確認',
|
|
671
|
+
'page.booking.text.go-back': '返回',
|
|
672
|
+
'page.booking.text.cancel-booking': '取消預約',
|
|
673
|
+
'page.booking.text.cancel-booking.msg': '該操作不可撤銷,請謹慎操作。',
|
|
674
|
+
'page.booking.text.disabled-tickets': '所有票單將被禁用。',
|
|
675
|
+
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
676
|
+
return "\u95DC\u806F\u8A02\u55AE".concat(x === 'paid' ? '已支付' : '部分支付', "\u3002");
|
|
677
|
+
},
|
|
678
|
+
'page.booking.text.please-choose-an-option': '請選擇:',
|
|
679
|
+
'page.booking.text.please-choose-an-option-1': '退款:取消預約,同時處理退款。',
|
|
680
|
+
'page.booking.text.please-choose-an-option-2': '僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)'
|
|
609
681
|
}
|
|
610
682
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { ScheduleItem } from '../../../type';
|
|
4
|
+
declare type Item = any;
|
|
5
|
+
interface RenderScheduleItemProps {
|
|
6
|
+
item?: Item;
|
|
7
|
+
onItemClick?: (item: ScheduleItem) => void;
|
|
8
|
+
onDelete?: (item: ScheduleItem) => void;
|
|
9
|
+
showDeleteIcon?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const RenderScheduleItem: ({ item, onItemClick, onDelete, showDeleteIcon, }: RenderScheduleItemProps) => React.JSX.Element;
|
|
12
|
+
export default RenderScheduleItem;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AlertCircle from '@pisell/icon/es/AlertCircle';
|
|
3
|
+
import { Tooltip } from 'antd';
|
|
4
|
+
import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
import XClose from '@pisell/icon/es/XClose';
|
|
7
|
+
var RenderScheduleItem = function RenderScheduleItem(_ref) {
|
|
8
|
+
var _appHelper$utils;
|
|
9
|
+
var item = _ref.item,
|
|
10
|
+
onItemClick = _ref.onItemClick,
|
|
11
|
+
onDelete = _ref.onDelete,
|
|
12
|
+
showDeleteIcon = _ref.showDeleteIcon;
|
|
13
|
+
var _useEngineContext = useEngineContext(),
|
|
14
|
+
appHelper = _useEngineContext.appHelper;
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
key: item.id,
|
|
17
|
+
className: "pisell-lowcode__schedule-list-item",
|
|
18
|
+
onClick: function onClick() {
|
|
19
|
+
return onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(item);
|
|
20
|
+
}
|
|
21
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: "pisell-lowcode__schedule-list-item-color",
|
|
23
|
+
style: {
|
|
24
|
+
backgroundColor: item.color
|
|
25
|
+
}
|
|
26
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "pisell-lowcode__schedule-list-item-content"
|
|
28
|
+
}, appHelper === null || appHelper === void 0 ? void 0 : (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.translationShop(item.name)), item.conflict && /*#__PURE__*/React.createElement(Tooltip, {
|
|
29
|
+
title: "Days conflict with another schedule"
|
|
30
|
+
}, /*#__PURE__*/React.createElement(AlertCircle, {
|
|
31
|
+
className: "pisell-lowcode__schedule-list-item-conflict"
|
|
32
|
+
})), showDeleteIcon && /*#__PURE__*/React.createElement(XClose, {
|
|
33
|
+
className: "pisell-lowcode__schedule-list-item-delete",
|
|
34
|
+
onClick: function onClick(e) {
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
onDelete === null || onDelete === void 0 ? void 0 : onDelete(item);
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
};
|
|
40
|
+
export default RenderScheduleItem;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.pisell-lowcode__schedule-list {
|
|
2
|
+
&-item {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding: 10px 16px;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
border: 1px solid var(--Gray-true-100, #F5F5F5);
|
|
8
|
+
margin-bottom: 16px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
|
|
11
|
+
&-color {
|
|
12
|
+
width: 12px;
|
|
13
|
+
height: 12px;
|
|
14
|
+
margin: 8px;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-content {
|
|
19
|
+
color: var(--Gray-true-900, #141414);
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
flex: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-conflict {
|
|
28
|
+
color: #D92D20;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-delete {
|
|
33
|
+
margin-left: 8px;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
color: #141414;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ButtonProps } from
|
|
3
|
-
import { ScheduleItem } from
|
|
4
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from 'antd';
|
|
3
|
+
import { ScheduleItem } from '../../type';
|
|
4
|
+
import './index.less';
|
|
5
5
|
declare type ScheduleListType = {
|
|
6
6
|
dataSource: ScheduleItem[];
|
|
7
7
|
onItemClick?: (item: ScheduleItem) => void;
|
|
@@ -10,6 +10,7 @@ declare type ScheduleListType = {
|
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
className?: string;
|
|
12
12
|
addButtonProps?: ButtonProps;
|
|
13
|
+
showTabs?: boolean;
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
15
16
|
* 日程列表 展示日程简略信息
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import React, { useMemo } from
|
|
2
|
-
import classNames from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
import { locales } from "@pisell/utils";
|
|
9
|
-
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { Skeleton, Button, Empty } from 'antd';
|
|
4
|
+
import TabProduct from "../../../tabProduct";
|
|
5
|
+
import { locales } from '@pisell/utils';
|
|
6
|
+
import { formatScheduleListByTabs } from "../../schedules/utils";
|
|
7
|
+
import RenderScheduleItem from "./RenderScheduleItem";
|
|
10
8
|
import "./index.less";
|
|
11
9
|
/**
|
|
12
10
|
* 日程列表 展示日程简略信息
|
|
@@ -15,51 +13,63 @@ import "./index.less";
|
|
|
15
13
|
*/
|
|
16
14
|
var ScheduleList = function ScheduleList(props) {
|
|
17
15
|
var dataSource = props.dataSource,
|
|
18
|
-
|
|
16
|
+
_onItemClick = props.onItemClick,
|
|
19
17
|
showDeleteIcon = props.showDeleteIcon,
|
|
20
|
-
|
|
18
|
+
_onDelete = props.onDelete,
|
|
21
19
|
loading = props.loading,
|
|
22
20
|
className = props.className,
|
|
23
|
-
addButtonProps = props.addButtonProps
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
addButtonProps = props.addButtonProps,
|
|
22
|
+
showTabs = props.showTabs;
|
|
23
|
+
|
|
24
|
+
// 过滤和格式化日程数据
|
|
25
|
+
var renderList = useMemo(function () {
|
|
26
|
+
return formatScheduleListByTabs(dataSource);
|
|
27
|
+
}, [dataSource]);
|
|
26
28
|
var content = useMemo(function () {
|
|
27
29
|
if (dataSource.length === 0) {
|
|
28
30
|
return /*#__PURE__*/React.createElement(Empty, {
|
|
29
31
|
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
30
|
-
description: locales.getText(
|
|
32
|
+
description: locales.getText('pisell2.text.schedules.no-schedules')
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
|
|
36
|
+
// 显示tab
|
|
37
|
+
if (showTabs) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(TabProduct, {
|
|
39
|
+
scrollDom: ".pisell-lowcode__schedules-module-content-wrap",
|
|
40
|
+
list: renderList,
|
|
41
|
+
name: "schedule",
|
|
42
|
+
renderItem: function renderItem(item) {
|
|
43
|
+
return /*#__PURE__*/React.createElement(RenderScheduleItem, {
|
|
44
|
+
item: item,
|
|
45
|
+
key: item.id,
|
|
46
|
+
showDeleteIcon: showDeleteIcon,
|
|
47
|
+
onItemClick: function onItemClick() {
|
|
48
|
+
return _onItemClick === null || _onItemClick === void 0 ? void 0 : _onItemClick(item);
|
|
49
|
+
},
|
|
50
|
+
onDelete: function onDelete() {
|
|
51
|
+
return _onDelete === null || _onDelete === void 0 ? void 0 : _onDelete(item);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
40
54
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
}));
|
|
59
|
-
});
|
|
60
|
-
}, [dataSource, showDeleteIcon]);
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
return dataSource.map(function (item) {
|
|
58
|
+
return /*#__PURE__*/React.createElement(RenderScheduleItem, {
|
|
59
|
+
item: item,
|
|
60
|
+
showDeleteIcon: showDeleteIcon,
|
|
61
|
+
onItemClick: function onItemClick() {
|
|
62
|
+
return _onItemClick === null || _onItemClick === void 0 ? void 0 : _onItemClick(item);
|
|
63
|
+
},
|
|
64
|
+
onDelete: function onDelete() {
|
|
65
|
+
return _onDelete === null || _onDelete === void 0 ? void 0 : _onDelete(item);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}, [dataSource, showDeleteIcon, showTabs]);
|
|
61
71
|
return /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: classNames(
|
|
72
|
+
className: classNames('pisell-lowcode__schedule-list', className)
|
|
63
73
|
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
64
74
|
active: true,
|
|
65
75
|
round: true,
|