@pisell/pisellos 2.1.115 → 2.1.117
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/Rules/index.js +5 -5
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +1 -1
- package/lib/modules/Rules/index.js +4 -4
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/lib/solution/BookingTicket/utils/scan/cloudSearch.js +1 -1
- package/package.json +1 -1
|
@@ -1855,12 +1855,12 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1855
1855
|
return true; // 单独购买时可用
|
|
1856
1856
|
}
|
|
1857
1857
|
if (isBundleItem) {
|
|
1858
|
-
var _flatItem$bundleItem9, _flatItem$bundleItem10, _flatItem$originProdu, _flatItem$
|
|
1858
|
+
var _flatItem$bundleItem9, _flatItem$bundleItem10, _flatItem$originProdu, _flatItem$parentProdu10;
|
|
1859
1859
|
// 套餐中购买时,判断是否为原价
|
|
1860
1860
|
var priceType = (_flatItem$bundleItem9 = flatItem.bundleItem) === null || _flatItem$bundleItem9 === void 0 ? void 0 : _flatItem$bundleItem9.price_type;
|
|
1861
1861
|
var priceTypeExt = (_flatItem$bundleItem10 = flatItem.bundleItem) === null || _flatItem$bundleItem10 === void 0 ? void 0 : _flatItem$bundleItem10.price_type_ext;
|
|
1862
1862
|
// 主商品id
|
|
1863
|
-
var mainProductId = (flatItem === null || flatItem === void 0 || (_flatItem$originProdu = flatItem.originProduct) === null || _flatItem$originProdu === void 0 ? void 0 : _flatItem$originProdu.
|
|
1863
|
+
var mainProductId = (flatItem === null || flatItem === void 0 || (_flatItem$originProdu = flatItem.originProduct) === null || _flatItem$originProdu === void 0 || (_flatItem$originProdu = _flatItem$originProdu._productOrigin) === null || _flatItem$originProdu === void 0 ? void 0 : _flatItem$originProdu.id) || (flatItem === null || flatItem === void 0 || (_flatItem$parentProdu10 = flatItem.parentProduct) === null || _flatItem$parentProdu10 === void 0 ? void 0 : _flatItem$parentProdu10.id) || 0;
|
|
1864
1864
|
// original_price 对应:
|
|
1865
1865
|
// 1. price_type: "markup" && price_type_ext: "product_price"
|
|
1866
1866
|
// markup_price 对应:
|
|
@@ -1925,10 +1925,10 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1925
1925
|
return false; // 单独购买时不可用
|
|
1926
1926
|
}
|
|
1927
1927
|
if (isBundleItem) {
|
|
1928
|
-
var _flatItem$
|
|
1928
|
+
var _flatItem$bundleItem11, _flatItem$bundleItem12;
|
|
1929
1929
|
// 套餐中购买时,判断是否为原价
|
|
1930
|
-
var _priceType = (_flatItem$
|
|
1931
|
-
var _priceTypeExt = (_flatItem$
|
|
1930
|
+
var _priceType = (_flatItem$bundleItem11 = flatItem.bundleItem) === null || _flatItem$bundleItem11 === void 0 ? void 0 : _flatItem$bundleItem11.price_type;
|
|
1931
|
+
var _priceTypeExt = (_flatItem$bundleItem12 = flatItem.bundleItem) === null || _flatItem$bundleItem12 === void 0 ? void 0 : _flatItem$bundleItem12.price_type_ext;
|
|
1932
1932
|
|
|
1933
1933
|
// original_price 对应:
|
|
1934
1934
|
// 1. price_type: "markup" && price_type_ext: "product_price"
|
|
@@ -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, "skip" | "num">;
|
|
119
119
|
/**
|
|
120
120
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
121
121
|
* @returns 客户状态
|
|
@@ -124,7 +124,7 @@ export var searchProduct = /*#__PURE__*/function () {
|
|
|
124
124
|
skip: 1,
|
|
125
125
|
num: 20,
|
|
126
126
|
status: 'published',
|
|
127
|
-
with: ['variantGroup
|
|
127
|
+
with: ['variantGroup'],
|
|
128
128
|
with_count: ['bundleGroup', 'optionGroup'],
|
|
129
129
|
exclude_extension_type: ['product_party', 'product_event', 'product_series_event', 'product_package_ticket', 'ticket', 'event_item']
|
|
130
130
|
};
|
|
@@ -1388,7 +1388,7 @@ var RulesModule = class extends import_BaseModule.BaseModule {
|
|
|
1388
1388
|
* @returns 是否可用
|
|
1389
1389
|
*/
|
|
1390
1390
|
checkPackageSubItemUsageRules(discount, flatItem) {
|
|
1391
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1391
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1392
1392
|
const limitedData = discount.limited_relation_product_data;
|
|
1393
1393
|
const usageRules = limitedData == null ? void 0 : limitedData.package_sub_item_usage_rules;
|
|
1394
1394
|
const rules = ["original_price", ...(usageRules == null ? void 0 : usageRules.rules) || []];
|
|
@@ -1410,7 +1410,7 @@ var RulesModule = class extends import_BaseModule.BaseModule {
|
|
|
1410
1410
|
if (isBundleItem) {
|
|
1411
1411
|
const priceType = (_a = flatItem.bundleItem) == null ? void 0 : _a.price_type;
|
|
1412
1412
|
const priceTypeExt = (_b = flatItem.bundleItem) == null ? void 0 : _b.price_type_ext;
|
|
1413
|
-
const mainProductId = ((_c = flatItem == null ? void 0 : flatItem.originProduct) == null ? void 0 : _c.
|
|
1413
|
+
const mainProductId = ((_d = (_c = flatItem == null ? void 0 : flatItem.originProduct) == null ? void 0 : _c._productOrigin) == null ? void 0 : _d.id) || ((_e = flatItem == null ? void 0 : flatItem.parentProduct) == null ? void 0 : _e.id) || 0;
|
|
1414
1414
|
const isOriginalPrice = priceType === "markup" && priceTypeExt === "product_price";
|
|
1415
1415
|
const isMarkupPrice = priceType === "markup" && (priceTypeExt === "" || !priceTypeExt);
|
|
1416
1416
|
if (rules.length > 0) {
|
|
@@ -1442,8 +1442,8 @@ var RulesModule = class extends import_BaseModule.BaseModule {
|
|
|
1442
1442
|
return false;
|
|
1443
1443
|
}
|
|
1444
1444
|
if (isBundleItem) {
|
|
1445
|
-
const priceType = (
|
|
1446
|
-
const priceTypeExt = (
|
|
1445
|
+
const priceType = (_f = flatItem.bundleItem) == null ? void 0 : _f.price_type;
|
|
1446
|
+
const priceTypeExt = (_g = flatItem.bundleItem) == null ? void 0 : _g.price_type_ext;
|
|
1447
1447
|
const isOriginalPrice = priceType === "markup" && priceTypeExt === "product_price";
|
|
1448
1448
|
const isMarkupPrice = priceType === "markup" && (priceTypeExt === "" || !priceTypeExt);
|
|
1449
1449
|
if (rules.length > 0) {
|
|
@@ -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, "skip" | "num">;
|
|
119
119
|
/**
|
|
120
120
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
121
121
|
* @returns 客户状态
|
|
@@ -88,7 +88,7 @@ var searchProduct = async (request, code) => {
|
|
|
88
88
|
skip: 1,
|
|
89
89
|
num: 20,
|
|
90
90
|
status: "published",
|
|
91
|
-
with: ["variantGroup
|
|
91
|
+
with: ["variantGroup"],
|
|
92
92
|
with_count: ["bundleGroup", "optionGroup"],
|
|
93
93
|
exclude_extension_type: [
|
|
94
94
|
"product_party",
|