import request from '@/router/axios';

export const getPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getList = (params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/list',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const remove = (ids) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/remove',
        method: 'post',
        params: {
            ids,
        }
    })
}

export const add = (row) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/save',
        method: 'post',
        data: row
    })
}

export const update = (row) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/update',
        method: 'post',
        data: row
    })
}

export const getDetail = (id) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/detail',
        method: 'get',
        params: {
            id
        }
    })
}

export const todayOrderProcessList = (data) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/today/list',
        method: 'get',
        params: data,
    })
}

export const todayOrderProcessPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/today/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getNoNetworkSignalReportPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/nonetworksignal/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const closeNonetworksignalPhotoSubmit = (params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/nonetworksignal/close',
        method: 'post',
        data: params
    })
}

export const nonetworksignalPhotoUpdate = (row) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/nonetworksignal/photo/update',
        method: 'post',
        data: row
    })
}


