From 07085014c4dd676ff14d4c84a4e7d67ced68e4ad Mon Sep 17 00:00:00 2001 From: xue <571013506@qq.com> Date: Mon, 13 May 2024 15:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E8=AF=81=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=9F=BA=E7=A1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/fta/credentialmanagement/index.ts | 53 +++++ src/views/fta/credentialmanagement/index.vue | 226 +++++++++++++++++++ 2 files changed, 279 insertions(+) create mode 100644 src/api/fta/credentialmanagement/index.ts create mode 100644 src/views/fta/credentialmanagement/index.vue 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 @@ + + +