@pisell/pisellos 2.3.43 → 2.3.45
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/Discount/index.d.ts +0 -1
- package/dist/modules/Discount/index.js +11 -40
- package/dist/modules/Discount/types.d.ts +0 -1
- package/dist/modules/OpenData/index.js +2 -2
- package/dist/modules/Order/index.d.ts +2 -3
- package/dist/modules/Order/index.js +98 -82
- package/dist/modules/Order/types.d.ts +2 -9
- package/dist/modules/Order/utils.d.ts +0 -10
- package/dist/modules/Order/utils.js +3 -35
- package/dist/modules/Payment/walletpass.d.ts +10 -3
- package/dist/modules/Payment/walletpass.js +425 -282
- package/dist/modules/Product/types.d.ts +0 -1
- package/dist/modules/ProductList/index.js +14 -33
- package/dist/modules/Quotation/index.d.ts +1 -1
- package/dist/modules/Quotation/index.js +2 -2
- package/dist/modules/Rules/index.d.ts +2 -0
- package/dist/modules/Rules/index.js +72 -102
- package/dist/modules/SalesSummary/index.js +13 -12
- package/dist/modules/ScanOrderLogger/index.d.ts +0 -2
- package/dist/modules/ScanOrderLogger/index.js +2 -15
- package/dist/modules/ScanOrderLogger/providers/feishu.js +27 -45
- package/dist/modules/ScanOrderLogger/types.d.ts +0 -1
- package/dist/modules/Schedule/index.d.ts +1 -3
- package/dist/modules/Schedule/index.js +16 -21
- package/dist/modules/Summary/utils.js +13 -38
- package/dist/modules/index.d.ts +0 -2
- package/dist/modules/index.js +1 -3
- package/dist/plugins/window.d.ts +0 -1
- package/dist/server/index.d.ts +0 -14
- package/dist/server/index.js +657 -772
- package/dist/solution/BaseSales/index.d.ts +0 -7
- package/dist/solution/BaseSales/index.js +48 -67
- package/dist/solution/BaseSales/types.d.ts +3 -1
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +6 -3
- package/dist/solution/BookingByStep/index.d.ts +1 -16
- package/dist/solution/BookingByStep/index.js +215 -294
- package/dist/solution/BookingByStep/types.d.ts +1 -2
- package/dist/solution/BookingByStep/types.js +1 -3
- package/dist/solution/BookingByStep/utils/capacity.js +1 -17
- package/dist/solution/BookingByStep/utils/timeslots.d.ts +1 -3
- package/dist/solution/BookingByStep/utils/timeslots.js +12 -19
- package/dist/solution/BookingTicket/index.d.ts +1 -13
- package/dist/solution/BookingTicket/index.js +8 -5
- package/dist/solution/BookingTicket/types.d.ts +1 -0
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +3 -3
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +1 -3
- package/dist/solution/BookingTicket/utils/scan/handleScan.js +2 -10
- package/dist/solution/ScanOrder/index.d.ts +14 -26
- package/dist/solution/ScanOrder/index.js +739 -1142
- package/dist/solution/ScanOrder/types.d.ts +1 -21
- package/dist/solution/ScanOrder/utils.d.ts +0 -8
- package/dist/solution/ScanOrder/utils.js +25 -66
- package/dist/solution/ShopDiscount/index.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.js +87 -125
- package/dist/solution/VenueBooking/index.d.ts +12 -39
- package/dist/solution/VenueBooking/index.js +841 -1167
- package/dist/solution/VenueBooking/types.d.ts +0 -3
- package/dist/solution/VenueBooking/utils/resource.js +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts +4 -4
- package/dist/solution/VenueBooking/utils/slotMerge.js +5 -10
- package/dist/solution/index.d.ts +0 -1
- package/dist/solution/index.js +1 -2
- package/dist/types/index.d.ts +0 -1
- package/lib/model/strategy/adapter/promotion/index.js +51 -0
- package/lib/modules/Discount/index.d.ts +0 -1
- package/lib/modules/Discount/index.js +0 -9
- package/lib/modules/Discount/types.d.ts +0 -1
- package/lib/modules/OpenData/index.js +1 -1
- package/lib/modules/Order/index.d.ts +2 -3
- package/lib/modules/Order/index.js +56 -33
- package/lib/modules/Order/types.d.ts +2 -9
- package/lib/modules/Order/utils.d.ts +0 -10
- package/lib/modules/Order/utils.js +5 -36
- package/lib/modules/Payment/walletpass.d.ts +10 -3
- package/lib/modules/Payment/walletpass.js +218 -56
- package/lib/modules/Product/types.d.ts +0 -1
- package/lib/modules/ProductList/index.js +31 -40
- package/lib/modules/Quotation/index.d.ts +1 -1
- package/lib/modules/Quotation/index.js +2 -2
- package/lib/modules/Rules/index.d.ts +2 -0
- package/lib/modules/Rules/index.js +24 -36
- package/lib/modules/SalesSummary/index.js +7 -6
- package/lib/modules/ScanOrderLogger/index.d.ts +0 -2
- package/lib/modules/ScanOrderLogger/index.js +1 -13
- package/lib/modules/ScanOrderLogger/providers/feishu.js +6 -15
- package/lib/modules/ScanOrderLogger/types.d.ts +0 -1
- package/lib/modules/Schedule/index.d.ts +1 -3
- package/lib/modules/Schedule/index.js +8 -10
- package/lib/modules/Summary/utils.js +1 -21
- package/lib/modules/index.d.ts +0 -2
- package/lib/modules/index.js +1 -5
- package/lib/plugins/window.d.ts +0 -1
- package/lib/server/index.d.ts +0 -14
- package/lib/server/index.js +5 -65
- package/lib/solution/BaseSales/index.d.ts +0 -7
- package/lib/solution/BaseSales/index.js +9 -24
- package/lib/solution/BaseSales/types.d.ts +3 -1
- package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +3 -2
- package/lib/solution/BookingByStep/index.d.ts +1 -16
- package/lib/solution/BookingByStep/index.js +18 -60
- package/lib/solution/BookingByStep/types.d.ts +1 -2
- package/lib/solution/BookingByStep/types.js +0 -5
- package/lib/solution/BookingByStep/utils/capacity.js +1 -20
- package/lib/solution/BookingByStep/utils/timeslots.d.ts +1 -3
- package/lib/solution/BookingByStep/utils/timeslots.js +11 -19
- package/lib/solution/BookingTicket/index.d.ts +1 -13
- package/lib/solution/BookingTicket/index.js +3 -10
- package/lib/solution/BookingTicket/types.d.ts +1 -0
- package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +2 -2
- package/lib/solution/BookingTicket/utils/scan/handleScan.d.ts +1 -3
- package/lib/solution/BookingTicket/utils/scan/handleScan.js +2 -2
- package/lib/solution/ScanOrder/index.d.ts +14 -26
- package/lib/solution/ScanOrder/index.js +182 -449
- package/lib/solution/ScanOrder/types.d.ts +1 -21
- package/lib/solution/ScanOrder/utils.d.ts +0 -8
- package/lib/solution/ScanOrder/utils.js +0 -31
- package/lib/solution/ShopDiscount/index.d.ts +0 -1
- package/lib/solution/ShopDiscount/index.js +0 -14
- package/lib/solution/VenueBooking/index.d.ts +12 -39
- package/lib/solution/VenueBooking/index.js +110 -322
- package/lib/solution/VenueBooking/types.d.ts +0 -3
- package/lib/solution/VenueBooking/utils/resource.js +0 -1
- package/lib/solution/VenueBooking/utils/slotMerge.d.ts +4 -4
- package/lib/solution/VenueBooking/utils/slotMerge.js +4 -6
- package/lib/solution/index.d.ts +0 -1
- package/lib/solution/index.js +1 -3
- package/lib/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/modules/Holder/index.d.ts +0 -48
- package/dist/modules/Holder/index.js +0 -640
- package/dist/modules/Holder/types.d.ts +0 -123
- package/dist/modules/Holder/types.js +0 -1
- package/dist/modules/Holder/utils.d.ts +0 -13
- package/dist/modules/Holder/utils.js +0 -34
- package/dist/modules/ResourcePlanner/index.d.ts +0 -24
- package/dist/modules/ResourcePlanner/index.js +0 -181
- package/dist/modules/ResourcePlanner/planner.d.ts +0 -14
- package/dist/modules/ResourcePlanner/planner.js +0 -1069
- package/dist/modules/ResourcePlanner/types.d.ts +0 -227
- package/dist/modules/ResourcePlanner/types.js +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts +0 -183
- package/dist/solution/UnifiedBookingSales/index.js +0 -1891
- package/dist/solution/UnifiedBookingSales/types.d.ts +0 -143
- package/dist/solution/UnifiedBookingSales/types.js +0 -11
- package/lib/modules/Holder/index.d.ts +0 -48
- package/lib/modules/Holder/index.js +0 -402
- package/lib/modules/Holder/types.d.ts +0 -123
- package/lib/modules/Holder/types.js +0 -17
- package/lib/modules/Holder/utils.d.ts +0 -13
- package/lib/modules/Holder/utils.js +0 -71
- package/lib/modules/ResourcePlanner/index.d.ts +0 -24
- package/lib/modules/ResourcePlanner/index.js +0 -148
- package/lib/modules/ResourcePlanner/planner.d.ts +0 -14
- package/lib/modules/ResourcePlanner/planner.js +0 -933
- package/lib/modules/ResourcePlanner/types.d.ts +0 -227
- package/lib/modules/ResourcePlanner/types.js +0 -17
- package/lib/solution/UnifiedBookingSales/index.d.ts +0 -183
- package/lib/solution/UnifiedBookingSales/index.js +0 -1084
- package/lib/solution/UnifiedBookingSales/types.d.ts +0 -143
- package/lib/solution/UnifiedBookingSales/types.js +0 -33
|
@@ -280,13 +280,6 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
|
|
|
280
280
|
confirmPendingVoucherPayments?: boolean;
|
|
281
281
|
enhancePayload?: SubmitPayloadEnhancer;
|
|
282
282
|
}): Promise<T>;
|
|
283
|
-
/**
|
|
284
|
-
* 默认保持 WebPOS 的本地待同步订单模式;需要云端确认后才算成功的渠道可覆盖此策略。
|
|
285
|
-
* otherParams.checkoutSyncTaskEnabled 优先,便于同一 solution 按入口恢复旧行为。
|
|
286
|
-
*/
|
|
287
|
-
protected shouldUseCheckoutSyncTask(): boolean;
|
|
288
|
-
/** 可由特定 solution 为真实 checkout 补充默认收据数据请求。 */
|
|
289
|
-
protected getDefaultCheckoutSmallTicketDataFlag(): number | undefined;
|
|
290
283
|
printLocalOrderReceipt<T = any>(lookup?: BaseSalesPrintLocalOrderReceiptParams): Promise<T>;
|
|
291
284
|
private getSubmitPaymentStatus;
|
|
292
285
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
@@ -1312,8 +1312,6 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1312
1312
|
value: function () {
|
|
1313
1313
|
var _initialize = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(core) {
|
|
1314
1314
|
var _this$otherParams4,
|
|
1315
|
-
_this$appPlugin2,
|
|
1316
|
-
_this$appPlugin2$getA,
|
|
1317
1315
|
_this9 = this,
|
|
1318
1316
|
_this$otherParams5;
|
|
1319
1317
|
var options,
|
|
@@ -1337,11 +1335,14 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1337
1335
|
|
|
1338
1336
|
// 获取 logger 实例
|
|
1339
1337
|
this.appPlugin = core.getPlugin('app');
|
|
1340
|
-
if (
|
|
1341
|
-
|
|
1338
|
+
if (this.appPlugin) {
|
|
1339
|
+
_context11.next = 12;
|
|
1340
|
+
break;
|
|
1342
1341
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1342
|
+
throw new Error('Checkout 解决方案需要 app 插件支持');
|
|
1343
|
+
case 12:
|
|
1344
|
+
app = this.appPlugin.getApp();
|
|
1345
|
+
this.logger = app.logger;
|
|
1345
1346
|
targetCacheData = this.readSessionCacheData();
|
|
1346
1347
|
moduleNames = this.getRegisteredModuleNames();
|
|
1347
1348
|
moduleNames.forEach(function (step) {
|
|
@@ -1366,21 +1367,21 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1366
1367
|
}));
|
|
1367
1368
|
});
|
|
1368
1369
|
if (!(this.store.schedule && !this.isScheduleListLoaded(this.store.schedule))) {
|
|
1369
|
-
_context11.next =
|
|
1370
|
+
_context11.next = 20;
|
|
1370
1371
|
break;
|
|
1371
1372
|
}
|
|
1372
|
-
_context11.next =
|
|
1373
|
+
_context11.next = 20;
|
|
1373
1374
|
return this.store.schedule.loadAllSchedule();
|
|
1374
|
-
case
|
|
1375
|
+
case 20:
|
|
1375
1376
|
if (this.store.order && typeof ((_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 ? void 0 : _this$otherParams5.enableTempOrderPersist) === 'boolean') {
|
|
1376
1377
|
this.store.order.setEnableTempOrderPersist(this.otherParams.enableTempOrderPersist);
|
|
1377
1378
|
}
|
|
1378
|
-
_context11.next =
|
|
1379
|
+
_context11.next = 23;
|
|
1379
1380
|
return this.getPaymentMethodsAsync();
|
|
1380
|
-
case
|
|
1381
|
+
case 23:
|
|
1381
1382
|
this.registerServerOrderChangeSync();
|
|
1382
1383
|
this.core.effects.emit("".concat(this.name, ":onInited"), {});
|
|
1383
|
-
case
|
|
1384
|
+
case 25:
|
|
1384
1385
|
case "end":
|
|
1385
1386
|
return _context11.stop();
|
|
1386
1387
|
}
|
|
@@ -2479,12 +2480,15 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2479
2480
|
tempOrder: tempOrder
|
|
2480
2481
|
});
|
|
2481
2482
|
case 13:
|
|
2482
|
-
return _context23.abrupt("return", {
|
|
2483
|
-
isAvailable: raw.isAvailable
|
|
2483
|
+
return _context23.abrupt("return", _objectSpread(_objectSpread({
|
|
2484
|
+
isAvailable: raw.isAvailable
|
|
2485
|
+
}, raw.isAccepted !== undefined ? {
|
|
2486
|
+
isAccepted: raw.isAccepted
|
|
2487
|
+
} : {}), {}, {
|
|
2484
2488
|
type: raw.type,
|
|
2485
2489
|
unavailableReason: raw.unavailableReason,
|
|
2486
2490
|
scannedDiscountList: raw.scannedDiscountList
|
|
2487
|
-
});
|
|
2491
|
+
}));
|
|
2488
2492
|
case 16:
|
|
2489
2493
|
_context23.prev = 16;
|
|
2490
2494
|
_context23.t0 = _context23["catch"](0);
|
|
@@ -2790,8 +2794,8 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2790
2794
|
key: "submitSalesOrder",
|
|
2791
2795
|
value: (function () {
|
|
2792
2796
|
var _submitSalesOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(params) {
|
|
2793
|
-
var
|
|
2794
|
-
var inferredPaymentStatus,
|
|
2797
|
+
var _this$otherParams6, _this$otherParams7, _this$otherParams8, _this$otherParams9;
|
|
2798
|
+
var inferredPaymentStatus, submitParams;
|
|
2795
2799
|
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
2796
2800
|
while (1) switch (_context27.prev = _context27.next) {
|
|
2797
2801
|
case 0:
|
|
@@ -2803,7 +2807,6 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2803
2807
|
case 2:
|
|
2804
2808
|
// this.store.order.persistTempOrder();
|
|
2805
2809
|
inferredPaymentStatus = this.getSubmitPaymentStatus(params === null || params === void 0 ? void 0 : params.paymentStatus);
|
|
2806
|
-
smallTicketDataFlag = (_params$smallTicketDa = params === null || params === void 0 ? void 0 : params.smallTicketDataFlag) !== null && _params$smallTicketDa !== void 0 ? _params$smallTicketDa : this.getDefaultCheckoutSmallTicketDataFlag();
|
|
2807
2810
|
submitParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
2808
2811
|
cacheId: this.cacheId,
|
|
2809
2812
|
platform: (_this$otherParams6 = this.otherParams) === null || _this$otherParams6 === void 0 ? void 0 : _this$otherParams6.platform,
|
|
@@ -2815,15 +2818,15 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2815
2818
|
payments: params.payments
|
|
2816
2819
|
} : {}), inferredPaymentStatus !== undefined ? {
|
|
2817
2820
|
paymentStatus: inferredPaymentStatus
|
|
2818
|
-
} : {}), smallTicketDataFlag !== undefined ? {
|
|
2819
|
-
smallTicketDataFlag: smallTicketDataFlag
|
|
2821
|
+
} : {}), (params === null || params === void 0 ? void 0 : params.smallTicketDataFlag) !== undefined ? {
|
|
2822
|
+
smallTicketDataFlag: params.smallTicketDataFlag
|
|
2820
2823
|
} : {}), (params === null || params === void 0 ? void 0 : params.confirmPendingVoucherPayments) !== undefined ? {
|
|
2821
2824
|
confirmPendingVoucherPayments: params.confirmPendingVoucherPayments
|
|
2822
2825
|
} : {}), (params === null || params === void 0 ? void 0 : params.enhancePayload) !== undefined ? {
|
|
2823
2826
|
enhancePayload: params.enhancePayload
|
|
2824
2827
|
} : {});
|
|
2825
|
-
return _context27.abrupt("return", this.
|
|
2826
|
-
case
|
|
2828
|
+
return _context27.abrupt("return", this.store.order.submitTempOrder(submitParams));
|
|
2829
|
+
case 5:
|
|
2827
2830
|
case "end":
|
|
2828
2831
|
return _context27.stop();
|
|
2829
2832
|
}
|
|
@@ -2872,8 +2875,8 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2872
2875
|
key: "submitTempOrderAsync",
|
|
2873
2876
|
value: function () {
|
|
2874
2877
|
var _submitTempOrderAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(params) {
|
|
2875
|
-
var
|
|
2876
|
-
var inferredPaymentStatus,
|
|
2878
|
+
var _this$otherParams14, _this$otherParams15, _this$otherParams16, _this$otherParams17;
|
|
2879
|
+
var inferredPaymentStatus, submitParams;
|
|
2877
2880
|
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
2878
2881
|
while (1) switch (_context29.prev = _context29.next) {
|
|
2879
2882
|
case 0:
|
|
@@ -2884,27 +2887,25 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2884
2887
|
throw new Error('BaseSales 解决方案需要 order 模块支持');
|
|
2885
2888
|
case 2:
|
|
2886
2889
|
inferredPaymentStatus = this.getSubmitPaymentStatus(params === null || params === void 0 ? void 0 : params.paymentStatus);
|
|
2887
|
-
smallTicketDataFlag = (_params$smallTicketDa2 = params === null || params === void 0 ? void 0 : params.smallTicketDataFlag) !== null && _params$smallTicketDa2 !== void 0 ? _params$smallTicketDa2 : this.getDefaultCheckoutSmallTicketDataFlag();
|
|
2888
2890
|
submitParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
2889
2891
|
cacheId: this.cacheId,
|
|
2890
2892
|
platform: (_this$otherParams14 = this.otherParams) === null || _this$otherParams14 === void 0 ? void 0 : _this$otherParams14.platform,
|
|
2891
2893
|
businessCode: ((_this$otherParams15 = this.otherParams) === null || _this$otherParams15 === void 0 ? void 0 : _this$otherParams15.businessCode) || ((_this$otherParams16 = this.otherParams) === null || _this$otherParams16 === void 0 ? void 0 : _this$otherParams16.business_code),
|
|
2892
2894
|
channel: this.getSubmitOrderSalesChannel(),
|
|
2893
|
-
type: (_this$otherParams17 = this.otherParams) === null || _this$otherParams17 === void 0 ? void 0 : _this$otherParams17.type
|
|
2894
|
-
request_unique_idempotency_token: this.store.order.generateIdempotencyToken()
|
|
2895
|
+
type: (_this$otherParams17 = this.otherParams) === null || _this$otherParams17 === void 0 ? void 0 : _this$otherParams17.type
|
|
2895
2896
|
}, (params === null || params === void 0 ? void 0 : params.payments) !== undefined ? {
|
|
2896
2897
|
payments: params.payments
|
|
2897
2898
|
} : {}), inferredPaymentStatus !== undefined ? {
|
|
2898
2899
|
paymentStatus: inferredPaymentStatus
|
|
2899
|
-
} : {}), smallTicketDataFlag !== undefined ? {
|
|
2900
|
-
smallTicketDataFlag: smallTicketDataFlag
|
|
2900
|
+
} : {}), (params === null || params === void 0 ? void 0 : params.smallTicketDataFlag) !== undefined ? {
|
|
2901
|
+
smallTicketDataFlag: params.smallTicketDataFlag
|
|
2901
2902
|
} : {}), (params === null || params === void 0 ? void 0 : params.confirmPendingVoucherPayments) !== undefined ? {
|
|
2902
2903
|
confirmPendingVoucherPayments: params.confirmPendingVoucherPayments
|
|
2903
2904
|
} : {}), (params === null || params === void 0 ? void 0 : params.enhancePayload) !== undefined ? {
|
|
2904
2905
|
enhancePayload: params.enhancePayload
|
|
2905
2906
|
} : {});
|
|
2906
2907
|
return _context29.abrupt("return", this.store.order.submitTempOrderAsync(submitParams));
|
|
2907
|
-
case
|
|
2908
|
+
case 5:
|
|
2908
2909
|
case "end":
|
|
2909
2910
|
return _context29.stop();
|
|
2910
2911
|
}
|
|
@@ -2915,29 +2916,11 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2915
2916
|
}
|
|
2916
2917
|
return submitTempOrderAsync;
|
|
2917
2918
|
}()
|
|
2918
|
-
/**
|
|
2919
|
-
* 默认保持 WebPOS 的本地待同步订单模式;需要云端确认后才算成功的渠道可覆盖此策略。
|
|
2920
|
-
* otherParams.checkoutSyncTaskEnabled 优先,便于同一 solution 按入口恢复旧行为。
|
|
2921
|
-
*/
|
|
2922
|
-
}, {
|
|
2923
|
-
key: "shouldUseCheckoutSyncTask",
|
|
2924
|
-
value: function shouldUseCheckoutSyncTask() {
|
|
2925
|
-
var _this$otherParams18;
|
|
2926
|
-
var configured = (_this$otherParams18 = this.otherParams) === null || _this$otherParams18 === void 0 ? void 0 : _this$otherParams18.checkoutSyncTaskEnabled;
|
|
2927
|
-
return typeof configured === 'boolean' ? configured : true;
|
|
2928
|
-
}
|
|
2929
|
-
|
|
2930
|
-
/** 可由特定 solution 为真实 checkout 补充默认收据数据请求。 */
|
|
2931
|
-
}, {
|
|
2932
|
-
key: "getDefaultCheckoutSmallTicketDataFlag",
|
|
2933
|
-
value: function getDefaultCheckoutSmallTicketDataFlag() {
|
|
2934
|
-
return undefined;
|
|
2935
|
-
}
|
|
2936
2919
|
}, {
|
|
2937
2920
|
key: "printLocalOrderReceipt",
|
|
2938
2921
|
value: function () {
|
|
2939
2922
|
var _printLocalOrderReceipt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(lookup) {
|
|
2940
|
-
var _this$
|
|
2923
|
+
var _this$otherParams18, _this$otherParams19, _this$otherParams20, _this$otherParams21;
|
|
2941
2924
|
var hasLookup, lookupPayload, context, payload, response, _this$store$order$app, _this$store$order5, _data;
|
|
2942
2925
|
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
2943
2926
|
while (1) switch (_context30.prev = _context30.next) {
|
|
@@ -2955,10 +2938,10 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
2955
2938
|
external_sale_number: lookup
|
|
2956
2939
|
};
|
|
2957
2940
|
context = {
|
|
2958
|
-
platform: (_this$
|
|
2959
|
-
businessCode: ((_this$
|
|
2941
|
+
platform: (_this$otherParams18 = this.otherParams) === null || _this$otherParams18 === void 0 ? void 0 : _this$otherParams18.platform,
|
|
2942
|
+
businessCode: ((_this$otherParams19 = this.otherParams) === null || _this$otherParams19 === void 0 ? void 0 : _this$otherParams19.businessCode) || ((_this$otherParams20 = this.otherParams) === null || _this$otherParams20 === void 0 ? void 0 : _this$otherParams20.business_code),
|
|
2960
2943
|
channel: this.getSubmitOrderSalesChannel(),
|
|
2961
|
-
type: (_this$
|
|
2944
|
+
type: (_this$otherParams21 = this.otherParams) === null || _this$otherParams21 === void 0 ? void 0 : _this$otherParams21.type
|
|
2962
2945
|
};
|
|
2963
2946
|
payload = hasLookup ? _objectSpread(_objectSpread({}, lookupPayload), {}, {
|
|
2964
2947
|
lookup_order_from_db: 1,
|
|
@@ -3017,7 +3000,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3017
3000
|
key: "syncPaymentsToOrder",
|
|
3018
3001
|
value: function () {
|
|
3019
3002
|
var _syncPaymentsToOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(params) {
|
|
3020
|
-
var _ref29, _params$businessCode, _this$
|
|
3003
|
+
var _ref29, _params$businessCode, _this$otherParams22, _this$otherParams23, _params$channel2;
|
|
3021
3004
|
var businessCode, channel, syncParams, syncState, payments, syncResult, latestPayments, amountSnapshot, orderSnapshot, syncPayload;
|
|
3022
3005
|
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
3023
3006
|
while (1) switch (_context31.prev = _context31.next) {
|
|
@@ -3028,11 +3011,9 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3028
3011
|
}
|
|
3029
3012
|
throw new Error('order 模块未初始化');
|
|
3030
3013
|
case 2:
|
|
3031
|
-
businessCode = (_ref29 = (_params$businessCode = params.businessCode) !== null && _params$businessCode !== void 0 ? _params$businessCode : (_this$
|
|
3014
|
+
businessCode = (_ref29 = (_params$businessCode = params.businessCode) !== null && _params$businessCode !== void 0 ? _params$businessCode : (_this$otherParams22 = this.otherParams) === null || _this$otherParams22 === void 0 ? void 0 : _this$otherParams22.businessCode) !== null && _ref29 !== void 0 ? _ref29 : (_this$otherParams23 = this.otherParams) === null || _this$otherParams23 === void 0 ? void 0 : _this$otherParams23.business_code;
|
|
3032
3015
|
channel = (_params$channel2 = params.channel) !== null && _params$channel2 !== void 0 ? _params$channel2 : this.getSubmitOrderSalesChannel();
|
|
3033
|
-
syncParams = _objectSpread(_objectSpread(_objectSpread({}, params),
|
|
3034
|
-
checkoutSyncTaskEnabled: this.shouldUseCheckoutSyncTask()
|
|
3035
|
-
}, businessCode !== undefined ? {
|
|
3016
|
+
syncParams = _objectSpread(_objectSpread(_objectSpread({}, params), businessCode !== undefined ? {
|
|
3036
3017
|
businessCode: businessCode
|
|
3037
3018
|
} : {}), channel !== undefined ? {
|
|
3038
3019
|
channel: channel
|
|
@@ -3287,7 +3268,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3287
3268
|
}, {
|
|
3288
3269
|
key: "addOrderPaymentWithDevicePrefix",
|
|
3289
3270
|
value: function addOrderPaymentWithDevicePrefix(payment, devicePrefix) {
|
|
3290
|
-
var _this$
|
|
3271
|
+
var _this$otherParams24,
|
|
3291
3272
|
_paymentRecord$paymen,
|
|
3292
3273
|
_paymentRecord$create,
|
|
3293
3274
|
_ref30,
|
|
@@ -3303,7 +3284,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3303
3284
|
return this.store.order.getOrderPayments();
|
|
3304
3285
|
}
|
|
3305
3286
|
var metadata = paymentRecord.metadata && _typeof(paymentRecord.metadata) === 'object' ? _objectSpread({}, paymentRecord.metadata) : {};
|
|
3306
|
-
var shopWalletPassId = (_this$
|
|
3287
|
+
var shopWalletPassId = (_this$otherParams24 = this.otherParams) === null || _this$otherParams24 === void 0 ? void 0 : _this$otherParams24.shop_wallet_pass_id;
|
|
3307
3288
|
if (shopWalletPassId !== undefined && shopWalletPassId !== null) {
|
|
3308
3289
|
metadata.shop_wallet_pass_id = shopWalletPassId;
|
|
3309
3290
|
}
|
|
@@ -4159,7 +4140,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4159
4140
|
key: "getCashPaymentConfig",
|
|
4160
4141
|
value: (function () {
|
|
4161
4142
|
var _getCashPaymentConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45() {
|
|
4162
|
-
var _this$store$order11, _this$store$order11$g, _this$store$order12, _this$store$order12$g, _this$
|
|
4143
|
+
var _this$store$order11, _this$store$order11$g, _this$store$order12, _this$store$order12$g, _this$otherParams25;
|
|
4163
4144
|
var paymentMethods, paymentMethod, amountSnapshot, pendingWalletAmount, amountDue, currency, recommendedAmounts;
|
|
4164
4145
|
return _regeneratorRuntime().wrap(function _callee45$(_context45) {
|
|
4165
4146
|
while (1) switch (_context45.prev = _context45.next) {
|
|
@@ -4185,7 +4166,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4185
4166
|
amountSnapshot = (_this$store$order11 = this.store.order) === null || _this$store$order11 === void 0 || (_this$store$order11$g = _this$store$order11.getOrderAmountSnapshot) === null || _this$store$order11$g === void 0 ? void 0 : _this$store$order11$g.call(_this$store$order11);
|
|
4186
4167
|
pendingWalletAmount = this.getPendingWalletPaymentAmount();
|
|
4187
4168
|
amountDue = Decimal.max(new Decimal((amountSnapshot === null || amountSnapshot === void 0 ? void 0 : amountSnapshot.amountGap) || 0).minus(pendingWalletAmount), 0).toDecimalPlaces(2).toNumber();
|
|
4188
|
-
currency = ((_this$store$order12 = this.store.order) === null || _this$store$order12 === void 0 || (_this$store$order12$g = _this$store$order12.getTempOrder) === null || _this$store$order12$g === void 0 || (_this$store$order12$g = _this$store$order12$g.call(_this$store$order12)) === null || _this$store$order12$g === void 0 ? void 0 : _this$store$order12$g.currency_code) || ((_this$
|
|
4169
|
+
currency = ((_this$store$order12 = this.store.order) === null || _this$store$order12 === void 0 || (_this$store$order12$g = _this$store$order12.getTempOrder) === null || _this$store$order12$g === void 0 || (_this$store$order12$g = _this$store$order12$g.call(_this$store$order12)) === null || _this$store$order12$g === void 0 ? void 0 : _this$store$order12$g.currency_code) || ((_this$otherParams25 = this.otherParams) === null || _this$otherParams25 === void 0 ? void 0 : _this$otherParams25.currency) || 'USD';
|
|
4189
4170
|
recommendedAmounts = amountDue > 0 ? this.store.payment.cash.getRecommendedAmount(amountDue, currency) : [];
|
|
4190
4171
|
return _context45.abrupt("return", {
|
|
4191
4172
|
available: Boolean(paymentMethod && amountDue > 0),
|
|
@@ -4320,7 +4301,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4320
4301
|
key: "payCash",
|
|
4321
4302
|
value: (function () {
|
|
4322
4303
|
var _payCash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(params) {
|
|
4323
|
-
var _this$store$order$get6, _params$actualPaidAmo, _this$
|
|
4304
|
+
var _this$store$order$get6, _params$actualPaidAmo, _this$otherParams26, _this$window, _this$window$postMess;
|
|
4324
4305
|
var amount, config, paymentMethod, roundingAmount, effectivePaymentAmount, beforePayments, beforePaymentStatus, uniquePaymentNumber, paymentTimestamp, actualPaidAmount, changeAmount, shopWalletPassId, payments, payment, syncResult, committed, walletState, restoredTempOrder;
|
|
4325
4306
|
return _regeneratorRuntime().wrap(function _callee47$(_context47) {
|
|
4326
4307
|
while (1) switch (_context47.prev = _context47.next) {
|
|
@@ -4369,7 +4350,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4369
4350
|
paymentTimestamp = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
4370
4351
|
actualPaidAmount = Number((_params$actualPaidAmo = params.actualPaidAmount) !== null && _params$actualPaidAmo !== void 0 ? _params$actualPaidAmo : amount);
|
|
4371
4352
|
changeAmount = Number(params.changeAmount || 0);
|
|
4372
|
-
shopWalletPassId = (_this$
|
|
4353
|
+
shopWalletPassId = (_this$otherParams26 = this.otherParams) === null || _this$otherParams26 === void 0 ? void 0 : _this$otherParams26.shop_wallet_pass_id;
|
|
4373
4354
|
if (!(!Number.isFinite(actualPaidAmount) || actualPaidAmount + 0.01 < amount)) {
|
|
4374
4355
|
_context47.next = 26;
|
|
4375
4356
|
break;
|
|
@@ -5272,13 +5253,13 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5272
5253
|
key: "getProductList",
|
|
5273
5254
|
value: function () {
|
|
5274
5255
|
var _getProductList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee62() {
|
|
5275
|
-
var _this$
|
|
5256
|
+
var _this$otherParams27;
|
|
5276
5257
|
var menu_list_ids, _this$store$products, res;
|
|
5277
5258
|
return _regeneratorRuntime().wrap(function _callee62$(_context62) {
|
|
5278
5259
|
while (1) switch (_context62.prev = _context62.next) {
|
|
5279
5260
|
case 0:
|
|
5280
5261
|
// 可以直接通过配置里的 menu 读取
|
|
5281
|
-
menu_list_ids = ((_this$
|
|
5262
|
+
menu_list_ids = ((_this$otherParams27 = this.otherParams) === null || _this$otherParams27 === void 0 || (_this$otherParams27 = _this$otherParams27.dineInConfig) === null || _this$otherParams27 === void 0 ? void 0 : _this$otherParams27['menu.associated_menus'].map(function (n) {
|
|
5282
5263
|
return Number(n.value);
|
|
5283
5264
|
})) || [];
|
|
5284
5265
|
_context62.prev = 1;
|
|
@@ -5316,7 +5297,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5316
5297
|
key: "setOtherParams",
|
|
5317
5298
|
value: function () {
|
|
5318
5299
|
var _setOtherParams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee63(params) {
|
|
5319
|
-
var _this$
|
|
5300
|
+
var _this$otherParams28;
|
|
5320
5301
|
var _ref39,
|
|
5321
5302
|
_ref39$cover,
|
|
5322
5303
|
cover,
|
|
@@ -5330,7 +5311,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5330
5311
|
} else {
|
|
5331
5312
|
this.otherParams = _objectSpread(_objectSpread({}, this.otherParams), params);
|
|
5332
5313
|
}
|
|
5333
|
-
this.cacheId = (_this$
|
|
5314
|
+
this.cacheId = (_this$otherParams28 = this.otherParams) === null || _this$otherParams28 === void 0 ? void 0 : _this$otherParams28.cacheId;
|
|
5334
5315
|
_context63.next = 5;
|
|
5335
5316
|
return this.syncOtherParamsToSubModules(params, {
|
|
5336
5317
|
cover: cover
|
|
@@ -439,8 +439,10 @@ export interface BaseSalesAddLogParams extends BaseSalesLogInput {
|
|
|
439
439
|
/** BaseSales.scanPromotionCode 对外的轻量结果(UI 可用 getDiscountList 或 scannedDiscountList 补 Holder) */
|
|
440
440
|
export interface BaseSalesScanCodeResult {
|
|
441
441
|
isAvailable: boolean;
|
|
442
|
+
/** 卡券已加入 Promotion;false 时可能是无效、过期或已使用。 */
|
|
443
|
+
isAccepted?: boolean;
|
|
442
444
|
type?: 'server' | string;
|
|
443
445
|
unavailableReason?: 'time_limit' | string;
|
|
444
|
-
/** batchSearch 原始结果;
|
|
446
|
+
/** batchSearch 原始结果;Holder 补全等流程可从这里读取原始卡券。 */
|
|
445
447
|
scannedDiscountList?: Discount[];
|
|
446
448
|
}
|
|
@@ -104,7 +104,7 @@ function findVariantById(origin, variantId) {
|
|
|
104
104
|
* 注意:这里不生成 identity,缺省时由 OrderModule 自动补齐。
|
|
105
105
|
*/
|
|
106
106
|
export function transformBaseProductToOrderProduct(params) {
|
|
107
|
-
var _ref10, _ref11, _ref12, _payload$product_id, _ref13, _ref14, _payload$product_vari, _payload$_origin, _payload$_origin2, _ref15, _findVariantById, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _payload$price, _ref23, _payload$line_total, _payload$_extend, _ref24, _ref25, _payload$product_sku$, _payload$product_sku, _payload$bundle, _payload$quantity, _payload$_extend2, _extend, _extend2, _ref26, _ref27, _origin$base_price, _ref28, _ref29, _payload$line_total2, _payload$_extend3, _payload$_extend4, _extend3, _payload$_extend5, _payload$_extend6, _ref30, _ref31, _payload$tax_fee, _ref32, _ref33, _payload$is_charge_ta;
|
|
107
|
+
var _ref10, _ref11, _ref12, _payload$product_id, _ref13, _ref14, _payload$product_vari, _payload$_origin, _payload$_origin2, _ref15, _findVariantById, _ref16, _ref17, _ref18, _ref19, _ref20, _matchedVariant$price, _ref21, _ref22, _payload$price, _ref23, _payload$line_total, _payload$_extend, _ref24, _ref25, _payload$product_sku$, _payload$product_sku, _payload$bundle, _payload$quantity, _payload$_extend2, _extend, _extend2, _ref26, _ref27, _origin$base_price, _ref28, _ref29, _payload$line_total2, _payload$_extend3, _payload$_extend4, _extend3, _payload$_extend5, _payload$_extend6, _ref30, _ref31, _payload$tax_fee, _ref32, _ref33, _payload$is_charge_ta;
|
|
108
108
|
var payload = params.payload,
|
|
109
109
|
_params$fallbackProdu = params.fallbackProductId,
|
|
110
110
|
fallbackProductId = _params$fallbackProdu === void 0 ? null : _params$fallbackProdu;
|
|
@@ -116,11 +116,14 @@ export function transformBaseProductToOrderProduct(params) {
|
|
|
116
116
|
var callbackOrigin = payload.origin || ((_payload$_origin = payload._origin) === null || _payload$_origin === void 0 ? void 0 : _payload$_origin.sourceProduct) || ((_payload$_origin2 = payload._origin) === null || _payload$_origin2 === void 0 ? void 0 : _payload$_origin2.sourceItem) || payload._origin || {};
|
|
117
117
|
var origin = _objectSpread(_objectSpread({}, sourceProduct || {}), callbackOrigin || {});
|
|
118
118
|
var matchedVariant = (_ref15 = (_findVariantById = findVariantById(callbackOrigin, productVariantId)) !== null && _findVariantById !== void 0 ? _findVariantById : findVariantById(sourceProduct, productVariantId)) !== null && _ref15 !== void 0 ? _ref15 : findVariantById(origin, productVariantId);
|
|
119
|
-
var
|
|
119
|
+
var hasPriceOverride = payload.price_override !== undefined && payload.price_override !== null && payload.price_override !== '';
|
|
120
|
+
// 手动改价后 payload.price 是分摊后的主商品售价,不能再作为券前 source。
|
|
121
|
+
// 此时优先从商品/variant 快照读取目录价;售价仍由 line_total - bundle 推导。
|
|
122
|
+
var catalogSourcePrice = (_ref16 = (_ref17 = (_ref18 = (_ref19 = (_ref20 = (_matchedVariant$price = matchedVariant === null || matchedVariant === void 0 ? void 0 : matchedVariant.price) !== null && _matchedVariant$price !== void 0 ? _matchedVariant$price : matchedVariant === null || matchedVariant === void 0 ? void 0 : matchedVariant.base_price) !== null && _ref20 !== void 0 ? _ref20 : origin === null || origin === void 0 ? void 0 : origin.price) !== null && _ref19 !== void 0 ? _ref19 : origin === null || origin === void 0 ? void 0 : origin.base_price) !== null && _ref18 !== void 0 ? _ref18 : sourceProduct === null || sourceProduct === void 0 ? void 0 : sourceProduct.price) !== null && _ref17 !== void 0 ? _ref17 : sourceProduct === null || sourceProduct === void 0 ? void 0 : sourceProduct.selling_price) !== null && _ref16 !== void 0 ? _ref16 : sourceProduct === null || sourceProduct === void 0 ? void 0 : sourceProduct.base_price;
|
|
123
|
+
var sourceProductPrice = toPriceString(hasPriceOverride ? (_ref21 = catalogSourcePrice !== null && catalogSourcePrice !== void 0 ? catalogSourcePrice : payload.price) !== null && _ref21 !== void 0 ? _ref21 : payload.selling_price : (_ref22 = (_payload$price = payload.price) !== null && _payload$price !== void 0 ? _payload$price : payload.selling_price) !== null && _ref22 !== void 0 ? _ref22 : catalogSourcePrice, '0.00');
|
|
120
124
|
var explicitLineTotal = (_ref23 = (_payload$line_total = payload.line_total) !== null && _payload$line_total !== void 0 ? _payload$line_total : payload.total) !== null && _ref23 !== void 0 ? _ref23 : (_payload$_extend = payload._extend) === null || _payload$_extend === void 0 ? void 0 : _payload$_extend.total;
|
|
121
125
|
var hasExplicitLineTotal = Number.isFinite(Number(explicitLineTotal));
|
|
122
126
|
var lineCompositeTotal = toPriceString(explicitLineTotal, sourceProductPrice);
|
|
123
|
-
var hasPriceOverride = payload.price_override !== undefined && payload.price_override !== null && payload.price_override !== '';
|
|
124
127
|
var productOptionItem = normalizeProductSkuOptions(normalizeOptionItems((_ref24 = (_ref25 = (_payload$product_sku$ = (_payload$product_sku = payload.product_sku) === null || _payload$product_sku === void 0 ? void 0 : _payload$product_sku.option) !== null && _payload$product_sku$ !== void 0 ? _payload$product_sku$ : payload.option) !== null && _ref25 !== void 0 ? _ref25 : payload.options) !== null && _ref24 !== void 0 ? _ref24 : payload.product_option_item));
|
|
125
128
|
var productBundle = normalizeBundleItems((_payload$bundle = payload.bundle) !== null && _payload$bundle !== void 0 ? _payload$bundle : payload.product_bundle, hasPriceOverride);
|
|
126
129
|
// `payload.unique` 是业务侧商品/票务标识,可能在连续加同一商品时重复;
|
|
@@ -10,7 +10,6 @@ import { ITime } from '../../modules/Date/types';
|
|
|
10
10
|
import dayjs from 'dayjs';
|
|
11
11
|
import { LoadScheduleAvailableDateParams } from '../../modules/Schedule/types';
|
|
12
12
|
import { IHolder, IFetchHolderAccountsParams } from '../../modules/AccountList/types';
|
|
13
|
-
import { IAppendFormRecordParams } from '../../modules/Holder/types';
|
|
14
13
|
export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
15
14
|
protected defaultName: string;
|
|
16
15
|
protected defaultVersion: string;
|
|
@@ -127,20 +126,6 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
127
126
|
* @param params
|
|
128
127
|
*/
|
|
129
128
|
fetchHolderAccountsAsync(params: IFetchHolderAccountsParams): Promise<void>;
|
|
130
|
-
/**
|
|
131
|
-
* 获取 holder 表单 map
|
|
132
|
-
*/
|
|
133
|
-
getHolderFormMap(): import("../../modules").HolderFormMap;
|
|
134
|
-
/**
|
|
135
|
-
* 登录后或外部触发时,按当前 holderMap 批量刷新所有表单的 records
|
|
136
|
-
*/
|
|
137
|
-
refreshAllHolderFormRecords(params?: {
|
|
138
|
-
customer_id?: number;
|
|
139
|
-
}): Promise<import("../../modules").HolderFormMap>;
|
|
140
|
-
/**
|
|
141
|
-
* 添加表单记录
|
|
142
|
-
*/
|
|
143
|
-
appendFormRecord(params: IAppendFormRecordParams): import("../../modules").IFormRecord;
|
|
144
129
|
setDateRange(dateRange: ITime[]): Promise<void>;
|
|
145
130
|
clearDateRange(): void;
|
|
146
131
|
getDateRange(): Promise<ITime[]>;
|
|
@@ -317,7 +302,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
317
302
|
autoSelectAllProductResources(resources_code: string, timeSlots?: TimeSliceItem): {
|
|
318
303
|
errorList: any[];
|
|
319
304
|
};
|
|
320
|
-
getTimeSlotByAllResources(resources_code: string
|
|
305
|
+
getTimeSlotByAllResources(resources_code: string): any[];
|
|
321
306
|
getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
|
|
322
307
|
resources_code: string;
|
|
323
308
|
startDate: string;
|