From 19b86d8b25bc184c03c87bc160dd46c225de71b1 Mon Sep 17 00:00:00 2001
From: zy <276996223@qq.com>
Date: Sat, 25 Jan 2025 10:21:05 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/enterprise/index.ts | 54 ++++
src/api/qualification/index.ts | 47 ++++
src/locales/zh-CN.ts | 4 +-
src/views/Login/components/useLogin.ts | 1 +
src/views/enterprise/EnterpriseForm.vue | 171 ++++++++++++
src/views/enterprise/index.vue | 259 ++++++++++++++++++
.../EnterpriseQualificationForm.vue | 137 +++++++++
src/views/qualification/index.vue | 259 ++++++++++++++++++
8 files changed, 930 insertions(+), 2 deletions(-)
create mode 100644 src/api/enterprise/index.ts
create mode 100644 src/api/qualification/index.ts
create mode 100644 src/views/enterprise/EnterpriseForm.vue
create mode 100644 src/views/enterprise/index.vue
create mode 100644 src/views/qualification/EnterpriseQualificationForm.vue
create mode 100644 src/views/qualification/index.vue
diff --git a/src/api/enterprise/index.ts b/src/api/enterprise/index.ts
new file mode 100644
index 0000000..d1775cc
--- /dev/null
+++ b/src/api/enterprise/index.ts
@@ -0,0 +1,54 @@
+import request from '@/config/axios'
+
+// 企业 VO
+export interface EnterpriseVO {
+ id: number // 企业ID,主键
+ departmentId: number // 所属部门ID
+ userId: number // 管辖人员ID
+ type: string // 企业类型:1.大型、2.中型、3.小型、4.环保重点
+ region: string // 企业所属区域:1.东区、2.西区、3.北区、4.南区
+ enterprisesName: string // 企业名称
+ address: string // 企业地址
+ contactName: string // 环保负责人姓名
+ environmentalContactPhone: string // 企业环保负责人联系电话
+ registrationNumber: string // 企业注册号
+ introduction: string // 企业图文介绍
+ establishmentDate: Date // 企业成立时间
+ gpsLocation: string // 企业经纬度
+ createBy: string // 创建人
+ updateBy: string // 修改人
+ managerDeptId: number // 管理部门
+}
+
+// 企业 API
+export const EnterpriseApi = {
+ // 查询企业分页
+ getEnterprisePage: async (params: any) => {
+ return await request.get({ url: `/system/enterprise/page`, params })
+ },
+
+ // 查询企业详情
+ getEnterprise: async (id: number) => {
+ return await request.get({ url: `/system/enterprise/get?id=` + id })
+ },
+
+ // 新增企业
+ createEnterprise: async (data: EnterpriseVO) => {
+ return await request.post({ url: `/system/enterprise/create`, data })
+ },
+
+ // 修改企业
+ updateEnterprise: async (data: EnterpriseVO) => {
+ return await request.put({ url: `/system/enterprise/update`, data })
+ },
+
+ // 删除企业
+ deleteEnterprise: async (id: number) => {
+ return await request.delete({ url: `/system/enterprise/delete?id=` + id })
+ },
+
+ // 导出企业 Excel
+ exportEnterprise: async (params) => {
+ return await request.download({ url: `/system/enterprise/export-excel`, params })
+ },
+}
\ No newline at end of file
diff --git a/src/api/qualification/index.ts b/src/api/qualification/index.ts
new file mode 100644
index 0000000..9de44b1
--- /dev/null
+++ b/src/api/qualification/index.ts
@@ -0,0 +1,47 @@
+import request from '@/config/axios'
+
+// 企业资质 VO
+export interface EnterpriseQualificationVO {
+ id: number // 主键
+ enterpriseId: number // 企业ID
+ qualificationName: number // 资质名称,例如:排污许可证、环保合格证
+ expiryDate: Date // 资质到期日期
+ qualificationDescription: string // 资质描述,详细说明资质信息
+ updateBy: string // 修改人
+ createBy: string // 创建人
+ handleDate: Date // 办理日期
+ enterpriseAuth: string // 资质编号
+}
+
+// 企业资质 API
+export const EnterpriseQualificationApi = {
+ // 查询企业资质分页
+ getEnterpriseQualificationPage: async (params: any) => {
+ return await request.get({ url: `/system/enterprise-qualification/page`, params })
+ },
+
+ // 查询企业资质详情
+ getEnterpriseQualification: async (id: number) => {
+ return await request.get({ url: `/system/enterprise-qualification/get?id=` + id })
+ },
+
+ // 新增企业资质
+ createEnterpriseQualification: async (data: EnterpriseQualificationVO) => {
+ return await request.post({ url: `/system/enterprise-qualification/create`, data })
+ },
+
+ // 修改企业资质
+ updateEnterpriseQualification: async (data: EnterpriseQualificationVO) => {
+ return await request.put({ url: `/system/enterprise-qualification/update`, data })
+ },
+
+ // 删除企业资质
+ deleteEnterpriseQualification: async (id: number) => {
+ return await request.delete({ url: `/system/enterprise-qualification/delete?id=` + id })
+ },
+
+ // 导出企业资质 Excel
+ exportEnterpriseQualification: async (params) => {
+ return await request.download({ url: `/system/enterprise-qualification/export-excel`, params })
+ },
+}
\ No newline at end of file
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index 130d565..9a9aba2 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -114,8 +114,8 @@ export default {
small: '小'
},
login: {
- welcome: '欢迎使用本系统',
- message: '开箱即用的中后台管理系统',
+ welcome: '欢迎使用智慧生态环保管理平台',
+ message: '',
tenantname: '租户名称',
username: '用户名',
password: '密码',
diff --git a/src/views/Login/components/useLogin.ts b/src/views/Login/components/useLogin.ts
index b4a02f8..c7a7700 100644
--- a/src/views/Login/components/useLogin.ts
+++ b/src/views/Login/components/useLogin.ts
@@ -18,6 +18,7 @@ export function useLoginState() {
const getLoginState = computed(() => currentState.value)
function handleBackLogin() {
+
setLoginState(LoginStateEnum.LOGIN)
}
diff --git a/src/views/enterprise/EnterpriseForm.vue b/src/views/enterprise/EnterpriseForm.vue
new file mode 100644
index 0000000..4649622
--- /dev/null
+++ b/src/views/enterprise/EnterpriseForm.vue
@@ -0,0 +1,171 @@
+
+
+
+
diff --git a/src/views/enterprise/index.vue b/src/views/enterprise/index.vue
new file mode 100644
index 0000000..5a6f81c
--- /dev/null
+++ b/src/views/enterprise/index.vue
@@ -0,0 +1,259 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/qualification/EnterpriseQualificationForm.vue b/src/views/qualification/EnterpriseQualificationForm.vue
new file mode 100644
index 0000000..f4775bb
--- /dev/null
+++ b/src/views/qualification/EnterpriseQualificationForm.vue
@@ -0,0 +1,137 @@
+
+
+
+
diff --git a/src/views/qualification/index.vue b/src/views/qualification/index.vue
new file mode 100644
index 0000000..04176f7
--- /dev/null
+++ b/src/views/qualification/index.vue
@@ -0,0 +1,259 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+