@pisell/pisellos 2.3.68 → 2.3.70
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/Order/index.d.ts +1 -1
- package/dist/modules/Order/types.d.ts +2 -0
- package/dist/modules/Order/types.js +1 -0
- package/dist/solution/BaseSales/index.d.ts +10 -0
- package/dist/solution/BaseSales/index.js +876 -810
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +8 -16
- package/dist/solution/BookingTicket/index.js +200 -153
- package/lib/model/strategy/adapter/promotion/index.js +51 -0
- package/lib/modules/Order/index.d.ts +1 -1
- package/lib/modules/Order/types.d.ts +2 -0
- package/lib/solution/BaseSales/index.d.ts +10 -0
- package/lib/solution/BaseSales/index.js +36 -6
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +8 -16
- package/lib/solution/BookingTicket/index.js +22 -4
- 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 | 1 | 5 | 2 | 4 | 3 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -3,7 +3,7 @@ import { BookingTicketCartView, BookingTicketProductCatalogView, BookingTicketSt
|
|
|
3
3
|
import type { ProductData } from '../../modules';
|
|
4
4
|
import type { OpenDataConfig } from '../../modules/OpenData';
|
|
5
5
|
import { type BookingContextConfig, type BookingContextDateInput, type BookingContextResource, type BookingContextResourceMap, type BookingContextState, type InitBookingContextParams, type LoadBookingConfigParams, type LoadBookingResourcesParams, type ResourceError, type BookingCalcContext } from '../../modules/BookingContext';
|
|
6
|
-
import type { OrderCustomerView } from '../../modules/Order/types';
|
|
6
|
+
import type { OrderCustomerView, OrderCustomerChangePayload } from '../../modules/Order/types';
|
|
7
7
|
import { BaseSalesImpl } from '../BaseSales';
|
|
8
8
|
import type { BaseSalesScanCodeResult } from '../BaseSales/types';
|
|
9
9
|
import type { ISalesDetail } from '../BaseSales/utils/parseSalesResponse';
|
|
@@ -260,7 +260,9 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
260
260
|
* 同时透传 OrderModule 内部 emit 的 `order:onOrderCustomerChange` 之外,
|
|
261
261
|
* 在 BookingTicket 命名空间也 emit 一次,方便上层统一从 Solution 订阅。
|
|
262
262
|
*/
|
|
263
|
-
setOrderCustomer(customer: ICustomer | null
|
|
263
|
+
setOrderCustomer(customer: ICustomer | null, options?: {
|
|
264
|
+
source?: OrderCustomerChangePayload['source'];
|
|
265
|
+
}): void;
|
|
264
266
|
/**
|
|
265
267
|
* 读取 tempOrder 上的下单客户协议字段;customer_id 缺失时返回 null。
|
|
266
268
|
*/
|
|
@@ -287,6 +289,8 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
287
289
|
private buildOrderCustomerPayload;
|
|
288
290
|
protected refreshDiscountConfigAfterOrderCustomerChange(customerId: number | null): Promise<void>;
|
|
289
291
|
protected waitForOrderCustomerPromotionRefresh(): Promise<void>;
|
|
292
|
+
protected prepareProductPriceQueryContext(customerId?: number | string): Promise<void>;
|
|
293
|
+
protected preferAuthoritativeProductQueryPrice(): boolean;
|
|
290
294
|
/**
|
|
291
295
|
* 获取客户分页信息
|
|
292
296
|
* @returns 分页信息
|
|
@@ -330,7 +334,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
330
334
|
* 获取当前的客户搜索条件
|
|
331
335
|
* @returns 当前搜索条件
|
|
332
336
|
*/
|
|
333
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
337
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
334
338
|
/**
|
|
335
339
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
336
340
|
* @returns 客户状态
|
|
@@ -449,19 +453,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
449
453
|
* 加车两阶段主决策(规格弹窗 / 资源编辑 / 直接加车)。
|
|
450
454
|
* 与 ticketBooking `handleSelectProduct` + `handleBooking4Service` 等价。
|
|
451
455
|
*/
|
|
452
|
-
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>):
|
|
453
|
-
action: "reloadCatalog";
|
|
454
|
-
} | {
|
|
455
|
-
action: "add";
|
|
456
|
-
cacheItem: any;
|
|
457
|
-
} | {
|
|
458
|
-
action: "requiresDetail";
|
|
459
|
-
payload: AddProductRequiresDetailPayload;
|
|
460
|
-
} | {
|
|
461
|
-
action: "requiresBookingEdit";
|
|
462
|
-
cacheItem: any;
|
|
463
|
-
payload: import("./utils/addProductDecision").AddProductRequiresBookingEditPayload;
|
|
464
|
-
};
|
|
456
|
+
decideAddProduct(item: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
465
457
|
/** 规格弹窗 callback 后的第二段决策。 */
|
|
466
458
|
decideAfterDetail(cacheItem: any, options?: Partial<AddProductDecideContext>): import("./utils/addProductDecision").AddProductDecision;
|
|
467
459
|
/**
|