@pisell/pisellos 0.10.65 → 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.
@@ -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 | 2 | 1 | 3 | 4 | 5 | 6;
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;
@@ -58,6 +59,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
58
59
  private getIdGeneratorPlugin;
59
60
  protected loadOpenDataConfig(): Promise<OpenDataConfig | null>;
60
61
  getOpenData(): Promise<OpenDataConfig | null>;
62
+ protected loadContactInfoOpenData(): Promise<OpenDataConfig | null>;
61
63
  getInvoiceLayoutConfig(): Promise<InvoiceLayoutConfig>;
62
64
  getInvoiceTemplateSettings(): Promise<InvoiceTemplateSettings>;
63
65
  protected isInvoiceOpenDataCacheCurrent(): boolean;
@@ -275,6 +277,16 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
275
277
  setOrderCustomer(customer: ICustomer | null, options?: {
276
278
  source?: OrderCustomerChangePayload['source'];
277
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>;
278
290
  /**
279
291
  * 读取 tempOrder 上的下单客户协议字段;customer_id 缺失时返回 null。
280
292
  */
@@ -286,7 +298,9 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
286
298
  /**
287
299
  * 清空下单客户(协议字段 + snapshot)。
288
300
  */
289
- clearOrderCustomer(): void;
301
+ clearOrderCustomer(options?: {
302
+ preserveContactInfo?: boolean;
303
+ }): void;
290
304
  /**
291
305
  * 重置 tempOrder,并同步清空下单客户运行态。
292
306
  *
@@ -346,7 +360,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
346
360
  * 获取当前的客户搜索条件
347
361
  * @returns 当前搜索条件
348
362
  */
349
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
363
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
350
364
  /**
351
365
  * 获取客户列表状态(包含滚动加载相关状态)
352
366
  * @returns 客户状态