审查视图

src/api/express/express.js 1.1 KB
1
import axios from 'axios'
2
import http from "../http";
3
4 5 6
let awbaUrl = 'express-system/expressAwba'
let awbhUrl = 'express-system/expressAwbh'
let bulidMsg = 'express-system/bulidMsg'
7 8

9 10 11 12 13 14
/**
 * 主单请求
 * @param params
 * @returns {Promise<AxiosResponse<T>>}
 */
export const getExpressList = params => { return axios.get(`${awbaUrl}/list`, { params: params });};
15
16
export const awbaAdd = params => { return http.post(`${awbaUrl}/awbaAdd`,params)};
17
18
export const awbaEdit = params => { return http.put(`${awbaUrl}/awbaEdit`,params)};
19
20
export const selectAwba = params => { return http.get(`${awbaUrl}/selectAwba`,{ params: params });};
21
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
/**
 * 分单请求
 */
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)};
37
38