djbFrameData.js 5.82 KB

/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-09-15 10:52:40
 */
var qlxxPage = [
    { qllx: "A01", id: "tdsyq", form: "tdsyq.vue", label: "集体土地所有权" },
    { qllx: "A02", id: "tdsyq", form: "tdsyq.vue", label: "国家土地所有权" },
    { qllx: "A03", id: "jsydsyq", form: "jsydsyq.vue", label: "国有建设用地使用权" },
    { qllx: "A04", id: "", form: "", label: "国有建设用地使用权/房屋所有权" },
    { qllx: "A05", id: "jsydsyq", form: "jsydsyq.vue", label: "宅基地使用权" },
    { qllx: "A06", id: "", form: "", label: "宅基地使用权/房屋所有权" },
    { qllx: "A07", id: "jsydsyq", form: "jsydsyq.vue", label: "集体建设用地使用权" },
    { qllx: "A08", id: "", form: "", label: "集体建设用地使用权/房屋所有权" },
    { qllx: "A09", id: "jsydsyq", form: "jsydsyq.vue", label: "土地承包经营权" },
    { qllx: "A11", id: "ldsyq", form: "ldsyq.vue", label: "林地使用权" },
    { qllx: "A12", id: "sllmsyq", form: "sllmsyq.vue", label: "林地使用权/森林、林木使用权" },
    { qllx: "A13", id: "jsydsyq", form: "jsydsyq.vue", label: "草原使用权" },
    { qllx: "A14", id: "jsydsyq", form: "jsydsyq.vue", label: "水域滩涂养殖权" },
    { qllx: "A15", id: "jsydsyq", form: "jsydsyq.vue", label: "海域使用权" },
    { qllx: "A16", id: "jsydsyq", form: "jsydsyq.vue", label: "海域使用权/建(构)筑物所有权" },
    { qllx: "A17", id: "jsydsyq", form: "jsydsyq.vue", label: "海域使用权(无居民海岛)" },
    { qllx: "A18", id: "jsydsyq", form: "jsydsyq.vue", label: "海域使用权(无居民海岛)/建筑物(设施)使用权" },
    { qllx: "A19", id: "diyiq", form: "diyiq.vue", label: "地役权" },
    { qllx: "A23", id: "jsydsyq", form: "jsydsyq.vue", label: "国有农用地的使用权" },
    { qllx: "A24", id: "jsydsyq", form: "jsydsyq.vue", label: "国有建设用地使用权/构筑物所有权" },
    { qllx: "A25", id: "jsydsyq", form: "jsydsyq.vue", label: "宅基地使用权/构筑物所有权" },
    { qllx: "A26", id: "jsydsyq", form: "jsydsyq.vue", label: "集体建设用地使用权/构筑物所有权" },
    { qllx: "A29", id: "jsydsyq", form: "jsydsyq.vue", label: "国有未利用地的使用权" },
    { qllx: "A30", id: "jsydsyq", form: "jsydsyq.vue", label: "集体农用地使用权" },
    { qllx: "A31", id: "jsydsyq", form: "jsydsyq.vue", label: "土地承包经营权/森林、林木使用权" },
    { qllx: "A33", id: "jsydsyq", form: "jsydsyq.vue", label: "林地经营权/林木所有权" },
    { qllx: "A34", id: "jsydsyq", form: "jsydsyq.vue", label: "林地经营权/林木使用权" },
    { qllx: "A35", id: "jsydsyq", form: "jsydsyq.vue", label: "林地承包经营权/林木所有权" },
    { qllx: "A36", id: "jsydsyq", form: "jsydsyq.vue", label: "林地使用权/林木所有权" },
    { qllx: "A37", id: "diyaq", form: "diyaq.vue", label: "抵押权" },
    { qllx: "B37", id: "diyaq", form: "diyaq.vue", label: "抵押权" },
    { qllx: "B38", id: "yydj", form: "yydj.vue", label: "异议登记" },
    { qllx: "B39", id: "cfdj", form: "cfdj.vue", label: "查封登记" },
    { qllx: "B40", id: "ygdj", form: "ygdj.vue", label: "预告登记" },
    { qllx: "B41", id: "ygdj", form: "ygdj.vue", label: "预告登记" },
];

//组装登记簿树形结构
/**
 * @description: 组装登记簿树形结构
 * @param {*} bdcdyh
 * @author: renchao
 */
export function loadTreeData (bdcdyh) {
    let treedata = [];
    //加载封面
    treedata.push({ id: "djbfm", form: "djbfm.vue", label: "登记簿封面" });
    treedata.push({ id: "zdjbxx", form: "zdjbxx.vue", label: "宗地基本信息\n(" + bdcdyh.substring(0, 19) + ")", children: [] });
    treedata[1].children.push({ id: "bdcqldjml", form: "bdcqldjml.vue", label: "不动产权利登记目录", children: [] });
    return treedata;
}
export function loadsfqData (qlxxData, bdcdyh, bdcdyid) {
    let treedata = {
        bdcdyid: bdcdyid, id: "bdcqljqtsx", form: "bdcqljqtsx.vue", label: "不动产权利及其他事项\n (" + bdcdyh.slice(19) + ")", children: [],
    };
    //主体权利
    treedata.children.push(getNode(qlxxData.ztqllx, qlxxData.ztql, qlxxData.bdcdylx, bdcdyid));
    //抵押权
    treedata.children.push(getNode("A37", qlxxData.diyaq, '', bdcdyid));
    //地役权
    treedata.children.push(getNode("A19", qlxxData.diyiq, '', bdcdyid));
    //预告登记
    treedata.children.push(getNode("B40", qlxxData.ygdj, '', bdcdyid));
    //异议登记
    treedata.children.push(getNode("B38", qlxxData.yydj, '', bdcdyid));
    //查封登记
    treedata.children.push(getNode("B39", qlxxData.cfdj, '', bdcdyid));

    return treedata;
}

//获取权利类型、不动产单元类型对应的树形节点信息
/**
 * @description: 不动产单元类型对应的树形节点信息
 * @param {*} qllx
 * @param {*} qlxx
 * @param {*} bdcdylx
 * @author: renchao
 */
export function getNode (qllx, qlxx, bdcdylx, bdcdyid) {
    let node;
    for (var i = 0; i < qlxxPage.length; i++) {
        if (qlxxPage[i].qllx == qllx) {
            if (qllx == "A04" || qllx == "A06" || qllx == "A08") {
                if (bdcdylx == "4") {
                    node = { bdcdyid: bdcdyid, id: "fdcq1", form: "fdcq1.vue", label: qlxxPage[i].label ,zt: "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi + ")" };
                } else {
                    node = { bdcdyid: bdcdyid, id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label  ,zt: "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi + ")" };
                }
            } else {
                node = { bdcdyid: bdcdyid, id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label ,zt: "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi + ")" };
            }
            break;
        }
    };
    return node;
}