审查视图

src/api/consigner/vehicle.js 4.0 KB
小范 authored
1 2 3 4
import axios from 'axios'
import http from "../http";

let baseServiceURL = 'wms-server-warehouse'
小范 authored
5
const serviceName = '/cloud-user-center'
小范 authored
6
小范 authored
7 8 9 10 11 12 13 14
//GPS车辆绑定/解绑
//export const equipmentVehicleBind = params => { return axios.get(`${baseServiceURL}/gps/location/equipmentVehicleBind`, { params: params }); };
//GPS车辆历史轨迹
export const gpshistoryTrack = params => { return axios.get(`${baseServiceURL}/gps/location/gpshistoryTrack`, { params: params }); };
//GPS车辆当前定位
export const gpslastlocation = params => { return axios.get(`${baseServiceURL}/gps/location/gpslastlocation`, { params: params }); };
//GPS多车当前定位
export const gpsqueryMulVel = params => { return axios.get(`${baseServiceURL}/gps/location/gpsqueryMulVel`, { params: params }); };
15 16

//车辆定位
小范 authored
17
export const selectVehicle = params => { return axios.get(`${baseServiceURL}/map/location/lastlocation`, { params: params }); };
18 19
export const selectByliscenNo = params => { return axios.get(`${baseServiceURL}/map/location/selectByliscenNo`, { params: params }); };
小范 authored
20 21
//出任务
export const insertSelective = params => { return http.post(`${baseServiceURL}/map/location/insertSelective`, params); };
小范 authored
22
//获取用户列表
xudada authored
23
export const getUserList = (data,params) => { return http.post(`${serviceName}/crm/list`, data, params) };
24 25 26

//车辆轨迹
export const historyTrack = params => { return axios.get(`${baseServiceURL}/map/location/historyTrack`, { params: params }); };
27 28 29 30 31 32

//出勤历史
export const selectHistroy = params => { return axios.get(`${baseServiceURL}/map/location/selectHistroy`, { params: params }); };

//出勤车辆
export const selectList = params => { return axios.get(`${baseServiceURL}/map/location/selectList`, { params: params }); };
33
export const DoneTask = params => { return http.post(`${baseServiceURL}/map/location/DoneTask`, params); };
34 35
export const UploadImage = params => { return http.postMulData(`${baseServiceURL}/map/location/upload`, params); };
36 37 38 39

//根据用户查询所属出勤车辆
export const selectNameList = params => { return axios.get(`${baseServiceURL}/map/location/selectNameList`, { params: params }); };
小范 authored
40 41
//多车定位
export const queryMulVel = params => { return axios.get(`${baseServiceURL}/map/location/queryMulVel`, { params: params }); };
xudada authored
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

//车载运单查询列表
export const selectNewInventroyrecords = params => { return axios.get(`${baseServiceURL}/wms/vehicleWaybill/selectNewInventroyrecords`, { params: params }); };
//车载运单新增
export const addVehicleWaybill = params => { return http.post(`${baseServiceURL}/wms/vehicleWaybill/addVehicleWaybill`, params); };
//车载运单删除
export const delVehicleWaybill = params => { return axios.get(`${baseServiceURL}/wms/vehicleWaybill/delVehicleWaybill`, { params: params }); };
//车载运单更新
export const ediVehicleWaybill = params => { return http.post(`${baseServiceURL}/wms/vehicleWaybill/ediVehicleWaybill`, params); };
//车辆派单
export const paidan = params => { return http.post(`${baseServiceURL}/wms/vehicleWaybill/paidan`, params); };
//查询车载派单记录列表
export const selectByDispatchList = params => { return axios.get(`${baseServiceURL}/wms/tracker/selectByDispatchList`, { params: params }); };
//手动新增车载派单记录
export const addTracker = params => { return http.post(`${baseServiceURL}/wms/tracker/addTracker`, params); };
//根据派单号查询运单列表
export const selectListByDispatch = params => { return axios.get(`${baseServiceURL}/wms/vehicleWaybill/selectListByDispatch`, { params: params }); };
//上传EXCEL
export const UploadExcel = params => { return http.postExcelData(`${baseServiceURL}/wms/vehicleWaybill/upload`, params); };
//车载货物图片上传
export const uploadGoodsImage = params => { return http.postExcelData(`${baseServiceURL}/wms/vehicleWaybill/uploadGoodsImage`, params); };
//查询货物图片列表
export const selectPicsByDispatch = params => { return axios.get(`${baseServiceURL}/wms/vehicleWaybill/selectPicsByDispatch`, { params: params }); };