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 @@ + + + + +