import request from '@/axios';
import { createCrudApi } from './common';

const baseUrl = '/blade-transport/waybill-manage';
const api = createCrudApi(baseUrl);

export const getList = api.getList;
export const getDetail = api.getDetail;
export const submit = api.submit;
export const remove = api.remove;
export const copy = api.copy;
export const cancel = api.cancel;
export const reassign = api.reassign;
export const complete = api.complete;
export const batchComplete = api.batchComplete;
export const roadLoading = ids =>
  request({
    url: `${baseUrl}/road-loading`,
    method: 'post',
    params: {
      ids,
    },
  });
