@be-link/pos-cli-nodejs 1.0.144 → 1.0.146
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
|
@@ -55,28 +55,45 @@ export declare namespace QueryByWeb {
|
|
|
55
55
|
/** 支付时间结束时间 */
|
|
56
56
|
paidAtEnd?: number;
|
|
57
57
|
}
|
|
58
|
+
/** 查询条件 */
|
|
59
|
+
interface IQueryCondition {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
namespace Result {
|
|
60
|
-
/** 订单搜索结果 */
|
|
61
64
|
interface ISearchOrderResult {
|
|
62
65
|
/** 订单ID */
|
|
63
66
|
orderId: string;
|
|
64
|
-
/**
|
|
67
|
+
/** 商品名称(商品标题 + 订单号) */
|
|
65
68
|
itemName: string;
|
|
66
|
-
/**
|
|
69
|
+
/** 出团时间(出发日期) */
|
|
67
70
|
fulfillAt: number;
|
|
68
|
-
/**
|
|
71
|
+
/** 状态(状态胶囊标签,带颜色) */
|
|
69
72
|
status: string;
|
|
70
|
-
/**
|
|
73
|
+
/** 联系人信息(姓名 + 手机号) */
|
|
71
74
|
contactInfo: {
|
|
72
75
|
name: string;
|
|
73
76
|
mobile: string;
|
|
74
77
|
idCard?: string;
|
|
75
78
|
};
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
/** 单价/数量/剩余金额(单价×人数 + 剩余金额) */
|
|
80
|
+
priceInfo: {
|
|
81
|
+
/** 单价,单位:分 */
|
|
82
|
+
unitPrice: number;
|
|
83
|
+
/** 数量(人数/份数) */
|
|
84
|
+
quantity: number;
|
|
85
|
+
/** 剩余金额,单位:分 */
|
|
86
|
+
remainFee: number;
|
|
87
|
+
};
|
|
88
|
+
/** 下单时间(下单时间戳) */
|
|
79
89
|
createdAt: number;
|
|
90
|
+
/** 结算价/利润(结算价 + 利润,绿色显示) */
|
|
91
|
+
settlementInfo: {
|
|
92
|
+
/** 结算价,单位:分 */
|
|
93
|
+
settlementAmount: number;
|
|
94
|
+
/** 利润(结算金额 × 利润率),单位:分 */
|
|
95
|
+
profit: number;
|
|
96
|
+
};
|
|
80
97
|
}
|
|
81
98
|
/** 订单搜索结果(带总数) */
|
|
82
99
|
interface ISearchOrderResultWithTotal {
|
|
@@ -87,10 +104,12 @@ export declare namespace QueryByWeb {
|
|
|
87
104
|
}
|
|
88
105
|
/** 订单搜索统计数据 */
|
|
89
106
|
interface ISearchOrderStats {
|
|
90
|
-
/**
|
|
107
|
+
/** 订单数量 */
|
|
91
108
|
total: number;
|
|
92
|
-
/**
|
|
109
|
+
/** 总剩余金额,单位:分 */
|
|
93
110
|
totalRemainFee: number;
|
|
111
|
+
/** 总利润,单位:分 */
|
|
112
|
+
totalProfit: number;
|
|
94
113
|
}
|
|
95
114
|
}
|
|
96
115
|
}
|
|
@@ -1153,15 +1172,17 @@ export declare namespace Service {
|
|
|
1153
1172
|
*/
|
|
1154
1173
|
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
|
|
1155
1174
|
/**
|
|
1156
|
-
*
|
|
1157
|
-
* @path /query/web/
|
|
1175
|
+
* 查询所有订单ID
|
|
1176
|
+
* @path /query/web/query-all-order-ids
|
|
1158
1177
|
*/
|
|
1159
|
-
|
|
1178
|
+
queryAllOrderIds(request: QueryByWeb.Param.IQueryCondition): Promise<string[]>;
|
|
1160
1179
|
/**
|
|
1161
|
-
*
|
|
1162
|
-
* @path /query/web/
|
|
1180
|
+
* 根据订单ID列表汇总剩余金额
|
|
1181
|
+
* @path /query/web/sum-remain-fee-by-order-ids
|
|
1163
1182
|
*/
|
|
1164
|
-
|
|
1183
|
+
sumRemainFeeByOrderIds(request: {
|
|
1184
|
+
orderIds: string[];
|
|
1185
|
+
}): Promise<number>;
|
|
1165
1186
|
}
|
|
1166
1187
|
/** 商品维度查询 */
|
|
1167
1188
|
interface QueryByCommodityController {
|
|
@@ -7,8 +7,10 @@ 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: QueryByWeb.Param.IQueryCondition): Promise<string[]>;
|
|
11
|
+
sumRemainFeeByOrderIds(request: {
|
|
12
|
+
orderIds: string[];
|
|
13
|
+
}): Promise<number>;
|
|
12
14
|
}
|
|
13
15
|
declare const queryByWebService: QueryByWebService;
|
|
14
16
|
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
|
}
|