@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.
- package/dist/modules/Payment/index.js +1 -1
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/modules/Rules/index.js +3 -1
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/lib/modules/Payment/index.js +1 -1
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/modules/Rules/index.js +3 -1
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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(): "
|
|
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, "
|
|
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(): "
|
|
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, "
|
|
126
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
127
127
|
/**
|
|
128
128
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
129
129
|
* @returns 客户状态
|