zd.js 3.67 KB
import request from "@/plugin/axios";

/**
 * 保存面积分摊表
 * @param data
 * @constructor
 */
export function savemjft(data) {
    return request({
        url: "/zd/qjGygyzdmjft/insertQjGygyzdmjft",
        method: "post",
        data: data,
    });
}

/**
 * 查询面积分摊表信息
 */
export function getMjftInfo(zdBsm) {
    return request({
        url: "/zd/qjGygyzdmjft/getQjGygyzdmjftDetailById",
        method: "get",
        params: {
            zdBsm
        }
    })
}

/**
 * 新增宗地基本信息
 */
export function insertQjZdjbxx(data) {
    return request({
        url: "zd/qjZdjbxx/insertQjZdjbxx",
        method: "post",
        data: data,
    });
}

/**
 * 修改宗地基本信息
 */
export function updateQjZdjbxx(data) {
    return request({
        url: "zd/qjZdjbxx/updateQjZdjbxx",
        method: "put",
        data: data,
    });
}

/**
 * 生成宗地代码
 */
export function getBdcdyh(dpdm, dptype) {
    return request({
        url: '/system/generator/getBdcdyh',
        method: 'get',
        params: {
            dpdm: dpdm,
            dptype: dptype
        }
    })
}
/*
*新增界址点
* */
export function addjzd(data) {
    return request({
        url:"/zd/qjJzd/insertBatch",
        method:"post",
        data:data
    })
}

/**
 * 查询界址点
 */
export function queryjzd(glBsm) {
    return request({
        url: "/zd/qjJzd/getQjJzdListByGlBsm",
        method: "get",
        params: glBsm
    });
}
/*
* 添加界址线
* */
export function addjzx(data){
    return request({
        url:"/zd/qjJzx/insertBatch",
        method:"post",
        data:data
    })
}
/**
 * 查询界址线
 */
export function queryjzx(glBsm) {
    return request({
        url: '/zd/qjJzx/getQjJzxListByGlBsm',
        method: 'get',
        params: {
            glBsm
        }
    })
}

/**
 * 根据zdbsm查询宗地基本信息
 */
export function getQjZdjbxxDetailById(id) {
    return request({
        url: '/zd/qjZdjbxx/getQjZdjbxxDetailById',
        method: 'get',
        params: {
            id
        }
    })
}

/**
 * 界址点单一修改
 */
export function jzdsingleModify(data) {
    return request({
        url: '/zd/qjJzd/singleModify',
        method: 'put',
        data: data
    })
}

/**
 * 界址点批量修改
 */
export function jzdbatchModify(data) {
    return request({
        url: '/zd/qjJzd/batchModify',
        method: 'put',
        data: data
    })
}

/**
 * 界址线单一修改
 */
export function jzxsingleModify(data) {
    return request({
        url: '/zd/qjJzx/singleModify',
        method: 'put',
        data: data
    })
}

/**
 * 界址线批量修改
 */
export function jzxsbatchModify(data) {
    return request({
        url: '/zd/qjJzx/batchModify',
        method: 'put',
        data: data
    })
}

/**x
 *根据宗地Bsm删除宗地信息
 */
export function deleteZdInfoByBsm(data) {
    return request({
        url: '/delete/deleteDyByBsm',
        method: 'delete',
        data: data
    })
}

/**
 * 宗地分割
 */
export function zdfg(data) {
    return request({
        url: '/bg/zdSplitMerge/zdFg',
        method: 'post',
        data: data
    })
}

/**
 * 获取宗地下的自然幢、逻辑幢、幢单元
 */
export function zdXlcd(bsm) {
    return request({
        url:'/zd/qjZdjbxx/parcels',
        method:'get',
        params:{
            bsm
        }
    })
}

/**
 * 户落宗
 */
export function hzl(data) {
    return request({
        url:'/system/qjH/hcxlz',
        method:'put',
        data:data
    })
}

export function exportShp(data) {
    return request({
        url:"/tx/shpUtils/writeShp",
        method:"post",
        params:data,
        responseType: 'arraybuffer'
    })
}