...
|
...
|
@@ -3,12 +3,16 @@ |
|
|
* @author: Leo
|
|
|
* @date: 2017/05/04
|
|
|
*/
|
|
|
import _ from 'lodash';
|
|
|
import axios from 'axios';
|
|
|
|
|
|
const apiUrl = {
|
|
|
allotPurchaseList: '/erp/allotPurchaseList',
|
|
|
allotDelivery: '/erp/delivery',
|
|
|
allotDelivery: '/erp/allotDelivery',
|
|
|
allotExpressList: '/erp/allotExpressList',
|
|
|
allotExpressDetail: '/erp/allotExpressDetail',
|
|
|
allotWarehouseInfo: '/erp/allotWarehouseInfo',
|
|
|
allotStockOut: '/erp/allotStockOut',
|
|
|
allotExpressNumList: '/erp/allotExpressNumList'
|
|
|
};
|
|
|
|
|
|
const tradeService = {
|
...
|
...
|
@@ -22,6 +26,66 @@ const tradeService = { |
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
allotDelivery(params) {
|
|
|
return axios.post(apiUrl.allotDelivery, params)
|
|
|
.then(res => {
|
|
|
if(res.status === 200) {
|
|
|
return res.data;
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
allotExpressList(params) {
|
|
|
return axios.post(apiUrl.allotExpressList, params)
|
|
|
.then(res => {
|
|
|
if(res.status === 200) {
|
|
|
return res.data;
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
allotExpressDetail(params) {
|
|
|
return axios.post(apiUrl.allotExpressDetail, params)
|
|
|
.then(res => {
|
|
|
if(res.status === 200) {
|
|
|
return res.data;
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
allotWarehouseInfo(params) {
|
|
|
return axios.post(apiUrl.allotWarehouseInfo, params)
|
|
|
.then(res => {
|
|
|
if(res.status === 200) {
|
|
|
return res.data;
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
allotStockOut(params) {
|
|
|
return axios.post(apiUrl.allotStockOut, params)
|
|
|
.then(res => {
|
|
|
if(res.status === 200) {
|
|
|
return res.data;
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
allotExpressNumList(params) {
|
|
|
return axios.post(apiUrl.allotExpressNumList, params)
|
|
|
.then(res => {
|
|
|
if(res.status === 200) {
|
|
|
return res.data;
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
});
|
|
|
},
|
|
|
};
|
|
|
|
|
|
export default tradeService; |
...
|
...
|
|