From bc963f07670bc10dc2bfdeb9c7420dd173cb2a9d Mon Sep 17 00:00:00 2001 From: Wayne Date: Wed, 15 May 2024 08:34:10 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=A1=B5=E9=9D=A2=E4=BA=9B=E8=AE=B8?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/fta/credentialmanagement/index.ts | 106 +++++++++--------- src/utils/dict.ts | 1 - src/views/fta/credentialmanagement/index.vue | 16 ++- src/views/fta/enterprisechange/create.vue | 9 +- src/views/fta/enterprisechange/index.vue | 40 ++----- .../fta/enterprisechange/selectEnterprise.vue | 9 +- src/views/fta/enterpriseinformation/index.vue | 14 +-- 7 files changed, 93 insertions(+), 102 deletions(-) diff --git a/src/api/fta/credentialmanagement/index.ts b/src/api/fta/credentialmanagement/index.ts index 4b382ad..786b7fc 100644 --- a/src/api/fta/credentialmanagement/index.ts +++ b/src/api/fta/credentialmanagement/index.ts @@ -1,53 +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 +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: number // 证件类型(0安全员证,1安全负责人证,2危险品证) + certificateNumber: string // 证书编号 + name: string // 姓名 + personnelType: string // 人员类型 + sex: number // 性别(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 }) + }, +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 0a5ebc5..3e0c02c 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -216,7 +216,6 @@ export enum DICT_TYPE { ENTERPRISE_IS_SECURITY = 'enterprise_is_secure', //是否涉及危化证 ENTERPRISE_TYPE = 'enterprise_type', // 企业类型 ENTERPRISE_DOCUMENT_TYPE = 'enterprise_document_type', //企业证件类型 - TYPES_OF_SECURITY_PERSONNEL = 'types_of_security_personnel', // 安全人员类型 CREDENTIAL_SEX = 'credential_sex', // 证书性别 CREDENTIAL_PERSONNEL_TYPE = 'credential_personnel_type', // 人员类型 CREDENTIAL_CATEGORY_OF_EMPLOYMENT = 'credential_category_of_employment', //行业类别 diff --git a/src/views/fta/credentialmanagement/index.vue b/src/views/fta/credentialmanagement/index.vue index 80d0a1d..a3d0f62 100644 --- a/src/views/fta/credentialmanagement/index.vue +++ b/src/views/fta/credentialmanagement/index.vue @@ -49,7 +49,7 @@ class="!w-240px" > - + + + - + + + - +