bdcqz.js 3.21 KB
/*
 * @Description: 不动产权证
 * @Autor: renchao
 * @LastEditTime: 2023-09-05 13:24:14
 */
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
        }
    })
}