import axios from "../../utils/axios";

export function orderList(query) {
    return axios({
        url: "/admin/warehouse/inout/order/list",
        method: "get",
        params: query
    });
}

export function orderListByStatus(query) {
    return axios({
        url: "/udiwms/inout/order/status",
        method: "get",
        params: query
    });
}

export function orderListRepeat(query) {
    return axios({
        url: "/udiwms/inout/order/repeat",
        method: "get",
        params: query
    });
}

export function codeList(query) {
    return axios({
        url: "/admin/warehouse/inout/findByOrderId",
        method: "get",
        params: query
    });
}



export function findAllByOrderId(query) {
    return axios({
        url: "/admin/warehouse/inout/findAllByOrderId",
        method: "get",
        params: query
    });
}


export function mergeOrder(query) {
    return axios({
        url: "/warehouse/inout/order/mergeOrder",
        method: "post",
        data: query
    });
}

export function updateUnit(query) {
    return axios({
        url: "/udiwms/inout/order/updateUnit",
        method: "post",
        data: query
    });
}

export function filterOrder(query) {
    return axios({
        url: "/udiwms/inout/order/filter",
        method: "get",
        params: query
    });
}

export function errorCodeList(query) {
    return axios({
        url: "/admin/warehouse/inout/findErrorByOrderId",
        method: "get",
        params: query
    });
}

export function deleteByOrderId(query) {
    return axios({
        url: "/udiwms/inout/order/delete",
        method: "post",
        data: query
    });
}

export function deleteCodes(query) {
    return axios({
        url: "/warehouse/inout/code/deleteCodes",
        method: "post",
        data: query
    });
}

export function commitOrder(query) {
    return axios({
        url: "/warehouse/inout/commit",
        method: "post",
        data: query
    });
}

export function updateExportStatus(query) {
    return axios({
        url: "/udiwms/inout/order/updateExportStatus",
        method: "post",
        data: query
    });
}


export function uploadOrder(query) {
    return axios({
        url: "/warehouse/inout/order/uploadOrder",
        method: "get",
        params: query
    });
}



export function orderDetail(query) {
    return axios(
        {
            url: "/warehouse/inout/order/detail",
            method: "get",
            params: query
        }
    )
}

