express.js
1.1 KB
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
import axios from 'axios'
import http from "../http";
let awbaUrl = 'express-system/expressAwba'
let awbhUrl = 'express-system/expressAwbh'
let bulidMsg = 'express-system/bulidMsg'
/**
* 主单请求
* @param params
* @returns {Promise<AxiosResponse<T>>}
*/
export const getExpressList = params => { return axios.get(`${awbaUrl}/list`, { params: params });};
export const awbaAdd = params => { return http.post(`${awbaUrl}/awbaAdd`,params)};
export const awbaEdit = params => { return http.put(`${awbaUrl}/awbaEdit`,params)};
export const selectAwba = params => { return http.get(`${awbaUrl}/selectAwba`,{ params: params });};
/**
* 分单请求
*/
export const awbhAdd = params => { return http.post(`${awbhUrl}/awbhAdd`,params)};
export const awbhEdit = params => { return http.put(`${awbhUrl}/awbhEdit`,params)};
export const selectAwbh = params => { return axios.get(`${awbhUrl}/selectAwbh`, { params: params }); };
/**
* 生成报文
*/
export const awbaAddBulid = params => { return http.post(`${bulidMsg}/awbaAddBulid`,params)};
export const awbhAddBulid = params => { return http.post(`${bulidMsg}/awbhAddBulid`,params)};