station.js
6.7 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import axios from 'axios'
import http from "../http";
let baseServiceURL = 'wms-server-warehouse/wms'
let baseUrl = 'wms-server-warehouse/wms/station'
let baseUrl1 = 'wms-server-warehouse/wms/house'
let baseUrl2 = 'wms-server-warehouse/wms/newinventroy'
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'
let baseUrl7 = 'wms-server-warehouse/wms/goods'
let baseUrl8 = 'special-declaration/ClassifiedNuclearHead'
let baseUrl9 = 'special-declaration/ClassifiedNuclearBodys'
let SPECIAL_SERVICE_NAME = 'special-declaration'
//查询货物明细
export const selectBywaybillandFhl = params => { return axios.get(`${baseServiceURL}/awbinfo/selectBywaybillandFhl`, { params: params }); };
//查询出入库记录
export const selectNewInventroyrecords = params => { return axios.get(`${baseServiceURL}/newinventroyrecord/selectNewInventroyrecords`, { params: params }); };
//出库
export const ExtNewinventroyrecord = params => { return axios.get(`${baseServiceURL}/newinventroyrecord/ExtNewinventroyrecord`, { params: params }); };
//回库
export const ReNewinventroyrecord = params => { return axios.post(`${baseServiceURL}/newinventroyrecord/ReNewinventroyrecord`, params); };
//退库
export const CancleNewinventroyrecord = params => { return axios.post(`${baseServiceURL}/newinventroyrecord/CancleNewinventroyrecord`, params); };
//分批出库
export const batchoutbound = params => { return http.post(`${baseUrl2}/batchoutbound`,params)};
//分批改单
export const batchchangewaybill = params => { return http.post(`${baseUrl2}/batchchangewaybill`,params)};
//场站管理
export const selectStations = params => { return axios.get(`${baseUrl}/selectStations`, { params: params }); };
export const selectStationList = params => { return axios.get(`${baseUrl}/selectStationList`, { params: params }); };
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)};
export const selectByStationno = params => { return axios.get(`${baseUrl}/selectByStationno`, { params: params }); };
//仓库管理
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)};
export const selectByHouseid = params => { return axios.get(`${baseUrl1}/selectByHouseid`, { params: params }); };
//库存管理
export const selectNewInventroys = params => { return axios.get(`${baseUrl2}/selectNewInventroys`, { params: params }); };
export const selectBylocationno = params => { return axios.get(`${baseUrl2}/selectBylocationno`, { params: params }); };
export const delInventoryrecord = params => { return axios.get(`${baseUrl2}/delInventoryrecord`, { params: params }); };
export const addInventoryrecord = params => { return http.post(`${baseUrl2}/addInventoryrecord`,params)};
//更改分单号
export const ediNewInventroyByfhl = params => { return http.post(`${baseUrl2}/ediNewInventroyByfhl`,params)};
//更改主单号
export const ediNewInventroyBywaybill = params => { return http.post(`${baseUrl2}/ediNewInventroyBywaybill`,params)};
//批量入库
export const batchImpNewinventroyrecord = params => { return http.post(`${baseServiceURL}/newinventroyrecord/batchImpNewinventroyrecord`,params)};
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)};
export const selectByAreaid = params => { return axios.get(`${baseUrl5}/selectByAreaid`, { params: params }); };
//特货管理
export const getSPHCode = params => { return http.get(`${baseUrl6}/selectByCode`,params)};
//商品管理
export const selectGoodsManagement = params => { return http.get(`${baseUrl7}/selectGoodsManagement`,params)};
export const delGoods = params => { return axios.get(`${baseUrl7}/delGoods`, { params: params }); };
export const addGoods = params => { return http.post(`${baseUrl7}/addGoods`,params)};
export const ediGoods = params => { return http.post(`${baseUrl7}/ediGoods`,params)};
//分类监管
//表头
export const selectAllAdd = params => { return http.postWithFrom(`${baseUrl8}/selectAll`,params)};
export const selectOne = params => { return http.post(`${baseUrl8}/selectOne`,params)};
export const saveAdd = params => { return http.post(`${baseUrl8}/save`,params)};
export const updateByIdAdd = params => { return http.post(`${baseUrl8}/updateById`,params)};
export const deleteByIdAdd = params => { return http.post(`${baseUrl8}/deleteById`,params)};
export const declaration = params => { return http.post(`${baseUrl8}/declaration`,params)};
//表体
export const selectAllQuery = params => { return http.post(`${baseUrl9}/selectAll`,params)};
export const saveQuery = params => { return http.post(`${baseUrl9}/save`,params)};
export const updateByIdQuery = params => { return http.post(`${baseUrl9}/updateById`,params)};
export const deleteByIdQuery = params => { return http.post(`${baseUrl9}/deleteById`,params)};
//获取卡口登录系统验证码
export const getVerifyCode = (params) =>{return http.post(`${SPECIAL_SERVICE_NAME}/HeatbeatTask/getVerifyCodeImg`, params)};