@pisell/pisellos 2.2.67 → 2.2.69

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.
@@ -1535,7 +1535,7 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
1535
1535
  throw new Error("\u8BA2\u5355\u4E0D\u5B58\u5728: ".concat(orderUuid));
1536
1536
  case 34:
1537
1537
  existingActiveVoucherKeys = new Set(orderAfterDelete.payment.filter(function (p) {
1538
- return p.voucher_id && p.status !== 'voided';
1538
+ return p.voucher_id && p.status !== 'voided' && !p.isSynced;
1539
1539
  }).map(function (p) {
1540
1540
  return "".concat(p.voucher_id, "|").concat(p.order_payment_type || 'normal');
1541
1541
  }));
@@ -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
  }
@@ -1672,12 +1672,14 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1672
1672
  // num: item.num, // 使用拆分后的 num
1673
1673
  });
1674
1674
  });
1675
+ debugger;
1675
1676
  newBundle.push(_objectSpread(_objectSpread({}, bundleItem), {}, {
1676
1677
  _id: item._id,
1677
1678
  product_id: bundleItem.product_id,
1678
1679
  price: item.price,
1679
1680
  num: item.num,
1680
- discount_list: updatedDiscountList
1681
+ discount_list: updatedDiscountList,
1682
+ bundle_selling_price: bundleItem.bundle_selling_price !== undefined && item.price
1681
1683
  }));
1682
1684
  });
1683
1685
  }
@@ -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 客户状态
@@ -801,7 +801,7 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
801
801
  throw new Error(`订单不存在: ${orderUuid}`);
802
802
  }
803
803
  const existingActiveVoucherKeys = new Set(
804
- orderAfterDelete.payment.filter((p) => p.voucher_id && p.status !== "voided").map((p) => `${p.voucher_id}|${p.order_payment_type || "normal"}`)
804
+ orderAfterDelete.payment.filter((p) => p.voucher_id && p.status !== "voided" && !p.isSynced).map((p) => `${p.voucher_id}|${p.order_payment_type || "normal"}`)
805
805
  );
806
806
  console.log("[PaymentModule] 添加新的代金券支付项:", {
807
807
  orderUuid,
@@ -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
  }
@@ -1368,13 +1368,15 @@ var RulesModule = class extends import_BaseModule.BaseModule {
1368
1368
  // num: item.num, // 使用拆分后的 num
1369
1369
  };
1370
1370
  });
1371
+ debugger;
1371
1372
  newBundle.push({
1372
1373
  ...bundleItem,
1373
1374
  _id: item._id,
1374
1375
  product_id: bundleItem.product_id,
1375
1376
  price: item.price,
1376
1377
  num: item.num,
1377
- discount_list: updatedDiscountList2
1378
+ discount_list: updatedDiscountList2,
1379
+ bundle_selling_price: bundleItem.bundle_selling_price !== void 0 && item.price
1378
1380
  });
1379
1381
  });
1380
1382
  }
@@ -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": "2.2.67",
4
+ "version": "2.2.69",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",