82 lines
1.8 KiB
JavaScript
82 lines
1.8 KiB
JavaScript
|
|
import { request } from './request'
|
||
|
|
import { Upload } from './request'
|
||
|
|
|
||
|
|
|
||
|
|
// 新增配送选择货物信息
|
||
|
|
const selectInfo = (params) => {
|
||
|
|
return request('/document/order/wisdom/rk/list', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查看货物信息的详情
|
||
|
|
const selectInfoDetail = (params) => {
|
||
|
|
return request('/document/info/list', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查看货物信息的字典
|
||
|
|
const getGoodsDict = (params) => {
|
||
|
|
return request('/document/mtd/calcTotalWv', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 获取配送车型列表
|
||
|
|
const getCarList = (params) => {
|
||
|
|
return request('/document/type/list', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 适配车型和预估费用
|
||
|
|
const autoCarAndPrice = (params) => {
|
||
|
|
return request('/document/type/fee', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 发布配送订单
|
||
|
|
const sendOrder = (params) => {
|
||
|
|
return request('/document/order/batch', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 配送订单列表
|
||
|
|
const getOrder = (params) => {
|
||
|
|
return request('/document/order/listWithDetail', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 配送订单详情
|
||
|
|
const getOrderDetail = (params) => {
|
||
|
|
return request('/document/order/detail/' + params.orderNo, params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 上传配送附件
|
||
|
|
const uploadDeliveryAttachment = (files, formData) => {
|
||
|
|
return Upload('/document/attachment/upload', files, formData)
|
||
|
|
}
|
||
|
|
|
||
|
|
// 开始配送订单
|
||
|
|
const startOrder = (params) => {
|
||
|
|
return request('/document/attachment/executeBind', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 上报经纬度
|
||
|
|
const locationReport = (params) => {
|
||
|
|
params.showLoading = true
|
||
|
|
return request('/delivery/location/report', params, 'POST')
|
||
|
|
}
|
||
|
|
|
||
|
|
// 历史轨迹
|
||
|
|
const historyLocation = (params) => {
|
||
|
|
return request('/delivery/location/track', params, 'GET')
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export {
|
||
|
|
selectInfo,
|
||
|
|
selectInfoDetail,
|
||
|
|
getGoodsDict,
|
||
|
|
getCarList,
|
||
|
|
autoCarAndPrice,
|
||
|
|
sendOrder,
|
||
|
|
getOrder,
|
||
|
|
getOrderDetail,
|
||
|
|
uploadDeliveryAttachment,
|
||
|
|
startOrder,
|
||
|
|
locationReport,
|
||
|
|
historyLocation
|
||
|
|
}
|
||
|
|
|