From e6caabbba8ebd04f87bce77f847a3d6c7a42becd Mon Sep 17 00:00:00 2001 From: gxwebsoft Date: Fri, 23 Feb 2024 13:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E6=AF=8F=E6=9C=881?= =?UTF-8?q?=E6=97=A5=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/tower/security-record/index.ts | 108 +++ src/api/tower/security-record/model/index.ts | 31 + src/api/tower/security/index.ts | 105 +++ src/api/tower/security/model/index.ts | 31 + .../contract/components/contract-edit.vue | 858 ++++++++++-------- .../components/security-record-edit.vue | 192 ++++ .../maintenance/security-record/index.vue | 222 +++++ .../security/components/category-edit.vue | 249 +++++ .../security/components/security-edit.vue | 192 ++++ .../security/components/security-record.vue | 169 ++++ .../tower/maintenance/security/index.vue | 242 +++++ 12 files changed, 2017 insertions(+), 386 deletions(-) create mode 100644 src/api/tower/security-record/index.ts create mode 100644 src/api/tower/security-record/model/index.ts create mode 100644 src/api/tower/security/index.ts create mode 100644 src/api/tower/security/model/index.ts create mode 100644 src/views/tower/maintenance/security-record/components/security-record-edit.vue create mode 100644 src/views/tower/maintenance/security-record/index.vue create mode 100644 src/views/tower/maintenance/security/components/category-edit.vue create mode 100644 src/views/tower/maintenance/security/components/security-edit.vue create mode 100644 src/views/tower/maintenance/security/components/security-record.vue create mode 100644 src/views/tower/maintenance/security/index.vue diff --git a/.env.development b/.env.development index 537e29b..1af570f 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ VITE_APP_NAME=后台管理系统 -#VITE_API_URL=http://127.0.0.1:10041/api -VITE_API_URL=http://1.14.159.185:10041/api +VITE_API_URL=http://127.0.0.1:10041/api +#VITE_API_URL=http://1.14.159.185:10041/api diff --git a/src/api/tower/security-record/index.ts b/src/api/tower/security-record/index.ts new file mode 100644 index 0000000..adddcf4 --- /dev/null +++ b/src/api/tower/security-record/index.ts @@ -0,0 +1,108 @@ +import request from '@/utils/request'; +import type { ApiResult, PageResult } from '@/api'; +import type { + SecurityRecord, + SecurityRecordParam +} from '@/api/tower/security-record/model'; +/** + * 分页查询仓库 + */ +export async function pageSecurityRecord(params: SecurityRecordParam) { + const res = await request.get>>( + '/tower/tower-security-record/page', + { + params + } + ); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 查询仓库列表 + */ +export async function listSecurityRecord(params?: SecurityRecordParam) { + const res = await request.get>( + '/tower/tower-security-record', + { + params + } + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 添加仓库 + */ +export async function addSecurityRecord(data: SecurityRecord) { + const res = await request.post>( + '/tower/tower-security-record', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 修改仓库 + */ +export async function updateSecurityRecord(data: SecurityRecord) { + const res = await request.put>( + '/tower/tower-security-record', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 绑定仓库 + */ +export async function bindSecurityRecord(data: SecurityRecord) { + const res = await request.put>( + '/tower/tower-security-record/bind', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 删除仓库 + */ +export async function removeSecurityRecord(id?: number) { + const res = await request.delete>( + '/tower/tower-security-record/' + id + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 批量删除仓库 + */ +export async function removeBatchSecurityRecord(data: (number | undefined)[]) { + const res = await request.delete>( + '/tower/tower-security-record/batch', + { + data + } + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/tower/security-record/model/index.ts b/src/api/tower/security-record/model/index.ts new file mode 100644 index 0000000..961e091 --- /dev/null +++ b/src/api/tower/security-record/model/index.ts @@ -0,0 +1,31 @@ +import type { PageParam } from '@/api'; + +export interface SecurityRecord { + securityRecordId?: number; + projectName?: string; + projectId?: number; + securityCode?: string; + regionName?: string; + longitude?: string; + latitude?: string; + country?: string; + province?: string; + city?: string; + region?: string; + address?: string; + status?: number; + userId?: number; + comments?: string; + sortNumber?: number; +} + +/** + * 搜索条件 + */ +export interface SecurityRecordParam extends PageParam { + securityId?: number; + projectId?: number; + projectName?: string; + status?: number; + keywords?: string; +} diff --git a/src/api/tower/security/index.ts b/src/api/tower/security/index.ts new file mode 100644 index 0000000..7bfffba --- /dev/null +++ b/src/api/tower/security/index.ts @@ -0,0 +1,105 @@ +import request from '@/utils/request'; +import type { ApiResult, PageResult } from '@/api'; +import type { Security, SecurityParam } from '@/api/tower/security/model'; +/** + * 分页查询仓库 + */ +export async function pageSecurity(params: SecurityParam) { + const res = await request.get>>( + '/tower/tower-security/page', + { + params + } + ); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 查询仓库列表 + */ +export async function listSecurity(params?: SecurityParam) { + const res = await request.get>( + '/tower/tower-security', + { + params + } + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 添加仓库 + */ +export async function addSecurity(data: Security) { + const res = await request.post>( + '/tower/tower-security', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 修改仓库 + */ +export async function updateSecurity(data: Security) { + const res = await request.put>( + '/tower/tower-security', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 绑定仓库 + */ +export async function bindSecurity(data: Security) { + const res = await request.put>( + '/tower/tower-security/bind', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 删除仓库 + */ +export async function removeSecurity(id?: number) { + const res = await request.delete>( + '/tower/tower-security/' + id + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 批量删除仓库 + */ +export async function removeBatchSecurity(data: (number | undefined)[]) { + const res = await request.delete>( + '/tower/tower-security/batch', + { + data + } + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/tower/security/model/index.ts b/src/api/tower/security/model/index.ts new file mode 100644 index 0000000..7c75c16 --- /dev/null +++ b/src/api/tower/security/model/index.ts @@ -0,0 +1,31 @@ +import type { PageParam } from '@/api'; + +export interface Security { + securityId?: number; + projectName?: string; + projectId?: number; + securityCode?: string; + regionName?: string; + longitude?: string; + latitude?: string; + country?: string; + province?: string; + city?: string; + region?: string; + address?: string; + status?: number; + userId?: number; + comments?: string; + sortNumber?: number; +} + +/** + * 搜索条件 + */ +export interface SecurityParam extends PageParam { + securityId?: number; + projectId?: number; + projectName?: string; + status?: number; + keywords?: string; +} diff --git a/src/views/tower/contract/components/contract-edit.vue b/src/views/tower/contract/components/contract-edit.vue index fbfbeb7..c25abb4 100644 --- a/src/views/tower/contract/components/contract-edit.vue +++ b/src/views/tower/contract/components/contract-edit.vue @@ -54,30 +54,26 @@ /> - + - {{ companyName }} - - - - - + + + + + {{ customerName }} - - - - - + + + + + - + @@ -120,10 +122,16 @@ - - - + + + @@ -139,13 +147,21 @@ -

{{ form.totalSettleAmount - form.totalIncomeAmount }}

+

{{ + form.totalSettleAmount - form.totalIncomeAmount + }}

-
+

合同电子存档

@@ -164,8 +180,10 @@
-
+
合同签订设备清单 @@ -211,62 +229,119 @@
-
+
暂无数据
diff --git a/src/views/tower/maintenance/security-record/components/security-record-edit.vue b/src/views/tower/maintenance/security-record/components/security-record-edit.vue new file mode 100644 index 0000000..0f45eaf --- /dev/null +++ b/src/views/tower/maintenance/security-record/components/security-record-edit.vue @@ -0,0 +1,192 @@ + + + + + + diff --git a/src/views/tower/maintenance/security-record/index.vue b/src/views/tower/maintenance/security-record/index.vue new file mode 100644 index 0000000..d675748 --- /dev/null +++ b/src/views/tower/maintenance/security-record/index.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/src/views/tower/maintenance/security/components/category-edit.vue b/src/views/tower/maintenance/security/components/category-edit.vue new file mode 100644 index 0000000..ff6a619 --- /dev/null +++ b/src/views/tower/maintenance/security/components/category-edit.vue @@ -0,0 +1,249 @@ + + + + + + diff --git a/src/views/tower/maintenance/security/components/security-edit.vue b/src/views/tower/maintenance/security/components/security-edit.vue new file mode 100644 index 0000000..0f45eaf --- /dev/null +++ b/src/views/tower/maintenance/security/components/security-edit.vue @@ -0,0 +1,192 @@ + + + + + + diff --git a/src/views/tower/maintenance/security/components/security-record.vue b/src/views/tower/maintenance/security/components/security-record.vue new file mode 100644 index 0000000..42c0527 --- /dev/null +++ b/src/views/tower/maintenance/security/components/security-record.vue @@ -0,0 +1,169 @@ + + + + + + diff --git a/src/views/tower/maintenance/security/index.vue b/src/views/tower/maintenance/security/index.vue new file mode 100644 index 0000000..d6831ad --- /dev/null +++ b/src/views/tower/maintenance/security/index.vue @@ -0,0 +1,242 @@ + + + + +