@pisell/private-materials 3.0.148 → 3.0.150-gray
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 +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/booking/addons/index.js +1 -0
- package/es/components/booking/components/footer/index.js +3 -3
- package/es/components/booking/dashboard/index.d.ts +9 -0
- package/es/components/booking/dashboard/index.js +241 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/dashboard/serve.js +27 -0
- package/es/components/booking/forms/forms.d.ts +1 -0
- package/es/components/booking/forms/forms.js +4 -2
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +4 -3
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/addServiceVariant/index.js +33 -0
- package/es/components/booking/info/index.js +2 -1
- package/es/components/booking/info/index.less +9 -0
- package/es/components/booking/info/pet/index.js +1 -1
- package/es/components/booking/info/service/addService/index.d.ts +8 -2
- package/es/components/booking/info/service/addService/index.js +82 -35
- package/es/components/booking/info/service/addService/index.less +27 -1
- package/es/components/booking/info/service/addTimeModal/index.js +3 -2
- package/es/components/booking/info/service/editService/index.js +7 -9
- package/es/components/booking/locales.d.ts +48 -0
- package/es/components/booking/locales.js +51 -3
- package/es/components/booking/model.d.ts +2 -0
- package/es/components/booking/utils.d.ts +1 -1
- package/es/components/booking/utils.js +54 -51
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/index.js +12 -11
- package/es/components/schedules/products/index.d.ts +2 -2
- package/es/components/schedules/products/index.js +8 -7
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/lib/components/booking/addons/index.js +1 -0
- package/lib/components/booking/components/footer/index.js +3 -3
- package/lib/components/booking/dashboard/index.d.ts +9 -0
- package/lib/components/booking/dashboard/index.js +224 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.js +33 -0
- package/lib/components/booking/forms/forms.d.ts +1 -0
- package/lib/components/booking/forms/forms.js +5 -2
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +4 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/addServiceVariant/index.js +58 -0
- package/lib/components/booking/info/client/index.js +1 -8
- package/lib/components/booking/info/index.js +4 -1
- package/lib/components/booking/info/index.less +9 -0
- package/lib/components/booking/info/pet/index.js +2 -1
- package/lib/components/booking/info/service/addService/index.d.ts +8 -2
- package/lib/components/booking/info/service/addService/index.js +68 -29
- package/lib/components/booking/info/service/addService/index.less +27 -1
- package/lib/components/booking/info/service/addTimeModal/index.js +2 -1
- package/lib/components/booking/info/service/editService/index.js +6 -3
- package/lib/components/booking/locales.d.ts +48 -0
- package/lib/components/booking/locales.js +51 -3
- package/lib/components/booking/model.d.ts +2 -0
- package/lib/components/booking/utils.d.ts +1 -1
- package/lib/components/booking/utils.js +57 -22
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/index.js +2 -1
- package/lib/components/schedules/products/index.d.ts +2 -2
- package/lib/components/schedules/products/index.js +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lowcode/booking-dashboard/meta.ts +123 -0
- package/lowcode/booking-vertical-add-service/meta.ts +124 -0
- package/lowcode/vertical-add-service/meta.ts +71 -0
- package/package.json +2 -2
|
@@ -188,7 +188,8 @@ var AddTimeModal = () => {
|
|
|
188
188
|
open_quotation: 1,
|
|
189
189
|
schedule_date: state.date.value.format("YYYY-MM-DD"),
|
|
190
190
|
customer_id: (0, import_utils3.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) ? void 0 : (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id,
|
|
191
|
-
extension_type: ["product_add_time"]
|
|
191
|
+
extension_type: ["product_add_time"],
|
|
192
|
+
status: "published"
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
195
|
useCache: true
|
|
@@ -270,7 +270,7 @@ var Info = (_, ref) => {
|
|
|
270
270
|
let values = cacheItem._extend;
|
|
271
271
|
form.setFieldsValue(values);
|
|
272
272
|
if (state.renderType !== "eventBooking") {
|
|
273
|
-
getResources(
|
|
273
|
+
getResources(cacheItem);
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
const isReason = (0, import_react.useMemo)(() => {
|
|
@@ -297,7 +297,10 @@ var Info = (_, ref) => {
|
|
|
297
297
|
(_f = state.service.cacheItem) == null ? void 0 : _f.autoClose
|
|
298
298
|
]);
|
|
299
299
|
(0, import_react.useEffect)(() => {
|
|
300
|
-
|
|
300
|
+
if (state.isBookingCreatePage && state.service.editModal) {
|
|
301
|
+
setEditData();
|
|
302
|
+
}
|
|
303
|
+
}, [state.service.editModal, state.isBookingCreatePage]);
|
|
301
304
|
(0, import_react.useEffect)(() => {
|
|
302
305
|
getErrorMsg();
|
|
303
306
|
}, [useResource, useStartTime, useDuration]);
|
|
@@ -433,7 +436,7 @@ var Info = (_, ref) => {
|
|
|
433
436
|
});
|
|
434
437
|
}
|
|
435
438
|
},
|
|
436
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_d2 = (_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
|
439
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_d2 = (_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
|
|
437
440
|
import_collapsibleList.default,
|
|
438
441
|
{
|
|
439
442
|
style: { marginTop: bundles.length ? "8px" : 0 },
|
|
@@ -194,6 +194,22 @@ declare const _default: {
|
|
|
194
194
|
'page.booking.text.please-choose-an-option': string;
|
|
195
195
|
'page.booking.text.please-choose-an-option-1': string;
|
|
196
196
|
'page.booking.text.please-choose-an-option-2': string;
|
|
197
|
+
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
198
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
199
|
+
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
200
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
201
|
+
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
202
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
203
|
+
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
204
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
205
|
+
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
206
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
207
|
+
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
208
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
209
|
+
'pisell2.booking.dashboard.completed-visitors': string;
|
|
210
|
+
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
211
|
+
'pisell2.booking.dashboard.departed-visitors': string;
|
|
212
|
+
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
197
213
|
};
|
|
198
214
|
'zh-CN': {
|
|
199
215
|
'pisell2.text.refunded-amount': string;
|
|
@@ -390,6 +406,22 @@ declare const _default: {
|
|
|
390
406
|
'page.booking.text.please-choose-an-option': string;
|
|
391
407
|
'page.booking.text.please-choose-an-option-1': string;
|
|
392
408
|
'page.booking.text.please-choose-an-option-2': string;
|
|
409
|
+
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
410
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
411
|
+
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
412
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
413
|
+
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
414
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
415
|
+
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
416
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
417
|
+
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
418
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
419
|
+
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
420
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
421
|
+
'pisell2.booking.dashboard.completed-visitors': string;
|
|
422
|
+
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
423
|
+
'pisell2.booking.dashboard.departed-visitors': string;
|
|
424
|
+
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
393
425
|
};
|
|
394
426
|
'zh-HK': {
|
|
395
427
|
'pisell2.text.refunded-amount': string;
|
|
@@ -586,6 +618,22 @@ declare const _default: {
|
|
|
586
618
|
'page.booking.text.please-choose-an-option': string;
|
|
587
619
|
'page.booking.text.please-choose-an-option-1': string;
|
|
588
620
|
'page.booking.text.please-choose-an-option-2': string;
|
|
621
|
+
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
622
|
+
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
623
|
+
'pisell2.booking.dashboard.people-on-site-now': string;
|
|
624
|
+
'pisell2.booking.dashboard.people-on-site-now-tip': string;
|
|
625
|
+
'pisell2.booking.dashboard.total-visitors-today': string;
|
|
626
|
+
'pisell2.booking.dashboard.total-visitors-today-tip': string;
|
|
627
|
+
'pisell2.booking.dashboard.ongoing-visitors': string;
|
|
628
|
+
'pisell2.booking.dashboard.ongoing-visitors-tip': string;
|
|
629
|
+
'pisell2.booking.dashboard.upcoming-visitors': string;
|
|
630
|
+
'pisell2.booking.dashboard.upcoming-visitors-tip': string;
|
|
631
|
+
'pisell2.booking.dashboard.overdue-visitors': string;
|
|
632
|
+
'pisell2.booking.dashboard.overdue-visitors-tip': string;
|
|
633
|
+
'pisell2.booking.dashboard.completed-visitors': string;
|
|
634
|
+
'pisell2.booking.dashboard.completed-visitors-tip': string;
|
|
635
|
+
'pisell2.booking.dashboard.departed-visitors': string;
|
|
636
|
+
'pisell2.booking.dashboard.departed-visitors-tip': string;
|
|
589
637
|
};
|
|
590
638
|
};
|
|
591
639
|
export default _default;
|
|
@@ -249,7 +249,23 @@ var locales_default = {
|
|
|
249
249
|
"page.booking.text.paid.msg": (x) => `The related order is ${x === "paid" ? "paid" : "partially paid"}.`,
|
|
250
250
|
"page.booking.text.please-choose-an-option": "Please choose an option:",
|
|
251
251
|
"page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
|
|
252
|
-
"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)"
|
|
252
|
+
"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)",
|
|
253
|
+
"pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
|
|
254
|
+
"pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
|
|
255
|
+
"pisell2.booking.dashboard.people-on-site-now": "People on-site now",
|
|
256
|
+
"pisell2.booking.dashboard.people-on-site-now-tip": "Tip: Total number of people who have checked in and are currently on-site",
|
|
257
|
+
"pisell2.booking.dashboard.total-visitors-today": "Total visitors today",
|
|
258
|
+
"pisell2.booking.dashboard.total-visitors-today-tip": "Tip: Total number of visitors today, regardless of check-in status",
|
|
259
|
+
"pisell2.booking.dashboard.ongoing-visitors": "Ongoing visitors",
|
|
260
|
+
"pisell2.booking.dashboard.ongoing-visitors-tip": "Tip: Total number of visitors who have passed the start time, regardless of check-in status",
|
|
261
|
+
"pisell2.booking.dashboard.upcoming-visitors": "Upcoming visitors",
|
|
262
|
+
"pisell2.booking.dashboard.upcoming-visitors-tip": "Tip: Total number of visitors expected to arrive in the near future",
|
|
263
|
+
"pisell2.booking.dashboard.overdue-visitors": "Overdue visitors",
|
|
264
|
+
"pisell2.booking.dashboard.overdue-visitors-tip": "Tip: Total number of visitors whose playtime has expired but have not yet left the venue",
|
|
265
|
+
"pisell2.booking.dashboard.completed-visitors": "Completed visitors",
|
|
266
|
+
"pisell2.booking.dashboard.completed-visitors-tip": "Tip: Total number of visitors whose playtime has ended, regardless of whether they have left the venue",
|
|
267
|
+
"pisell2.booking.dashboard.departed-visitors": "Departed visitors",
|
|
268
|
+
"pisell2.booking.dashboard.departed-visitors-tip": "Tip: Total number of visitors who checked in and have left the venue today"
|
|
253
269
|
},
|
|
254
270
|
"zh-CN": {
|
|
255
271
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -471,7 +487,23 @@ var locales_default = {
|
|
|
471
487
|
"page.booking.text.paid.msg": (x) => `关联订单${x === "paid" ? "已付款" : "部分付款"}。`,
|
|
472
488
|
"page.booking.text.please-choose-an-option": "请选择:",
|
|
473
489
|
"page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
|
|
474
|
-
"page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)"
|
|
490
|
+
"page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
|
|
491
|
+
"pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
|
|
492
|
+
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
|
|
493
|
+
"pisell2.booking.dashboard.people-on-site-now": "当前在场人数",
|
|
494
|
+
"pisell2.booking.dashboard.people-on-site-now-tip": "提示:已检票并在场内的总人数",
|
|
495
|
+
"pisell2.booking.dashboard.total-visitors-today": "今日游客总数",
|
|
496
|
+
"pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的游客总人数,无论是否检票入场",
|
|
497
|
+
"pisell2.booking.dashboard.ongoing-visitors": "进行中的游客",
|
|
498
|
+
"pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已过开始时间的游客总数,无论是否检票",
|
|
499
|
+
"pisell2.booking.dashboard.upcoming-visitors": "即将到达的游客",
|
|
500
|
+
"pisell2.booking.dashboard.upcoming-visitors-tip": "提示:预计将在未来到场的游客总人数",
|
|
501
|
+
"pisell2.booking.dashboard.overdue-visitors": "超时的游客",
|
|
502
|
+
"pisell2.booking.dashboard.overdue-visitors-tip": "提示:游玩时间已过,但尚未离场的游客总人数",
|
|
503
|
+
"pisell2.booking.dashboard.completed-visitors": "已完成的游客",
|
|
504
|
+
"pisell2.booking.dashboard.completed-visitors-tip": "提示:游玩时长已结束的游客总人数,无论是否离场",
|
|
505
|
+
"pisell2.booking.dashboard.departed-visitors": "已离场的游客",
|
|
506
|
+
"pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已检票并离场的游客总人数"
|
|
475
507
|
},
|
|
476
508
|
"zh-HK": {
|
|
477
509
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -693,6 +725,22 @@ var locales_default = {
|
|
|
693
725
|
"page.booking.text.paid.msg": (x) => `關聯訂單${x === "paid" ? "已付款" : "部分付款"}。`,
|
|
694
726
|
"page.booking.text.please-choose-an-option": "請選擇:",
|
|
695
727
|
"page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
|
|
696
|
-
"page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)"
|
|
728
|
+
"page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
|
|
729
|
+
"pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
|
|
730
|
+
"pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
|
|
731
|
+
"pisell2.booking.dashboard.people-on-site-now": "當前在場人數",
|
|
732
|
+
"pisell2.booking.dashboard.people-on-site-now-tip": "提示:已檢票並在場內的總人數",
|
|
733
|
+
"pisell2.booking.dashboard.total-visitors-today": "今日遊客總數",
|
|
734
|
+
"pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的遊客總人數,無論是否檢票入場",
|
|
735
|
+
"pisell2.booking.dashboard.ongoing-visitors": "進行中的遊客",
|
|
736
|
+
"pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已過開始時間的遊客總數,無論是否檢票",
|
|
737
|
+
"pisell2.booking.dashboard.upcoming-visitors": "即將到達的遊客",
|
|
738
|
+
"pisell2.booking.dashboard.upcoming-visitors-tip": "提示:預計將在未來到場的遊客總人數",
|
|
739
|
+
"pisell2.booking.dashboard.overdue-visitors": "超時的遊客",
|
|
740
|
+
"pisell2.booking.dashboard.overdue-visitors-tip": "提示:遊玩時間已過,但尚未離場的遊客總人數",
|
|
741
|
+
"pisell2.booking.dashboard.completed-visitors": "已完成的遊客",
|
|
742
|
+
"pisell2.booking.dashboard.completed-visitors-tip": "提示:遊玩時長已結束的遊客總人數,無論是否離場",
|
|
743
|
+
"pisell2.booking.dashboard.departed-visitors": "已離場的遊客",
|
|
744
|
+
"pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已檢票並離場的遊客總人數"
|
|
697
745
|
}
|
|
698
746
|
};
|
|
@@ -62,7 +62,7 @@ export declare const getServeStartTime: (start_time: string) => string;
|
|
|
62
62
|
* @Date: 2024-04-26 14:04
|
|
63
63
|
*/
|
|
64
64
|
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
65
|
-
export declare const findNextSlice: ({ timeSlices, index, date }: {
|
|
65
|
+
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
66
66
|
timeSlices: any[];
|
|
67
67
|
index?: number | undefined;
|
|
68
68
|
date?: string | undefined;
|
|
@@ -112,7 +112,9 @@ var sliceDayIntoFiveMinutes = (config, locale) => {
|
|
|
112
112
|
value: durationValue
|
|
113
113
|
});
|
|
114
114
|
} else {
|
|
115
|
-
const durationLabel = `${durationValue} ${import_utils.locales.getText(
|
|
115
|
+
const durationLabel = `${durationValue} ${import_utils.locales.getText(
|
|
116
|
+
"pisell2.text.min"
|
|
117
|
+
)}`;
|
|
116
118
|
durationSlicesBasedOnTime.push({
|
|
117
119
|
label: durationLabel,
|
|
118
120
|
value: durationValue
|
|
@@ -135,7 +137,9 @@ var getServeStartTime = (start_time) => {
|
|
|
135
137
|
return start_time;
|
|
136
138
|
};
|
|
137
139
|
var getServiceTime = (item, currentDate) => {
|
|
138
|
-
const startDate = (0, import_dayjs.default)(
|
|
140
|
+
const startDate = (0, import_dayjs.default)(
|
|
141
|
+
currentDate.format("YYYY-MM-DD") + " " + getServeStartTime(item._extend.start_time)
|
|
142
|
+
);
|
|
139
143
|
const startTime = startDate.format("HH:mm");
|
|
140
144
|
const endTime = startDate.add(flexibleObj.getValue(item._extend.duration), "minute").format("HH:mm");
|
|
141
145
|
const duration = getDiscountTime(flexibleObj.getValue(item._extend.duration));
|
|
@@ -183,10 +187,7 @@ var formatProductListByCategory = (list, filterItem) => {
|
|
|
183
187
|
}
|
|
184
188
|
categoryObject[categoryItem.id] = {
|
|
185
189
|
...categoryItem,
|
|
186
|
-
products: [
|
|
187
|
-
...categoryObject[categoryItem.id].products,
|
|
188
|
-
productItem
|
|
189
|
-
]
|
|
190
|
+
products: [...categoryObject[categoryItem.id].products, productItem]
|
|
190
191
|
};
|
|
191
192
|
}
|
|
192
193
|
} else {
|
|
@@ -208,7 +209,9 @@ var formatProductListByCategory = (list, filterItem) => {
|
|
|
208
209
|
return Object.values(categoryObject).sort((a, b) => b.sort - a.sort);
|
|
209
210
|
};
|
|
210
211
|
var getResourceTimeIsUsable = (item, cacheItem) => {
|
|
211
|
-
const startDate = (0, import_dayjs.default)(
|
|
212
|
+
const startDate = (0, import_dayjs.default)(
|
|
213
|
+
cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + getServeStartTime(cacheItem._extend.start_time)
|
|
214
|
+
);
|
|
212
215
|
const isFlexible = flexibleObj.isFlexible(cacheItem._extend.duration);
|
|
213
216
|
let isMaxLimitRange = false;
|
|
214
217
|
let isDateRange = false;
|
|
@@ -218,13 +221,22 @@ var getResourceTimeIsUsable = (item, cacheItem) => {
|
|
|
218
221
|
} else {
|
|
219
222
|
isMaxLimitRange = "unknown";
|
|
220
223
|
}
|
|
221
|
-
const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(
|
|
222
|
-
|
|
224
|
+
const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(
|
|
225
|
+
1,
|
|
226
|
+
"second"
|
|
227
|
+
);
|
|
228
|
+
const timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(
|
|
229
|
+
1,
|
|
230
|
+
"second"
|
|
231
|
+
);
|
|
223
232
|
let bol;
|
|
224
233
|
if (isFlexible) {
|
|
225
234
|
bol = startDate.isAfter(timeStartDate) && startDate.isBefore(timeEndDate);
|
|
226
235
|
} else {
|
|
227
|
-
let endDate = startDate.add(
|
|
236
|
+
let endDate = startDate.add(
|
|
237
|
+
flexibleObj.getValue(cacheItem._extend.duration),
|
|
238
|
+
"minute"
|
|
239
|
+
);
|
|
228
240
|
bol = startDate.isAfter(timeStartDate) && endDate.isBefore(timeEndDate);
|
|
229
241
|
}
|
|
230
242
|
if (bol) {
|
|
@@ -329,7 +341,9 @@ var flexibleObj = {
|
|
|
329
341
|
};
|
|
330
342
|
var getEndDate = (startDate, duration, endDate) => {
|
|
331
343
|
if (duration === "flexible") {
|
|
332
|
-
let openingDate = (0, import_dayjs.default)(
|
|
344
|
+
let openingDate = (0, import_dayjs.default)(
|
|
345
|
+
startDate.format("YYYY-MM-DD") + " " + getShopOpeningHours()
|
|
346
|
+
);
|
|
333
347
|
if ((0, import_dayjs.default)(startDate).isAfter(openingDate)) {
|
|
334
348
|
openingDate = openingDate.add(1, "day");
|
|
335
349
|
}
|
|
@@ -344,8 +358,13 @@ var getEndDate = (startDate, duration, endDate) => {
|
|
|
344
358
|
return startDate.add(duration, "minute");
|
|
345
359
|
};
|
|
346
360
|
var getServiceTimes = (service) => {
|
|
347
|
-
const startDate = (0, import_dayjs.default)(
|
|
348
|
-
|
|
361
|
+
const startDate = (0, import_dayjs.default)(
|
|
362
|
+
(0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + getServeStartTime(service._extend.start_time)
|
|
363
|
+
);
|
|
364
|
+
const endDate = startDate.add(
|
|
365
|
+
flexibleObj.getValue(service._extend.duration),
|
|
366
|
+
"minute"
|
|
367
|
+
);
|
|
349
368
|
return {
|
|
350
369
|
startDate,
|
|
351
370
|
endDate
|
|
@@ -354,10 +373,12 @@ var getServiceTimes = (service) => {
|
|
|
354
373
|
var getErrorList = (resource, cacheItem) => {
|
|
355
374
|
var _a, _b, _c;
|
|
356
375
|
if (!(cacheItem == null ? void 0 : cacheItem.id)) {
|
|
357
|
-
return [
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
376
|
+
return [
|
|
377
|
+
{
|
|
378
|
+
label: import_utils.locales.getText("pisell2.text.no-product-added"),
|
|
379
|
+
type: "products"
|
|
380
|
+
}
|
|
381
|
+
];
|
|
361
382
|
}
|
|
362
383
|
if (!resource || !resource._extend || !cacheItem) {
|
|
363
384
|
return [];
|
|
@@ -366,7 +387,10 @@ var getErrorList = (resource, cacheItem) => {
|
|
|
366
387
|
if (!resource.usable) {
|
|
367
388
|
if (!((_a = resource == null ? void 0 : resource._extend) == null ? void 0 : _a.usableProduct)) {
|
|
368
389
|
list.push({
|
|
369
|
-
label: import_utils.locales.getText("pisell1.text.resource-error-message-1")(
|
|
390
|
+
label: import_utils.locales.getText("pisell1.text.resource-error-message-1")(
|
|
391
|
+
resource.labelText,
|
|
392
|
+
cacheItem == null ? void 0 : cacheItem.title
|
|
393
|
+
),
|
|
370
394
|
type: "product"
|
|
371
395
|
});
|
|
372
396
|
}
|
|
@@ -378,13 +402,21 @@ var getErrorList = (resource, cacheItem) => {
|
|
|
378
402
|
}
|
|
379
403
|
if (!((_b = resource._extend) == null ? void 0 : _b.usableTime)) {
|
|
380
404
|
list.push({
|
|
381
|
-
label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(
|
|
405
|
+
label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(
|
|
406
|
+
resource.labelText,
|
|
407
|
+
startText,
|
|
408
|
+
endText
|
|
409
|
+
),
|
|
382
410
|
type: "time"
|
|
383
411
|
});
|
|
384
412
|
} else {
|
|
385
413
|
if (!((_c = resource._extend) == null ? void 0 : _c.usableTime._extend.isMaxLimitRange)) {
|
|
386
414
|
list.push({
|
|
387
|
-
label: import_utils.locales.getText("pisell1.text.resource-error-message-3")(
|
|
415
|
+
label: import_utils.locales.getText("pisell1.text.resource-error-message-3")(
|
|
416
|
+
resource.labelText,
|
|
417
|
+
startText,
|
|
418
|
+
endText
|
|
419
|
+
),
|
|
388
420
|
type: "limit"
|
|
389
421
|
});
|
|
390
422
|
}
|
|
@@ -454,11 +486,14 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
|
454
486
|
_extend.resource = resourceId;
|
|
455
487
|
}
|
|
456
488
|
}
|
|
457
|
-
console.log("_extend", findNextSliceProps);
|
|
458
489
|
if (findNextSliceProps.date && findNextSliceProps.date !== "00:00") {
|
|
459
490
|
_extend.start_time = findNextSlice(findNextSliceProps);
|
|
460
491
|
} else {
|
|
461
|
-
|
|
492
|
+
if (cacheItem.currentDefaultTime) {
|
|
493
|
+
_extend.start_time = cacheItem.currentDefaultTime;
|
|
494
|
+
} else {
|
|
495
|
+
_extend.start_time = (0, import_dayjs.default)().format("HH:mm");
|
|
496
|
+
}
|
|
462
497
|
}
|
|
463
498
|
}
|
|
464
499
|
_extend = {
|
|
@@ -64,7 +64,8 @@ var SelectProducts = ({ value, onChange }) => {
|
|
|
64
64
|
num: 500,
|
|
65
65
|
with: ["category"],
|
|
66
66
|
open_quotation: 1,
|
|
67
|
-
exclude_extension_type: ["event_item"]
|
|
67
|
+
exclude_extension_type: ["event_item"],
|
|
68
|
+
status: "published"
|
|
68
69
|
});
|
|
69
70
|
}, []);
|
|
70
71
|
const onRemove = (item) => {
|
package/lib/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { default as BookingStartTime } from './components/booking/materiels/star
|
|
|
12
12
|
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
13
|
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
14
|
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
15
|
+
export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
|
|
15
16
|
export { default as ProductExtension } from './components/productExtension';
|
|
16
17
|
export { default as BookingDeposit } from './components/booking/deposit';
|
|
17
18
|
export { default as RuleSetting } from './components/ruleSetting';
|
|
@@ -19,3 +20,4 @@ export { default as TaxSelect } from './components/taxSelect';
|
|
|
19
20
|
export { default as ToCPay } from './components/pay/toC';
|
|
20
21
|
export { default as Eftpos } from './components/eftpos';
|
|
21
22
|
export { default as EftposPay } from './components/eftposPay';
|
|
23
|
+
export { default as BookingDashboard } from './components/booking/dashboard';
|
package/lib/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(src_exports, {
|
|
|
32
32
|
Booking: () => import_booking.default,
|
|
33
33
|
BookingAddons: () => import_addons.default,
|
|
34
34
|
BookingContacts: () => import_contacts.default,
|
|
35
|
+
BookingDashboard: () => import_dashboard.default,
|
|
35
36
|
BookingDeposit: () => import_deposit.default,
|
|
36
37
|
BookingDuration: () => import_duration.default,
|
|
37
38
|
BookingForms: () => import_forms.default,
|
|
@@ -48,6 +49,7 @@ __export(src_exports, {
|
|
|
48
49
|
Schedules: () => import_schedules.default,
|
|
49
50
|
TaxSelect: () => import_taxSelect.default,
|
|
50
51
|
ToCPay: () => import_toC.default,
|
|
52
|
+
VerticalAddService: () => import_addServiceVariant.default,
|
|
51
53
|
VerticalClient: () => import_clientVariant.VerticalClient
|
|
52
54
|
});
|
|
53
55
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -67,6 +69,7 @@ var import_startTime = __toESM(require("./components/booking/materiels/startTime
|
|
|
67
69
|
var import_duration = __toESM(require("./components/booking/materiels/duration"));
|
|
68
70
|
var import_contacts = __toESM(require("./components/booking/materiels/contacts"));
|
|
69
71
|
var import_clientVariant = require("./components/booking/info/clientVariant");
|
|
72
|
+
var import_addServiceVariant = __toESM(require("./components/booking/info/addServiceVariant"));
|
|
70
73
|
var import_productExtension = __toESM(require("./components/productExtension"));
|
|
71
74
|
var import_deposit = __toESM(require("./components/booking/deposit"));
|
|
72
75
|
var import_ruleSetting = __toESM(require("./components/ruleSetting"));
|
|
@@ -74,6 +77,7 @@ var import_taxSelect = __toESM(require("./components/taxSelect"));
|
|
|
74
77
|
var import_toC = __toESM(require("./components/pay/toC"));
|
|
75
78
|
var import_eftpos = __toESM(require("./components/eftpos"));
|
|
76
79
|
var import_eftposPay = __toESM(require("./components/eftposPay"));
|
|
80
|
+
var import_dashboard = __toESM(require("./components/booking/dashboard"));
|
|
77
81
|
import_dayjs.default.extend(import_weekday.default);
|
|
78
82
|
import_dayjs.default.extend(import_localeData.default);
|
|
79
83
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -81,6 +85,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
81
85
|
Booking,
|
|
82
86
|
BookingAddons,
|
|
83
87
|
BookingContacts,
|
|
88
|
+
BookingDashboard,
|
|
84
89
|
BookingDeposit,
|
|
85
90
|
BookingDuration,
|
|
86
91
|
BookingForms,
|
|
@@ -97,5 +102,6 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
97
102
|
Schedules,
|
|
98
103
|
TaxSelect,
|
|
99
104
|
ToCPay,
|
|
105
|
+
VerticalAddService,
|
|
100
106
|
VerticalClient
|
|
101
107
|
});
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const BookingDashboardMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'BookingDashboard',
|
|
5
|
+
title: 'BookingDashboard',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/private-materials',
|
|
11
|
+
version: '1.0.4',
|
|
12
|
+
exportName: 'BookingDashboard',
|
|
13
|
+
main: 'src/index.ts',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
props: [
|
|
19
|
+
{
|
|
20
|
+
title: {
|
|
21
|
+
label: {
|
|
22
|
+
type: 'i18n',
|
|
23
|
+
'en-US': 'backgroundColors',
|
|
24
|
+
'zh-CN': 'backgroundColors',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
name: 'backgroundColors',
|
|
28
|
+
setter: {
|
|
29
|
+
componentName: 'MixedSetter',
|
|
30
|
+
props: {
|
|
31
|
+
setters: [
|
|
32
|
+
{
|
|
33
|
+
componentName: 'ArraySetter',
|
|
34
|
+
props: {
|
|
35
|
+
itemSetter: {
|
|
36
|
+
componentName: 'StringSetter',
|
|
37
|
+
isRequired: false,
|
|
38
|
+
initialValue: '',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
initialValue: [],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: {
|
|
49
|
+
label: {
|
|
50
|
+
type: 'i18n',
|
|
51
|
+
'en-US': 'labelColor',
|
|
52
|
+
'zh-CN': 'labelColor',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
name: 'labelColor',
|
|
56
|
+
setter: {
|
|
57
|
+
componentName: 'MixedSetter',
|
|
58
|
+
props: {
|
|
59
|
+
setters: [
|
|
60
|
+
{
|
|
61
|
+
componentName: 'StringSetter',
|
|
62
|
+
isRequired: false,
|
|
63
|
+
initialValue: '',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: {
|
|
71
|
+
label: {
|
|
72
|
+
type: 'i18n',
|
|
73
|
+
'en-US': 'valueColor',
|
|
74
|
+
'zh-CN': 'valueColor',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
name: 'valueColor',
|
|
78
|
+
setter: {
|
|
79
|
+
componentName: 'MixedSetter',
|
|
80
|
+
props: {
|
|
81
|
+
setters: [
|
|
82
|
+
{
|
|
83
|
+
componentName: 'StringSetter',
|
|
84
|
+
isRequired: false,
|
|
85
|
+
initialValue: '',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title: {
|
|
93
|
+
label: {
|
|
94
|
+
type: 'i18n',
|
|
95
|
+
'en-US': 'otherParams',
|
|
96
|
+
'zh-CN': 'otherParams',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
name: 'otherParams',
|
|
100
|
+
setter: ["JsonSetter","VariableSetter"],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
supports: {
|
|
104
|
+
style: true,
|
|
105
|
+
},
|
|
106
|
+
component: {},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
const snippets: Snippet[] = [
|
|
110
|
+
{
|
|
111
|
+
title: 'BookingDashboard',
|
|
112
|
+
screenshot: '',
|
|
113
|
+
schema: {
|
|
114
|
+
componentName: 'BookingDashboard',
|
|
115
|
+
props: {},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
|
|
120
|
+
export default {
|
|
121
|
+
...BookingDashboardMeta,
|
|
122
|
+
snippets,
|
|
123
|
+
};
|