diff --git a/src/api/fta/credentialmanagement/index.ts b/src/api/fta/credentialmanagement/index.ts new file mode 100644 index 0000000..4b382ad --- /dev/null +++ b/src/api/fta/credentialmanagement/index.ts @@ -0,0 +1,53 @@ +import request from '@/config/axios' + +// 企业证件 VO +export interface CredentialManagementVO { + informationId: string // 企业id + businessPattern: string // 经营方式 + usefulLife: string // 有效期限 + licenceIssuingAuthority: string // 发证机关 + dateOfIssue: Date // 发证日期 + status: string // 流程状态 + id: number // id + expiryDate: Date // 到期时间 + idType: boolean // 证件类型(0安全员证,1安全负责人证,2危险品证) + certificateNumber: string // 证书编号 + name: string // 姓名 + personnelType: string // 人员类型 + sex: boolean // 性别(0男,1女) + categoryOfEmployment: string // 行业类别 + enterpriseName: string // 企业名称 +} + +// 企业证件 API +export const CredentialManagementApi = { + // 查询企业证件分页 + getCredentialManagementPage: async (params: any) => { + return await request.get({ url: `/fta/credential-management/page`, params }) + }, + + // 查询企业证件详情 + getCredentialManagement: async (id: number) => { + return await request.get({ url: `/fta/credential-management/get?id=` + id }) + }, + + // 新增企业证件 + createCredentialManagement: async (data: CredentialManagementVO) => { + return await request.post({ url: `/fta/credential-management/create`, data }) + }, + + // 修改企业证件 + updateCredentialManagement: async (data: CredentialManagementVO) => { + return await request.put({ url: `/fta/credential-management/update`, data }) + }, + + // 删除企业证件 + deleteCredentialManagement: async (id: number) => { + return await request.delete({ url: `/fta/credential-management/delete?id=` + id }) + }, + + // 导出企业证件 Excel + exportCredentialManagement: async (params) => { + return await request.download({ url: `/fta/credential-management/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/fta/credentialmanagement/index.vue b/src/views/fta/credentialmanagement/index.vue new file mode 100644 index 0000000..984f793 --- /dev/null +++ b/src/views/fta/credentialmanagement/index.vue @@ -0,0 +1,226 @@ + + +