You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
183 lines
3.4 KiB
183 lines
3.4 KiB
import request from '@/axios'; |
|
|
|
/** |
|
* 获取配载计划分页 |
|
*/ |
|
export const postloadCarsPageList = (page, params) => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/loadCarsPageList', |
|
method: 'post', |
|
data: { |
|
...page, |
|
...params, |
|
}, |
|
}); |
|
}; |
|
|
|
/** |
|
* 发车 |
|
* data -- loadId 配载id组成的字符串 |
|
* data -- startCarType 1: 始发仓发车 2: 网点发车 |
|
*/ |
|
export const postStartCarByLoadId = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/startCarByLoadId', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 取消发车 |
|
*/ |
|
export const postCancelStartCarByLoadId = data => { |
|
return request({ |
|
url: '/logpm-trunkline/carsLoad/cancelStartCarByLoadId', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 卸车确认 |
|
*/ |
|
export const postUnloadByLoadId = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/unloadByLoadId', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 到车 |
|
*/ |
|
export const postArriveCarByLoadId = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/arriveCarByLoadId', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 取消到车 |
|
*/ |
|
export const postCancelArriveCarByLoadId = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/cancelArriveCarByLoadId', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 取消配载 |
|
*/ |
|
export const postCancelCarsLoadByLoadId = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/cancelCarsLoadByLoadId', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 判断是否有未有终点的装车数据 |
|
*/ |
|
export const postDetermineHasNoFinalNode = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/determineHasNoFinalNode', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 更新节点数据的最终目的仓id |
|
*/ |
|
export const postUpdateLoadScanFinalNodeIdById = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/updateLoadScanFinalNodeIdById', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 查询当前节点以后的节点id |
|
*/ |
|
export const postFindNextNodeList = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/findNextNodeList', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 删除异常数据 |
|
*/ |
|
export const postRemoveCarsLoadScan = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/api/carsLoad/removeCarsLoadScan', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 手动装车 |
|
*/ |
|
export const postManualLoadingloadId = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/manualLoading', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 查看配载清单 |
|
*/ |
|
export const postFindLoadingListData = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/findLoadingListData', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 查看配载清单 |
|
*/ |
|
export const postFindWarehouseUnloadReport = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/findWarehouseUnloadReport', |
|
method: 'post', |
|
data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 车辆配载数据导出 |
|
*/ |
|
export const postExportLoadCarsPageList = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/exportLoadCarsPageList', |
|
method: 'post', |
|
data, |
|
responseType: 'blob', |
|
}); |
|
}; |
|
|
|
/** |
|
* 查询订单配载锁定详情 |
|
*/ |
|
export const postFindOrderPlanCarsNum = data => { |
|
return request({ |
|
url: '/api/logpm-trunkline/carsLoad/findOrderPlanCarsNum ', |
|
method: 'post', |
|
data, |
|
}); |
|
};
|
|
|