@pisell/pisellos 2.2.40 → 2.2.41
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/Product/index.d.ts +1 -1
- package/dist/modules/Schedule/index.d.ts +9 -0
- package/dist/modules/Schedule/index.js +18 -2
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/modules/Schedule/index.d.ts +9 -0
- package/lib/modules/Schedule/index.js +11 -0
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -25,6 +25,15 @@ export declare class ScheduleModule extends BaseModule implements Module, Schedu
|
|
|
25
25
|
setOtherProductsIds(ids: number[]): void;
|
|
26
26
|
getOtherProductsIds(): number[];
|
|
27
27
|
storeChange(): void;
|
|
28
|
+
/**
|
|
29
|
+
* 传入一个时间, 判断改时间是否在schedule 内
|
|
30
|
+
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
isInScheduleByDate({ date, schedule, }: {
|
|
34
|
+
date: string;
|
|
35
|
+
schedule: any;
|
|
36
|
+
}): boolean | undefined;
|
|
28
37
|
/**
|
|
29
38
|
* 传入一个时间, 判断改时间是否在schedule 内
|
|
30
39
|
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
@@ -248,12 +248,28 @@ export var ScheduleModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
248
248
|
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
249
249
|
* @returns
|
|
250
250
|
*/
|
|
251
|
-
}
|
|
251
|
+
}, {
|
|
252
252
|
key: "isInScheduleByDate",
|
|
253
253
|
value: function isInScheduleByDate(_ref2) {
|
|
254
|
-
var _schedule$repeat_rule, _schedule$repeat_rule2;
|
|
255
254
|
var date = _ref2.date,
|
|
256
255
|
schedule = _ref2.schedule;
|
|
256
|
+
return ScheduleModule.isInScheduleByDate({
|
|
257
|
+
date: date,
|
|
258
|
+
schedule: schedule
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* 传入一个时间, 判断改时间是否在schedule 内
|
|
264
|
+
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
265
|
+
* @returns
|
|
266
|
+
*/
|
|
267
|
+
}], [{
|
|
268
|
+
key: "isInScheduleByDate",
|
|
269
|
+
value: function isInScheduleByDate(_ref3) {
|
|
270
|
+
var _schedule$repeat_rule, _schedule$repeat_rule2;
|
|
271
|
+
var date = _ref3.date,
|
|
272
|
+
schedule = _ref3.schedule;
|
|
257
273
|
if (schedule.start_time && schedule.end_time) {
|
|
258
274
|
var isBeforeStartTime = dayjs(date).isBefore(dayjs(schedule.start_time));
|
|
259
275
|
var isAfterEndTime = dayjs(date).isAfter(dayjs(schedule.end_time));
|
|
@@ -123,7 +123,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
|
|
|
123
123
|
* 获取当前的客户搜索条件
|
|
124
124
|
* @returns 当前搜索条件
|
|
125
125
|
*/
|
|
126
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
126
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
127
127
|
/**
|
|
128
128
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
129
129
|
* @returns 客户状态
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -25,6 +25,15 @@ export declare class ScheduleModule extends BaseModule implements Module, Schedu
|
|
|
25
25
|
setOtherProductsIds(ids: number[]): void;
|
|
26
26
|
getOtherProductsIds(): number[];
|
|
27
27
|
storeChange(): void;
|
|
28
|
+
/**
|
|
29
|
+
* 传入一个时间, 判断改时间是否在schedule 内
|
|
30
|
+
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
isInScheduleByDate({ date, schedule, }: {
|
|
34
|
+
date: string;
|
|
35
|
+
schedule: any;
|
|
36
|
+
}): boolean | undefined;
|
|
28
37
|
/**
|
|
29
38
|
* 传入一个时间, 判断改时间是否在schedule 内
|
|
30
39
|
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
@@ -159,6 +159,17 @@ var ScheduleModule = class extends import_BaseModule.BaseModule {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 传入一个时间, 判断改时间是否在schedule 内
|
|
164
|
+
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
isInScheduleByDate({
|
|
168
|
+
date,
|
|
169
|
+
schedule
|
|
170
|
+
}) {
|
|
171
|
+
return ScheduleModule.isInScheduleByDate({ date, schedule });
|
|
172
|
+
}
|
|
162
173
|
/**
|
|
163
174
|
* 传入一个时间, 判断改时间是否在schedule 内
|
|
164
175
|
* @param param0 { date: string, schedule: any } date: 日期, schedule: schedule
|
|
@@ -123,7 +123,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
|
|
|
123
123
|
* 获取当前的客户搜索条件
|
|
124
124
|
* @returns 当前搜索条件
|
|
125
125
|
*/
|
|
126
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
126
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
127
127
|
/**
|
|
128
128
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
129
129
|
* @returns 客户状态
|