0bc2e94e
谢忠泽
add:快递收费标准配置
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
import { http } from "@/typing/http";
import request from "@/utils/request";
import qs from 'qs';
import { CONTRACT_HOST, HOST, FINANCE2_HOST } from "@/utils/host";
import { Any } from "currency.js";
type PrResArr<T> = http.PromiseResp<T[]>;
export interface PageParams {
current?: number;
pageSize?: number;
tradeCompId?:number; //合同类型名称
sendAreaNo?:string; //寄件地区编号
arriveAreaNo?:string; //到达地区编号
}
export interface SaveParams {
expressChargeStandardId?:number; //id,提供该参数将执行编辑操作
tradeCompId:number; //往来单位id
tradeCompName:string; //往来单位名称
sendAreaNo:string; //寄件地区编号
sendAreaName:string; //寄件地区名称
firstWeight:number; //首重
continuedWeight:number; //续重
arriveAreas:ArriveAreas[]; //到达地区
}
export interface DelParams {
expressChargeStandardId:number; //快递收费标准id
}
export interface ArriveAreas {
arriveAreaNo:string; //到达地区编号
arriveAreaName:string; //到达地区名称
}
export interface Item {
id?:number;
tradeCompName?:string; //往来单位名称
tradeCompShortName?:string; //往来单位简称
sendAreaName?:string; //寄件地区名称
arriveAreaName?:string; //到达地区名称
firstWeight?:number; //首重
continuedWeight?:number; //续重
}
/**
* 分页查询快递收费标准
*/
export function getStandardPage(params?: PageParams): http.PromisePageResp<Item> {
return request.get(`${CONTRACT_HOST}/erp/express/charge/standard/page`, { params });
}
/**
* 新增/编辑快递收费标准
*/
export function addStandardSave(params: SaveParams): http.PromiseResp<any> {
return request.post(`${CONTRACT_HOST}/erp/express/charge/standard/save`, { ...params });
}
/**
* 删除快递收费标准
*/
export function delStandard(params: DelParams): http.PromiseResp<void> {
return request.post(`${CONTRACT_HOST}/erp/express/charge/standard/delete`, { ...params });
}
/**获取往来单位列表*/
export function fetchComps(params?: any): http.PromiseResp<BearCostSetting.Comp[]> {
return request.get(`${FINANCE2_HOST}/common/trade/company/list`, {params });
}
/**
* 城市列表
*/
export function getCityLsit(): http.PromiseResp<any> {
const params = { pbh: 0 };
return request.get(`/oop/select/region`, { params });
}
|