@pisell/pisellos 0.0.413 → 0.0.414

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.
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -1024,12 +1024,12 @@ export var getSurcharge = function getSurcharge(_ref10, options) {
1024
1024
  var productCount = matchedItems.reduce(function (total, item) {
1025
1025
  if (item.isMain) {
1026
1026
  // 主商品和addons商品
1027
- return total + (item.num || 1);
1027
+ return total + (item.num || item.quantity || 1);
1028
1028
  } else {
1029
1029
  // 子商品(bundle item)和加时商品
1030
1030
  // 加时商品的 mainQuantity = 1,所以不受影响
1031
1031
  // bundle item 的 mainQuantity = 主商品数量,需要乘以实际数量
1032
- return total + (item.num || 1) * (item.mainQuantity || 1);
1032
+ return total + (item.num || item.quantity || 1) * (item.mainQuantity || 1);
1033
1033
  }
1034
1034
  }, 0);
1035
1035
 
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
311
311
  date: string;
312
312
  status: string;
313
313
  week: string;
314
- weekNum: 0 | 2 | 1 | 3 | 5 | 4 | 6;
314
+ weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -123,7 +123,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
123
123
  * 获取当前的客户搜索条件
124
124
  * @returns 当前搜索条件
125
125
  */
126
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
126
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
127
127
  /**
128
128
  * 获取客户列表状态(包含滚动加载相关状态)
129
129
  * @returns 客户状态
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -634,9 +634,9 @@ var getSurcharge = ({ service, addons, bookingDetail, bookingId }, options) => {
634
634
  let finalAmount = 0;
635
635
  const productCount = matchedItems.reduce((total, item) => {
636
636
  if (item.isMain) {
637
- return total + (item.num || 1);
637
+ return total + (item.num || item.quantity || 1);
638
638
  } else {
639
- return total + (item.num || 1) * (item.mainQuantity || 1);
639
+ return total + (item.num || item.quantity || 1) * (item.mainQuantity || 1);
640
640
  }
641
641
  }, 0);
642
642
  let fixedTotal = new import_decimal.default(0);
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
311
311
  date: string;
312
312
  status: string;
313
313
  week: string;
314
- weekNum: 0 | 2 | 1 | 3 | 5 | 4 | 6;
314
+ weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -123,7 +123,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
123
123
  * 获取当前的客户搜索条件
124
124
  * @returns 当前搜索条件
125
125
  */
126
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
126
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
127
127
  /**
128
128
  * 获取客户列表状态(包含滚动加载相关状态)
129
129
  * @returns 客户状态
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.413",
4
+ "version": "0.0.414",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",