@pisell/pisellos 2.1.116 → 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 +2 -2
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- 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/BookingByStep/index.d.ts +1 -1
- 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$
|
|
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$
|
|
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 对应:
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 |
|
|
313
|
+
weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -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.
|
|
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) {
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 |
|
|
313
|
+
weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -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",
|