@pisell/pisellos 0.10.66 → 0.10.67
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/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +25 -2
- package/dist/solution/BookingTicket/index.js +509 -256
- package/dist/solution/UnifiedBookingSales/index.js +1 -1
- package/lib/model/strategy/adapter/promotion/index.js +46 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +25 -2
- package/lib/solution/BookingTicket/index.js +115 -0
- package/lib/solution/UnifiedBookingSales/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 | 6 | 5 | 1 | 2 | 3 | 4;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -32,6 +32,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
32
32
|
private orderCustomerDiscountRefreshCustomerId;
|
|
33
33
|
private orderCustomerDiscountRefreshTarget;
|
|
34
34
|
private orderCustomerPromotionRefreshInFlight;
|
|
35
|
+
private orderCustomerContactRequest;
|
|
35
36
|
private readonly customerResolveRequests;
|
|
36
37
|
protected loadOpenDataInFlight: Promise<OpenDataConfig> | null;
|
|
37
38
|
protected loadOpenDataInFlightTarget: string | null;
|
|
@@ -276,6 +277,16 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
276
277
|
setOrderCustomer(customer: ICustomer | null, options?: {
|
|
277
278
|
source?: OrderCustomerChangePayload['source'];
|
|
278
279
|
}): void;
|
|
280
|
+
private resetOrderCustomerContactInfo;
|
|
281
|
+
/** Explicit edits, including clearing the contact, must win over a pending default. */
|
|
282
|
+
updateTempOrderContactsInfo(contact: Record<string, any> | null): Record<string, any> | null;
|
|
283
|
+
private getCustomerContactScope;
|
|
284
|
+
private getCustomerContactOrderKey;
|
|
285
|
+
replaceTempOrder(...args: Parameters<BaseSalesImpl['replaceTempOrder']>): Promise<import("../../modules/Order/types").OrderTempOrder>;
|
|
286
|
+
private applyDefaultOrderCustomerContactInfo;
|
|
287
|
+
private prefillOrderCustomerContactInfo;
|
|
288
|
+
protected waitForOrderCustomerContactInfo(): Promise<void>;
|
|
289
|
+
validateContactInfo(): Promise<void>;
|
|
279
290
|
/**
|
|
280
291
|
* 读取 tempOrder 上的下单客户协议字段;customer_id 缺失时返回 null。
|
|
281
292
|
*/
|
|
@@ -349,7 +360,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
349
360
|
* 获取当前的客户搜索条件
|
|
350
361
|
* @returns 当前搜索条件
|
|
351
362
|
*/
|
|
352
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
363
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
353
364
|
/**
|
|
354
365
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
355
366
|
* @returns 客户状态
|
|
@@ -468,7 +479,19 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
468
479
|
* 加车两阶段主决策(规格弹窗 / 资源编辑 / 直接加车)。
|
|
469
480
|
* 与 ticketBooking `handleSelectProduct` + `handleBooking4Service` 等价。
|
|
470
481
|
*/
|
|
471
|
-
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>):
|
|
482
|
+
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>): {
|
|
483
|
+
action: "reloadCatalog";
|
|
484
|
+
} | {
|
|
485
|
+
action: "add";
|
|
486
|
+
cacheItem: any;
|
|
487
|
+
} | {
|
|
488
|
+
action: "requiresDetail";
|
|
489
|
+
payload: AddProductRequiresDetailPayload;
|
|
490
|
+
} | {
|
|
491
|
+
action: "requiresBookingEdit";
|
|
492
|
+
cacheItem: any;
|
|
493
|
+
payload: import("./utils/addProductDecision").AddProductRequiresBookingEditPayload;
|
|
494
|
+
};
|
|
472
495
|
/** 规格弹窗 callback 后的第二段决策。 */
|
|
473
496
|
decideAfterDetail(cacheItem: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
474
497
|
/**
|