@pisell/pisellos 3.0.87 → 3.0.88
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.
|
@@ -301,7 +301,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
301
301
|
autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
|
|
302
302
|
errorList: any[];
|
|
303
303
|
};
|
|
304
|
-
getTimeSlotByAllResources(resources_code: string): any[];
|
|
304
|
+
getTimeSlotByAllResources(resources_code: string, split?: number): any[];
|
|
305
305
|
getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
|
|
306
306
|
resources_code: string;
|
|
307
307
|
startDate: string;
|
|
@@ -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 |
|
|
313
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -2061,6 +2061,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2061
2061
|
_cartItems$,
|
|
2062
2062
|
_cartItems$2,
|
|
2063
2063
|
_this$shopStore$get;
|
|
2064
|
+
var split = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
2064
2065
|
var dateRange = this.store.date.getDateRange();
|
|
2065
2066
|
// 取出购物车中所有一已选择的第一步资源
|
|
2066
2067
|
var resources = [];
|
|
@@ -2244,7 +2245,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2244
2245
|
resourcesMap: resourcesMap,
|
|
2245
2246
|
duration: duration,
|
|
2246
2247
|
currentDate: dateRange[0].date,
|
|
2247
|
-
split:
|
|
2248
|
+
split: split,
|
|
2248
2249
|
resourcesUseableMap: resourcesUseableMap,
|
|
2249
2250
|
capacity: maxCapacity,
|
|
2250
2251
|
cut_off_time: maxCutOffTime,
|
|
@@ -301,7 +301,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
301
301
|
autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
|
|
302
302
|
errorList: any[];
|
|
303
303
|
};
|
|
304
|
-
getTimeSlotByAllResources(resources_code: string): any[];
|
|
304
|
+
getTimeSlotByAllResources(resources_code: string, split?: number): any[];
|
|
305
305
|
getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
|
|
306
306
|
resources_code: string;
|
|
307
307
|
startDate: string;
|
|
@@ -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 |
|
|
313
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -1406,7 +1406,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1406
1406
|
return { errorList };
|
|
1407
1407
|
}
|
|
1408
1408
|
// 从购物车中获取已经分配好第一步资源的所有时间片
|
|
1409
|
-
getTimeSlotByAllResources(resources_code) {
|
|
1409
|
+
getTimeSlotByAllResources(resources_code, split = 10) {
|
|
1410
1410
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
1411
1411
|
let dateRange = this.store.date.getDateRange();
|
|
1412
1412
|
const resources = [];
|
|
@@ -1564,7 +1564,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
1564
1564
|
resourcesMap,
|
|
1565
1565
|
duration,
|
|
1566
1566
|
currentDate: dateRange[0].date,
|
|
1567
|
-
split
|
|
1567
|
+
split,
|
|
1568
1568
|
resourcesUseableMap,
|
|
1569
1569
|
capacity: maxCapacity,
|
|
1570
1570
|
cut_off_time: maxCutOffTime,
|