@pisell/pisellos 0.0.471 → 0.0.473
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/Schedule/index.js +1 -1
- package/dist/modules/Summary/index.js +2 -2
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/Checkout/index.js +1 -1
- package/lib/modules/Schedule/index.js +1 -1
- package/lib/modules/Summary/index.js +2 -2
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/Checkout/index.js +1 -1
- package/package.json +1 -1
|
@@ -205,7 +205,7 @@ export var ScheduleModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
205
205
|
}, {
|
|
206
206
|
key: "getScheduleListByIds",
|
|
207
207
|
value: function getScheduleListByIds(ids) {
|
|
208
|
-
return this.store.scheduleList.filter(function (n) {
|
|
208
|
+
return (this.store.scheduleList || []).filter(function (n) {
|
|
209
209
|
return ids.includes(n.id);
|
|
210
210
|
});
|
|
211
211
|
}
|
|
@@ -120,7 +120,7 @@ export var SummaryModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
120
120
|
case 0:
|
|
121
121
|
shopInfo = ((_this$shopStore$get = this.shopStore.get('core')) === null || _this$shopStore$get === void 0 || (_this$shopStore$get = _this$shopStore$get.core) === null || _this$shopStore$get === void 0 ? void 0 : _this$shopStore$get.shop) || {};
|
|
122
122
|
scheduleModule = this.core.getModule('appointmentBooking_schedule');
|
|
123
|
-
needScheduleIds = this.store.surchargeList.map(function (item) {
|
|
123
|
+
needScheduleIds = (this.store.surchargeList || []).map(function (item) {
|
|
124
124
|
return item.available_schedule_ids;
|
|
125
125
|
}).flat();
|
|
126
126
|
scheduleList = scheduleModule === null || scheduleModule === void 0 ? void 0 : scheduleModule.getScheduleListByIds(needScheduleIds);
|
|
@@ -210,7 +210,7 @@ export var SummaryModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
210
210
|
value: function getSurchargeforUtils(items) {
|
|
211
211
|
// const surchargeList = this.store.surchargeList;
|
|
212
212
|
var scheduleModule = this.core.getModule('appointmentBooking_schedule');
|
|
213
|
-
var needScheduleIds = this.store.surchargeList.map(function (item) {
|
|
213
|
+
var needScheduleIds = (this.store.surchargeList || []).map(function (item) {
|
|
214
214
|
return item.available_schedule_ids;
|
|
215
215
|
}).flat();
|
|
216
216
|
var scheduleList = scheduleModule === null || scheduleModule === void 0 ? void 0 : scheduleModule.getScheduleListByIds(needScheduleIds);
|
|
@@ -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 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 3 | 5 | 4 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -426,7 +426,7 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
426
426
|
// 可选,附加费均摊舍入金额
|
|
427
427
|
"surcharge_rounding_remainder": item.metadata.surcharge_rounding_remainder
|
|
428
428
|
},
|
|
429
|
-
product_bundle: item.product_bundle.map(function (bundle) {
|
|
429
|
+
product_bundle: (item.product_bundle || []).map(function (bundle) {
|
|
430
430
|
return {
|
|
431
431
|
is_price_include_tax: item.is_price_include_tax,
|
|
432
432
|
bundle_id: bundle.bundle_id,
|
|
@@ -135,7 +135,7 @@ var ScheduleModule = class extends import_BaseModule.BaseModule {
|
|
|
135
135
|
return dates;
|
|
136
136
|
}
|
|
137
137
|
getScheduleListByIds(ids) {
|
|
138
|
-
return this.store.scheduleList.filter((n) => ids.includes(n.id));
|
|
138
|
+
return (this.store.scheduleList || []).filter((n) => ids.includes(n.id));
|
|
139
139
|
}
|
|
140
140
|
setAvailabilityScheduleDateList(list) {
|
|
141
141
|
this.store.availabilityDateList = list;
|
|
@@ -77,7 +77,7 @@ var SummaryModule = class extends import_BaseModule.BaseModule {
|
|
|
77
77
|
var _a, _b, _c;
|
|
78
78
|
const shopInfo = ((_b = (_a = this.shopStore.get("core")) == null ? void 0 : _a.core) == null ? void 0 : _b.shop) || {};
|
|
79
79
|
const scheduleModule = this.core.getModule("appointmentBooking_schedule");
|
|
80
|
-
const needScheduleIds = this.store.surchargeList.map((item) => item.available_schedule_ids).flat();
|
|
80
|
+
const needScheduleIds = (this.store.surchargeList || []).map((item) => item.available_schedule_ids).flat();
|
|
81
81
|
const scheduleList = scheduleModule == null ? void 0 : scheduleModule.getScheduleListByIds(needScheduleIds);
|
|
82
82
|
const scheduleById = {};
|
|
83
83
|
if (Array.isArray(scheduleList)) {
|
|
@@ -120,7 +120,7 @@ var SummaryModule = class extends import_BaseModule.BaseModule {
|
|
|
120
120
|
}
|
|
121
121
|
getSurchargeforUtils(items) {
|
|
122
122
|
const scheduleModule = this.core.getModule("appointmentBooking_schedule");
|
|
123
|
-
const needScheduleIds = this.store.surchargeList.map((item) => item.available_schedule_ids).flat();
|
|
123
|
+
const needScheduleIds = (this.store.surchargeList || []).map((item) => item.available_schedule_ids).flat();
|
|
124
124
|
const scheduleList = scheduleModule == null ? void 0 : scheduleModule.getScheduleListByIds(needScheduleIds);
|
|
125
125
|
const scheduleById = {};
|
|
126
126
|
if (Array.isArray(scheduleList)) {
|
|
@@ -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 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 3 | 5 | 4 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -245,7 +245,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
|
|
|
245
245
|
// 可选,附加费均摊舍入金额
|
|
246
246
|
"surcharge_rounding_remainder": item.metadata.surcharge_rounding_remainder
|
|
247
247
|
},
|
|
248
|
-
product_bundle: item.product_bundle.map((bundle) => {
|
|
248
|
+
product_bundle: (item.product_bundle || []).map((bundle) => {
|
|
249
249
|
return {
|
|
250
250
|
is_price_include_tax: item.is_price_include_tax,
|
|
251
251
|
bundle_id: bundle.bundle_id,
|