@pisell/pisellos 2.2.231 → 2.2.232
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.
|
@@ -319,7 +319,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
319
319
|
* 获取当前的客户搜索条件
|
|
320
320
|
* @returns 当前搜索条件
|
|
321
321
|
*/
|
|
322
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
322
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
323
323
|
/**
|
|
324
324
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
325
325
|
* @returns 客户状态
|
|
@@ -98,7 +98,9 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
98
98
|
}, {
|
|
99
99
|
key: "getSubmitOrderSalesChannel",
|
|
100
100
|
value: function getSubmitOrderSalesChannel() {
|
|
101
|
-
|
|
101
|
+
var _this$core, _this$core$getChannel;
|
|
102
|
+
var channel = (_this$core = this.core) === null || _this$core === void 0 || (_this$core = _this$core.context) === null || _this$core === void 0 || (_this$core$getChannel = _this$core.getChannel) === null || _this$core$getChannel === void 0 ? void 0 : _this$core$getChannel.call(_this$core);
|
|
103
|
+
return !channel || channel === 'system' ? 'pos' : channel;
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
/**
|
|
@@ -376,9 +378,10 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
376
378
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
377
379
|
while (1) switch (_context5.prev = _context5.next) {
|
|
378
380
|
case 0:
|
|
379
|
-
|
|
381
|
+
debugger;
|
|
382
|
+
_context5.next = 3;
|
|
380
383
|
return _get(_getPrototypeOf(BookingTicketImpl.prototype), "loadSalesDetail", this).call(this, orderIdOrParams);
|
|
381
|
-
case
|
|
384
|
+
case 3:
|
|
382
385
|
sales = _context5.sent;
|
|
383
386
|
customerModule = this.store.customer;
|
|
384
387
|
detailCustomer = sales === null || sales === void 0 ? void 0 : sales.customer;
|
|
@@ -407,7 +410,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
407
410
|
// await this.store.order.saveDraft();
|
|
408
411
|
}
|
|
409
412
|
return _context5.abrupt("return", sales);
|
|
410
|
-
case
|
|
413
|
+
case 12:
|
|
411
414
|
case "end":
|
|
412
415
|
return _context5.stop();
|
|
413
416
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/model/strategy/adapter/promotion/index.ts
|
|
30
|
-
var promotion_exports = {};
|
|
31
|
-
__export(promotion_exports, {
|
|
32
|
-
BUY_X_GET_Y_FREE_STRATEGY: () => import_examples.BUY_X_GET_Y_FREE_STRATEGY,
|
|
33
|
-
PromotionAdapter: () => import_adapter.PromotionAdapter,
|
|
34
|
-
PromotionEvaluator: () => import_evaluator.PromotionEvaluator,
|
|
35
|
-
X_ITEMS_FOR_Y_PRICE_STRATEGY: () => import_examples.X_ITEMS_FOR_Y_PRICE_STRATEGY,
|
|
36
|
-
default: () => import_adapter2.default
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(promotion_exports);
|
|
39
|
-
var import_evaluator = require("./evaluator");
|
|
40
|
-
var import_adapter = require("./adapter");
|
|
41
|
-
var import_adapter2 = __toESM(require("./adapter"));
|
|
42
|
-
var import_examples = require("./examples");
|
|
43
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 && (module.exports = {
|
|
45
|
-
BUY_X_GET_Y_FREE_STRATEGY,
|
|
46
|
-
PromotionAdapter,
|
|
47
|
-
PromotionEvaluator,
|
|
48
|
-
X_ITEMS_FOR_Y_PRICE_STRATEGY
|
|
49
|
-
});
|
|
@@ -319,7 +319,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
319
319
|
* 获取当前的客户搜索条件
|
|
320
320
|
* @returns 当前搜索条件
|
|
321
321
|
*/
|
|
322
|
-
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "
|
|
322
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
323
323
|
/**
|
|
324
324
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
325
325
|
* @returns 客户状态
|
|
@@ -91,7 +91,9 @@ var BookingTicketImpl = class extends import_BaseSales.BaseSalesImpl {
|
|
|
91
91
|
return [...super.getRegisteredModuleNames(), "customer", "bookingContext", "openData"];
|
|
92
92
|
}
|
|
93
93
|
getSubmitOrderSalesChannel() {
|
|
94
|
-
|
|
94
|
+
var _a, _b, _c;
|
|
95
|
+
const channel = (_c = (_b = (_a = this.core) == null ? void 0 : _a.context) == null ? void 0 : _b.getChannel) == null ? void 0 : _c.call(_b);
|
|
96
|
+
return !channel || channel === "system" ? "pos" : channel;
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
99
|
* 业务侧子模块工厂:BookingTicket 自带的 createBookingTicketModule 优先匹配;
|
|
@@ -242,6 +244,7 @@ var BookingTicketImpl = class extends import_BaseSales.BaseSalesImpl {
|
|
|
242
244
|
* 让现有 setActiveCustomer / getActiveCustomer 调用方零成本拿到详情态客户。
|
|
243
245
|
*/
|
|
244
246
|
async loadSalesDetail(orderIdOrParams) {
|
|
247
|
+
debugger;
|
|
245
248
|
const sales = await super.loadSalesDetail(orderIdOrParams);
|
|
246
249
|
const customerModule = this.store.customer;
|
|
247
250
|
const detailCustomer = sales == null ? void 0 : sales.customer;
|