| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- import {get, post, put} from './request';
- const BASE_URL = '/dispatch';
- /**
- * 上传发货单
- *
- * [
- {
- "dataList": [
- {
- "qty": "sed est",
- "partNumber": "84"
- }
- ],
- "customer": "tempor quis anim",
- "truckNo": "anim commodo velit est consequat"
- }
- ]
- * */
- export function addDeliver(data) {
- return post({url: `${BASE_URL}/addDispatch`, data});
- }
- /**
- * 确认收货
- *
- * {
- "customer": "string",
- "truckNo": "string",
- "anomaly": "string",
- "note": "string",
- "imgs": "string"
- }
- * */
- export function confirmDeliver(data) {
- return put({url: `${BASE_URL}/updDispatch`, data});
- }
- /**
- * 获取列表
- *
- * arrivalTime arrivalTimes 发货时间
- * finalTime finalTimes 送达时间
- * customer 客户号
- * truckNo 卡车号
- * anomaly 1异常订单
- * page
- * limit
- * */
- export function getList(data) {
- return get({url: `${BASE_URL}/getDispatchList`, data});
- }
- /**
- *
- * 获取详情
- *
- * track 卡车号
- * customer 客户号
- */
- export function getInfo(track, customer) {
- return get({
- url: `${BASE_URL}/getDispatchList`,
- data: {track, customer, page: '1', limit: '1'},
- });
- }
- /** 清除异常 */
- export function clear(id) {
- return put({url: `${BASE_URL}/updAnomaly`, data: {id}});
- }
- /**
- *
- * 修改预计到货时间
- *
- * data: {id, arrivalTime}
- */
- export function modifyFinalDate(data) {
- return put({url: `${BASE_URL}/updArrivalTime`, data});
- }
- /**
- * 获取发货日志
- *
- * agoScrg 开始时间
- * endScrg 结束时间
- */
- export function getOrderDateList(data) {
- return get({url: `${BASE_URL}/getDispatchListLog`, data});
- }
|