@pisell/pisellos 2.1.77 → 2.1.79
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/Cart/types.d.ts +2 -0
- package/dist/modules/Cart/utils/cartProduct.js +21 -1
- package/dist/modules/Date/index.d.ts +1 -1
- package/dist/modules/Date/index.js +2 -2
- package/dist/modules/Rules/index.js +14 -14
- package/dist/modules/Summary/index.d.ts +3 -0
- package/dist/modules/Summary/index.js +93 -15
- package/dist/modules/Summary/types.d.ts +7 -0
- package/dist/modules/Summary/utils.d.ts +104 -1
- package/dist/modules/Summary/utils.js +1120 -13
- package/dist/solution/BookingByStep/index.d.ts +5 -2
- package/dist/solution/BookingByStep/index.js +1 -1
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/lib/modules/Cart/types.d.ts +2 -0
- package/lib/modules/Cart/utils/cartProduct.js +16 -1
- package/lib/modules/Date/index.d.ts +1 -1
- package/lib/modules/Date/index.js +1 -1
- package/lib/modules/Rules/index.js +3 -3
- package/lib/modules/Summary/index.d.ts +3 -0
- package/lib/modules/Summary/index.js +48 -1
- package/lib/modules/Summary/types.d.ts +7 -0
- package/lib/modules/Summary/utils.d.ts +104 -1
- package/lib/modules/Summary/utils.js +664 -8
- package/lib/solution/BookingByStep/index.d.ts +5 -2
- package/lib/solution/BookingByStep/index.js +1 -1
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -147,6 +147,9 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
147
147
|
taxTitle?: string | undefined;
|
|
148
148
|
totalTaxFee?: string | number | undefined;
|
|
149
149
|
isPriceIncludeTax?: 0 | 1 | undefined;
|
|
150
|
+
surchargeAmount?: string | number | undefined;
|
|
151
|
+
surcharge?: any[] | undefined;
|
|
152
|
+
taxRate?: string | number | undefined;
|
|
150
153
|
deposit?: {
|
|
151
154
|
total?: string | number | undefined;
|
|
152
155
|
policies?: import("../../modules/Summary/types").IProtocol[] | undefined;
|
|
@@ -307,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
307
310
|
date: string;
|
|
308
311
|
status: string;
|
|
309
312
|
week: string;
|
|
310
|
-
weekNum: 0 |
|
|
313
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
311
314
|
}[]>;
|
|
312
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
313
316
|
private getScheduleDataByIds;
|
|
@@ -354,7 +357,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
354
357
|
};
|
|
355
358
|
setOtherData(key: string, value: any): void;
|
|
356
359
|
getOtherData(key: string): any;
|
|
357
|
-
getProductTypeById(id: number): Promise<"
|
|
360
|
+
getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
|
|
358
361
|
/**
|
|
359
362
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
360
363
|
*
|
|
@@ -2935,7 +2935,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2935
2935
|
const openResources = ((_d = (_c = tempProducts == null ? void 0 : tempProducts.product_resource) == null ? void 0 : _c.resources) == null ? void 0 : _d.filter(
|
|
2936
2936
|
(m) => m.status === 1
|
|
2937
2937
|
)) || [];
|
|
2938
|
-
const allProductResources = (0, import_resources.sortCombinedResources)(res.data);
|
|
2938
|
+
const allProductResources = (0, import_lodash_es.cloneDeep)((0, import_resources.sortCombinedResources)(res.data) || []);
|
|
2939
2939
|
allProductResources.forEach((m) => {
|
|
2940
2940
|
var _a2, _b2;
|
|
2941
2941
|
const resource = (_b2 = (_a2 = tempProducts == null ? void 0 : tempProducts.product_resource) == null ? void 0 : _a2.resources) == null ? void 0 : _b2.find(
|
|
@@ -115,7 +115,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
|
|
|
115
115
|
* 获取当前的客户搜索条件
|
|
116
116
|
* @returns 当前搜索条件
|
|
117
117
|
*/
|
|
118
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
118
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
119
119
|
/**
|
|
120
120
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
121
121
|
* @returns 客户状态
|