@pisell/pisellos 0.0.516 → 0.0.517
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// 导出评估器
|
|
2
|
+
export { PromotionEvaluator } from "./evaluator";
|
|
3
|
+
|
|
4
|
+
// 导出适配器
|
|
5
|
+
export { PromotionAdapter } from "./adapter";
|
|
6
|
+
export { default } from "./adapter";
|
|
7
|
+
|
|
8
|
+
// 导出策略配置示例常量
|
|
9
|
+
export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY } from "./examples";
|
|
@@ -302,7 +302,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
302
302
|
autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
|
|
303
303
|
errorList: any[];
|
|
304
304
|
};
|
|
305
|
-
getTimeSlotByAllResources(resources_code: string): any[];
|
|
305
|
+
getTimeSlotByAllResources(resources_code: string, split?: number): any[];
|
|
306
306
|
getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
|
|
307
307
|
resources_code: string;
|
|
308
308
|
startDate: string;
|
|
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
311
311
|
date: string;
|
|
312
312
|
status: string;
|
|
313
313
|
week: string;
|
|
314
|
-
weekNum: 0 | 1 | 5 | 3 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -2073,6 +2073,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2073
2073
|
_cartItems$,
|
|
2074
2074
|
_cartItems$2,
|
|
2075
2075
|
_this$shopStore$get;
|
|
2076
|
+
var split = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
2076
2077
|
var dateRange = this.store.date.getDateRange();
|
|
2077
2078
|
// 取出购物车中所有一已选择的第一步资源
|
|
2078
2079
|
var resources = [];
|
|
@@ -2256,7 +2257,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2256
2257
|
resourcesMap: resourcesMap,
|
|
2257
2258
|
duration: duration,
|
|
2258
2259
|
currentDate: dateRange[0].date,
|
|
2259
|
-
split:
|
|
2260
|
+
split: split,
|
|
2260
2261
|
resourcesUseableMap: resourcesUseableMap,
|
|
2261
2262
|
capacity: maxCapacity,
|
|
2262
2263
|
cut_off_time: maxCutOffTime,
|
|
@@ -302,7 +302,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
302
302
|
autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
|
|
303
303
|
errorList: any[];
|
|
304
304
|
};
|
|
305
|
-
getTimeSlotByAllResources(resources_code: string): any[];
|
|
305
|
+
getTimeSlotByAllResources(resources_code: string, split?: number): any[];
|
|
306
306
|
getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
|
|
307
307
|
resources_code: string;
|
|
308
308
|
startDate: string;
|
|
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
311
311
|
date: string;
|
|
312
312
|
status: string;
|
|
313
313
|
week: string;
|
|
314
|
-
weekNum: 0 | 1 | 5 | 3 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -1409,7 +1409,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1409
1409
|
return { errorList };
|
|
1410
1410
|
}
|
|
1411
1411
|
// 从购物车中获取已经分配好第一步资源的所有时间片
|
|
1412
|
-
getTimeSlotByAllResources(resources_code) {
|
|
1412
|
+
getTimeSlotByAllResources(resources_code, split = 10) {
|
|
1413
1413
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
1414
1414
|
let dateRange = this.store.date.getDateRange();
|
|
1415
1415
|
const resources = [];
|
|
@@ -1567,7 +1567,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1567
1567
|
resourcesMap,
|
|
1568
1568
|
duration,
|
|
1569
1569
|
currentDate: dateRange[0].date,
|
|
1570
|
-
split
|
|
1570
|
+
split,
|
|
1571
1571
|
resourcesUseableMap,
|
|
1572
1572
|
capacity: maxCapacity,
|
|
1573
1573
|
cut_off_time: maxCutOffTime,
|