zsgl.js 3.29 KB
/*
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-05-16 13:53:53
 */
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/**
 * @description: 证书管理-获取序列号
 * @param {*} params
 * @author: renchao
 */
export function getSysSerialSingle (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/system/sysSerial/getSysSerialSingle',
        method: 'get',
        params: params
    })
}
/**
 * @description: 证书管理-证书入库列表
 * @param {*} data
 * @author: renchao
 */
export function getZsglrkList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglrkList',
        method: 'post',
        data
    })
}
/**
 * @description: 证书管理-新增证书入库
 * @param {*} data
 * @author: renchao
 */
export function zsrk (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsrk',
        method: 'post',
        data
    })
}
/**
 * @description: 证书管理-删除证书入库
 * @param {*} params
 * @author: renchao
 */
export function removeZsgl (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/removeZsgl',
        method: 'get',
        params: params
    })
}
/**
 * @description: 证书管理-审核证书入库
 * @param {*} params
 * @author: renchao
 */
export function verifyZsrk (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/verifyZsrk',
        method: 'get',
        params: params
    })
}
/**
 * @description: 证书管理-证书分发列表
 * @param {*} data
 * @author: renchao
 */
export function getZsglffList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglffList',
        method: 'post',
        data
    })
}
/**
 * @description: 证书管理-证书分发列表
 * @author: renchao
 */
export function getZsStartNo () {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsStartNo',
        method: 'get'
    })
}
/**
 * @description: 证书管理-获取结束序列号
 * @param {*} params
 * @author: renchao
 */
export function getZsEndNo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsEndNo',
        method: 'get',
        params
    })
}
/* 
证书管理-新增证书分发
*/
export function zsff (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/zsff',
        method: 'post',
        data
    })
}
/* 
证书管理-确定分发
*/
export function confirmZsff (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/confirmZsff',
        method: 'get',
        params: params
    })
}
/* 
证书管理-证书使用情况
*/
export function getZssyqkList (data) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkList',
        method: 'post',
        data
    })
}
/* 
证书管理-证书使用情况详情
*/
export function getZssyqkInfo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZssyqkInfo',
        method: 'get',
        params
    })
}
/* 
证书管理-证书入库/分发详情
*/
export function getZsglInfo (params) {
    return request({
        url: SERVER.SERVERAPI + '/rest/sys/zsgl/getZsglInfo',
        method: 'get',
        params
    })
}