bdcqz.js 3.75 KB
/*
 * @Description: 不动产权证
 * @Autor: renchao
 * @LastEditTime: 2023-11-15 13:32:46
 */
import request from '@/utils/request';
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))

/**
 * @description: 获取不动产权证列表
 * @param {*} params
 * @author: renchao
 */
export function getBdcqzList (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getBdcqzList',
        method: 'get',
        params: params
    })
}
/**
 * @description: 获取印刷序列号
 * @param {*} params
 * @author: renchao
 */
export function readYsxlh (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/readYsxlh',
        method: 'get',
        params: params
    })
}
/**
 * @description: 缮证
 * @param {*} data
 * @author: renchao
 */
export function certificate (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/certificate',
        method: 'post',
        data
    })
}
/**
 * @description: 作废缮证信息
 * @param {*} data
 * @author: renchao
 */
export function invalidCertificate (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/invalidCertificate',
        method: 'post',
        data
    })
}
/**
 * @description: 根据受理申请标识码获取所有缮证列表
 * @param {*} data
 * @author: renchao
 */
export function getCertificateList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getCertificateList',
        method: 'post',
        data
    })
}

/**
 * @description: 获取不动产权证对应缮证列表
 * @param {*} params
 * @author: renchao
 */
export function getSzRecordList (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getSzRecordList',
        method: 'get',
        params
    })
}

/**
 * @description: 获取未领取的证书信息
 * @param {*} data
 * @author: renchao
 */
export function getUnclaimedBdcqz (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getUnclaimedBdcqz',
        method: 'post',
        params: data
    })
}

/**
 * @description: 发证
 * @param {*} data
 * @author: renchao
 */
export function issueCertificate (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/issueCertificate',
        method: 'post',
        data
    })
}
/**
 * @description: 获取受理申请下全部不动产权证
 * @param {*} params
 * @author: renchao
 */
export function getSlsqBdcqzList (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getSlsqBdcqzList',
        method: 'get',
        params
    })
}

/**
 * @description: 证书证明预览
 * @param {*} data
 * @author: renchao
 */
export function bdcqzPreview (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/bdcqzPreview',
        method: 'post',
        data,
        responseType: 'blob'
    })
}

/**
 * @description: 获取不动产权证详细信息
 * @param {*} bsmBdcqz
 * @author: renchao
 */
export function getBdcqzDetail (bsmBdcqz) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getBdcqzDetail',
        method: 'get',
        params: {
            bsmBdcqz: bsmBdcqz
        }
    })
}
/**
 * @description: 根据bsmBdcqz获取权利人信息
 * @param {*} bsmBdcqz
 * @author: renchao
 */
export function getBdcqzQlr (bsmBdcqz) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/getBdcqzQlr',
        method: 'get',
        params: {
            bsmBdcqz: bsmBdcqz
        }
    })
}

/**
 * @description: 修改
 * @param {*} data
 * @author: renchao
 */
export function editBdcqz (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/ywbl/bdcqz/editBdcqz',
        method: 'post',
        data
    })
}