@be-link/pos-cli-nodejs 1.0.138 → 1.0.141
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,5 +1,69 @@
|
|
|
1
1
|
import * as PosConstants from 'vitality-meta/enums/pos';
|
|
2
2
|
import * as DTO from '../../../types';
|
|
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
|
+
namespace Result {
|
|
37
|
+
/** 订单搜索结果 */
|
|
38
|
+
interface ISearchOrderResult {
|
|
39
|
+
/** 订单ID */
|
|
40
|
+
orderId: string;
|
|
41
|
+
/** 商品名称 */
|
|
42
|
+
itemName: string;
|
|
43
|
+
/** 出团时间 */
|
|
44
|
+
fulfillAt: number;
|
|
45
|
+
/** 状态 */
|
|
46
|
+
status: string;
|
|
47
|
+
/** 联系人信息 */
|
|
48
|
+
contactInfo: {
|
|
49
|
+
name: string;
|
|
50
|
+
mobile: string;
|
|
51
|
+
idCard?: string;
|
|
52
|
+
};
|
|
53
|
+
/** 实付金额 */
|
|
54
|
+
actuallyPaidFee: number;
|
|
55
|
+
/** 下单时间 */
|
|
56
|
+
createdAt: number;
|
|
57
|
+
}
|
|
58
|
+
/** 订单搜索结果(带总数) */
|
|
59
|
+
interface ISearchOrderResultWithTotal {
|
|
60
|
+
/** 订单列表 */
|
|
61
|
+
list: ISearchOrderResult[];
|
|
62
|
+
/** 总数 */
|
|
63
|
+
total: number;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
3
67
|
export declare namespace Service {
|
|
4
68
|
namespace Request {
|
|
5
69
|
interface getOrderById<K> {
|
|
@@ -1058,6 +1122,11 @@ export declare namespace Service {
|
|
|
1058
1122
|
* @path /query/web/query-order-for-statistics
|
|
1059
1123
|
*/
|
|
1060
1124
|
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
|
|
1125
|
+
/**
|
|
1126
|
+
* 搜索订单
|
|
1127
|
+
* @path /query/web/search-orders
|
|
1128
|
+
*/
|
|
1129
|
+
searchOrders(request: QueryByWeb.Param.ISearchOrderCondition): Promise<QueryByWeb.Result.ISearchOrderResultWithTotal>;
|
|
1061
1130
|
}
|
|
1062
1131
|
/** 商品维度查询 */
|
|
1063
1132
|
interface QueryByCommodityController {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseService from '../service';
|
|
2
|
-
import { Service } from './types';
|
|
2
|
+
import { Service, QueryByWeb } 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,6 +7,7 @@ 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
|
+
searchOrders(request: QueryByWeb.Param.ISearchOrderCondition): Promise<QueryByWeb.Result.ISearchOrderResultWithTotal>;
|
|
10
11
|
}
|
|
11
12
|
declare const queryByWebService: QueryByWebService;
|
|
12
13
|
export default queryByWebService;
|
|
@@ -38,6 +38,11 @@ class QueryByWebService extends service_1.default {
|
|
|
38
38
|
return result.map(item => posProxy_1.default.createProxy(item));
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
+
searchOrders(request) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return (0, http_1.callApi)(this.getApiUrl(this.searchOrders), request);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
41
46
|
}
|
|
42
47
|
const queryByWebService = new QueryByWebService();
|
|
43
48
|
exports.default = queryByWebService;
|