@pisell/pisellos 2.3.105 → 2.3.107
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.js +4 -1
- package/dist/modules/Discount/types.d.ts +10 -0
- package/dist/modules/OpenData/index.d.ts +15 -2
- package/dist/modules/OpenData/index.js +307 -19
- package/dist/modules/OpenData/types.d.ts +55 -0
- package/dist/modules/OpenData/types.js +7 -1
- package/dist/modules/OpenData/utils.d.ts +21 -1
- package/dist/modules/OpenData/utils.js +138 -0
- package/dist/modules/Order/index.d.ts +3 -1
- package/dist/modules/Order/index.js +89 -16
- package/dist/modules/Order/types.d.ts +13 -0
- package/dist/modules/Order/utils.d.ts +4 -1
- package/dist/modules/Order/utils.js +57 -3
- package/dist/modules/ResourcePlanner/planner.d.ts +2 -2
- package/dist/modules/ResourcePlanner/planner.js +172 -49
- package/dist/modules/ResourcePlanner/types.d.ts +19 -0
- package/dist/modules/Rules/index.js +1 -1
- package/dist/plugins/request.d.ts +2 -1
- package/dist/plugins/request.js +4 -2
- package/dist/server/index.d.ts +15 -0
- package/dist/server/index.js +1734 -1285
- package/dist/server/modules/order/types.d.ts +50 -0
- package/dist/server/modules/order/types.js +2 -0
- package/dist/server/utils/small-ticket.d.ts +4 -1
- package/dist/server/utils/small-ticket.js +461 -96
- package/dist/solution/BaseSales/index.d.ts +5 -1
- package/dist/solution/BaseSales/index.js +120 -45
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts +2 -0
- package/dist/solution/BaseSales/utils/parseSalesResponse.js +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +8 -3
- package/dist/solution/BookingTicket/index.js +558 -443
- package/dist/solution/Sales/index.d.ts +16 -1
- package/dist/solution/Sales/index.js +338 -63
- package/dist/solution/Sales/types.d.ts +10 -0
- package/dist/solution/UnifiedBookingSales/index.d.ts +5 -4
- package/dist/solution/UnifiedBookingSales/index.js +614 -462
- package/dist/solution/UnifiedBookingSales/types.d.ts +7 -1
- package/lib/model/strategy/adapter/promotion/index.js +1 -46
- package/lib/modules/Discount/index.js +4 -1
- package/lib/modules/Discount/types.d.ts +10 -0
- package/lib/modules/OpenData/index.d.ts +15 -2
- package/lib/modules/OpenData/index.js +230 -3
- package/lib/modules/OpenData/types.d.ts +55 -0
- package/lib/modules/OpenData/types.js +9 -1
- package/lib/modules/OpenData/utils.d.ts +21 -1
- package/lib/modules/OpenData/utils.js +126 -0
- package/lib/modules/Order/index.d.ts +3 -1
- package/lib/modules/Order/index.js +69 -1
- package/lib/modules/Order/types.d.ts +13 -0
- package/lib/modules/Order/utils.d.ts +4 -1
- package/lib/modules/Order/utils.js +58 -1
- package/lib/modules/ResourcePlanner/planner.d.ts +2 -2
- package/lib/modules/ResourcePlanner/planner.js +141 -35
- package/lib/modules/ResourcePlanner/types.d.ts +19 -0
- package/lib/modules/Rules/index.js +1 -1
- package/lib/plugins/request.d.ts +2 -1
- package/lib/plugins/request.js +3 -2
- package/lib/server/index.d.ts +15 -0
- package/lib/server/index.js +455 -105
- package/lib/server/modules/order/types.d.ts +50 -0
- package/lib/server/modules/order/types.js +1 -0
- package/lib/server/utils/small-ticket.d.ts +4 -1
- package/lib/server/utils/small-ticket.js +427 -72
- package/lib/solution/BaseSales/index.d.ts +5 -1
- package/lib/solution/BaseSales/index.js +84 -7
- package/lib/solution/BaseSales/utils/parseSalesResponse.d.ts +2 -0
- package/lib/solution/BaseSales/utils/parseSalesResponse.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +8 -3
- package/lib/solution/BookingTicket/index.js +60 -15
- package/lib/solution/Sales/index.d.ts +16 -1
- package/lib/solution/Sales/index.js +168 -1
- package/lib/solution/Sales/types.d.ts +10 -0
- package/lib/solution/UnifiedBookingSales/index.d.ts +5 -4
- package/lib/solution/UnifiedBookingSales/index.js +128 -35
- package/lib/solution/UnifiedBookingSales/types.d.ts +7 -1
- package/package.json +1 -1
|
@@ -151,9 +151,13 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
|
|
|
151
151
|
private getAuthoritativeBundleUnitPrice;
|
|
152
152
|
private mergeProductForPriceQuery;
|
|
153
153
|
protected getSubmitOrderSalesChannel(): string | undefined;
|
|
154
|
+
/** Subclasses with target-scoped OpenData override this guard before reusing the cache. */
|
|
155
|
+
protected isInvoiceOpenDataCacheCurrent(): boolean;
|
|
154
156
|
private getFulfillmentRefModeConfigs;
|
|
155
157
|
private getFulfillmentRefMode;
|
|
156
|
-
private
|
|
158
|
+
private getCachedInvoiceLayoutConfig;
|
|
159
|
+
private getCachedInvoiceTemplateSettings;
|
|
160
|
+
private buildSubmitPayloadEnhancerWithOpenDataConfig;
|
|
157
161
|
/**
|
|
158
162
|
* 工厂入口:根据子模块名实例化对应模块。
|
|
159
163
|
* 默认使用 BookingByStep 公共 `createModule`。子类若需引入额外类型(如 customer),
|
|
@@ -50,6 +50,8 @@ import { transformBaseProductToOrderProduct as _transformBaseProductToOrderProdu
|
|
|
50
50
|
import { calculateBaseSalesProductBookingPrice } from "./utils/quotationPrice";
|
|
51
51
|
var SERVER_ORDER_CHANGED_EVENT = 'order:onOrdersChanged';
|
|
52
52
|
var OS_FULFILLMENT_REF_MODE_FIELD = '_os_fulfillment_ref_mode';
|
|
53
|
+
var OS_INVOICE_LAYOUT_CONFIG_FIELD = '_os_invoice_layout_config';
|
|
54
|
+
var OS_INVOICE_TEMPLATE_SETTINGS_FIELD = '_os_invoice_template_settings';
|
|
53
55
|
var WALLET_PAYMENT_CODE_BY_TAG = {
|
|
54
56
|
product_voucher: 'PRODUCTVOUCHER',
|
|
55
57
|
gift_card: 'GIFTCARD',
|
|
@@ -293,6 +295,24 @@ function normalizeBaseSalesRecordCollections(sourceRecord, options) {
|
|
|
293
295
|
}
|
|
294
296
|
return normalizedRecord;
|
|
295
297
|
}
|
|
298
|
+
function isValidBaseSalesSmallTicketDataSnapshot(value) {
|
|
299
|
+
if (!value || _typeof(value) !== 'object' || Array.isArray(value)) return false;
|
|
300
|
+
var localeSnapshots = Object.values(value);
|
|
301
|
+
return localeSnapshots.length > 0 && localeSnapshots.some(function (localeSnapshot) {
|
|
302
|
+
return localeSnapshot !== null && _typeof(localeSnapshot) === 'object' && !Array.isArray(localeSnapshot);
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
function mergeBaseSalesSmallTicketDataSnapshot(currentValue, loadedValue) {
|
|
306
|
+
if (isValidBaseSalesSmallTicketDataSnapshot(loadedValue)) {
|
|
307
|
+
return cloneDeep(loadedValue);
|
|
308
|
+
}
|
|
309
|
+
if (isValidBaseSalesSmallTicketDataSnapshot(currentValue)) {
|
|
310
|
+
return cloneDeep(currentValue);
|
|
311
|
+
}
|
|
312
|
+
if (loadedValue !== undefined) return cloneDeep(loadedValue);
|
|
313
|
+
if (currentValue !== undefined) return cloneDeep(currentValue);
|
|
314
|
+
return undefined;
|
|
315
|
+
}
|
|
296
316
|
function getBaseSalesMetadataUid(item, metadataKey) {
|
|
297
317
|
var _item$metadata$metada, _item$metadata;
|
|
298
318
|
var uid = (_item$metadata$metada = item === null || item === void 0 || (_item$metadata = item.metadata) === null || _item$metadata === void 0 ? void 0 : _item$metadata[metadataKey]) !== null && _item$metadata$metada !== void 0 ? _item$metadata$metada : item === null || item === void 0 ? void 0 : item[metadataKey];
|
|
@@ -398,6 +418,11 @@ function mergeSalesDetailRecordWithTempOrder(currentTempOrder, loadedRecord, str
|
|
|
398
418
|
}
|
|
399
419
|
if (Array.isArray(loadedValue)) return cloneDeep(loadedValue);
|
|
400
420
|
}
|
|
421
|
+
// small_ticket_data 是由 Server 一次性生成的完整展示快照,不能递归进入
|
|
422
|
+
// locale 内部继续套用订单集合或普通数组的合并规则。
|
|
423
|
+
if (key === 'small_ticket_data') {
|
|
424
|
+
return mergeBaseSalesSmallTicketDataSnapshot(currentValue, loadedValue);
|
|
425
|
+
}
|
|
401
426
|
var collectionKind = getBaseSalesOrderCollectionKind(key);
|
|
402
427
|
if (collectionKind && Array.isArray(loadedValue)) {
|
|
403
428
|
return mergeBaseSalesOrderCollection(collectionKind, Array.isArray(currentValue) ? currentValue : [], loadedValue, strategy, uidRemaps);
|
|
@@ -1539,6 +1564,13 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1539
1564
|
var _this$otherParams8;
|
|
1540
1565
|
return (_this$otherParams8 = this.otherParams) === null || _this$otherParams8 === void 0 ? void 0 : _this$otherParams8.channel;
|
|
1541
1566
|
}
|
|
1567
|
+
|
|
1568
|
+
/** Subclasses with target-scoped OpenData override this guard before reusing the cache. */
|
|
1569
|
+
}, {
|
|
1570
|
+
key: "isInvoiceOpenDataCacheCurrent",
|
|
1571
|
+
value: function isInvoiceOpenDataCacheCurrent() {
|
|
1572
|
+
return true;
|
|
1573
|
+
}
|
|
1542
1574
|
}, {
|
|
1543
1575
|
key: "getFulfillmentRefModeConfigs",
|
|
1544
1576
|
value: function getFulfillmentRefModeConfigs() {
|
|
@@ -1569,13 +1601,49 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1569
1601
|
return undefined;
|
|
1570
1602
|
}
|
|
1571
1603
|
}, {
|
|
1572
|
-
key: "
|
|
1573
|
-
value: function
|
|
1604
|
+
key: "getCachedInvoiceLayoutConfig",
|
|
1605
|
+
value: function getCachedInvoiceLayoutConfig() {
|
|
1606
|
+
var _this$store2;
|
|
1607
|
+
var openDataModule = (_this$store2 = this.store) === null || _this$store2 === void 0 ? void 0 : _this$store2.openData;
|
|
1608
|
+
if (typeof (openDataModule === null || openDataModule === void 0 ? void 0 : openDataModule.getInvoiceLayoutConfig) !== 'function') return undefined;
|
|
1609
|
+
if (!this.isInvoiceOpenDataCacheCurrent()) return undefined;
|
|
1610
|
+
try {
|
|
1611
|
+
return openDataModule.getInvoiceLayoutConfig();
|
|
1612
|
+
} catch (error) {
|
|
1613
|
+
this.logWarning('读取 Invoice OpenData 布局失败,提交时不注入布局配置', {
|
|
1614
|
+
error: error instanceof Error ? error.message : String(error)
|
|
1615
|
+
});
|
|
1616
|
+
return undefined;
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
}, {
|
|
1620
|
+
key: "getCachedInvoiceTemplateSettings",
|
|
1621
|
+
value: function getCachedInvoiceTemplateSettings() {
|
|
1622
|
+
var _this$store3;
|
|
1623
|
+
var openDataModule = (_this$store3 = this.store) === null || _this$store3 === void 0 ? void 0 : _this$store3.openData;
|
|
1624
|
+
if (typeof (openDataModule === null || openDataModule === void 0 ? void 0 : openDataModule.getInvoiceTemplateSettings) !== 'function') return undefined;
|
|
1625
|
+
if (!this.isInvoiceOpenDataCacheCurrent()) return undefined;
|
|
1626
|
+
try {
|
|
1627
|
+
return openDataModule.getInvoiceTemplateSettings();
|
|
1628
|
+
} catch (error) {
|
|
1629
|
+
this.logWarning('读取 Invoice OpenData 模板配置失败,提交时不注入模板配置', {
|
|
1630
|
+
error: error instanceof Error ? error.message : String(error)
|
|
1631
|
+
});
|
|
1632
|
+
return undefined;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}, {
|
|
1636
|
+
key: "buildSubmitPayloadEnhancerWithOpenDataConfig",
|
|
1637
|
+
value: function buildSubmitPayloadEnhancerWithOpenDataConfig(enhancePayload) {
|
|
1574
1638
|
var fulfillmentRefMode = this.getFulfillmentRefMode();
|
|
1575
|
-
|
|
1639
|
+
var invoiceLayoutConfig = this.getCachedInvoiceLayoutConfig();
|
|
1640
|
+
var invoiceTemplateSettings = this.getCachedInvoiceTemplateSettings();
|
|
1641
|
+
if (!fulfillmentRefMode && !invoiceLayoutConfig && !invoiceTemplateSettings) {
|
|
1642
|
+
return enhancePayload;
|
|
1643
|
+
}
|
|
1576
1644
|
return function (payload, ctx) {
|
|
1577
1645
|
var enhancedPayload = enhancePayload ? enhancePayload(payload, ctx) : payload;
|
|
1578
|
-
return _objectSpread(_objectSpread({}, enhancedPayload), {}, _defineProperty({},
|
|
1646
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, enhancedPayload), fulfillmentRefMode ? _defineProperty({}, OS_FULFILLMENT_REF_MODE_FIELD, fulfillmentRefMode) : {}), invoiceLayoutConfig ? _defineProperty({}, OS_INVOICE_LAYOUT_CONFIG_FIELD, cloneDeep(invoiceLayoutConfig)) : {}), invoiceTemplateSettings ? _defineProperty({}, OS_INVOICE_TEMPLATE_SETTINGS_FIELD, cloneDeep(invoiceTemplateSettings)) : {});
|
|
1579
1647
|
};
|
|
1580
1648
|
}
|
|
1581
1649
|
|
|
@@ -1645,22 +1713,22 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1645
1713
|
value: (function () {
|
|
1646
1714
|
var _syncOtherParamsToSubModules = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(changedParams) {
|
|
1647
1715
|
var _this8 = this;
|
|
1648
|
-
var
|
|
1649
|
-
|
|
1716
|
+
var _ref30,
|
|
1717
|
+
_ref30$cover,
|
|
1650
1718
|
cover,
|
|
1651
1719
|
_args11 = arguments;
|
|
1652
1720
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
1653
1721
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1654
1722
|
case 0:
|
|
1655
|
-
|
|
1723
|
+
_ref30 = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {}, _ref30$cover = _ref30.cover, cover = _ref30$cover === void 0 ? false : _ref30$cover;
|
|
1656
1724
|
_context11.next = 3;
|
|
1657
1725
|
return Promise.all(Object.entries(this.store).map( /*#__PURE__*/function () {
|
|
1658
|
-
var
|
|
1659
|
-
var
|
|
1726
|
+
var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_ref31) {
|
|
1727
|
+
var _ref33, moduleName, subModule, targetModule, nextSubModuleOtherParams;
|
|
1660
1728
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
1661
1729
|
while (1) switch (_context10.prev = _context10.next) {
|
|
1662
1730
|
case 0:
|
|
1663
|
-
|
|
1731
|
+
_ref33 = _slicedToArray(_ref31, 2), moduleName = _ref33[0], subModule = _ref33[1];
|
|
1664
1732
|
if (!_this8.reusedSharedSubModuleNames.has(moduleName)) {
|
|
1665
1733
|
_context10.next = 3;
|
|
1666
1734
|
break;
|
|
@@ -1687,7 +1755,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1687
1755
|
}, _callee10);
|
|
1688
1756
|
}));
|
|
1689
1757
|
return function (_x10) {
|
|
1690
|
-
return
|
|
1758
|
+
return _ref32.apply(this, arguments);
|
|
1691
1759
|
};
|
|
1692
1760
|
}()));
|
|
1693
1761
|
case 3:
|
|
@@ -1809,10 +1877,10 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1809
1877
|
}
|
|
1810
1878
|
tempOrder.metadata = tempOrder.metadata || {};
|
|
1811
1879
|
if (shouldManageLegalCurrencySnapshot) {
|
|
1812
|
-
var
|
|
1880
|
+
var _ref34, _ref35, _tempOrder$metadata$l, _ref36, _ref37, _tempOrder$metadata$l2, _tempOrder$metadata$l3;
|
|
1813
1881
|
var legalCurrencySnapshot = {
|
|
1814
|
-
currency_code: String((
|
|
1815
|
-
currency_symbol: String((
|
|
1882
|
+
currency_code: String((_ref34 = (_ref35 = currencyCode !== null && currencyCode !== void 0 ? currencyCode : (_tempOrder$metadata$l = tempOrder.metadata.legal_currency_snapshot) === null || _tempOrder$metadata$l === void 0 ? void 0 : _tempOrder$metadata$l.currency_code) !== null && _ref35 !== void 0 ? _ref35 : tempOrder.currency_code) !== null && _ref34 !== void 0 ? _ref34 : ''),
|
|
1883
|
+
currency_symbol: String((_ref36 = (_ref37 = currencySymbol !== null && currencySymbol !== void 0 ? currencySymbol : (_tempOrder$metadata$l2 = tempOrder.metadata.legal_currency_snapshot) === null || _tempOrder$metadata$l2 === void 0 ? void 0 : _tempOrder$metadata$l2.currency_symbol) !== null && _ref37 !== void 0 ? _ref37 : tempOrder.currency_symbol) !== null && _ref36 !== void 0 ? _ref36 : ''),
|
|
1816
1884
|
currency_format: String(((_tempOrder$metadata$l3 = tempOrder.metadata.legal_currency_snapshot) === null || _tempOrder$metadata$l3 === void 0 ? void 0 : _tempOrder$metadata$l3.currency_format) || (isVirtualSettlement ? 'symbol_first' : tempOrder.currency_format) || 'symbol_first')
|
|
1817
1885
|
};
|
|
1818
1886
|
if (JSON.stringify(tempOrder.metadata.legal_currency_snapshot || {}) !== JSON.stringify(legalCurrencySnapshot)) {
|
|
@@ -1973,7 +2041,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1973
2041
|
key: "loadSalesDetail",
|
|
1974
2042
|
value: (function () {
|
|
1975
2043
|
var _loadSalesDetail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(orderIdOrParams) {
|
|
1976
|
-
var loadSequence,
|
|
2044
|
+
var loadSequence, _ref38, _ref39, _ref40, _ref41, _params$orderId, params, externalSaleNumber, preloadedSalesDetail, lookup, loadedRecord, message, loadedSalesDetail, shouldFilterPendingPayments, remoteRecord, mergeSourceRecord, currentTempOrder, mergedRecord, record;
|
|
1977
2045
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
1978
2046
|
while (1) switch (_context14.prev = _context14.next) {
|
|
1979
2047
|
case 0:
|
|
@@ -1991,7 +2059,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1991
2059
|
};
|
|
1992
2060
|
externalSaleNumber = params.externalSaleNumber || params.external_sale_number;
|
|
1993
2061
|
preloadedSalesDetail = params.preloadedSalesDetail;
|
|
1994
|
-
lookup = (
|
|
2062
|
+
lookup = (_ref38 = (_ref39 = (_ref40 = (_ref41 = (_params$orderId = params.orderId) !== null && _params$orderId !== void 0 ? _params$orderId : externalSaleNumber) !== null && _ref41 !== void 0 ? _ref41 : params.orderNumber) !== null && _ref40 !== void 0 ? _ref40 : preloadedSalesDetail === null || preloadedSalesDetail === void 0 ? void 0 : preloadedSalesDetail.order_id) !== null && _ref39 !== void 0 ? _ref39 : preloadedSalesDetail === null || preloadedSalesDetail === void 0 ? void 0 : preloadedSalesDetail.external_sale_number) !== null && _ref38 !== void 0 ? _ref38 : preloadedSalesDetail === null || preloadedSalesDetail === void 0 ? void 0 : preloadedSalesDetail.order_number;
|
|
1995
2063
|
if (!(!preloadedSalesDetail && (lookup === undefined || lookup === null || lookup === ''))) {
|
|
1996
2064
|
_context14.next = 11;
|
|
1997
2065
|
break;
|
|
@@ -3371,10 +3439,10 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3371
3439
|
product.discount_list = filterSelectedDiscountDetails(product.discount_list);
|
|
3372
3440
|
if (Array.isArray(product.product_bundle)) {
|
|
3373
3441
|
product.product_bundle = product.product_bundle.map(function (bundle) {
|
|
3374
|
-
var
|
|
3442
|
+
var _ref42, _bundle$original_pric;
|
|
3375
3443
|
var nextBundleDiscountList = filterSelectedDiscountDetails(bundle === null || bundle === void 0 ? void 0 : bundle.discount_list);
|
|
3376
3444
|
var shouldRestoreBundlePrice = nextBundleDiscountList.length === 0;
|
|
3377
|
-
var restoredBundlePrice = (
|
|
3445
|
+
var restoredBundlePrice = (_ref42 = (_bundle$original_pric = bundle === null || bundle === void 0 ? void 0 : bundle.original_price) !== null && _bundle$original_pric !== void 0 ? _bundle$original_pric : bundle === null || bundle === void 0 ? void 0 : bundle.product_price) !== null && _ref42 !== void 0 ? _ref42 : bundle === null || bundle === void 0 ? void 0 : bundle.price;
|
|
3378
3446
|
return _objectSpread(_objectSpread(_objectSpread({}, bundle), shouldRestoreBundlePrice ? {
|
|
3379
3447
|
price: restoredBundlePrice,
|
|
3380
3448
|
bundle_selling_price: restoredBundlePrice
|
|
@@ -3725,7 +3793,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3725
3793
|
// this.store.order.persistTempOrder();
|
|
3726
3794
|
inferredPaymentStatus = this.getSubmitPaymentStatus(params === null || params === void 0 ? void 0 : params.paymentStatus);
|
|
3727
3795
|
smallTicketDataFlag = (_params$smallTicketDa = params === null || params === void 0 ? void 0 : params.smallTicketDataFlag) !== null && _params$smallTicketDa !== void 0 ? _params$smallTicketDa : this.getDefaultCheckoutSmallTicketDataFlag();
|
|
3728
|
-
_enhancePayload = this.
|
|
3796
|
+
_enhancePayload = this.buildSubmitPayloadEnhancerWithOpenDataConfig(params === null || params === void 0 ? void 0 : params.enhancePayload);
|
|
3729
3797
|
submitParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
3730
3798
|
cacheId: this.cacheId,
|
|
3731
3799
|
platform: (_this$otherParams14 = this.otherParams) === null || _this$otherParams14 === void 0 ? void 0 : _this$otherParams14.platform,
|
|
@@ -3829,7 +3897,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3829
3897
|
case 2:
|
|
3830
3898
|
inferredPaymentStatus = this.getSubmitPaymentStatus(params === null || params === void 0 ? void 0 : params.paymentStatus);
|
|
3831
3899
|
smallTicketDataFlag = (_params$smallTicketDa2 = params === null || params === void 0 ? void 0 : params.smallTicketDataFlag) !== null && _params$smallTicketDa2 !== void 0 ? _params$smallTicketDa2 : this.getDefaultCheckoutSmallTicketDataFlag();
|
|
3832
|
-
enhancePayload = this.
|
|
3900
|
+
enhancePayload = this.buildSubmitPayloadEnhancerWithOpenDataConfig(params === null || params === void 0 ? void 0 : params.enhancePayload);
|
|
3833
3901
|
submitParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
3834
3902
|
cacheId: this.cacheId,
|
|
3835
3903
|
platform: (_this$otherParams22 = this.otherParams) === null || _this$otherParams22 === void 0 ? void 0 : _this$otherParams22.platform,
|
|
@@ -3883,7 +3951,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3883
3951
|
value: function () {
|
|
3884
3952
|
var _printLocalOrderReceipt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(lookup) {
|
|
3885
3953
|
var _this$otherParams27, _this$otherParams28, _this$otherParams29, _this$otherParams30;
|
|
3886
|
-
var hasLookup, lookupPayload, context, payload, response, _this$store$order$app, _this$store$order6, _data;
|
|
3954
|
+
var hasLookup, lookupPayload, context, payload, invoiceLayoutConfig, invoiceTemplateSettings, printPayload, response, _this$store$order$app, _this$store$order6, _data;
|
|
3887
3955
|
return _regeneratorRuntime().wrap(function _callee36$(_context36) {
|
|
3888
3956
|
while (1) switch (_context36.prev = _context36.next) {
|
|
3889
3957
|
case 0:
|
|
@@ -3919,22 +3987,29 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3919
3987
|
channel: context.channel,
|
|
3920
3988
|
type: context.type
|
|
3921
3989
|
});
|
|
3922
|
-
|
|
3923
|
-
|
|
3990
|
+
invoiceLayoutConfig = this.getCachedInvoiceLayoutConfig();
|
|
3991
|
+
invoiceTemplateSettings = this.getCachedInvoiceTemplateSettings();
|
|
3992
|
+
printPayload = _objectSpread(_objectSpread(_objectSpread({}, payload), invoiceLayoutConfig ? {
|
|
3993
|
+
invoice: cloneDeep(invoiceLayoutConfig)
|
|
3994
|
+
} : {}), invoiceTemplateSettings ? {
|
|
3995
|
+
template_settings: cloneDeep(invoiceTemplateSettings)
|
|
3996
|
+
} : {});
|
|
3997
|
+
_context36.next = 11;
|
|
3998
|
+
return this.request.post('/local/print-order', printPayload, {
|
|
3924
3999
|
osServer: true,
|
|
3925
4000
|
customToast: function customToast() {}
|
|
3926
4001
|
});
|
|
3927
|
-
case
|
|
4002
|
+
case 11:
|
|
3928
4003
|
response = _context36.sent;
|
|
3929
4004
|
if (hasLookup) {
|
|
3930
|
-
_context36.next =
|
|
4005
|
+
_context36.next = 15;
|
|
3931
4006
|
break;
|
|
3932
4007
|
}
|
|
3933
|
-
_context36.next =
|
|
4008
|
+
_context36.next = 15;
|
|
3934
4009
|
return (_this$store$order$app = (_this$store$order6 = this.store.order).applyLocalPrintOrderNumbers) === null || _this$store$order$app === void 0 ? void 0 : _this$store$order$app.call(_this$store$order6, response === null || response === void 0 || (_data = response.data) === null || _data === void 0 ? void 0 : _data.order);
|
|
3935
|
-
case
|
|
4010
|
+
case 15:
|
|
3936
4011
|
return _context36.abrupt("return", response);
|
|
3937
|
-
case
|
|
4012
|
+
case 16:
|
|
3938
4013
|
case "end":
|
|
3939
4014
|
return _context36.stop();
|
|
3940
4015
|
}
|
|
@@ -3962,7 +4037,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3962
4037
|
key: "syncPaymentsToOrder",
|
|
3963
4038
|
value: function () {
|
|
3964
4039
|
var _syncPaymentsToOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(params) {
|
|
3965
|
-
var
|
|
4040
|
+
var _ref43, _params$businessCode, _this$otherParams31, _this$otherParams32, _params$channel2;
|
|
3966
4041
|
var businessCode, channel, enhancePayload, syncParams, syncState, payments, syncResult, latestPayments, amountSnapshot, orderSnapshot, syncPayload;
|
|
3967
4042
|
return _regeneratorRuntime().wrap(function _callee37$(_context37) {
|
|
3968
4043
|
while (1) switch (_context37.prev = _context37.next) {
|
|
@@ -3973,9 +4048,9 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3973
4048
|
}
|
|
3974
4049
|
throw new Error('order 模块未初始化');
|
|
3975
4050
|
case 2:
|
|
3976
|
-
businessCode = (
|
|
4051
|
+
businessCode = (_ref43 = (_params$businessCode = params.businessCode) !== null && _params$businessCode !== void 0 ? _params$businessCode : (_this$otherParams31 = this.otherParams) === null || _this$otherParams31 === void 0 ? void 0 : _this$otherParams31.businessCode) !== null && _ref43 !== void 0 ? _ref43 : (_this$otherParams32 = this.otherParams) === null || _this$otherParams32 === void 0 ? void 0 : _this$otherParams32.business_code;
|
|
3977
4052
|
channel = (_params$channel2 = params.channel) !== null && _params$channel2 !== void 0 ? _params$channel2 : this.getSubmitOrderSalesChannel();
|
|
3978
|
-
enhancePayload = this.
|
|
4053
|
+
enhancePayload = this.buildSubmitPayloadEnhancerWithOpenDataConfig(params.enhancePayload);
|
|
3979
4054
|
syncParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, params), {}, {
|
|
3980
4055
|
checkoutSyncTaskEnabled: this.shouldUseCheckoutSyncTask()
|
|
3981
4056
|
}, businessCode !== undefined ? {
|
|
@@ -4238,7 +4313,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4238
4313
|
var _this$otherParams33,
|
|
4239
4314
|
_paymentRecord$paymen,
|
|
4240
4315
|
_paymentRecord$create,
|
|
4241
|
-
|
|
4316
|
+
_ref44,
|
|
4242
4317
|
_paymentRecord$origin,
|
|
4243
4318
|
_this16 = this;
|
|
4244
4319
|
if (!this.store.order) throw new Error('order 模块未初始化');
|
|
@@ -4260,7 +4335,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4260
4335
|
var paymentTime = (_paymentRecord$paymen = paymentRecord.payment_time) !== null && _paymentRecord$paymen !== void 0 ? _paymentRecord$paymen : paymentTimestamp;
|
|
4261
4336
|
var createdAt = (_paymentRecord$create = paymentRecord.created_at) !== null && _paymentRecord$create !== void 0 ? _paymentRecord$create : paymentTimestamp;
|
|
4262
4337
|
var serviceCharge = paymentRecord.service_charge && _typeof(paymentRecord.service_charge) === 'object' ? paymentRecord.service_charge : null;
|
|
4263
|
-
var calculatedServiceFee = serviceCharge ? new Decimal((
|
|
4338
|
+
var calculatedServiceFee = serviceCharge ? new Decimal((_ref44 = (_paymentRecord$origin = paymentRecord.origin_amount) !== null && _paymentRecord$origin !== void 0 ? _paymentRecord$origin : paymentRecord.amount) !== null && _ref44 !== void 0 ? _ref44 : 0).times(serviceCharge.percentage || 0).plus(serviceCharge.amount || 0).toDecimalPlaces(2).toFixed(2) : undefined;
|
|
4264
4339
|
var payments = this.store.order.addOrderPayment(_objectSpread(_objectSpread(_objectSpread({}, normalizedPaymentRecord), calculatedServiceFee !== undefined ? {
|
|
4265
4340
|
service_fee: calculatedServiceFee
|
|
4266
4341
|
} : {}), {}, {
|
|
@@ -4541,7 +4616,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4541
4616
|
}, {
|
|
4542
4617
|
key: "buildWalletInitBusinessData",
|
|
4543
4618
|
value: function buildWalletInitBusinessData(params) {
|
|
4544
|
-
var _this$store$order9, _params$order_wait_pa,
|
|
4619
|
+
var _this$store$order9, _params$order_wait_pa, _ref45, _tempOrder$is_price_i;
|
|
4545
4620
|
var snapshot = (_this$store$order9 = this.store.order) === null || _this$store$order9 === void 0 ? void 0 : _this$store$order9.getOrderSnapshot();
|
|
4546
4621
|
var tempOrder = snapshot === null || snapshot === void 0 ? void 0 : snapshot.tempOrder;
|
|
4547
4622
|
var amount = snapshot === null || snapshot === void 0 ? void 0 : snapshot.amount;
|
|
@@ -4557,7 +4632,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4557
4632
|
},
|
|
4558
4633
|
products: this.getWalletProductList(),
|
|
4559
4634
|
order_wait_pay_amount: (_params$order_wait_pa = params === null || params === void 0 ? void 0 : params.order_wait_pay_amount) !== null && _params$order_wait_pa !== void 0 ? _params$order_wait_pa : Number(amount.amountGap || 0),
|
|
4560
|
-
is_price_include_tax: (
|
|
4635
|
+
is_price_include_tax: (_ref45 = (_tempOrder$is_price_i = tempOrder.is_price_include_tax) !== null && _tempOrder$is_price_i !== void 0 ? _tempOrder$is_price_i : this.otherParams.is_price_include_tax) !== null && _ref45 !== void 0 ? _ref45 : 1
|
|
4561
4636
|
}, snapshot.identity.orderId ? {
|
|
4562
4637
|
payment_order_id: String(snapshot.identity.orderId)
|
|
4563
4638
|
} : {});
|
|
@@ -4647,9 +4722,9 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4647
4722
|
var walletPassName = fundRecord.wallet_pass_name;
|
|
4648
4723
|
var title = walletPassName && _typeof(walletPassName) === 'object' ? walletPassName.default || Object.values(walletPassName)[0] : walletPassName;
|
|
4649
4724
|
var code = String((payment === null || payment === void 0 ? void 0 : payment.code) || '').toUpperCase();
|
|
4650
|
-
var tag = ((_Object$entries$find = Object.entries(WALLET_PAYMENT_CODE_BY_TAG).find(function (
|
|
4651
|
-
var
|
|
4652
|
-
paymentCode =
|
|
4725
|
+
var tag = ((_Object$entries$find = Object.entries(WALLET_PAYMENT_CODE_BY_TAG).find(function (_ref46) {
|
|
4726
|
+
var _ref47 = _slicedToArray(_ref46, 2),
|
|
4727
|
+
paymentCode = _ref47[1];
|
|
4653
4728
|
return paymentCode === code;
|
|
4654
4729
|
})) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[0]) || fundRecord.tag;
|
|
4655
4730
|
return {
|
|
@@ -5679,7 +5754,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5679
5754
|
key: "sendCustomerPayLink",
|
|
5680
5755
|
value: (function () {
|
|
5681
5756
|
var _sendCustomerPayLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee57(params) {
|
|
5682
|
-
var orderIds,
|
|
5757
|
+
var orderIds, _ref48, _ref49, _submitResult$data$or, _submitResult$data, _submitResult$data2, submitResult, orderId;
|
|
5683
5758
|
return _regeneratorRuntime().wrap(function _callee57$(_context57) {
|
|
5684
5759
|
while (1) switch (_context57.prev = _context57.next) {
|
|
5685
5760
|
case 0:
|
|
@@ -5700,7 +5775,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5700
5775
|
});
|
|
5701
5776
|
case 6:
|
|
5702
5777
|
submitResult = _context57.sent;
|
|
5703
|
-
orderId = (
|
|
5778
|
+
orderId = (_ref48 = (_ref49 = (_submitResult$data$or = submitResult === null || submitResult === void 0 || (_submitResult$data = submitResult.data) === null || _submitResult$data === void 0 ? void 0 : _submitResult$data.order_id) !== null && _submitResult$data$or !== void 0 ? _submitResult$data$or : submitResult === null || submitResult === void 0 ? void 0 : submitResult.order_id) !== null && _ref49 !== void 0 ? _ref49 : submitResult === null || submitResult === void 0 || (_submitResult$data2 = submitResult.data) === null || _submitResult$data2 === void 0 ? void 0 : _submitResult$data2.id) !== null && _ref48 !== void 0 ? _ref48 : submitResult === null || submitResult === void 0 ? void 0 : submitResult.id;
|
|
5704
5779
|
if (orderId) {
|
|
5705
5780
|
_context57.next = 10;
|
|
5706
5781
|
break;
|
|
@@ -5905,7 +5980,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5905
5980
|
});
|
|
5906
5981
|
_context60.next = 11;
|
|
5907
5982
|
return Promise.all(Array.from(groups.values()).map( /*#__PURE__*/function () {
|
|
5908
|
-
var
|
|
5983
|
+
var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee59(group) {
|
|
5909
5984
|
var priceQueries, resolvedProducts;
|
|
5910
5985
|
return _regeneratorRuntime().wrap(function _callee59$(_context59) {
|
|
5911
5986
|
while (1) switch (_context59.prev = _context59.next) {
|
|
@@ -5935,7 +6010,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
5935
6010
|
}, _callee59);
|
|
5936
6011
|
}));
|
|
5937
6012
|
return function (_x49) {
|
|
5938
|
-
return
|
|
6013
|
+
return _ref50.apply(this, arguments);
|
|
5939
6014
|
};
|
|
5940
6015
|
}()));
|
|
5941
6016
|
case 11:
|
|
@@ -6378,14 +6453,14 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
6378
6453
|
value: function () {
|
|
6379
6454
|
var _setOtherParams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee70(params) {
|
|
6380
6455
|
var _this$otherParams37;
|
|
6381
|
-
var
|
|
6382
|
-
|
|
6456
|
+
var _ref51,
|
|
6457
|
+
_ref51$cover,
|
|
6383
6458
|
cover,
|
|
6384
6459
|
_args70 = arguments;
|
|
6385
6460
|
return _regeneratorRuntime().wrap(function _callee70$(_context70) {
|
|
6386
6461
|
while (1) switch (_context70.prev = _context70.next) {
|
|
6387
6462
|
case 0:
|
|
6388
|
-
|
|
6463
|
+
_ref51 = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {}, _ref51$cover = _ref51.cover, cover = _ref51$cover === void 0 ? false : _ref51$cover;
|
|
6389
6464
|
if (cover) {
|
|
6390
6465
|
this.otherParams = _objectSpread({}, params);
|
|
6391
6466
|
} else {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* - 不在此处发明等价关系;UI 侧(ticketBooking)若需要别的字段,由 view-model 适配层做转换
|
|
15
15
|
*/
|
|
16
16
|
import type { BaseSalesOrderProduct } from '../types';
|
|
17
|
+
import type { OrderMetaList } from '../../../modules/Order/types';
|
|
17
18
|
export interface ISalesDetailHeader {
|
|
18
19
|
order_id: number | string | null;
|
|
19
20
|
order_number?: string;
|
|
@@ -47,6 +48,7 @@ export interface ISalesDetailHeader {
|
|
|
47
48
|
schedule_date?: string;
|
|
48
49
|
created_at?: string;
|
|
49
50
|
updated_at?: string | number;
|
|
51
|
+
order_meta_list?: OrderMetaList;
|
|
50
52
|
metadata?: Record<string, any> | null;
|
|
51
53
|
total_amount?: string | number;
|
|
52
54
|
[key: string]: any;
|
|
@@ -25,7 +25,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
25
25
|
|
|
26
26
|
import { normalizeOrderCollections } from "../../../modules/Order/utils/orderCollectionIdentity";
|
|
27
27
|
/** OrderData 中除大数组外的"顶层 header 字段"白名单,按需扩展。 */
|
|
28
|
-
var HEADER_KEYS = ['order_id', 'order_number', 'shop_order_number', 'shop_full_order_number', 'type', 'business_code', 'platform', 'sales_channel', 'order_sales_channel', 'vouchers', 'status', 'payment_status', 'shipping_status', 'customer_id', 'customer_name', 'country_calling_code', 'phone', 'email', 'is_price_include_tax', 'tax_title', 'tax_country_code', 'currency_code', 'currency_symbol', 'currency_format', 'is_deposit', 'deposit_amount', 'shop_discount', 'surcharge_fee', 'note', 'schedule_date', 'created_at', 'updated_at', 'metadata', 'total_amount', 'shop_id', 'create_date', 'holder', 'relation_forms', 'contacts', 'contacts_info'];
|
|
28
|
+
var HEADER_KEYS = ['order_id', 'order_number', 'shop_order_number', 'shop_full_order_number', 'type', 'business_code', 'platform', 'sales_channel', 'order_sales_channel', 'vouchers', 'status', 'payment_status', 'shipping_status', 'customer_id', 'customer_name', 'country_calling_code', 'phone', 'email', 'is_price_include_tax', 'tax_title', 'tax_country_code', 'currency_code', 'currency_symbol', 'currency_format', 'is_deposit', 'deposit_amount', 'shop_discount', 'surcharge_fee', 'note', 'schedule_date', 'created_at', 'updated_at', 'order_meta_list', 'metadata', 'total_amount', 'shop_id', 'create_date', 'holder', 'relation_forms', 'contacts', 'contacts_info'];
|
|
29
29
|
function pickHeader(raw) {
|
|
30
30
|
var _raw$order_id;
|
|
31
31
|
var header = {
|
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 |
|
|
329
|
+
weekNum: 0 | 5 | 3 | 1 | 2 | 4 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Module, ModuleOptions, PisellCore } from '../../types';
|
|
2
2
|
import { BookingTicketCartView, BookingTicketProductCatalogView, BookingTicketState, IGetCustomerListParams, ICustomer, ILoadProductsParams, ILoadProductDetailParams, IScanResult } from './types';
|
|
3
3
|
import type { ProductData } from '../../modules';
|
|
4
|
-
import type
|
|
4
|
+
import { type InvoiceLayoutConfig, type InvoiceTemplateSettings, type OpenDataConfig } from '../../modules/OpenData';
|
|
5
5
|
import { type BookingContextConfig, type BookingContextDateInput, type BookingContextResource, type BookingContextResourceMap, type BookingContextState, type InitBookingContextParams, type LoadBookingConfigParams, type LoadBookingResourcesParams, type ResourceError, type BookingCalcContext } from '../../modules/BookingContext';
|
|
6
6
|
import type { OrderCustomerView, OrderCustomerChangePayload } from '../../modules/Order/types';
|
|
7
7
|
import { BaseSalesImpl } from '../BaseSales';
|
|
@@ -30,7 +30,9 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
30
30
|
private orderCustomerDiscountRefreshInFlight;
|
|
31
31
|
private orderCustomerDiscountRefreshCustomerId;
|
|
32
32
|
private orderCustomerPromotionRefreshInFlight;
|
|
33
|
-
|
|
33
|
+
protected loadOpenDataInFlight: Promise<OpenDataConfig> | null;
|
|
34
|
+
protected loadOpenDataInFlightTarget: string | null;
|
|
35
|
+
protected openDataTarget: string | null;
|
|
34
36
|
/**
|
|
35
37
|
* 在 BaseSales 默认模块清单(products/order/salesSummary/schedule)基础上追加 customer + bookingContext。
|
|
36
38
|
* bookingContext 是 SalesSdk 加车下沉所需的「预约 UI 上下文」(bookingConfig / resourcesOrigin / date)。
|
|
@@ -43,10 +45,13 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
43
45
|
*/
|
|
44
46
|
protected createSubModule(moduleName: string): Module | null;
|
|
45
47
|
initialize(core: PisellCore, options?: ModuleOptions): Promise<void>;
|
|
46
|
-
|
|
48
|
+
protected getBookingTicketBusinessCode(): string | null;
|
|
47
49
|
private getIdGeneratorPlugin;
|
|
48
50
|
private loadOpenDataConfig;
|
|
49
51
|
getOpenData(): Promise<OpenDataConfig | null>;
|
|
52
|
+
getInvoiceLayoutConfig(): Promise<InvoiceLayoutConfig>;
|
|
53
|
+
getInvoiceTemplateSettings(): Promise<InvoiceTemplateSettings>;
|
|
54
|
+
protected isInvoiceOpenDataCacheCurrent(): boolean;
|
|
50
55
|
/** 清除店铺级 OpenData;下一次 getOpenData 时会重新拉取。 */
|
|
51
56
|
clearOpenDataCache(): void;
|
|
52
57
|
private getShortNumberOrDeviceId;
|