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 1/2] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E8=AF=81=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=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 @@ + + + From 2f07a300e67cf1130b31690d50a96b08331b85be Mon Sep 17 00:00:00 2001 From: xue <571013506@qq.com> Date: Mon, 13 May 2024 15:58:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AD=97=E5=85=B8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index af9528b..28959f5 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -214,5 +214,7 @@ export enum DICT_TYPE { // ========== FTA - 自贸区模块 ========== ENTERPRISE_OPERATE_STATE = 'enterprise_operate_state', // 企业经营状态 ENTERPRISE_IS_SECURITY = 'enterprise_is_secure', //是否涉及危化证 - ENTERPRISE_TYPE = 'enterprise_type' // 企业类型 + ENTERPRISE_TYPE = 'enterprise_type', // 企业类型 + ENTERPRISE_DOCUMENT_TYPE = 'enterprise_document_type', //企业证件类型 + TYPES_OF_SECURITY_PERSONNEL = 'types_of_security_personnel', // 安全人员类型 }