From 21f8ad90618858725c1567383beead4e8d80cbce Mon Sep 17 00:00:00 2001 From: Wayne Date: Wed, 8 May 2024 09:56:55 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AD=97=E5=85=B8=E4=B8=AD=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=98=AF=E5=90=A6=E6=B6=89=E5=8F=8A=E5=8D=B1=E5=8C=96?= =?UTF-8?q?=E8=AF=81=E5=AD=97=E6=AE=B5=202=E3=80=81=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=98=AF=E5=90=A6=E6=B6=89=E5=8F=8A=E5=8D=B1=E5=8C=96?= =?UTF-8?q?=E8=AF=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/fta/enterpriseinformation/index.ts | 107 +++++++++--------- src/utils/dict.ts | 1 + .../fta/enterpriseinformation/create.vue | 12 ++ .../fta/enterpriseinformation/detail.vue | 3 + src/views/fta/enterpriseinformation/index.vue | 35 ++++-- 5 files changed, 94 insertions(+), 64 deletions(-) diff --git a/src/api/fta/enterpriseinformation/index.ts b/src/api/fta/enterpriseinformation/index.ts index a697f95..286c9c2 100644 --- a/src/api/fta/enterpriseinformation/index.ts +++ b/src/api/fta/enterpriseinformation/index.ts @@ -1,53 +1,54 @@ -import request from '@/config/axios' - -// 企业信息 VO -export interface EnterpriseInformationVO { - id: number // 编号 - name: string // 企业名称 - legalPerson: string // 企业法定代表人 - unifiedCreditCode: string // 统一信用代码 - telephone: string // 电话 - mailbox: string // 邮箱 - registerAddress: string // 注册地址 - communicationAddress: string // 通信地址 - operateState: boolean // 经营状态 - establishDate: Date // 成立日期 - enterpriseType: boolean // 企业类型 - enterpriseBelongingToRegion: string // 企业所属地区 - enterpriseBelongingToIndustry: string // 企业所属行业 - registerOffice: string // 登记机关 - operatePermitRange: string // 经营许可范围 -} - -// 企业信息 API -export const EnterpriseInformationApi = { - // 查询企业信息分页 - getEnterpriseInformationPage: async (params: any) => { - return await request.get({ url: `/fta/enterprise-information/page`, params }) - }, - - // 查询企业信息详情 - getEnterpriseInformation: async (id: number) => { - return await request.get({ url: `/fta/enterprise-information/get?id=` + id }) - }, - - // 新增企业信息 - createEnterpriseInformation: async (data: EnterpriseInformationVO) => { - return await request.post({ url: `/fta/enterprise-information/create`, data }) - }, - - // 修改企业信息 - updateEnterpriseInformation: async (data: EnterpriseInformationVO) => { - return await request.put({ url: `/fta/enterprise-information/update`, data }) - }, - - // 删除企业信息 - deleteEnterpriseInformation: async (id: number) => { - return await request.delete({ url: `/fta/enterprise-information/delete?id=` + id }) - }, - - // 导出企业信息 Excel - exportEnterpriseInformation: async (params) => { - return await request.download({ url: `/fta/enterprise-information/export-excel`, params }) - }, -} \ No newline at end of file +import request from '@/config/axios' + +// 企业信息 VO +export interface EnterpriseInformationVO { + id: number // 编号 + name: string // 企业名称 + legalPerson: string // 企业法定代表人 + unifiedCreditCode: string // 统一信用代码 + telephone: string // 电话 + mailbox: string // 邮箱 + registerAddress: string // 注册地址 + communicationAddress: string // 通信地址 + operateState: number // 经营状态 + isSecure: number //是否涉及危化证 + establishDate: Date // 成立日期 + enterpriseType: number // 企业类型 + enterpriseBelongingToRegion: string // 企业所属地区 + enterpriseBelongingToIndustry: string // 企业所属行业 + registerOffice: string // 登记机关 + operatePermitRange: string // 经营许可范围 +} + +// 企业信息 API +export const EnterpriseInformationApi = { + // 查询企业信息分页 + getEnterpriseInformationPage: async (params: any) => { + return await request.get({ url: `/fta/enterprise-information/page`, params }) + }, + + // 查询企业信息详情 + getEnterpriseInformation: async (id: number) => { + return await request.get({ url: `/fta/enterprise-information/get?id=` + id }) + }, + + // 新增企业信息 + createEnterpriseInformation: async (data: EnterpriseInformationVO) => { + return await request.post({ url: `/fta/enterprise-information/create`, data }) + }, + + // 修改企业信息 + updateEnterpriseInformation: async (data: EnterpriseInformationVO) => { + return await request.put({ url: `/fta/enterprise-information/update`, data }) + }, + + // 删除企业信息 + deleteEnterpriseInformation: async (id: number) => { + return await request.delete({ url: `/fta/enterprise-information/delete?id=` + id }) + }, + + // 导出企业信息 Excel + exportEnterpriseInformation: async (params) => { + return await request.download({ url: `/fta/enterprise-information/export-excel`, params }) + }, +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 9c4f6a8..af9528b 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -213,5 +213,6 @@ export enum DICT_TYPE { // ========== FTA - 自贸区模块 ========== ENTERPRISE_OPERATE_STATE = 'enterprise_operate_state', // 企业经营状态 + ENTERPRISE_IS_SECURITY = 'enterprise_is_secure', //是否涉及危化证 ENTERPRISE_TYPE = 'enterprise_type' // 企业类型 } diff --git a/src/views/fta/enterpriseinformation/create.vue b/src/views/fta/enterpriseinformation/create.vue index 0f6b443..ce41844 100644 --- a/src/views/fta/enterpriseinformation/create.vue +++ b/src/views/fta/enterpriseinformation/create.vue @@ -67,6 +67,16 @@ + + + + + @@ -126,6 +136,7 @@ const formData = ref({ registerAddress: undefined, communicationAddress: undefined, operateState: undefined, + isSecure: undefined, establishDate: undefined, enterpriseType: undefined, enterpriseBelongingToRegion: undefined, @@ -148,6 +159,7 @@ const formRules = reactive({ enterpriseBelongingToIndustry: [{ required: true, message: '企业所属行业不能为空', trigger: 'blur' }], registerOffice: [{ required: true, message: '登记机关不能为空', trigger: 'blur' }], operatePermitRange: [{ required: true, message: '经营许可范围不能为空', trigger: 'blur' }], + isSecure: [{ required: true, message: '是否涉及危化证不能为空', trigger: 'blur' }] }) const formRef = ref() // 表单 Ref diff --git a/src/views/fta/enterpriseinformation/detail.vue b/src/views/fta/enterpriseinformation/detail.vue index 917d695..6a3bfca 100644 --- a/src/views/fta/enterpriseinformation/detail.vue +++ b/src/views/fta/enterpriseinformation/detail.vue @@ -43,6 +43,9 @@ {{ detailData.operatePermitRange }} + + + diff --git a/src/views/fta/enterpriseinformation/index.vue b/src/views/fta/enterpriseinformation/index.vue index da6a62a..911873a 100644 --- a/src/views/fta/enterpriseinformation/index.vue +++ b/src/views/fta/enterpriseinformation/index.vue @@ -54,7 +54,7 @@ class="!w-240px" > + + + + + 搜索 重置 @@ -121,14 +136,6 @@ 发起创建 - - 新增 - + + +