46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import type { Dayjs } from 'dayjs';
|
|
|
|
import type { PageParam, PageResult } from '@vben/request';
|
|
|
|
import { requestClient } from '#/api/request';
|
|
|
|
export namespace ExpireApi {
|
|
/** 客户进展信息 */
|
|
export interface Expire {
|
|
id: number; // 主键
|
|
customerId?: number; // 客户ID
|
|
projectId?: number; // 项目ID
|
|
serialNo?: string; // sn
|
|
expiryDate: Dayjs | string; // 到期时间
|
|
neList: number[]; // 网元
|
|
userNumber: number; // 用户数
|
|
ranNumber: number; // 基站数
|
|
activationCode: string; // 激活码
|
|
fileUrl: string; // 激活码
|
|
licenseContent: string; // License内容
|
|
applicant: number; // 申请人
|
|
applicationTime: Dayjs | string; // 申请时间
|
|
approver: number; // 审批人
|
|
status: number; // 状态
|
|
remark: string; // 备注
|
|
applyCount: number; // 申请次数
|
|
customerName?: string; // 客户名称
|
|
projectName?: string; // 项目名称
|
|
}
|
|
}
|
|
|
|
/** 查询License 到期分页 */
|
|
export function getExpiryLicensePage(params: PageParam) {
|
|
return requestClient.get<PageResult<ExpireApi.Expire>>(
|
|
'/license/report/license/expire',
|
|
{ params },
|
|
);
|
|
}
|
|
|
|
/** 导出 */
|
|
export function exportExpire(params: any) {
|
|
return requestClient.download('/license/report/expire/export-excel', {
|
|
params,
|
|
});
|
|
}
|