@pisell/pisellos 2.2.301 → 2.2.302
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/solution/BaseSales/index.d.ts +2 -0
- package/dist/solution/BaseSales/index.js +8 -0
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +2 -14
- package/lib/solution/BaseSales/index.d.ts +2 -0
- package/lib/solution/BaseSales/index.js +6 -0
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +2 -14
- package/package.json +1 -1
|
@@ -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, ITEM_REWARD_STRATEGY } from "./examples";
|
|
@@ -229,6 +229,8 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
|
|
|
229
229
|
updateTempOrderNote(note: string, sync: true): Promise<string>;
|
|
230
230
|
updateTempOrderNote(note: string, sync: boolean): string | Promise<string>;
|
|
231
231
|
updateRemoteOrderNote(orderId: number | string, note: string): void;
|
|
232
|
+
/** 存储用户自定义取餐标识到当前 tempOrder.buzzer。 */
|
|
233
|
+
setPickupRef(buzzer: string): string;
|
|
232
234
|
updateTempOrderShopDiscount(amount: string | number): string;
|
|
233
235
|
updateTempOrderDepositAmount(amount: string | number): OrderSummary;
|
|
234
236
|
updateTempOrderContactsInfo(contactsInfo: Record<string, any> | null): Record<string, any> | null;
|
|
@@ -2107,6 +2107,14 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2107
2107
|
if (!this.store.order) throw new Error('order 模块未初始化');
|
|
2108
2108
|
this.store.order.syncTempOrderNoteToRemote(orderId, note);
|
|
2109
2109
|
}
|
|
2110
|
+
|
|
2111
|
+
/** 存储用户自定义取餐标识到当前 tempOrder.buzzer。 */
|
|
2112
|
+
}, {
|
|
2113
|
+
key: "setPickupRef",
|
|
2114
|
+
value: function setPickupRef(buzzer) {
|
|
2115
|
+
if (!this.store.order) throw new Error('order 模块未初始化');
|
|
2116
|
+
return this.store.order.updateTempOrderBuzzer(buzzer);
|
|
2117
|
+
}
|
|
2110
2118
|
}, {
|
|
2111
2119
|
key: "updateTempOrderShopDiscount",
|
|
2112
2120
|
value: function updateTempOrderShopDiscount(amount) {
|
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 |
|
|
329
|
+
weekNum: 0 | 1 | 2 | 5 | 4 | 3 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -334,7 +334,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
334
334
|
* 获取当前的客户搜索条件
|
|
335
335
|
* @returns 当前搜索条件
|
|
336
336
|
*/
|
|
337
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
337
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
338
338
|
/**
|
|
339
339
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
340
340
|
* @returns 客户状态
|
|
@@ -453,19 +453,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
453
453
|
* 加车两阶段主决策(规格弹窗 / 资源编辑 / 直接加车)。
|
|
454
454
|
* 与 ticketBooking `handleSelectProduct` + `handleBooking4Service` 等价。
|
|
455
455
|
*/
|
|
456
|
-
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>):
|
|
457
|
-
action: "reloadCatalog";
|
|
458
|
-
} | {
|
|
459
|
-
action: "add";
|
|
460
|
-
cacheItem: any;
|
|
461
|
-
} | {
|
|
462
|
-
action: "requiresDetail";
|
|
463
|
-
payload: AddProductRequiresDetailPayload;
|
|
464
|
-
} | {
|
|
465
|
-
action: "requiresBookingEdit";
|
|
466
|
-
cacheItem: any;
|
|
467
|
-
payload: import("./utils/addProductDecision").AddProductRequiresBookingEditPayload;
|
|
468
|
-
};
|
|
456
|
+
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
469
457
|
/** 规格弹窗 callback 后的第二段决策。 */
|
|
470
458
|
decideAfterDetail(cacheItem: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
471
459
|
/**
|
|
@@ -229,6 +229,8 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
|
|
|
229
229
|
updateTempOrderNote(note: string, sync: true): Promise<string>;
|
|
230
230
|
updateTempOrderNote(note: string, sync: boolean): string | Promise<string>;
|
|
231
231
|
updateRemoteOrderNote(orderId: number | string, note: string): void;
|
|
232
|
+
/** 存储用户自定义取餐标识到当前 tempOrder.buzzer。 */
|
|
233
|
+
setPickupRef(buzzer: string): string;
|
|
232
234
|
updateTempOrderShopDiscount(amount: string | number): string;
|
|
233
235
|
updateTempOrderDepositAmount(amount: string | number): OrderSummary;
|
|
234
236
|
updateTempOrderContactsInfo(contactsInfo: Record<string, any> | null): Record<string, any> | null;
|
|
@@ -1439,6 +1439,12 @@ class BaseSalesImpl extends _BaseModule.BaseModule {
|
|
|
1439
1439
|
if (!this.store.order) throw new Error('order 模块未初始化');
|
|
1440
1440
|
this.store.order.syncTempOrderNoteToRemote(orderId, note);
|
|
1441
1441
|
}
|
|
1442
|
+
|
|
1443
|
+
/** 存储用户自定义取餐标识到当前 tempOrder.buzzer。 */
|
|
1444
|
+
setPickupRef(buzzer) {
|
|
1445
|
+
if (!this.store.order) throw new Error('order 模块未初始化');
|
|
1446
|
+
return this.store.order.updateTempOrderBuzzer(buzzer);
|
|
1447
|
+
}
|
|
1442
1448
|
updateTempOrderShopDiscount(amount) {
|
|
1443
1449
|
if (!this.store.order) throw new Error('order 模块未初始化');
|
|
1444
1450
|
return this.store.order.updateTempOrderShopDiscount(amount);
|
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 |
|
|
329
|
+
weekNum: 0 | 1 | 2 | 5 | 4 | 3 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -334,7 +334,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
334
334
|
* 获取当前的客户搜索条件
|
|
335
335
|
* @returns 当前搜索条件
|
|
336
336
|
*/
|
|
337
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
337
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
338
338
|
/**
|
|
339
339
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
340
340
|
* @returns 客户状态
|
|
@@ -453,19 +453,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
453
453
|
* 加车两阶段主决策(规格弹窗 / 资源编辑 / 直接加车)。
|
|
454
454
|
* 与 ticketBooking `handleSelectProduct` + `handleBooking4Service` 等价。
|
|
455
455
|
*/
|
|
456
|
-
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>):
|
|
457
|
-
action: "reloadCatalog";
|
|
458
|
-
} | {
|
|
459
|
-
action: "add";
|
|
460
|
-
cacheItem: any;
|
|
461
|
-
} | {
|
|
462
|
-
action: "requiresDetail";
|
|
463
|
-
payload: AddProductRequiresDetailPayload;
|
|
464
|
-
} | {
|
|
465
|
-
action: "requiresBookingEdit";
|
|
466
|
-
cacheItem: any;
|
|
467
|
-
payload: import("./utils/addProductDecision").AddProductRequiresBookingEditPayload;
|
|
468
|
-
};
|
|
456
|
+
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
469
457
|
/** 规格弹窗 callback 后的第二段决策。 */
|
|
470
458
|
decideAfterDetail(cacheItem: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
471
459
|
/**
|