@be-link/pos-cli-nodejs 0.0.168 → 0.0.170
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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BaseService from '../service';
|
|
2
|
+
import { Service } from './types';
|
|
3
|
+
import * as DTO from '../../../types';
|
|
4
|
+
declare class QueryBySupplierService extends BaseService implements Service.QueryBySupplierController {
|
|
5
|
+
protected prefixUrl: string;
|
|
6
|
+
queryRejectReasons(request: Service.Request.queryRejectReasons): Promise<Service.Response.queryRejectReasons>;
|
|
7
|
+
queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
|
|
8
|
+
getOrderCount(request: Service.Request.getSupplierOrderCount): Promise<number>;
|
|
9
|
+
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatisticsForSupplier<K>): Promise<DTO.QueryDataRes<K>[]>;
|
|
10
|
+
}
|
|
11
|
+
declare const queryByStoreService: QueryBySupplierService;
|
|
12
|
+
export default queryByStoreService;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const service_1 = __importDefault(require("../service"));
|
|
7
|
+
const http_1 = require("../../http");
|
|
8
|
+
class QueryBySupplierService extends service_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/query/supplier';
|
|
12
|
+
}
|
|
13
|
+
queryRejectReasons(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryRejectReasons), request);
|
|
15
|
+
}
|
|
16
|
+
queryOrderList(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryOrderList), request);
|
|
18
|
+
}
|
|
19
|
+
getOrderCount(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getOrderCount), request);
|
|
21
|
+
}
|
|
22
|
+
queryOrderForStatistics(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryOrderForStatistics), request);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const queryByStoreService = new QueryBySupplierService();
|
|
27
|
+
exports.default = queryByStoreService;
|
|
@@ -378,6 +378,33 @@ export declare namespace Service {
|
|
|
378
378
|
/** 查询页码 */
|
|
379
379
|
pageIndex?: number;
|
|
380
380
|
}
|
|
381
|
+
interface IQueryOrderForStatisticsForSupplier<K> {
|
|
382
|
+
/** 条件 */
|
|
383
|
+
conditions: {
|
|
384
|
+
/** id列表 */
|
|
385
|
+
idList?: string[];
|
|
386
|
+
/** 状态 */
|
|
387
|
+
statusList?: string[];
|
|
388
|
+
/** 购买人姓名 */
|
|
389
|
+
contactName?: string;
|
|
390
|
+
/** 购买人手机号 */
|
|
391
|
+
contactMobile?: string;
|
|
392
|
+
/** 二级类目 */
|
|
393
|
+
categoryTwoList?: string[];
|
|
394
|
+
/** 出团日期范围 */
|
|
395
|
+
fulFillAtRange?: [number, number];
|
|
396
|
+
/** 订单创建时间筛选 */
|
|
397
|
+
createdAtRange?: [number, number];
|
|
398
|
+
/** 供应商列表 */
|
|
399
|
+
supplierIdList: string[];
|
|
400
|
+
};
|
|
401
|
+
/** 查询块 */
|
|
402
|
+
needBlocks: K;
|
|
403
|
+
/** 查询条数 */
|
|
404
|
+
pageSize?: number;
|
|
405
|
+
/** 查询页码 */
|
|
406
|
+
pageIndex?: number;
|
|
407
|
+
}
|
|
381
408
|
interface queryStoreOrderList<K> {
|
|
382
409
|
/** 条件 */
|
|
383
410
|
conditions: {
|
|
@@ -414,6 +441,44 @@ export declare namespace Service {
|
|
|
414
441
|
/** 查询块 */
|
|
415
442
|
needBlocks: K;
|
|
416
443
|
}
|
|
444
|
+
interface querySupplierOrderList<K> {
|
|
445
|
+
/** 条件 */
|
|
446
|
+
conditions: {
|
|
447
|
+
/** id列表 */
|
|
448
|
+
idList?: string[];
|
|
449
|
+
/** 状态 */
|
|
450
|
+
statusList?: string[];
|
|
451
|
+
/** 购买人姓名 */
|
|
452
|
+
contactName?: string;
|
|
453
|
+
/** 购买人手机号 */
|
|
454
|
+
contactMobile?: string;
|
|
455
|
+
/** 二级类目 */
|
|
456
|
+
categoryTwoList?: string[];
|
|
457
|
+
/** 出团日期范围 */
|
|
458
|
+
fulFillAtRange?: [number, number];
|
|
459
|
+
/** 订单创建时间筛选 */
|
|
460
|
+
createdAtRange?: [number, number];
|
|
461
|
+
/** 供应商列表 */
|
|
462
|
+
supplierIdList: string[];
|
|
463
|
+
/** 页面条数 */
|
|
464
|
+
pageSize?: number;
|
|
465
|
+
/** 页面下标 */
|
|
466
|
+
pageIndex?: number;
|
|
467
|
+
};
|
|
468
|
+
/** 排序 */
|
|
469
|
+
sort: {
|
|
470
|
+
/** 订单创建时间 */
|
|
471
|
+
createdAt?: 'ASC' | 'DESC';
|
|
472
|
+
/** 订单支付时间 */
|
|
473
|
+
paidAt?: 'ASC' | 'DESC';
|
|
474
|
+
/** 完结时间 */
|
|
475
|
+
completedAt?: 'ASC' | 'DESC';
|
|
476
|
+
/** 履约时间 */
|
|
477
|
+
fulfillAt?: 'ASC' | 'DESC';
|
|
478
|
+
};
|
|
479
|
+
/** 查询块 */
|
|
480
|
+
needBlocks: K;
|
|
481
|
+
}
|
|
417
482
|
interface queryPeriodTradeOrderList {
|
|
418
483
|
/** 二级类目 */
|
|
419
484
|
categoryTwo: string;
|
|
@@ -486,6 +551,24 @@ export declare namespace Service {
|
|
|
486
551
|
/** 门店列表 */
|
|
487
552
|
storeIdList: string[];
|
|
488
553
|
}
|
|
554
|
+
interface getSupplierOrderCount {
|
|
555
|
+
/** id列表 */
|
|
556
|
+
idList?: string[];
|
|
557
|
+
/** 状态 */
|
|
558
|
+
statusList?: string[];
|
|
559
|
+
/** 购买人姓名 */
|
|
560
|
+
contactName?: string;
|
|
561
|
+
/** 购买人手机号 */
|
|
562
|
+
contactMobile?: string;
|
|
563
|
+
/** 二级类目 */
|
|
564
|
+
categoryTwoList?: string[];
|
|
565
|
+
/** 出团日期范围 */
|
|
566
|
+
fulFillAtRange?: [number, number];
|
|
567
|
+
/** 订单创建时间筛选 */
|
|
568
|
+
createdAtRange?: [number, number];
|
|
569
|
+
/** 供应商列表 */
|
|
570
|
+
supplierIdList: string[];
|
|
571
|
+
}
|
|
489
572
|
interface getOrderCount {
|
|
490
573
|
/** 状态 */
|
|
491
574
|
status?: string[];
|
|
@@ -775,6 +858,30 @@ export declare namespace Service {
|
|
|
775
858
|
*/
|
|
776
859
|
queryRejectReasons(request: Request.queryRejectReasons): Promise<Response.queryRejectReasons>;
|
|
777
860
|
}
|
|
861
|
+
/** 供应商维度查询 */
|
|
862
|
+
interface QueryBySupplierController {
|
|
863
|
+
/**
|
|
864
|
+
* 查询门店订单列表
|
|
865
|
+
* @path /query/supplier/query-order-list
|
|
866
|
+
*/
|
|
867
|
+
queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
|
|
868
|
+
/**
|
|
869
|
+
* 查询订单数量
|
|
870
|
+
* @returns 订单数量
|
|
871
|
+
* @path /query/supplier/get-order-count
|
|
872
|
+
*/
|
|
873
|
+
getOrderCount(request: Request.getSupplierOrderCount): Promise<number>;
|
|
874
|
+
/**
|
|
875
|
+
* 查询拒单原因
|
|
876
|
+
* @path /query/supplier/query-reject-reasons
|
|
877
|
+
*/
|
|
878
|
+
queryRejectReasons(request: Request.queryRejectReasons): Promise<Response.queryRejectReasons>;
|
|
879
|
+
/**
|
|
880
|
+
* 数据统计
|
|
881
|
+
* @path /query/supplier/query-order-for-statistics
|
|
882
|
+
*/
|
|
883
|
+
queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatisticsForSupplier<K>): Promise<DTO.QueryDataRes<K>[]>;
|
|
884
|
+
}
|
|
778
885
|
/** web查询 */
|
|
779
886
|
interface QueryByWebController {
|
|
780
887
|
/**
|