@pisell/pisellos 2.2.230 → 2.2.232
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/model/strategy/adapter/promotion/index.js +9 -0
- package/dist/modules/Order/index.js +44 -29
- package/dist/modules/Order/types.d.ts +14 -2
- package/dist/modules/Order/types.js +8 -1
- package/dist/modules/ProductList/index.d.ts +9 -12
- package/dist/modules/ProductList/index.js +122 -59
- package/dist/modules/ProductList/types.d.ts +14 -0
- package/dist/server/index.d.ts +21 -0
- package/dist/server/index.js +154 -34
- package/dist/server/utils/small-ticket.js +113 -29
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +9 -1
- package/dist/solution/BookingTicket/index.js +198 -158
- package/dist/solution/BookingTicket/types.d.ts +4 -0
- package/dist/solution/BookingTicket/utils/cartView.js +20 -6
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +189 -0
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.js +429 -0
- package/lib/model/strategy/adapter/promotion/index.js +0 -49
- package/lib/modules/Order/index.js +18 -5
- package/lib/modules/Order/types.d.ts +14 -2
- package/lib/modules/ProductList/index.d.ts +9 -12
- package/lib/modules/ProductList/index.js +32 -4
- package/lib/modules/ProductList/types.d.ts +14 -0
- package/lib/server/index.d.ts +21 -0
- package/lib/server/index.js +107 -9
- package/lib/server/utils/small-ticket.js +78 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +9 -1
- package/lib/solution/BookingTicket/index.js +20 -1
- package/lib/solution/BookingTicket/types.d.ts +4 -0
- package/lib/solution/BookingTicket/utils/cartView.js +14 -7
- package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +189 -0
- package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.js +241 -0
- package/package.json +1 -1
|
@@ -121,6 +121,13 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
121
121
|
callback?: (result: any) => void;
|
|
122
122
|
subscriberId?: string;
|
|
123
123
|
}): Promise<any>;
|
|
124
|
+
/**
|
|
125
|
+
* 获取加时商品列表。
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* const products = await bookingTicket.getAddTimeProducts({ schedule_date: '2026-06-16' });
|
|
129
|
+
*/
|
|
130
|
+
getAddTimeProducts(params?: ILoadProductsParams): Promise<ProductData[]>;
|
|
124
131
|
/**
|
|
125
132
|
* 只读查询单商品详情:走 ProductList 报价查询,但不写 productCatalog、
|
|
126
133
|
* 不 emit onProductsLoaded、不修改 BookingDate。
|
|
@@ -312,7 +319,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
312
319
|
* 获取当前的客户搜索条件
|
|
313
320
|
* @returns 当前搜索条件
|
|
314
321
|
*/
|
|
315
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
322
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
316
323
|
/**
|
|
317
324
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
318
325
|
* @returns 客户状态
|
|
@@ -504,6 +511,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
504
511
|
* ```
|
|
505
512
|
*/
|
|
506
513
|
handleGlobalScanCode(code: string, bridge?: GlobalScanHostBridge): Promise<GlobalScanHandleResult>;
|
|
514
|
+
resolveBestAddTimePlan(addTimeProducts: any[], targetMinutes: number): any;
|
|
507
515
|
/**
|
|
508
516
|
* 销毁模块:先调用父类(销毁所有 store 内子模块 + emit destroy + super.destroy()),
|
|
509
517
|
* 再清理 BookingTicket 自有资源(scan 监听 + scan 内存缓存)。
|