@pisell/pisellos 3.0.82 → 3.0.84
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/dist/modules/Rules/index.js +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingByStep/index.js +5 -1
- package/lib/modules/Rules/index.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingByStep/index.js +3 -1
- package/package.json +1 -1
|
@@ -1059,7 +1059,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1059
1059
|
// bundle子商品:保存到扁平化Map
|
|
1060
1060
|
processedFlatItemsMap.set(flatItem._id, [_objectSpread(_objectSpread({}, flatItem), {}, {
|
|
1061
1061
|
discount_list: [],
|
|
1062
|
-
price: flatItem.bundleItem.original_price,
|
|
1062
|
+
price: isManualDiscount ? flatItem.bundleItem.price : flatItem.bundleItem.original_price,
|
|
1063
1063
|
processed: true
|
|
1064
1064
|
})]);
|
|
1065
1065
|
}
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 | 1 |
|
|
313
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -2556,8 +2556,12 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2556
2556
|
_step3;
|
|
2557
2557
|
try {
|
|
2558
2558
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
2559
|
+
var _time$event_list;
|
|
2559
2560
|
var time = _step3.value;
|
|
2560
|
-
var
|
|
2561
|
+
var blockedTimes = (_time$event_list = time.event_list) === null || _time$event_list === void 0 ? void 0 : _time$event_list.filter(function (event) {
|
|
2562
|
+
return event.type !== 'schedule_event';
|
|
2563
|
+
});
|
|
2564
|
+
var _iterator4 = _createForOfIteratorHelper(blockedTimes || []),
|
|
2561
2565
|
_step4;
|
|
2562
2566
|
try {
|
|
2563
2567
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -749,7 +749,7 @@ var RulesModule = class extends import_BaseModule.BaseModule {
|
|
|
749
749
|
processedFlatItemsMap.set(flatItem._id, [{
|
|
750
750
|
...flatItem,
|
|
751
751
|
discount_list: [],
|
|
752
|
-
price: flatItem.bundleItem.original_price,
|
|
752
|
+
price: isManualDiscount ? flatItem.bundleItem.price : flatItem.bundleItem.original_price,
|
|
753
753
|
processed: true
|
|
754
754
|
}]);
|
|
755
755
|
}
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 | 1 |
|
|
313
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -1773,10 +1773,12 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1773
1773
|
currentStartTime: currentStartTime2,
|
|
1774
1774
|
times
|
|
1775
1775
|
}) {
|
|
1776
|
+
var _a4;
|
|
1776
1777
|
const currentStart = (0, import_dayjs.default)(currentStartTime2);
|
|
1777
1778
|
let earliestBlockStart;
|
|
1778
1779
|
for (const time of times || []) {
|
|
1779
|
-
|
|
1780
|
+
const blockedTimes = (_a4 = time.event_list) == null ? void 0 : _a4.filter((event) => event.type !== "schedule_event");
|
|
1781
|
+
for (const event of blockedTimes || []) {
|
|
1780
1782
|
const eventStart = (0, import_dayjs.default)(event.start_at);
|
|
1781
1783
|
const eventEnd = (0, import_dayjs.default)(event.end_at);
|
|
1782
1784
|
if (eventStart.isBefore(currentStart) && eventEnd.isAfter(currentStart)) {
|