import request from '@/utils/request';

export const ry_list = (data = {}) =>
    request({
        url: '/xddy/dygl_xshjgl_rygl/index',
        data: {
            page: data.page,
            limit: data.limit,
            keyword: data.keyword,
            xdxr_xsxh: data.xdxr_xsxh,
            xdxr_jldj: data.xdxr_jldj,
            xdxr_jljb: data.xdxr_jljb,
            xdxr_hjfs: data.xdxr_hjfs
        }
    })
export const ry_add = (data = {}) =>
    request({
        url: '/xddy/dygl_xshjgl_rygl/add',
        data: {
            issubmit: '1',
            xddy_dygl_xshjgl_rygl:{
                xdxr_xsxm:data.xdxr_xsxm,
                xdxr_xsxh:data.xdxr_xsxh,
                xdxr_shrymc:data.xdxr_shrymc,
                xdxr_jljb:data.xdxr_jljb,
                xdxr_rychsj:data.xdxr_rychsj,
                xdxr_bjsybm: data.xdxr_bjsybm,
                xdxr_jldj:data.xdxr_jldj,
                xdxr_hjxm:data.xdxr_hjxm,
                xdxr_hjfs:data.xdxr_hjfs,
                xdxr_scfj:data.xdxr_scfj,
                xdxr_hjyy:data.xdxr_hjyy
            }
        }
    })
export const ry_del = (data ={}) =>
    request({
        url: '/xddy/dygl_xshjgl_rygl/delete',
        data: {
            issubmit: '1',
            xdxr_id:data.xdxr_id
        }
    })
export const ry_edit = (data ={}) =>
    request({
        url: '/xddy/dygl_xshjgl_rygl/edit',
        data: {
            issubmit: '1',
            xdxr_id:data.xdxr_id,
            xddy_dygl_xshjgl_rygl:{
                isdelete:'1'
            }
        }
    })
