import request from '@/utils/request'
export const bbgl_list = (data = {}) =>
    request({
        url: '/xddy/dygl_xsxjk_bbgl/index',
        data: {
            page: data.page,
            limit: data.limit,
            keyword: data.keyword,
            xdxb_blx: data.xdxb_blx,
            xdxb_cjr: data.xdxb_cjr,
            xdxb_cjsj: data.xdxb_cjsj

        }
    })

export const bbgl_add = (data = {}) =>
    request({
        url: '/xddy/dygl_xsxjk_bbgl/add',
        data: {
            issubmit: '1',
            xddy_dygl_xsxjk_bbgl: {
                xdxb_title: data.xdxb_title,
                xdxb_blx: data.xdxb_blx,
                xdxb_cjr: data.xdxb_cjr,
                xdxb_cjsj: data.xdxb_cjsj,
                xdxb_qdzdysj: data.xdxb_qdzdysj,
                xdxb_custom_json:data.xdxb_custom_json

            }

        },
    })

export const bbgl_edit = (data = {}) =>
    request({
        url: '/xddy/dygl_xsxjk_bbgl/edit',
        data: {
            issubmit: '1',
            xdxb_id: data.xdxb_id,
            xddy_dygl_xsxjk_bbgl: {
                xdxb_title: data.xdxb_title,
                xdxb_blx: data.xdxb_blx,
                xdxb_cjr: data.xdxb_cjr,
                xdxb_cjsj: data.xdxb_cjsj,
                xdxb_qdzdysj: data.xdxb_qdzdysj,

            }

        },
    })

export const bbgl_detail = (data = {}) =>
    request({
        url: '/xddy/dygl_xsxjk_bbgl/detail',
        data: {
            xdxb_id: data.xdxb_id,

        },
    })

export const bbgl_del = (data = {}) =>
    request({
        url: '/xddy/dygl_xsxjk_bbgl/delete',
        data: {
            xdxb_id: data.xdxb_id,
        },
    })

export const bbgl_export = (data = {}) =>
    request({
        url: '/xddy/dygl_xsxjk_bbgl/index',
        api: "xls",
        data: {
            page: data.page,
            limit: data.limit
        },
    })