import request from "@/http/request";

export const uploadExcelStock = (data) => {
    return request({
        url: '/excel/uploadStocks',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const uploadExcelBaseGoods = (data) => {
    return request({
        url: '/excel/importBaseGoods',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const uploadExcelKanban = (data) => {
    return request({
        url: '/excel/importKanban',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const uploadExcelDbs = (data) => {
    return request({
        url: '/excel/importDbs',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const uploadExcelProduct = (data) => {
    return request({
        url: '/excel/importProduct',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const uploadExcelSingleProduct = (data) => {
    return request({
        url: '/excel/importSingleProduct',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const uploadExcelProductExtend = (data) => {
    return request({
        url: '/excel/importProductExtend',
        method: 'post',
        data: data,
        timeout: 600000
    })
}

export const exportDbsWithExcel = (data) => {
    return request({
        url: '/excel/exportDbsWithExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const exportKittingBomWithExcel = (data) => {
    return request({
        url: '/excel/exportKittingBomWithExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const exportKittingBomRelationWithExcel = (data) => {
    return request({
        url: '/excel/exportKittingBomRelationWithExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadStockExcel = (data) => {
    return request({
        url: '/excel/downloadStockExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadInRecordExcel = (data) => {
    return request({
        url: '/excel/downloadInRecordExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadOutRecordExcel = (data) => {
    return request({
        url: '/excel/downloadOutRecordExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadInventoryRecordExcel = (data) => {
    return request({
        url: '/excel/downloadInventoryRecordExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadGoodsExcel = (data) => {
    return request({
        url: '/excel/exportBaseGoods',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadVehicleExcel = (data) => {
    return request({
        url: '/excel/downloadVehicleExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadLocationsExcel = (data) => {
    return request({
        url: '/excel/downloadLocationsExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const queryUploadRecord = (data) => {
    return request({
        url: '/excel/queryUploadRecord',
        method: 'post',
        data: data,
        timeout: 100000
    })
}

export const downloadClcKanbanRequirementExcel = (data) => {
    return request({
        url: '/excel/downloadClcKanbanRequirementExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}

export const downloadWorkSummaryExcel = (data) => {
    return request({
        url: '/excel/downloadWorkSummaryExcel',
        method: 'post',
        responseType: 'blob',
        data: data,
        timeout: 600000
    })
}