@be-link/pos-cli-nodejs 1.0.145 → 1.0.147
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/package.json
CHANGED
|
@@ -1,114 +1,6 @@
|
|
|
1
1
|
import * as PosConstants from 'vitality-meta/enums/pos';
|
|
2
2
|
import * as DTO from '../../../types';
|
|
3
3
|
/** QueryByWeb 命名空间 */
|
|
4
|
-
export declare namespace QueryByWeb {
|
|
5
|
-
namespace Param {
|
|
6
|
-
/** 订单搜索条件 */
|
|
7
|
-
interface ISearchOrderCondition {
|
|
8
|
-
/** 出行人姓名 */
|
|
9
|
-
tourismName?: string;
|
|
10
|
-
/** 出行人手机号 */
|
|
11
|
-
tourismMobile?: string;
|
|
12
|
-
/** 商品名称 */
|
|
13
|
-
itemName?: string;
|
|
14
|
-
/** 订单号 */
|
|
15
|
-
tradeOrderId?: string;
|
|
16
|
-
/** 订单状态 */
|
|
17
|
-
status?: string[];
|
|
18
|
-
/** 订单来源人门店ID */
|
|
19
|
-
fromEcsStoreId?: string;
|
|
20
|
-
/** 订单来源 */
|
|
21
|
-
sourceType?: PosConstants.OrderSourceTypeEnum[];
|
|
22
|
-
/** 出行日期开始时间 */
|
|
23
|
-
fulfillAtStart?: number;
|
|
24
|
-
/** 出行日期结束时间 */
|
|
25
|
-
fulfillAtEnd?: number;
|
|
26
|
-
/** 支付时间开始时间 */
|
|
27
|
-
paidAtStart?: number;
|
|
28
|
-
/** 支付时间结束时间 */
|
|
29
|
-
paidAtEnd?: number;
|
|
30
|
-
/** 页面条数 */
|
|
31
|
-
pageSize: number;
|
|
32
|
-
/** 页面下标 */
|
|
33
|
-
pageIndex: number;
|
|
34
|
-
}
|
|
35
|
-
/** 订单搜索统计条件(不含分页) */
|
|
36
|
-
interface ISearchOrderStatsCondition {
|
|
37
|
-
/** 出行人姓名 */
|
|
38
|
-
tourismName?: string;
|
|
39
|
-
/** 出行人手机号 */
|
|
40
|
-
tourismMobile?: string;
|
|
41
|
-
/** 商品名称 */
|
|
42
|
-
itemName?: string;
|
|
43
|
-
/** 订单号 */
|
|
44
|
-
tradeOrderId?: string;
|
|
45
|
-
/** 订单状态 */
|
|
46
|
-
status?: string[];
|
|
47
|
-
/** 订单来源人门店ID */
|
|
48
|
-
fromEcsStoreId?: string;
|
|
49
|
-
/** 出行日期开始时间 */
|
|
50
|
-
fulfillAtStart?: number;
|
|
51
|
-
/** 出行日期结束时间 */
|
|
52
|
-
fulfillAtEnd?: number;
|
|
53
|
-
/** 支付时间开始时间 */
|
|
54
|
-
paidAtStart?: number;
|
|
55
|
-
/** 支付时间结束时间 */
|
|
56
|
-
paidAtEnd?: number;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
namespace Result {
|
|
60
|
-
interface ISearchOrderResult {
|
|
61
|
-
/** 订单ID */
|
|
62
|
-
orderId: string;
|
|
63
|
-
/** 商品名称(商品标题 + 订单号) */
|
|
64
|
-
itemName: string;
|
|
65
|
-
/** 出团时间(出发日期) */
|
|
66
|
-
fulfillAt: number;
|
|
67
|
-
/** 状态(状态胶囊标签,带颜色) */
|
|
68
|
-
status: string;
|
|
69
|
-
/** 联系人信息(姓名 + 手机号) */
|
|
70
|
-
contactInfo: {
|
|
71
|
-
name: string;
|
|
72
|
-
mobile: string;
|
|
73
|
-
idCard?: string;
|
|
74
|
-
};
|
|
75
|
-
/** 单价/数量/剩余金额(单价×人数 + 剩余金额) */
|
|
76
|
-
priceInfo: {
|
|
77
|
-
/** 单价,单位:分 */
|
|
78
|
-
unitPrice: number;
|
|
79
|
-
/** 数量(人数/份数) */
|
|
80
|
-
quantity: number;
|
|
81
|
-
/** 剩余金额,单位:分 */
|
|
82
|
-
remainFee: number;
|
|
83
|
-
};
|
|
84
|
-
/** 下单时间(下单时间戳) */
|
|
85
|
-
createdAt: number;
|
|
86
|
-
/** 结算价/利润(结算价 + 利润,绿色显示) */
|
|
87
|
-
settlementInfo: {
|
|
88
|
-
/** 结算价,单位:分 */
|
|
89
|
-
settlementAmount: number;
|
|
90
|
-
/** 利润(结算金额 × 利润率),单位:分 */
|
|
91
|
-
profit: number;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
/** 订单搜索结果(带总数) */
|
|
95
|
-
interface ISearchOrderResultWithTotal {
|
|
96
|
-
/** 订单列表 */
|
|
97
|
-
list: ISearchOrderResult[];
|
|
98
|
-
/** 总数 */
|
|
99
|
-
total: number;
|
|
100
|
-
}
|
|
101
|
-
/** 订单搜索统计数据 */
|
|
102
|
-
interface ISearchOrderStats {
|
|
103
|
-
/** 订单数量 */
|
|
104
|
-
total: number;
|
|
105
|
-
/** 总剩余金额,单位:分 */
|
|
106
|
-
totalRemainFee: number;
|
|
107
|
-
/** 总利润,单位:分 */
|
|
108
|
-
totalProfit: number;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
4
|
export declare namespace Service {
|
|
113
5
|
namespace Request {
|
|
114
6
|
interface getOrderById<K> {
|
|
@@ -203,6 +95,8 @@ export declare namespace Service {
|
|
|
203
95
|
fulfillEndAtRange?: [number, number];
|
|
204
96
|
/** 订单列表id */
|
|
205
97
|
orderIdList?: string[];
|
|
98
|
+
/** 订单来源 */
|
|
99
|
+
sourceType: PosConstants.OrderSourceTypeEnum;
|
|
206
100
|
};
|
|
207
101
|
/** 排序规则 */
|
|
208
102
|
sort: {
|
|
@@ -499,6 +393,12 @@ export declare namespace Service {
|
|
|
499
393
|
pageIndex: number;
|
|
500
394
|
/** 供应商id */
|
|
501
395
|
supplierIds?: string[];
|
|
396
|
+
/** 订单来源人门店ID */
|
|
397
|
+
fromEcsStoreId?: string;
|
|
398
|
+
/** 支付时间范围 */
|
|
399
|
+
paidAtRange?: [number, number];
|
|
400
|
+
/** 来源类型 */
|
|
401
|
+
sourceType?: PosConstants.OrderSourceTypeEnum[];
|
|
502
402
|
};
|
|
503
403
|
/** 排序 */
|
|
504
404
|
sort: {
|
|
@@ -864,6 +764,72 @@ export declare namespace Service {
|
|
|
864
764
|
/** 订单状态列表 */
|
|
865
765
|
statusList?: PosConstants.TradeOrderStatusEnum[];
|
|
866
766
|
}
|
|
767
|
+
interface queryCondition {
|
|
768
|
+
/** 状态 */
|
|
769
|
+
status?: string[];
|
|
770
|
+
/** 购买人姓名 */
|
|
771
|
+
contactName?: string;
|
|
772
|
+
/** 购买人手机号 */
|
|
773
|
+
contactMobile?: string;
|
|
774
|
+
/** 出行人姓名 */
|
|
775
|
+
tourismName?: string;
|
|
776
|
+
/** 出行人手机号 */
|
|
777
|
+
tourismMobile?: string;
|
|
778
|
+
/** 商品列表 */
|
|
779
|
+
itemIdList?: string[];
|
|
780
|
+
/** sku列表 */
|
|
781
|
+
skuIdList?: string[];
|
|
782
|
+
/** 来源人 */
|
|
783
|
+
fromUnionId?: string;
|
|
784
|
+
/** 二级类目 */
|
|
785
|
+
categoryTwoList?: string[];
|
|
786
|
+
/** 小队 */
|
|
787
|
+
groupIndex?: number;
|
|
788
|
+
/** 订单Id列表 */
|
|
789
|
+
tradeOrderIdList?: string[];
|
|
790
|
+
/** 出团日期范围 */
|
|
791
|
+
fulFillAtRange?: [number, number];
|
|
792
|
+
/** 返程日期范围 */
|
|
793
|
+
fulfillEndAtRange?: [number, number];
|
|
794
|
+
/** 订单履约中\完结时间 */
|
|
795
|
+
transitionAtRange?: [number, number];
|
|
796
|
+
/** 原状态 */
|
|
797
|
+
fromStatusList?: string[];
|
|
798
|
+
/** 目标状态 */
|
|
799
|
+
toStatusList?: string[];
|
|
800
|
+
/** 订单创建时间筛选 */
|
|
801
|
+
createdAtRange?: [number, number];
|
|
802
|
+
/** 用户身份 */
|
|
803
|
+
userIdentity?: string;
|
|
804
|
+
/** 用户列表 */
|
|
805
|
+
unionIdList?: string[];
|
|
806
|
+
/** 门店列表 */
|
|
807
|
+
storeIdList?: string[];
|
|
808
|
+
/** 班车供应商 */
|
|
809
|
+
shuttleBusSupplier?: string;
|
|
810
|
+
/** 是否是首次交易 */
|
|
811
|
+
isFirstTradeOrder?: boolean;
|
|
812
|
+
/** 是否未完成备注 */
|
|
813
|
+
isNotFinishedNote?: boolean;
|
|
814
|
+
/** 是否排除已合并的订单 */
|
|
815
|
+
isExcludeMerged?: boolean;
|
|
816
|
+
/** 是否仅查询主单 */
|
|
817
|
+
isRootOrder?: boolean;
|
|
818
|
+
/** 拼团类型 */
|
|
819
|
+
groupType?: number[];
|
|
820
|
+
/** 页面条数 */
|
|
821
|
+
pageSize: number;
|
|
822
|
+
/** 页面下标 */
|
|
823
|
+
pageIndex: number;
|
|
824
|
+
/** 供应商id */
|
|
825
|
+
supplierIds?: string[];
|
|
826
|
+
/** 订单来源人门店ID */
|
|
827
|
+
fromEcsStoreId?: string;
|
|
828
|
+
/** 支付时间范围 */
|
|
829
|
+
paidAtRange?: [number, number];
|
|
830
|
+
/** 来源类型 */
|
|
831
|
+
sourceType?: PosConstants.OrderSourceTypeEnum[];
|
|
832
|
+
}
|
|
867
833
|
}
|
|
868
834
|
namespace Response {
|
|
869
835
|
interface mgetUserOrderCountList {
|
|
@@ -1168,15 +1134,15 @@ export declare namespace Service {
|
|
|
1168
1134
|
*/
|
|
1169
1135
|
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
|
|
1170
1136
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* @path /query/web/
|
|
1137
|
+
* 查询所有订单ID
|
|
1138
|
+
* @path /query/web/query-all-order-ids
|
|
1173
1139
|
*/
|
|
1174
|
-
|
|
1140
|
+
queryAllOrderIds(request: Request.queryCondition): Promise<string[]>;
|
|
1175
1141
|
/**
|
|
1176
|
-
*
|
|
1177
|
-
* @path /query/web/
|
|
1142
|
+
* 根据订单ID列表汇总剩余金额
|
|
1143
|
+
* @path /query/web/sum-remain-fee-by-order-ids
|
|
1178
1144
|
*/
|
|
1179
|
-
|
|
1145
|
+
sumRemainFeeByOrderIds(request: string[]): Promise<number>;
|
|
1180
1146
|
}
|
|
1181
1147
|
/** 商品维度查询 */
|
|
1182
1148
|
interface QueryByCommodityController {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseService from '../service';
|
|
2
|
-
import { Service
|
|
2
|
+
import { Service } from './types';
|
|
3
3
|
import * as DTO from '../../../types';
|
|
4
4
|
declare class QueryByWebService extends BaseService implements Service.QueryByWebController {
|
|
5
5
|
protected prefixUrl: string;
|
|
@@ -7,8 +7,8 @@ declare class QueryByWebService extends BaseService implements Service.QueryByWe
|
|
|
7
7
|
getOrderCount(request: Service.Request.getOrderCount): Promise<number>;
|
|
8
8
|
queryOrderOperateRecord(request: Service.Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
|
|
9
9
|
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
queryAllOrderIds(param: Service.Request.queryCondition): Promise<string[]>;
|
|
11
|
+
sumRemainFeeByOrderIds(request: string[]): Promise<number>;
|
|
12
12
|
}
|
|
13
13
|
declare const queryByWebService: QueryByWebService;
|
|
14
14
|
export default queryByWebService;
|
|
@@ -38,14 +38,14 @@ class QueryByWebService extends service_1.default {
|
|
|
38
38
|
return result.map(item => posProxy_1.default.createProxy(item));
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
queryAllOrderIds(param) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
43
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryAllOrderIds), param);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
sumRemainFeeByOrderIds(request) {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
48
|
+
return (0, http_1.callApi)(this.getApiUrl(this.sumRemainFeeByOrderIds), request);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
}
|