审查视图

src/api/consigner/station.js 4.8 KB
1 2 3
import axios from 'axios'
import http from "../http";
朱兆平 authored
4
let baseServiceURL = 'wms-server-warehouse/wms'
5 6
let baseUrl = 'wms-server-warehouse/wms/station'
let baseUrl1 = 'wms-server-warehouse/wms/house'
7
let baseUrl2 = 'wms-server-warehouse/wms/newinventroy'
8 9 10 11
let baseUrl3 = 'wms-server-warehouse/wms/location'
let baseUrl4 = 'wms-server-warehouse/wms/inventroy'
let baseUrl5 = 'wms-server-warehouse/wms/area'
let baseUrl6 = 'wms-server-warehouse/wms/newbasesphcode'
12
13
14 15 16 17
//查询货物明细
export const selectBywaybillandFhl = params => { return axios.get(`${baseServiceURL}/awbinfo/selectBywaybillandFhl`, { params: params }); };
//查询出入库记录
export const selectNewInventroyrecords = params => { return axios.get(`${baseServiceURL}/newinventroyrecord/selectNewInventroyrecords`, { params: params }); };
小范 authored
18 19
//出库
export const ExtNewinventroyrecord = params => { return axios.get(`${baseServiceURL}/newinventroyrecord/ExtNewinventroyrecord`, { params: params }); };
20 21 22 23
//分批出库
export const batchoutbound = params => { return http.post(`${baseUrl2}/batchoutbound`,params)};
//分批改单
export const batchchangewaybill = params => { return http.post(`${baseUrl2}/batchchangewaybill`,params)};
24 25

//场站管理
26 27
export const selectStations = params => { return axios.get(`${baseUrl}/selectStations`, { params: params }); };
28 29
export const selectStationList = params => { return axios.get(`${baseUrl}/selectStationList`, { params: params }); };
30 31 32 33 34
export const delStation = params => { return axios.get(`${baseUrl}/delStation`, { params: params }); };

export const addStation = params => { return http.post(`${baseUrl}/addStation`,params)};

export const ediStation = params => { return http.post(`${baseUrl}/ediStation`,params)};
35 36 37

export const selectByStationno = params => { return axios.get(`${baseUrl}/selectByStationno`, { params: params }); };
38 39 40 41 42 43 44 45
//仓库管理
export const selectHouses = params => { return axios.get(`${baseUrl1}/selectHouses`, { params: params }); };

export const delHouse = params => { return axios.get(`${baseUrl1}/delHouse`, { params: params }); };

export const addHouse = params => { return http.post(`${baseUrl1}/addHouse`,params)};

export const ediHouse = params => { return http.post(`${baseUrl1}/ediHouse`,params)};
46 47 48

export const selectByHouseid = params => { return axios.get(`${baseUrl1}/selectByHouseid`, { params: params }); };
49 50
//库存管理
export const selectNewInventroys = params => { return axios.get(`${baseUrl2}/selectNewInventroys`, { params: params }); };
51
52 53
export const selectBylocationno = params => { return axios.get(`${baseUrl2}/selectBylocationno`, { params: params }); };
54 55 56
export const delInventoryrecord = params => { return axios.get(`${baseUrl2}/delInventoryrecord`, { params: params }); };

export const addInventoryrecord = params => { return http.post(`${baseUrl2}/addInventoryrecord`,params)};
57 58 59 60 61
//更改分单号
export const ediNewInventroyByfhl = params => { return http.post(`${baseUrl2}/ediNewInventroyByfhl`,params)};

//更改主单号
export const ediNewInventroyBywaybill = params => { return http.post(`${baseUrl2}/ediNewInventroyBywaybill`,params)};
62
朱兆平 authored
63 64 65
//批量入库
export const batchImpNewinventroyrecord = params => { return http.post(`${baseServiceURL}/newinventroyrecord/batchImpNewinventroyrecord`,params)};
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
export const ediInventroyrecord = params => { return http.post(`${baseUrl2}/ediInventroyrecord`,params)};
//库位管理
export const selectLocations = params => { return axios.get(`${baseUrl3}/selectLocations`, { params: params }); };

export const delLocation = params => { return axios.get(`${baseUrl3}/delLocation`, { params: params }); };

export const addLocation = params => { return http.post(`${baseUrl3}/addLocation`,params)};

export const ediLocation = params => { return http.post(`${baseUrl3}/ediLocation`,params)};
//库存管理
export const selectInventorys = params => { return axios.get(`${baseUrl4}/selectInventorys`, { params: params }); };

export const delInventroy = params => { return axios.get(`${baseUrl4}/delInventroy`, { params: params }); };

export const addInventory = params => { return http.post(`${baseUrl4}/addInventory`,params)};

export const ediInventroy = params => { return http.post(`${baseUrl4}/ediInventroy`,params)};
//库区管理
export const selectAreas = params => { return axios.get(`${baseUrl5}/selectAreas`, { params: params }); };

export const delArea = params => { return axios.get(`${baseUrl5}/delArea`, { params: params }); };

export const addArea = params => { return http.post(`${baseUrl5}/addArea`,params)};

export const ediArea = params => { return http.post(`${baseUrl5}/ediArea`,params)};
91 92

export const selectByAreaid = params => { return axios.get(`${baseUrl5}/selectByAreaid`, { params: params }); };
93 94 95
//特货管理
export const getSPHCode = params => { return http.get(`${baseUrl6}/selectByCode`,params)};