From 76eb41e75d291ca7db02da6795c29dfdead16261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Thu, 27 Mar 2025 10:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=81=E4=B8=9A=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=A1=A8=E5=8D=95=EF=BC=8C=E8=B0=83=E6=95=B4=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=E7=A7=B0=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E8=AF=A6=E6=83=85=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E8=BF=9B=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterprises/index.ts | 13 ++- src/api/qualification/index.ts | 12 +-- .../UploadFile/src/FileUploader.vue | 2 + src/views/enterprises/update.vue | 97 +++++++++++++++---- src/views/qualification/prove.vue | 35 +++++-- 5 files changed, 122 insertions(+), 37 deletions(-) diff --git a/src/api/enterprises/index.ts b/src/api/enterprises/index.ts index 604e631..0fa2a8b 100644 --- a/src/api/enterprises/index.ts +++ b/src/api/enterprises/index.ts @@ -9,15 +9,15 @@ export interface EnterprisesVO { region: string // 企业所属区域 enterprisesName: string // 企业名称 address: string // 企业地址 - enterprisesStatus//企业状态 + enterprisesStatus //企业状态 contactName: string // 环保负责人姓名 environmentalContactPhone: string // 企业环保负责人联系电话 registrationNumber: string // 企业注册号 introduction: string // 企业图文介绍 establishmentDate: Date // 企业成立时间 gpsLocation: string // 企业经纬度 - signRadius:string//签到半径 - managerDeptId: number, // 管理部门 + signRadius: string //签到半径 + managerDeptId: number // 管理部门 tagList: any } @@ -66,4 +66,11 @@ export const EnterprisesApi = { return await request.get({ url: `"/system/system/tag-library/list`, params }) }, + /** + * 查询企业详情 + * @param id 企业ID + */ + enterpriseDetail: async (id: any) => { + return await request.get({ url: `/system/enterprise/pcget?id=` + id }) + } } diff --git a/src/api/qualification/index.ts b/src/api/qualification/index.ts index 62f162e..a93b432 100644 --- a/src/api/qualification/index.ts +++ b/src/api/qualification/index.ts @@ -20,13 +20,13 @@ export const EnterpriseQualificationApi = { return await request.get({ url: `/system/enterprise-qualification/page`, params }) }, - // 查询企业资质分页 - getEnterpriseQualificationPageEnterprise: async (params: any) => { - return await request.get({ url: `/system/enterprise-qualification/pageEnterprise`, params }) - }, + // 查询企业资质分页 + getEnterpriseQualificationPageEnterprise: async (params: any) => { + return await request.get({ url: `/system/enterprise-qualification/pageEnterprise`, params }) + }, // 查询企业资质详情 - getEnterpriseQualification: async (id: number) => { + getEnterpriseQualification: async (id: any) => { return await request.get({ url: `/system/enterprise-qualification/get?id=` + id }) }, @@ -48,5 +48,5 @@ export const EnterpriseQualificationApi = { // 导出企业资质 Excel exportEnterpriseQualification: async (params) => { return await request.download({ url: `/system/enterprise-qualification/export-excel`, params }) - }, + } } diff --git a/src/components/UploadFile/src/FileUploader.vue b/src/components/UploadFile/src/FileUploader.vue index 7e7ccc7..6418993 100644 --- a/src/components/UploadFile/src/FileUploader.vue +++ b/src/components/UploadFile/src/FileUploader.vue @@ -172,8 +172,10 @@ const handleExceed = () => { } const handlerUpload = async () => { + if (fileList.value.filter((i) => i.status == 'ready').length == 0) return const formData = new FormData() fileList.value.forEach((file: any) => { + if (file.status == 'success') return formData.append('files', file.raw) }) let res = await batchUploadFile(formData) diff --git a/src/views/enterprises/update.vue b/src/views/enterprises/update.vue index 9bce595..cd35c41 100644 --- a/src/views/enterprises/update.vue +++ b/src/views/enterprises/update.vue @@ -1,6 +1,6 @@ - +
相关资质
-
+
-
- 保存 +
+ 保存信息 + 返回列表
- - + +