From 255481861addbe194c7e92dc176a373316501904 Mon Sep 17 00:00:00 2001 From: mocheng <3057647414@qq.com> Date: Mon, 23 Jun 2025 09:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=9A=E4=B8=AA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/.env.development | 2 +- .../src/api/property/application/index.ts | 61 +++++ .../src/api/property/application/model.d.ts | 134 +++++++++ apps/web-antd/src/api/property/asset/index.ts | 61 +++++ .../src/api/property/asset/model.d.ts | 194 +++++++++++++ .../web-antd/src/api/property/attach/index.ts | 61 +++++ .../src/api/property/attach/model.d.ts | 119 ++++++++ .../src/api/property/conteact/index.ts | 61 +++++ .../src/api/property/conteact/model.d.ts | 204 ++++++++++++++ apps/web-antd/src/api/property/depot/index.ts | 61 +++++ .../src/api/property/depot/model.d.ts | 89 ++++++ apps/web-antd/src/api/property/log/index.ts | 61 +++++ apps/web-antd/src/api/property/log/model.d.ts | 189 +++++++++++++ apps/web-antd/src/api/property/meet/index.ts | 61 +++++ .../web-antd/src/api/property/meet/model.d.ts | 119 ++++++++ .../src/api/property/meetbooking/index.ts | 61 +++++ .../src/api/property/meetbooking/model.d.ts | 224 +++++++++++++++ .../web-antd/src/api/property/server/index.ts | 70 +++++ .../src/api/property/server/model.d.ts | 114 ++++++++ .../src/api/property/serverbooking/index.ts | 61 +++++ .../src/api/property/serverbooking/model.d.ts | 204 ++++++++++++++ .../src/api/property/suppliers/index.ts | 61 +++++ .../src/api/property/suppliers/model.d.ts | 144 ++++++++++ .../src/api/property/verification/index.ts | 61 +++++ .../src/api/property/verification/model.d.ts | 99 +++++++ .../application/application-modal.vue | 101 +++++++ .../src/views/property/application/data.ts | 157 +++++++++++ .../src/views/property/application/index.vue | 182 +++++++++++++ .../src/views/property/asset/asset-modal.vue | 101 +++++++ .../web-antd/src/views/property/asset/data.ts | 207 ++++++++++++++ .../src/views/property/asset/index.vue | 182 +++++++++++++ .../views/property/attach/attach-modal.vue | 101 +++++++ .../src/views/property/attach/data.ts | 133 +++++++++ .../src/views/property/attach/index.vue | 182 +++++++++++++ .../views/property/booking/booking-modal.vue | 101 +++++++ .../src/views/property/booking/data.ts | 254 ++++++++++++++++++ .../src/views/property/booking/index.vue | 182 +++++++++++++ .../property/conteact/conteact-modal.vue | 101 +++++++ .../src/views/property/conteact/data.ts | 241 +++++++++++++++++ .../src/views/property/conteact/index.vue | 182 +++++++++++++ .../web-antd/src/views/property/depot/data.ts | 95 +++++++ .../src/views/property/depot/depot-modal.vue | 101 +++++++ .../src/views/property/depot/index.vue | 182 +++++++++++++ apps/web-antd/src/views/property/log/data.ts | 202 ++++++++++++++ .../web-antd/src/views/property/log/index.vue | 182 +++++++++++++ .../src/views/property/log/log-modal.vue | 101 +++++++ apps/web-antd/src/views/property/meet/data.ts | 123 +++++++++ .../src/views/property/meet/index.vue | 182 +++++++++++++ .../src/views/property/meet/meet-modal.vue | 101 +++++++ .../src/views/property/meetbooking/data.ts | 254 ++++++++++++++++++ .../src/views/property/meetbooking/index.vue | 182 +++++++++++++ .../meetbooking/meetbooking-modal.vue | 101 +++++++ .../src/views/property/resident/unit/data.ts | 13 +- .../src/views/property/server/data.ts | 121 +++++++++ .../src/views/property/server/index.vue | 182 +++++++++++++ .../views/property/server/server-modal.vue | 101 +++++++ .../src/views/property/serverbooking/data.ts | 213 +++++++++++++++ .../views/property/serverbooking/index.vue | 182 +++++++++++++ .../serverbooking/serverbooking-modal.vue | 124 +++++++++ .../src/views/property/suppliers/data.ts | 150 +++++++++++ .../src/views/property/suppliers/index.vue | 182 +++++++++++++ .../property/suppliers/suppliers-modal.vue | 101 +++++++ .../src/views/property/verification/data.ts | 118 ++++++++ .../src/views/property/verification/index.vue | 182 +++++++++++++ .../verification/verification-modal.vue | 101 +++++++ apps/web-antd/vite.config.mts | 2 +- 66 files changed, 8555 insertions(+), 6 deletions(-) create mode 100644 apps/web-antd/src/api/property/application/index.ts create mode 100644 apps/web-antd/src/api/property/application/model.d.ts create mode 100644 apps/web-antd/src/api/property/asset/index.ts create mode 100644 apps/web-antd/src/api/property/asset/model.d.ts create mode 100644 apps/web-antd/src/api/property/attach/index.ts create mode 100644 apps/web-antd/src/api/property/attach/model.d.ts create mode 100644 apps/web-antd/src/api/property/conteact/index.ts create mode 100644 apps/web-antd/src/api/property/conteact/model.d.ts create mode 100644 apps/web-antd/src/api/property/depot/index.ts create mode 100644 apps/web-antd/src/api/property/depot/model.d.ts create mode 100644 apps/web-antd/src/api/property/log/index.ts create mode 100644 apps/web-antd/src/api/property/log/model.d.ts create mode 100644 apps/web-antd/src/api/property/meet/index.ts create mode 100644 apps/web-antd/src/api/property/meet/model.d.ts create mode 100644 apps/web-antd/src/api/property/meetbooking/index.ts create mode 100644 apps/web-antd/src/api/property/meetbooking/model.d.ts create mode 100644 apps/web-antd/src/api/property/server/index.ts create mode 100644 apps/web-antd/src/api/property/server/model.d.ts create mode 100644 apps/web-antd/src/api/property/serverbooking/index.ts create mode 100644 apps/web-antd/src/api/property/serverbooking/model.d.ts create mode 100644 apps/web-antd/src/api/property/suppliers/index.ts create mode 100644 apps/web-antd/src/api/property/suppliers/model.d.ts create mode 100644 apps/web-antd/src/api/property/verification/index.ts create mode 100644 apps/web-antd/src/api/property/verification/model.d.ts create mode 100644 apps/web-antd/src/views/property/application/application-modal.vue create mode 100644 apps/web-antd/src/views/property/application/data.ts create mode 100644 apps/web-antd/src/views/property/application/index.vue create mode 100644 apps/web-antd/src/views/property/asset/asset-modal.vue create mode 100644 apps/web-antd/src/views/property/asset/data.ts create mode 100644 apps/web-antd/src/views/property/asset/index.vue create mode 100644 apps/web-antd/src/views/property/attach/attach-modal.vue create mode 100644 apps/web-antd/src/views/property/attach/data.ts create mode 100644 apps/web-antd/src/views/property/attach/index.vue create mode 100644 apps/web-antd/src/views/property/booking/booking-modal.vue create mode 100644 apps/web-antd/src/views/property/booking/data.ts create mode 100644 apps/web-antd/src/views/property/booking/index.vue create mode 100644 apps/web-antd/src/views/property/conteact/conteact-modal.vue create mode 100644 apps/web-antd/src/views/property/conteact/data.ts create mode 100644 apps/web-antd/src/views/property/conteact/index.vue create mode 100644 apps/web-antd/src/views/property/depot/data.ts create mode 100644 apps/web-antd/src/views/property/depot/depot-modal.vue create mode 100644 apps/web-antd/src/views/property/depot/index.vue create mode 100644 apps/web-antd/src/views/property/log/data.ts create mode 100644 apps/web-antd/src/views/property/log/index.vue create mode 100644 apps/web-antd/src/views/property/log/log-modal.vue create mode 100644 apps/web-antd/src/views/property/meet/data.ts create mode 100644 apps/web-antd/src/views/property/meet/index.vue create mode 100644 apps/web-antd/src/views/property/meet/meet-modal.vue create mode 100644 apps/web-antd/src/views/property/meetbooking/data.ts create mode 100644 apps/web-antd/src/views/property/meetbooking/index.vue create mode 100644 apps/web-antd/src/views/property/meetbooking/meetbooking-modal.vue create mode 100644 apps/web-antd/src/views/property/server/data.ts create mode 100644 apps/web-antd/src/views/property/server/index.vue create mode 100644 apps/web-antd/src/views/property/server/server-modal.vue create mode 100644 apps/web-antd/src/views/property/serverbooking/data.ts create mode 100644 apps/web-antd/src/views/property/serverbooking/index.vue create mode 100644 apps/web-antd/src/views/property/serverbooking/serverbooking-modal.vue create mode 100644 apps/web-antd/src/views/property/suppliers/data.ts create mode 100644 apps/web-antd/src/views/property/suppliers/index.vue create mode 100644 apps/web-antd/src/views/property/suppliers/suppliers-modal.vue create mode 100644 apps/web-antd/src/views/property/verification/data.ts create mode 100644 apps/web-antd/src/views/property/verification/index.vue create mode 100644 apps/web-antd/src/views/property/verification/verification-modal.vue diff --git a/apps/web-antd/.env.development b/apps/web-antd/.env.development index dcb7fbc0..d522a706 100644 --- a/apps/web-antd/.env.development +++ b/apps/web-antd/.env.development @@ -13,7 +13,7 @@ VITE_INJECT_APP_LOADING=true VITE_GLOB_API_URL=/api # 全局加密开关(即开启了加解密功能才会生效 不是全部接口加密 需要和后端对应) -VITE_GLOB_ENABLE_ENCRYPT=true +VITE_GLOB_ENABLE_ENCRYPT=false # RSA公钥 请求加密使用 注意这两个是两对RSA公私钥 请求加密-后端解密是一对 响应解密-后端加密是一对 VITE_GLOB_RSA_PUBLIC_KEY=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ== # RSA私钥 响应解密使用 注意这两个是两对RSA公私钥 请求加密-后端解密是一对 响应解密-后端加密是一对 diff --git a/apps/web-antd/src/api/property/application/index.ts b/apps/web-antd/src/api/property/application/index.ts new file mode 100644 index 00000000..677eb0c6 --- /dev/null +++ b/apps/web-antd/src/api/property/application/index.ts @@ -0,0 +1,61 @@ +import type { ApplicationVO, ApplicationForm, ApplicationQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询资产领用列表 +* @param params +* @returns 资产领用列表 +*/ +export function applicationList(params?: ApplicationQuery) { + return requestClient.get>('/property/application/list', { params }); +} + +/** + * 导出资产领用列表 + * @param params + * @returns 资产领用列表 + */ +export function applicationExport(params?: ApplicationQuery) { + return commonExport('/property/application/export', params ?? {}); +} + +/** + * 查询资产领用详情 + * @param id id + * @returns 资产领用详情 + */ +export function applicationInfo(id: ID) { + return requestClient.get(`/property/application/${id}`); +} + +/** + * 新增资产领用 + * @param data + * @returns void + */ +export function applicationAdd(data: ApplicationForm) { + return requestClient.postWithMsg('/property/application', data); +} + +/** + * 更新资产领用 + * @param data + * @returns void + */ +export function applicationUpdate(data: ApplicationForm) { + return requestClient.putWithMsg('/property/application', data); +} + +/** + * 删除资产领用 + * @param id id + * @returns void + */ +export function applicationRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/application/${id}`); +} diff --git a/apps/web-antd/src/api/property/application/model.d.ts b/apps/web-antd/src/api/property/application/model.d.ts new file mode 100644 index 00000000..4ad2f874 --- /dev/null +++ b/apps/web-antd/src/api/property/application/model.d.ts @@ -0,0 +1,134 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ApplicationVO { + /** + * 主键 + */ + id: string | number; + + /** + * 资产id + */ + assetId: string | number; + + /** + * 领用人id + */ + userId: string | number; + + /** + * 数量 + */ + number: number; + + /** + * 状态 + */ + state: number; + + /** + * 审批人id + */ + acceptanceUserId: string | number; + + /** + * 审批时间 + */ + acceptanceTime: string; + + /** + * 申请时间 + */ + applicationTime: string; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface ApplicationForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 资产id + */ + assetId?: string | number; + + /** + * 领用人id + */ + userId?: string | number; + + /** + * 数量 + */ + number?: number; + + /** + * 状态 + */ + state?: number; + + /** + * 审批人id + */ + acceptanceUserId?: string | number; + + /** + * 审批时间 + */ + acceptanceTime?: string; + + /** + * 申请时间 + */ + applicationTime?: string; + +} + +export interface ApplicationQuery extends PageQuery { + /** + * 资产id + */ + assetId?: string | number; + + /** + * 领用人id + */ + userId?: string | number; + + /** + * 数量 + */ + number?: number; + + /** + * 状态 + */ + state?: number; + + /** + * 审批人id + */ + acceptanceUserId?: string | number; + + /** + * 审批时间 + */ + acceptanceTime?: string; + + /** + * 申请时间 + */ + applicationTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/asset/index.ts b/apps/web-antd/src/api/property/asset/index.ts new file mode 100644 index 00000000..1b7a8af9 --- /dev/null +++ b/apps/web-antd/src/api/property/asset/index.ts @@ -0,0 +1,61 @@ +import type { AssetVO, AssetForm, AssetQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询资产管理列表 +* @param params +* @returns 资产管理列表 +*/ +export function assetList(params?: AssetQuery) { + return requestClient.get>('/property/asset/list', { params }); +} + +/** + * 导出资产管理列表 + * @param params + * @returns 资产管理列表 + */ +export function assetExport(params?: AssetQuery) { + return commonExport('/property/asset/export', params ?? {}); +} + +/** + * 查询资产管理详情 + * @param id id + * @returns 资产管理详情 + */ +export function assetInfo(id: ID) { + return requestClient.get(`/property/asset/${id}`); +} + +/** + * 新增资产管理 + * @param data + * @returns void + */ +export function assetAdd(data: AssetForm) { + return requestClient.postWithMsg('/property/asset', data); +} + +/** + * 更新资产管理 + * @param data + * @returns void + */ +export function assetUpdate(data: AssetForm) { + return requestClient.putWithMsg('/property/asset', data); +} + +/** + * 删除资产管理 + * @param id id + * @returns void + */ +export function assetRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/asset/${id}`); +} diff --git a/apps/web-antd/src/api/property/asset/model.d.ts b/apps/web-antd/src/api/property/asset/model.d.ts new file mode 100644 index 00000000..213c5268 --- /dev/null +++ b/apps/web-antd/src/api/property/asset/model.d.ts @@ -0,0 +1,194 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface AssetVO { + /** + * 主键 + */ + id: string | number; + + /** + * 资产名称 + */ + name: string; + + /** + * 类型 + */ + model: string; + + /** + * 规格 + */ + specs: string; + + /** + * 价格 + */ + price: number; + + /** + * 库存 + */ + stock: number; + + /** + * 计量单位 + */ + unit: string; + + /** + * 仓库id + */ + depotId: string | number; + + /** + * 描述信息 + */ + msg: string; + + /** + * 供应商id + */ + suppliersId: string | number; + + /** + * 入库时间 + */ + storageTime: string; + + /** + * 固定资产类型 + */ + type: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface AssetForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 资产名称 + */ + name?: string; + + /** + * 类型 + */ + model?: string; + + /** + * 规格 + */ + specs?: string; + + /** + * 价格 + */ + price?: number; + + /** + * 库存 + */ + stock?: number; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 仓库id + */ + depotId?: string | number; + + /** + * 描述信息 + */ + msg?: string; + + /** + * 供应商id + */ + suppliersId?: string | number; + + /** + * 入库时间 + */ + storageTime?: string; + + /** + * 固定资产类型 + */ + type?: number; + +} + +export interface AssetQuery extends PageQuery { + /** + * 资产名称 + */ + name?: string; + + /** + * 类型 + */ + model?: string; + + /** + * 规格 + */ + specs?: string; + + /** + * 价格 + */ + price?: number; + + /** + * 库存 + */ + stock?: number; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 仓库id + */ + depotId?: string | number; + + /** + * 描述信息 + */ + msg?: string; + + /** + * 供应商id + */ + suppliersId?: string | number; + + /** + * 入库时间 + */ + storageTime?: string; + + /** + * 固定资产类型 + */ + type?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/attach/index.ts b/apps/web-antd/src/api/property/attach/index.ts new file mode 100644 index 00000000..16384b08 --- /dev/null +++ b/apps/web-antd/src/api/property/attach/index.ts @@ -0,0 +1,61 @@ +import type { AttachVO, AttachForm, AttachQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询会议室增值服务列表 +* @param params +* @returns 会议室增值服务列表 +*/ +export function attachList(params?: AttachQuery) { + return requestClient.get>('/property/attach/list', { params }); +} + +/** + * 导出会议室增值服务列表 + * @param params + * @returns 会议室增值服务列表 + */ +export function attachExport(params?: AttachQuery) { + return commonExport('/property/attach/export', params ?? {}); +} + +/** + * 查询会议室增值服务详情 + * @param id id + * @returns 会议室增值服务详情 + */ +export function attachInfo(id: ID) { + return requestClient.get(`/property/attach/${id}`); +} + +/** + * 新增会议室增值服务 + * @param data + * @returns void + */ +export function attachAdd(data: AttachForm) { + return requestClient.postWithMsg('/property/attach', data); +} + +/** + * 更新会议室增值服务 + * @param data + * @returns void + */ +export function attachUpdate(data: AttachForm) { + return requestClient.putWithMsg('/property/attach', data); +} + +/** + * 删除会议室增值服务 + * @param id id + * @returns void + */ +export function attachRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/attach/${id}`); +} diff --git a/apps/web-antd/src/api/property/attach/model.d.ts b/apps/web-antd/src/api/property/attach/model.d.ts new file mode 100644 index 00000000..c3809dd3 --- /dev/null +++ b/apps/web-antd/src/api/property/attach/model.d.ts @@ -0,0 +1,119 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface AttachVO { + /** + * 主键 + */ + id: string | number; + + /** + * 会议室id + */ + meetId: string | number; + + /** + * 产品名称 + */ + projectName: string; + + /** + * 单价 + */ + price: number; + + /** + * 单位 + */ + unit: string; + + /** + * 类型 + */ + type: string; + + /** + * 状态 + */ + state: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface AttachForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 会议室id + */ + meetId?: string | number; + + /** + * 产品名称 + */ + projectName?: string; + + /** + * 单价 + */ + price?: number; + + /** + * 单位 + */ + unit?: string; + + /** + * 类型 + */ + type?: string; + + /** + * 状态 + */ + state?: number; + +} + +export interface AttachQuery extends PageQuery { + /** + * 会议室id + */ + meetId?: string | number; + + /** + * 产品名称 + */ + projectName?: string; + + /** + * 单价 + */ + price?: number; + + /** + * 单位 + */ + unit?: string; + + /** + * 类型 + */ + type?: string; + + /** + * 状态 + */ + state?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/conteact/index.ts b/apps/web-antd/src/api/property/conteact/index.ts new file mode 100644 index 00000000..c93c41f7 --- /dev/null +++ b/apps/web-antd/src/api/property/conteact/index.ts @@ -0,0 +1,61 @@ +import type { ConteactVO, ConteactForm, ConteactQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询合同管理列表 +* @param params +* @returns 合同管理列表 +*/ +export function conteactList(params?: ConteactQuery) { + return requestClient.get>('/property/conteact/list', { params }); +} + +/** + * 导出合同管理列表 + * @param params + * @returns 合同管理列表 + */ +export function conteactExport(params?: ConteactQuery) { + return commonExport('/property/conteact/export', params ?? {}); +} + +/** + * 查询合同管理详情 + * @param id id + * @returns 合同管理详情 + */ +export function conteactInfo(id: ID) { + return requestClient.get(`/property/conteact/${id}`); +} + +/** + * 新增合同管理 + * @param data + * @returns void + */ +export function conteactAdd(data: ConteactForm) { + return requestClient.postWithMsg('/property/conteact', data); +} + +/** + * 更新合同管理 + * @param data + * @returns void + */ +export function conteactUpdate(data: ConteactForm) { + return requestClient.putWithMsg('/property/conteact', data); +} + +/** + * 删除合同管理 + * @param id id + * @returns void + */ +export function conteactRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/conteact/${id}`); +} diff --git a/apps/web-antd/src/api/property/conteact/model.d.ts b/apps/web-antd/src/api/property/conteact/model.d.ts new file mode 100644 index 00000000..ed9445a6 --- /dev/null +++ b/apps/web-antd/src/api/property/conteact/model.d.ts @@ -0,0 +1,204 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ConteactVO { + /** + * 主键 + */ + id: string | number; + + /** + * 合同编码 + */ + contract: string; + + /** + * 合同名称 + */ + name: string; + + /** + * 描述信息 + */ + msg: string; + + /** + * 甲方 + */ + firstParty: string; + + /** + * 乙方 + */ + lostParty: string; + + /** + * 金额 + */ + price: number; + + /** + * 类型 + */ + type: number; + + /** + * 经办人 + */ + attn: string; + + /** + * 审核人 + */ + audit: number; + + /** + * 开始时间 + */ + startTime: string; + + /** + * 结束时间 + */ + endTime: string; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface ConteactForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 合同编码 + */ + contract?: string; + + /** + * 合同名称 + */ + name?: string; + + /** + * 描述信息 + */ + msg?: string; + + /** + * 甲方 + */ + firstParty?: string; + + /** + * 乙方 + */ + lostParty?: string; + + /** + * 金额 + */ + price?: number; + + /** + * 类型 + */ + type?: number; + + /** + * 经办人 + */ + attn?: string; + + /** + * 审核人 + */ + audit?: number; + + /** + * 开始时间 + */ + startTime?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 创建时间 + */ + createTime?: string; + +} + +export interface ConteactQuery extends PageQuery { + /** + * 合同编码 + */ + contract?: string; + + /** + * 合同名称 + */ + name?: string; + + /** + * 描述信息 + */ + msg?: string; + + /** + * 甲方 + */ + firstParty?: string; + + /** + * 乙方 + */ + lostParty?: string; + + /** + * 金额 + */ + price?: number; + + /** + * 类型 + */ + type?: number; + + /** + * 经办人 + */ + attn?: string; + + /** + * 审核人 + */ + audit?: number; + + /** + * 开始时间 + */ + startTime?: string; + + /** + * 结束时间 + */ + endTime?: string; + + /** + * 创建时间 + */ + createTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/depot/index.ts b/apps/web-antd/src/api/property/depot/index.ts new file mode 100644 index 00000000..6019287e --- /dev/null +++ b/apps/web-antd/src/api/property/depot/index.ts @@ -0,0 +1,61 @@ +import type { DepotVO, DepotForm, DepotQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询仓库管理列表 +* @param params +* @returns 仓库管理列表 +*/ +export function depotList(params?: DepotQuery) { + return requestClient.get>('/property/depot/list', { params }); +} + +/** + * 导出仓库管理列表 + * @param params + * @returns 仓库管理列表 + */ +export function depotExport(params?: DepotQuery) { + return commonExport('/property/depot/export', params ?? {}); +} + +/** + * 查询仓库管理详情 + * @param id id + * @returns 仓库管理详情 + */ +export function depotInfo(id: ID) { + return requestClient.get(`/property/depot/${id}`); +} + +/** + * 新增仓库管理 + * @param data + * @returns void + */ +export function depotAdd(data: DepotForm) { + return requestClient.postWithMsg('/property/depot', data); +} + +/** + * 更新仓库管理 + * @param data + * @returns void + */ +export function depotUpdate(data: DepotForm) { + return requestClient.putWithMsg('/property/depot', data); +} + +/** + * 删除仓库管理 + * @param id id + * @returns void + */ +export function depotRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/depot/${id}`); +} diff --git a/apps/web-antd/src/api/property/depot/model.d.ts b/apps/web-antd/src/api/property/depot/model.d.ts new file mode 100644 index 00000000..fe3586b8 --- /dev/null +++ b/apps/web-antd/src/api/property/depot/model.d.ts @@ -0,0 +1,89 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface DepotVO { + /** + * 主键 + */ + id: string | number; + + /** + * 类型名称 + */ + depotName: string; + + /** + * 描述信息 + */ + msg: string; + + /** + * 类型 + */ + modelType: string; + + /** + * 状态 + */ + state: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface DepotForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 类型名称 + */ + depotName?: string; + + /** + * 描述信息 + */ + msg?: string; + + /** + * 类型 + */ + modelType?: string; + + /** + * 状态 + */ + state?: number; + +} + +export interface DepotQuery extends PageQuery { + /** + * 类型名称 + */ + depotName?: string; + + /** + * 描述信息 + */ + msg?: string; + + /** + * 类型 + */ + modelType?: string; + + /** + * 状态 + */ + state?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/log/index.ts b/apps/web-antd/src/api/property/log/index.ts new file mode 100644 index 00000000..6e4a5f44 --- /dev/null +++ b/apps/web-antd/src/api/property/log/index.ts @@ -0,0 +1,61 @@ +import type { LogVO, LogForm, LogQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询仓库记录列表 +* @param params +* @returns 仓库记录列表 +*/ +export function logList(params?: LogQuery) { + return requestClient.get>('/property/log/list', { params }); +} + +/** + * 导出仓库记录列表 + * @param params + * @returns 仓库记录列表 + */ +export function logExport(params?: LogQuery) { + return commonExport('/property/log/export', params ?? {}); +} + +/** + * 查询仓库记录详情 + * @param id id + * @returns 仓库记录详情 + */ +export function logInfo(id: ID) { + return requestClient.get(`/property/log/${id}`); +} + +/** + * 新增仓库记录 + * @param data + * @returns void + */ +export function logAdd(data: LogForm) { + return requestClient.postWithMsg('/property/log', data); +} + +/** + * 更新仓库记录 + * @param data + * @returns void + */ +export function logUpdate(data: LogForm) { + return requestClient.putWithMsg('/property/log', data); +} + +/** + * 删除仓库记录 + * @param id id + * @returns void + */ +export function logRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/log/${id}`); +} diff --git a/apps/web-antd/src/api/property/log/model.d.ts b/apps/web-antd/src/api/property/log/model.d.ts new file mode 100644 index 00000000..5e9201f9 --- /dev/null +++ b/apps/web-antd/src/api/property/log/model.d.ts @@ -0,0 +1,189 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface LogVO { + /** + * 主键 + */ + id: string | number; + + /** + * 仓库id + */ + depotId: string | number; + + /** + * 资产id + */ + assetId: string | number; + + /** + * 流转类型 + */ + type: number; + + /** + * 流转时间 + */ + time: string; + + /** + * 操作人id + */ + userId: string | number; + + /** + * 状态 + */ + state: number; + + /** + * 备注 + */ + remark: string; + + /** + * 价格 + */ + price: number; + + /** + * 总价 + */ + priceSum: number; + + /** + * 数量 + */ + number: number; + + /** + * 供应商id + */ + supplierId: string | number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface LogForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 仓库id + */ + depotId?: string | number; + + /** + * 资产id + */ + assetId?: string | number; + + /** + * 流转类型 + */ + type?: number; + + /** + * 流转时间 + */ + time?: string; + + /** + * 操作人id + */ + userId?: string | number; + + /** + * 状态 + */ + state?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 价格 + */ + price?: number; + + /** + * 总价 + */ + priceSum?: number; + + /** + * 数量 + */ + number?: number; + + /** + * 供应商id + */ + supplierId?: string | number; + +} + +export interface LogQuery extends PageQuery { + /** + * 仓库id + */ + depotId?: string | number; + + /** + * 资产id + */ + assetId?: string | number; + + /** + * 流转类型 + */ + type?: number; + + /** + * 流转时间 + */ + time?: string; + + /** + * 操作人id + */ + userId?: string | number; + + /** + * 状态 + */ + state?: number; + + /** + * 价格 + */ + price?: number; + + /** + * 总价 + */ + priceSum?: number; + + /** + * 数量 + */ + number?: number; + + /** + * 供应商id + */ + supplierId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/meet/index.ts b/apps/web-antd/src/api/property/meet/index.ts new file mode 100644 index 00000000..f028fcea --- /dev/null +++ b/apps/web-antd/src/api/property/meet/index.ts @@ -0,0 +1,61 @@ +import type { MeetVO, MeetForm, MeetQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询会议室管理列表 +* @param params +* @returns 会议室管理列表 +*/ +export function meetList(params?: MeetQuery) { + return requestClient.get>('/property/meet/list', { params }); +} + +/** + * 导出会议室管理列表 + * @param params + * @returns 会议室管理列表 + */ +export function meetExport(params?: MeetQuery) { + return commonExport('/property/meet/export', params ?? {}); +} + +/** + * 查询会议室管理详情 + * @param id id + * @returns 会议室管理详情 + */ +export function meetInfo(id: ID) { + return requestClient.get(`/property/meet/${id}`); +} + +/** + * 新增会议室管理 + * @param data + * @returns void + */ +export function meetAdd(data: MeetForm) { + return requestClient.postWithMsg('/property/meet', data); +} + +/** + * 更新会议室管理 + * @param data + * @returns void + */ +export function meetUpdate(data: MeetForm) { + return requestClient.putWithMsg('/property/meet', data); +} + +/** + * 删除会议室管理 + * @param id id + * @returns void + */ +export function meetRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/meet/${id}`); +} diff --git a/apps/web-antd/src/api/property/meet/model.d.ts b/apps/web-antd/src/api/property/meet/model.d.ts new file mode 100644 index 00000000..7ab691e8 --- /dev/null +++ b/apps/web-antd/src/api/property/meet/model.d.ts @@ -0,0 +1,119 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface MeetVO { + /** + * 主键 + */ + id: string | number; + + /** + * 会议室名称 + */ + name: string; + + /** + * 位置 + */ + location: string; + + /** + * 容纳人数 + */ + personNumber: number; + + /** + * 基础服务 + */ + baseServiceId: string | number; + + /** + * 基础价格 + */ + basePrice: number; + + /** + * 增值服务是否启用 + */ + attach: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface MeetForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 会议室名称 + */ + name?: string; + + /** + * 位置 + */ + location?: string; + + /** + * 容纳人数 + */ + personNumber?: number; + + /** + * 基础服务 + */ + baseServiceId?: string | number; + + /** + * 基础价格 + */ + basePrice?: number; + + /** + * 增值服务是否启用 + */ + attach?: number; + +} + +export interface MeetQuery extends PageQuery { + /** + * 会议室名称 + */ + name?: string; + + /** + * 位置 + */ + location?: string; + + /** + * 容纳人数 + */ + personNumber?: number; + + /** + * 基础服务 + */ + baseServiceId?: string | number; + + /** + * 基础价格 + */ + basePrice?: number; + + /** + * 增值服务是否启用 + */ + attach?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/meetbooking/index.ts b/apps/web-antd/src/api/property/meetbooking/index.ts new file mode 100644 index 00000000..9e0b4e02 --- /dev/null +++ b/apps/web-antd/src/api/property/meetbooking/index.ts @@ -0,0 +1,61 @@ +import type { MeetbookingVO, MeetbookingForm, MeetbookingQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询会议预约列表 +* @param params +* @returns 会议预约列表 +*/ +export function meetbookingList(params?: MeetbookingQuery) { + return requestClient.get>('/property/meetbooking/list', { params }); +} + +/** + * 导出会议预约列表 + * @param params + * @returns 会议预约列表 + */ +export function meetbookingExport(params?: MeetbookingQuery) { + return commonExport('/property/meetbooking/export', params ?? {}); +} + +/** + * 查询会议预约详情 + * @param id id + * @returns 会议预约详情 + */ +export function meetbookingInfo(id: ID) { + return requestClient.get(`/property/meetbooking/${id}`); +} + +/** + * 新增会议预约 + * @param data + * @returns void + */ +export function meetbookingAdd(data: MeetbookingForm) { + return requestClient.postWithMsg('/property/meetbooking', data); +} + +/** + * 更新会议预约 + * @param data + * @returns void + */ +export function meetbookingUpdate(data: MeetbookingForm) { + return requestClient.putWithMsg('/property/meetbooking', data); +} + +/** + * 删除会议预约 + * @param id id + * @returns void + */ +export function meetbookingRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/meetbooking/${id}`); +} diff --git a/apps/web-antd/src/api/property/meetbooking/model.d.ts b/apps/web-antd/src/api/property/meetbooking/model.d.ts new file mode 100644 index 00000000..142e72e2 --- /dev/null +++ b/apps/web-antd/src/api/property/meetbooking/model.d.ts @@ -0,0 +1,224 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface MeetbookingVO { + /** + * 主键 + */ + id: string | number; + + /** + * 会议室名称 + */ + name: string; + + /** + * 会议室id + */ + meetId: string | number; + + /** + * 会议室地址 + */ + meetLocation: string; + + /** + * 所属单位 + */ + unit: string; + + /** + * 预定人 + */ + person: string; + + /** + * 联系方式 + */ + phone: string; + + /** + * 预定开始时间 + */ + scheduledStarttime: string; + + /** + * 预定结束时间 + */ + scheduledEndtime: string; + + /** + * 参会人数 + */ + personSum: number; + + /** + * 费用 + */ + price: number; + + /** + * 是否包含增值服务 + */ + attach: number; + + /** + * 支付状态 + */ + payState: number; + + /** + * 状态 + */ + state: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface MeetbookingForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 会议室名称 + */ + name?: string; + + /** + * 会议室id + */ + meetId?: string | number; + + /** + * 会议室地址 + */ + meetLocation?: string; + + /** + * 所属单位 + */ + unit?: string; + + /** + * 预定人 + */ + person?: string; + + /** + * 联系方式 + */ + phone?: string; + + /** + * 预定开始时间 + */ + scheduledStarttime?: string; + + /** + * 预定结束时间 + */ + scheduledEndtime?: string; + + /** + * 参会人数 + */ + personSum?: number; + + /** + * 费用 + */ + price?: number; + + /** + * 是否包含增值服务 + */ + attach?: number; + + /** + * 支付状态 + */ + payState?: number; + + /** + * 状态 + */ + state?: number; + +} + +export interface MeetbookingQuery extends PageQuery { + /** + * 会议室名称 + */ + name?: string; + + /** + * 会议室id + */ + meetId?: string | number; + + /** + * 会议室地址 + */ + meetLocation?: string; + + /** + * 所属单位 + */ + unit?: string; + + /** + * 预定人 + */ + person?: string; + + /** + * 联系方式 + */ + phone?: string; + + /** + * 预定开始时间 + */ + scheduledStarttime?: string; + + /** + * 预定结束时间 + */ + scheduledEndtime?: string; + + /** + * 参会人数 + */ + personSum?: number; + + /** + * 费用 + */ + price?: number; + + /** + * 是否包含增值服务 + */ + attach?: number; + + /** + * 支付状态 + */ + payState?: number; + + /** + * 状态 + */ + state?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/server/index.ts b/apps/web-antd/src/api/property/server/index.ts new file mode 100644 index 00000000..dd7a4f71 --- /dev/null +++ b/apps/web-antd/src/api/property/server/index.ts @@ -0,0 +1,70 @@ +import type { ServerVO, ServerForm, ServerQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询服务管理列表 +* @param params +* @returns 服务管理列表 +*/ +export function serverList(params?: ServerQuery) { + return requestClient.get>('/property/server/list', { params }); +} + +/** + * 查询服务下拉列表 + * @param params + * @returns 服务管理列表 + */ +export function serverSelectList() { + return requestClient.get('/property/server/list'); +} + +/** + * 导出服务管理列表 + * @param params + * @returns 服务管理列表 + */ +export function serverExport(params?: ServerQuery) { + return commonExport('/property/server/export', params ?? {}); +} + +/** + * 查询服务管理详情 + * @param id id + * @returns 服务管理详情 + */ +export function serverInfo(id: ID) { + return requestClient.get(`/property/server/${id}`); +} + +/** + * 新增服务管理 + * @param data + * @returns void + */ +export function serverAdd(data: ServerForm) { + return requestClient.postWithMsg('/property/server', data); +} + +/** + * 更新服务管理 + * @param data + * @returns void + */ +export function serverUpdate(data: ServerForm) { + return requestClient.putWithMsg('/property/server', data); +} + +/** + * 删除服务管理 + * @param id id + * @returns void + */ +export function serverRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/server/${id}`); +} diff --git a/apps/web-antd/src/api/property/server/model.d.ts b/apps/web-antd/src/api/property/server/model.d.ts new file mode 100644 index 00000000..d6595a1d --- /dev/null +++ b/apps/web-antd/src/api/property/server/model.d.ts @@ -0,0 +1,114 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ServerVO { + /** + * 主键 + */ + id: string | number; + + /** + * 服务名称 + */ + serverName: string; + + /** + * 服务类型 + */ + serverType: number; + + /** + * 价格 + */ + price: number; + + /** + * 排序 + */ + sort: number; + + /** + * 状态 + */ + state: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface ServerForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 服务名称 + */ + serverName?: string; + + /** + * 服务类型 + */ + serverType?: number; + + /** + * 价格 + */ + price?: number; + + /** + * 排序 + */ + sort?: number; + + /** + * 状态 + */ + state?: number; + + /** + * 创建时间 + */ + createTime?: string; + +} + +export interface ServerQuery extends PageQuery { + /** + * 服务名称 + */ + serverName?: string; + + /** + * 服务类型 + */ + serverType?: number; + + /** + * 价格 + */ + price?: number; + + /** + * 排序 + */ + sort?: number; + + /** + * 状态 + */ + state?: number; + + /** + * 创建时间 + */ + createTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/serverbooking/index.ts b/apps/web-antd/src/api/property/serverbooking/index.ts new file mode 100644 index 00000000..edc04ca4 --- /dev/null +++ b/apps/web-antd/src/api/property/serverbooking/index.ts @@ -0,0 +1,61 @@ +import type { ServerbookingVO, ServerbookingForm, ServerbookingQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询服务预约列表 +* @param params +* @returns 服务预约列表 +*/ +export function serverbookingList(params?: ServerbookingQuery) { + return requestClient.get>('/property/serverbooking/list', { params }); +} + +/** + * 导出服务预约列表 + * @param params + * @returns 服务预约列表 + */ +export function serverbookingExport(params?: ServerbookingQuery) { + return commonExport('/property/serverbooking/export', params ?? {}); +} + +/** + * 查询服务预约详情 + * @param id id + * @returns 服务预约详情 + */ +export function serverbookingInfo(id: ID) { + return requestClient.get(`/property/serverbooking/${id}`); +} + +/** + * 新增服务预约 + * @param data + * @returns void + */ +export function serverbookingAdd(data: ServerbookingForm) { + return requestClient.postWithMsg('/property/serverbooking', data); +} + +/** + * 更新服务预约 + * @param data + * @returns void + */ +export function serverbookingUpdate(data: ServerbookingForm) { + return requestClient.putWithMsg('/property/serverbooking', data); +} + +/** + * 删除服务预约 + * @param id id + * @returns void + */ +export function serverbookingRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/serverbooking/${id}`); +} diff --git a/apps/web-antd/src/api/property/serverbooking/model.d.ts b/apps/web-antd/src/api/property/serverbooking/model.d.ts new file mode 100644 index 00000000..c510c0f6 --- /dev/null +++ b/apps/web-antd/src/api/property/serverbooking/model.d.ts @@ -0,0 +1,204 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ServerbookingVO { + /** + * 主键 + */ + id: string | number; + + /** + * 服务id + */ + serverId: string | number; + + /** + * 预约数量 + */ + serverNum: number; + + /** + * 预约类型 + */ + bookingType: string; + + /** + * 服务封面 + */ + serverImg: string; + + /** + * 预约时间 + */ + bookingTime: string; + + /** + * 预约人姓名 + */ + bookingUserNema: string; + + /** + * 预约人电话 + */ + bookingUserPhone: string; + + /** + * 预约价格 + */ + bookingPrice: number; + + /** + * 实付价格 + */ + payPrice: number; + + /** + * 支付方式 + */ + payType: number; + + /** + * 备注 + */ + remark: string; + + /** + * 状态 + */ + state: number; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface ServerbookingForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 服务id + */ + serverId?: string | number; + + /** + * 预约数量 + */ + serverNum?: number; + + /** + * 预约类型 + */ + bookingType?: string; + + /** + * 服务封面 + */ + serverImg?: string; + + /** + * 预约时间 + */ + bookingTime?: string; + + /** + * 预约人姓名 + */ + bookingUserNema?: string; + + /** + * 预约人电话 + */ + bookingUserPhone?: string; + + /** + * 预约价格 + */ + bookingPrice?: number; + + /** + * 实付价格 + */ + payPrice?: number; + + /** + * 支付方式 + */ + payType?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 状态 + */ + state?: number; + +} + +export interface ServerbookingQuery extends PageQuery { + /** + * 服务id + */ + serverId?: string | number; + + /** + * 预约数量 + */ + serverNum?: number; + + /** + * 预约类型 + */ + bookingType?: string; + + /** + * 服务封面 + */ + serverImg?: string; + + /** + * 预约时间 + */ + bookingTime?: string; + + /** + * 预约人姓名 + */ + bookingUserNema?: string; + + /** + * 预约人电话 + */ + bookingUserPhone?: string; + + /** + * 预约价格 + */ + bookingPrice?: number; + + /** + * 实付价格 + */ + payPrice?: number; + + /** + * 支付方式 + */ + payType?: number; + + /** + * 状态 + */ + state?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/suppliers/index.ts b/apps/web-antd/src/api/property/suppliers/index.ts new file mode 100644 index 00000000..e6608049 --- /dev/null +++ b/apps/web-antd/src/api/property/suppliers/index.ts @@ -0,0 +1,61 @@ +import type { SuppliersVO, SuppliersForm, SuppliersQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询供应商列表 +* @param params +* @returns 供应商列表 +*/ +export function suppliersList(params?: SuppliersQuery) { + return requestClient.get>('/property/suppliers/list', { params }); +} + +/** + * 导出供应商列表 + * @param params + * @returns 供应商列表 + */ +export function suppliersExport(params?: SuppliersQuery) { + return commonExport('/property/suppliers/export', params ?? {}); +} + +/** + * 查询供应商详情 + * @param id id + * @returns 供应商详情 + */ +export function suppliersInfo(id: ID) { + return requestClient.get(`/property/suppliers/${id}`); +} + +/** + * 新增供应商 + * @param data + * @returns void + */ +export function suppliersAdd(data: SuppliersForm) { + return requestClient.postWithMsg('/property/suppliers', data); +} + +/** + * 更新供应商 + * @param data + * @returns void + */ +export function suppliersUpdate(data: SuppliersForm) { + return requestClient.putWithMsg('/property/suppliers', data); +} + +/** + * 删除供应商 + * @param id id + * @returns void + */ +export function suppliersRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/suppliers/${id}`); +} diff --git a/apps/web-antd/src/api/property/suppliers/model.d.ts b/apps/web-antd/src/api/property/suppliers/model.d.ts new file mode 100644 index 00000000..ae59621d --- /dev/null +++ b/apps/web-antd/src/api/property/suppliers/model.d.ts @@ -0,0 +1,144 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface SuppliersVO { + /** + * 主键 + */ + id: string | number; + + /** + * 供应商名称 + */ + suppliersName: string; + + /** + * 电话 + */ + phone: string; + + /** + * 地址 + */ + location: string; + + /** + * 联系人 + */ + user: string; + + /** + * 状态 + */ + state: number; + + /** + * 开户行 + */ + bank: string; + + /** + * 卡号 + */ + bankNumber: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface SuppliersForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 供应商名称 + */ + suppliersName?: string; + + /** + * 电话 + */ + phone?: string; + + /** + * 地址 + */ + location?: string; + + /** + * 联系人 + */ + user?: string; + + /** + * 状态 + */ + state?: number; + + /** + * 开户行 + */ + bank?: string; + + /** + * 卡号 + */ + bankNumber?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface SuppliersQuery extends PageQuery { + /** + * 供应商名称 + */ + suppliersName?: string; + + /** + * 电话 + */ + phone?: string; + + /** + * 地址 + */ + location?: string; + + /** + * 联系人 + */ + user?: string; + + /** + * 状态 + */ + state?: number; + + /** + * 开户行 + */ + bank?: string; + + /** + * 卡号 + */ + bankNumber?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/verification/index.ts b/apps/web-antd/src/api/property/verification/index.ts new file mode 100644 index 00000000..14f01a50 --- /dev/null +++ b/apps/web-antd/src/api/property/verification/index.ts @@ -0,0 +1,61 @@ +import type { VerificationVO, VerificationForm, VerificationQuery } from './model'; + +import type { ID, IDS } from '#/api/common'; +import type { PageResult } from '#/api/common'; + +import { commonExport } from '#/api/helper'; +import { requestClient } from '#/api/request'; + +/** +* 查询服务核销列表 +* @param params +* @returns 服务核销列表 +*/ +export function verificationList(params?: VerificationQuery) { + return requestClient.get>('/property/verification/list', { params }); +} + +/** + * 导出服务核销列表 + * @param params + * @returns 服务核销列表 + */ +export function verificationExport(params?: VerificationQuery) { + return commonExport('/property/verification/export', params ?? {}); +} + +/** + * 查询服务核销详情 + * @param id id + * @returns 服务核销详情 + */ +export function verificationInfo(id: ID) { + return requestClient.get(`/property/verification/${id}`); +} + +/** + * 新增服务核销 + * @param data + * @returns void + */ +export function verificationAdd(data: VerificationForm) { + return requestClient.postWithMsg('/property/verification', data); +} + +/** + * 更新服务核销 + * @param data + * @returns void + */ +export function verificationUpdate(data: VerificationForm) { + return requestClient.putWithMsg('/property/verification', data); +} + +/** + * 删除服务核销 + * @param id id + * @returns void + */ +export function verificationRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/verification/${id}`); +} diff --git a/apps/web-antd/src/api/property/verification/model.d.ts b/apps/web-antd/src/api/property/verification/model.d.ts new file mode 100644 index 00000000..666e610f --- /dev/null +++ b/apps/web-antd/src/api/property/verification/model.d.ts @@ -0,0 +1,99 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface VerificationVO { + /** + * 主键 + */ + id: string | number; + + /** + * 服务id + */ + serverId: string | number; + + /** + * 核销人id + */ + userId: string | number; + + /** + * 核销结果 + */ + outcome: number; + + /** + * 核销时间 + */ + time: string; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + createTime: string; + +} + +export interface VerificationForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 服务id + */ + serverId?: string | number; + + /** + * 核销人id + */ + userId?: string | number; + + /** + * 核销结果 + */ + outcome?: number; + + /** + * 核销时间 + */ + time?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface VerificationQuery extends PageQuery { + /** + * 服务id + */ + serverId?: string | number; + + /** + * 核销人id + */ + userId?: string | number; + + /** + * 核销结果 + */ + outcome?: number; + + /** + * 核销时间 + */ + time?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/views/property/application/application-modal.vue b/apps/web-antd/src/views/property/application/application-modal.vue new file mode 100644 index 00000000..4a817bf5 --- /dev/null +++ b/apps/web-antd/src/views/property/application/application-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/application/data.ts b/apps/web-antd/src/views/property/application/data.ts new file mode 100644 index 00000000..0ee40ab9 --- /dev/null +++ b/apps/web-antd/src/views/property/application/data.ts @@ -0,0 +1,157 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'assetId', + label: '资产id', + }, + { + component: 'Input', + fieldName: 'userId', + label: '领用人id', + }, + { + component: 'Input', + fieldName: 'number', + label: '数量', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, + { + component: 'Input', + fieldName: 'acceptanceUserId', + label: '审批人id', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'acceptanceTime', + label: '审批时间', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'applicationTime', + label: '申请时间', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '资产id', + field: 'assetId', + }, + { + title: '领用人id', + field: 'userId', + }, + { + title: '数量', + field: 'number', + }, + { + title: '状态', + field: 'state', + }, + { + title: '审批人id', + field: 'acceptanceUserId', + }, + { + title: '审批时间', + field: 'acceptanceTime', + }, + { + title: '申请时间', + field: 'applicationTime', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '资产id', + fieldName: 'assetId', + component: 'Input', + }, + { + label: '领用人id', + fieldName: 'userId', + component: 'Input', + }, + { + label: '数量', + fieldName: 'number', + component: 'Input', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + }, + { + label: '审批人id', + fieldName: 'acceptanceUserId', + component: 'Input', + }, + { + label: '审批时间', + fieldName: 'acceptanceTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '申请时间', + fieldName: 'applicationTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, +]; diff --git a/apps/web-antd/src/views/property/application/index.vue b/apps/web-antd/src/views/property/application/index.vue new file mode 100644 index 00000000..0b4ad458 --- /dev/null +++ b/apps/web-antd/src/views/property/application/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/asset/asset-modal.vue b/apps/web-antd/src/views/property/asset/asset-modal.vue new file mode 100644 index 00000000..dadd2795 --- /dev/null +++ b/apps/web-antd/src/views/property/asset/asset-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/asset/data.ts b/apps/web-antd/src/views/property/asset/data.ts new file mode 100644 index 00000000..d05631e4 --- /dev/null +++ b/apps/web-antd/src/views/property/asset/data.ts @@ -0,0 +1,207 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'name', + label: '资产名称', + }, + { + component: 'Textarea', + fieldName: 'model', + label: '类型', + }, + { + component: 'Textarea', + fieldName: 'specs', + label: '规格', + }, + { + component: 'Input', + fieldName: 'price', + label: '价格', + }, + { + component: 'Input', + fieldName: 'stock', + label: '库存', + }, + { + component: 'Input', + fieldName: 'unit', + label: '计量单位', + }, + { + component: 'Input', + fieldName: 'depotId', + label: '仓库id', + }, + { + component: 'Textarea', + fieldName: 'msg', + label: '描述信息', + }, + { + component: 'Input', + fieldName: 'suppliersId', + label: '供应商id', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'storageTime', + label: '入库时间', + }, + { + component: 'Select', + componentProps: { + }, + fieldName: 'type', + label: '固定资产类型', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '资产名称', + field: 'name', + }, + { + title: '类型', + field: 'model', + }, + { + title: '规格', + field: 'specs', + }, + { + title: '价格', + field: 'price', + }, + { + title: '库存', + field: 'stock', + }, + { + title: '计量单位', + field: 'unit', + }, + { + title: '仓库id', + field: 'depotId', + }, + { + title: '描述信息', + field: 'msg', + }, + { + title: '供应商id', + field: 'suppliersId', + }, + { + title: '入库时间', + field: 'storageTime', + }, + { + title: '固定资产类型', + field: 'type', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '资产名称', + fieldName: 'name', + component: 'Input', + }, + { + label: '类型', + fieldName: 'model', + component: 'Textarea', + }, + { + label: '规格', + fieldName: 'specs', + component: 'Textarea', + }, + { + label: '价格', + fieldName: 'price', + component: 'Input', + }, + { + label: '库存', + fieldName: 'stock', + component: 'Input', + }, + { + label: '计量单位', + fieldName: 'unit', + component: 'Input', + }, + { + label: '仓库id', + fieldName: 'depotId', + component: 'Input', + }, + { + label: '描述信息', + fieldName: 'msg', + component: 'Textarea', + }, + { + label: '供应商id', + fieldName: 'suppliersId', + component: 'Input', + }, + { + label: '入库时间', + fieldName: 'storageTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '固定资产类型', + fieldName: 'type', + component: 'Select', + componentProps: { + }, + }, +]; diff --git a/apps/web-antd/src/views/property/asset/index.vue b/apps/web-antd/src/views/property/asset/index.vue new file mode 100644 index 00000000..879818bd --- /dev/null +++ b/apps/web-antd/src/views/property/asset/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/attach/attach-modal.vue b/apps/web-antd/src/views/property/attach/attach-modal.vue new file mode 100644 index 00000000..033cfbf2 --- /dev/null +++ b/apps/web-antd/src/views/property/attach/attach-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/attach/data.ts b/apps/web-antd/src/views/property/attach/data.ts new file mode 100644 index 00000000..18c9645e --- /dev/null +++ b/apps/web-antd/src/views/property/attach/data.ts @@ -0,0 +1,133 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'meetId', + label: '会议室id', + }, + { + component: 'Textarea', + fieldName: 'projectName', + label: '产品名称', + }, + { + component: 'Input', + fieldName: 'price', + label: '单价', + }, + { + component: 'Input', + fieldName: 'unit', + label: '单位', + }, + { + component: 'Select', + componentProps: { + }, + fieldName: 'type', + label: '类型', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '会议室id', + field: 'meetId', + }, + { + title: '产品名称', + field: 'projectName', + }, + { + title: '单价', + field: 'price', + }, + { + title: '单位', + field: 'unit', + }, + { + title: '类型', + field: 'type', + }, + { + title: '状态', + field: 'state', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '会议室id', + fieldName: 'meetId', + component: 'Input', + rules: 'required', + }, + { + label: '产品名称', + fieldName: 'projectName', + component: 'Textarea', + rules: 'required', + }, + { + label: '单价', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + { + label: '单位', + fieldName: 'unit', + component: 'Input', + rules: 'required', + }, + { + label: '类型', + fieldName: 'type', + component: 'Select', + componentProps: { + }, + rules: 'selectRequired', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + rules: 'required', + }, +]; diff --git a/apps/web-antd/src/views/property/attach/index.vue b/apps/web-antd/src/views/property/attach/index.vue new file mode 100644 index 00000000..30a1644d --- /dev/null +++ b/apps/web-antd/src/views/property/attach/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/booking/booking-modal.vue b/apps/web-antd/src/views/property/booking/booking-modal.vue new file mode 100644 index 00000000..4120a97e --- /dev/null +++ b/apps/web-antd/src/views/property/booking/booking-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/booking/data.ts b/apps/web-antd/src/views/property/booking/data.ts new file mode 100644 index 00000000..aaf27dc7 --- /dev/null +++ b/apps/web-antd/src/views/property/booking/data.ts @@ -0,0 +1,254 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Textarea', + fieldName: 'name', + label: '会议室名称', + }, + { + component: 'Input', + fieldName: 'meetId', + label: '会议室id', + }, + { + component: 'Textarea', + fieldName: 'meetLocation', + label: '会议室地址', + }, + { + component: 'Textarea', + fieldName: 'unit', + label: '所属单位', + }, + { + component: 'Textarea', + fieldName: 'person', + label: '预定人', + }, + { + component: 'Textarea', + fieldName: 'phone', + label: '联系方式', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'scheduledStarttime', + label: '预定开始时间', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'scheduledEndtime', + label: '预定结束时间', + }, + { + component: 'Input', + fieldName: 'personSum', + label: '参会人数', + }, + { + component: 'Input', + fieldName: 'price', + label: '费用', + }, + { + component: 'Input', + fieldName: 'attach', + label: '是否包含增值服务', + }, + { + component: 'Input', + fieldName: 'payState', + label: '支付状态', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '会议室名称', + field: 'name', + }, + { + title: '会议室id', + field: 'meetId', + }, + { + title: '会议室地址', + field: 'meetLocation', + }, + { + title: '所属单位', + field: 'unit', + }, + { + title: '预定人', + field: 'person', + }, + { + title: '联系方式', + field: 'phone', + }, + { + title: '预定开始时间', + field: 'scheduledStarttime', + }, + { + title: '预定结束时间', + field: 'scheduledEndtime', + }, + { + title: '参会人数', + field: 'personSum', + }, + { + title: '费用', + field: 'price', + }, + { + title: '是否包含增值服务', + field: 'attach', + }, + { + title: '支付状态', + field: 'payState', + }, + { + title: '状态', + field: 'state', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '会议室名称', + fieldName: 'name', + component: 'Textarea', + rules: 'required', + }, + { + label: '会议室id', + fieldName: 'meetId', + component: 'Input', + rules: 'required', + }, + { + label: '会议室地址', + fieldName: 'meetLocation', + component: 'Textarea', + rules: 'required', + }, + { + label: '所属单位', + fieldName: 'unit', + component: 'Textarea', + rules: 'required', + }, + { + label: '预定人', + fieldName: 'person', + component: 'Textarea', + rules: 'required', + }, + { + label: '联系方式', + fieldName: 'phone', + component: 'Textarea', + rules: 'required', + }, + { + label: '预定开始时间', + fieldName: 'scheduledStarttime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + rules: 'required', + }, + { + label: '预定结束时间', + fieldName: 'scheduledEndtime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + rules: 'required', + }, + { + label: '参会人数', + fieldName: 'personSum', + component: 'Input', + rules: 'required', + }, + { + label: '费用', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + { + label: '是否包含增值服务', + fieldName: 'attach', + component: 'Input', + rules: 'required', + }, + { + label: '支付状态', + fieldName: 'payState', + component: 'Input', + rules: 'required', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + rules: 'required', + }, +]; diff --git a/apps/web-antd/src/views/property/booking/index.vue b/apps/web-antd/src/views/property/booking/index.vue new file mode 100644 index 00000000..33eaf530 --- /dev/null +++ b/apps/web-antd/src/views/property/booking/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/conteact/conteact-modal.vue b/apps/web-antd/src/views/property/conteact/conteact-modal.vue new file mode 100644 index 00000000..602ba571 --- /dev/null +++ b/apps/web-antd/src/views/property/conteact/conteact-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/conteact/data.ts b/apps/web-antd/src/views/property/conteact/data.ts new file mode 100644 index 00000000..2a0ea9e8 --- /dev/null +++ b/apps/web-antd/src/views/property/conteact/data.ts @@ -0,0 +1,241 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Textarea', + fieldName: 'contract', + label: '合同编码', + }, + { + component: 'Input', + fieldName: 'name', + label: '合同名称', + }, + { + component: 'Input', + fieldName: 'msg', + label: '描述信息', + }, + { + component: 'Textarea', + fieldName: 'firstParty', + label: '甲方', + }, + { + component: 'Textarea', + fieldName: 'lostParty', + label: '乙方', + }, + { + component: 'Input', + fieldName: 'price', + label: '金额', + }, + { + component: 'Select', + componentProps: { + }, + fieldName: 'type', + label: '类型', + }, + { + component: 'Textarea', + fieldName: 'attn', + label: '经办人', + }, + { + component: 'Input', + fieldName: 'audit', + label: '审核人', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'startTime', + label: '开始时间', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'endTime', + label: '结束时间', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'createTime', + label: '创建时间', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '合同编码', + field: 'contract', + }, + { + title: '合同名称', + field: 'name', + }, + { + title: '描述信息', + field: 'msg', + }, + { + title: '甲方', + field: 'firstParty', + }, + { + title: '乙方', + field: 'lostParty', + }, + { + title: '金额', + field: 'price', + }, + { + title: '类型', + field: 'type', + }, + { + title: '经办人', + field: 'attn', + }, + { + title: '审核人', + field: 'audit', + }, + { + title: '开始时间', + field: 'startTime', + }, + { + title: '结束时间', + field: 'endTime', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '合同编码', + fieldName: 'contract', + component: 'Textarea', + rules: 'required', + }, + { + label: '合同名称', + fieldName: 'name', + component: 'Input', + rules: 'required', + }, + { + label: '描述信息', + fieldName: 'msg', + component: 'Input', + }, + { + label: '甲方', + fieldName: 'firstParty', + component: 'Textarea', + rules: 'required', + }, + { + label: '乙方', + fieldName: 'lostParty', + component: 'Textarea', + rules: 'required', + }, + { + label: '金额', + fieldName: 'price', + component: 'Input', + }, + { + label: '类型', + fieldName: 'type', + component: 'Select', + componentProps: { + }, + }, + { + label: '经办人', + fieldName: 'attn', + component: 'Textarea', + }, + { + label: '审核人', + fieldName: 'audit', + component: 'Input', + }, + { + label: '开始时间', + fieldName: 'startTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '结束时间', + fieldName: 'endTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '创建时间', + fieldName: 'createTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, +]; diff --git a/apps/web-antd/src/views/property/conteact/index.vue b/apps/web-antd/src/views/property/conteact/index.vue new file mode 100644 index 00000000..0a533a40 --- /dev/null +++ b/apps/web-antd/src/views/property/conteact/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/depot/data.ts b/apps/web-antd/src/views/property/depot/data.ts new file mode 100644 index 00000000..b2d465ad --- /dev/null +++ b/apps/web-antd/src/views/property/depot/data.ts @@ -0,0 +1,95 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'depotName', + label: '类型名称', + }, + { + component: 'Input', + fieldName: 'msg', + label: '描述信息', + }, + { + component: 'Input', + fieldName: 'modelType', + label: '类型', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '类型名称', + field: 'depotName', + }, + { + title: '描述信息', + field: 'msg', + }, + { + title: '类型', + field: 'modelType', + }, + { + title: '状态', + field: 'state', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '类型名称', + fieldName: 'depotName', + component: 'Input', + }, + { + label: '描述信息', + fieldName: 'msg', + component: 'Input', + }, + { + label: '类型', + fieldName: 'modelType', + component: 'Input', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/depot/depot-modal.vue b/apps/web-antd/src/views/property/depot/depot-modal.vue new file mode 100644 index 00000000..7bf9c04b --- /dev/null +++ b/apps/web-antd/src/views/property/depot/depot-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/depot/index.vue b/apps/web-antd/src/views/property/depot/index.vue new file mode 100644 index 00000000..58b6eab2 --- /dev/null +++ b/apps/web-antd/src/views/property/depot/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/log/data.ts b/apps/web-antd/src/views/property/log/data.ts new file mode 100644 index 00000000..142c10c5 --- /dev/null +++ b/apps/web-antd/src/views/property/log/data.ts @@ -0,0 +1,202 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'depotId', + label: '仓库id', + }, + { + component: 'Input', + fieldName: 'assetId', + label: '资产id', + }, + { + component: 'Select', + componentProps: { + }, + fieldName: 'type', + label: '流转类型', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'time', + label: '流转时间', + }, + { + component: 'Input', + fieldName: 'userId', + label: '操作人id', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, + { + component: 'Input', + fieldName: 'price', + label: '价格', + }, + { + component: 'Input', + fieldName: 'priceSum', + label: '总价', + }, + { + component: 'Input', + fieldName: 'number', + label: '数量', + }, + { + component: 'Input', + fieldName: 'supplierId', + label: '供应商id', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '仓库id', + field: 'depotId', + }, + { + title: '资产id', + field: 'assetId', + }, + { + title: '流转类型', + field: 'type', + }, + { + title: '流转时间', + field: 'time', + }, + { + title: '操作人id', + field: 'userId', + }, + { + title: '状态', + field: 'state', + }, + { + title: '备注', + field: 'remark', + }, + { + title: '价格', + field: 'price', + }, + { + title: '总价', + field: 'priceSum', + }, + { + title: '数量', + field: 'number', + }, + { + title: '供应商id', + field: 'supplierId', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '仓库id', + fieldName: 'depotId', + component: 'Input', + }, + { + label: '资产id', + fieldName: 'assetId', + component: 'Input', + }, + { + label: '流转类型', + fieldName: 'type', + component: 'Select', + componentProps: { + }, + }, + { + label: '流转时间', + fieldName: 'time', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '操作人id', + fieldName: 'userId', + component: 'Input', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + }, + { + label: '备注', + fieldName: 'remark', + component: 'Textarea', + }, + { + label: '价格', + fieldName: 'price', + component: 'Input', + }, + { + label: '总价', + fieldName: 'priceSum', + component: 'Input', + }, + { + label: '数量', + fieldName: 'number', + component: 'Input', + }, + { + label: '供应商id', + fieldName: 'supplierId', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/log/index.vue b/apps/web-antd/src/views/property/log/index.vue new file mode 100644 index 00000000..56084e98 --- /dev/null +++ b/apps/web-antd/src/views/property/log/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/log/log-modal.vue b/apps/web-antd/src/views/property/log/log-modal.vue new file mode 100644 index 00000000..a29c1112 --- /dev/null +++ b/apps/web-antd/src/views/property/log/log-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/meet/data.ts b/apps/web-antd/src/views/property/meet/data.ts new file mode 100644 index 00000000..e88d411f --- /dev/null +++ b/apps/web-antd/src/views/property/meet/data.ts @@ -0,0 +1,123 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'name', + label: '会议室名称', + }, + { + component: 'Textarea', + fieldName: 'location', + label: '位置', + }, + { + component: 'Input', + fieldName: 'personNumber', + label: '容纳人数', + }, + { + component: 'Input', + fieldName: 'baseServiceId', + label: '基础服务', + }, + { + component: 'Input', + fieldName: 'basePrice', + label: '基础价格', + }, + { + component: 'Input', + fieldName: 'attach', + label: '增值服务是否启用', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '会议室名称', + field: 'name', + }, + { + title: '位置', + field: 'location', + }, + { + title: '容纳人数', + field: 'personNumber', + }, + { + title: '基础服务', + field: 'baseServiceId', + }, + { + title: '基础价格', + field: 'basePrice', + }, + { + title: '增值服务是否启用', + field: 'attach', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '会议室名称', + fieldName: 'name', + component: 'Input', + }, + { + label: '位置', + fieldName: 'location', + component: 'Textarea', + }, + { + label: '容纳人数', + fieldName: 'personNumber', + component: 'Input', + }, + { + label: '基础服务', + fieldName: 'baseServiceId', + component: 'Input', + }, + { + label: '基础价格', + fieldName: 'basePrice', + component: 'Input', + }, + { + label: '增值服务是否启用', + fieldName: 'attach', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/meet/index.vue b/apps/web-antd/src/views/property/meet/index.vue new file mode 100644 index 00000000..c50a9ead --- /dev/null +++ b/apps/web-antd/src/views/property/meet/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/meet/meet-modal.vue b/apps/web-antd/src/views/property/meet/meet-modal.vue new file mode 100644 index 00000000..6c2f6008 --- /dev/null +++ b/apps/web-antd/src/views/property/meet/meet-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/meetbooking/data.ts b/apps/web-antd/src/views/property/meetbooking/data.ts new file mode 100644 index 00000000..aaf27dc7 --- /dev/null +++ b/apps/web-antd/src/views/property/meetbooking/data.ts @@ -0,0 +1,254 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Textarea', + fieldName: 'name', + label: '会议室名称', + }, + { + component: 'Input', + fieldName: 'meetId', + label: '会议室id', + }, + { + component: 'Textarea', + fieldName: 'meetLocation', + label: '会议室地址', + }, + { + component: 'Textarea', + fieldName: 'unit', + label: '所属单位', + }, + { + component: 'Textarea', + fieldName: 'person', + label: '预定人', + }, + { + component: 'Textarea', + fieldName: 'phone', + label: '联系方式', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'scheduledStarttime', + label: '预定开始时间', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'scheduledEndtime', + label: '预定结束时间', + }, + { + component: 'Input', + fieldName: 'personSum', + label: '参会人数', + }, + { + component: 'Input', + fieldName: 'price', + label: '费用', + }, + { + component: 'Input', + fieldName: 'attach', + label: '是否包含增值服务', + }, + { + component: 'Input', + fieldName: 'payState', + label: '支付状态', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '会议室名称', + field: 'name', + }, + { + title: '会议室id', + field: 'meetId', + }, + { + title: '会议室地址', + field: 'meetLocation', + }, + { + title: '所属单位', + field: 'unit', + }, + { + title: '预定人', + field: 'person', + }, + { + title: '联系方式', + field: 'phone', + }, + { + title: '预定开始时间', + field: 'scheduledStarttime', + }, + { + title: '预定结束时间', + field: 'scheduledEndtime', + }, + { + title: '参会人数', + field: 'personSum', + }, + { + title: '费用', + field: 'price', + }, + { + title: '是否包含增值服务', + field: 'attach', + }, + { + title: '支付状态', + field: 'payState', + }, + { + title: '状态', + field: 'state', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '会议室名称', + fieldName: 'name', + component: 'Textarea', + rules: 'required', + }, + { + label: '会议室id', + fieldName: 'meetId', + component: 'Input', + rules: 'required', + }, + { + label: '会议室地址', + fieldName: 'meetLocation', + component: 'Textarea', + rules: 'required', + }, + { + label: '所属单位', + fieldName: 'unit', + component: 'Textarea', + rules: 'required', + }, + { + label: '预定人', + fieldName: 'person', + component: 'Textarea', + rules: 'required', + }, + { + label: '联系方式', + fieldName: 'phone', + component: 'Textarea', + rules: 'required', + }, + { + label: '预定开始时间', + fieldName: 'scheduledStarttime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + rules: 'required', + }, + { + label: '预定结束时间', + fieldName: 'scheduledEndtime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + rules: 'required', + }, + { + label: '参会人数', + fieldName: 'personSum', + component: 'Input', + rules: 'required', + }, + { + label: '费用', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + { + label: '是否包含增值服务', + fieldName: 'attach', + component: 'Input', + rules: 'required', + }, + { + label: '支付状态', + fieldName: 'payState', + component: 'Input', + rules: 'required', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + rules: 'required', + }, +]; diff --git a/apps/web-antd/src/views/property/meetbooking/index.vue b/apps/web-antd/src/views/property/meetbooking/index.vue new file mode 100644 index 00000000..5a8375a7 --- /dev/null +++ b/apps/web-antd/src/views/property/meetbooking/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/meetbooking/meetbooking-modal.vue b/apps/web-antd/src/views/property/meetbooking/meetbooking-modal.vue new file mode 100644 index 00000000..69a41c22 --- /dev/null +++ b/apps/web-antd/src/views/property/meetbooking/meetbooking-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/resident/unit/data.ts b/apps/web-antd/src/views/property/resident/unit/data.ts index 69011abc..4b15f7f6 100644 --- a/apps/web-antd/src/views/property/resident/unit/data.ts +++ b/apps/web-antd/src/views/property/resident/unit/data.ts @@ -2,8 +2,6 @@ import type {FormSchemaGetter} from '#/adapter/form'; import type {VxeGridProps} from '#/adapter/vxe-table'; import {getDictOptions} from "#/utils/dict"; import {renderDict} from "#/utils/render"; - - export const querySchema: FormSchemaGetter = () => [ { component: 'Input', @@ -47,6 +45,11 @@ export const columns: VxeGridProps['columns'] = [ { title: '单位类型', field: 'type', + slots: { + default: ({ row }) => { + return renderDict(row.type, 'wy_rzdwlx'); + }, + }, }, { title: '联系人', @@ -109,13 +112,15 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'name', component: 'Input', rules: 'required', - }, { label: '单位类型', fieldName: 'type', - component: 'Input', + component: 'Select', rules: 'required', + componentProps: { + options: getDictOptions('wy_rzdwlx'), + }, }, { label: '联系人', diff --git a/apps/web-antd/src/views/property/server/data.ts b/apps/web-antd/src/views/property/server/data.ts new file mode 100644 index 00000000..dd15ef62 --- /dev/null +++ b/apps/web-antd/src/views/property/server/data.ts @@ -0,0 +1,121 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; +import { getDictOptions } from "#/utils/dict"; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'serverName', + label: '服务名称', + }, + { + component: 'Select', + componentProps: { + options: getDictOptions('wy_fwlx'), + }, + fieldName: 'serverType', + label: '服务类型', + }, + { + component: 'Input', + fieldName: 'price', + label: '价格', + }, + { + component: 'Input', + fieldName: 'sort', + label: '排序', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'createTime', + label: '创建时间', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '服务名称', + field: 'serverName', + }, + { + title: '服务类型', + field: 'serverType', + }, + { + title: '价格', + field: 'price', + }, + { + title: '排序', + field: 'sort', + }, + { + title: '状态', + field: 'state', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '服务名称', + fieldName: 'serverName', + component: 'Input', + }, + { + label: '服务类型', + fieldName: 'serverType', + component: 'Select', + componentProps: { + options: getDictOptions('wy_fwlx'), + }, + }, + { + label: '价格', + fieldName: 'price', + component: 'Input', + }, + { + label: '排序', + fieldName: 'sort', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/server/index.vue b/apps/web-antd/src/views/property/server/index.vue new file mode 100644 index 00000000..092f66ff --- /dev/null +++ b/apps/web-antd/src/views/property/server/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/server/server-modal.vue b/apps/web-antd/src/views/property/server/server-modal.vue new file mode 100644 index 00000000..da20b58f --- /dev/null +++ b/apps/web-antd/src/views/property/server/server-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/serverbooking/data.ts b/apps/web-antd/src/views/property/serverbooking/data.ts new file mode 100644 index 00000000..061613e5 --- /dev/null +++ b/apps/web-antd/src/views/property/serverbooking/data.ts @@ -0,0 +1,213 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Select', + fieldName: 'serverId', + label: '服务id', + }, + { + component: 'Input', + fieldName: 'serverNum', + label: '预约数量', + }, + { + component: 'Input', + fieldName: 'bookingType', + label: '预约类型', + }, + { + component: 'Input', + fieldName: 'serverImg', + label: '服务封面', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'bookingTime', + label: '预约时间', + }, + { + component: 'Input', + fieldName: 'bookingUserNema', + label: '预约人姓名', + }, + { + component: 'Textarea', + fieldName: 'bookingUserPhone', + label: '预约人电话', + }, + { + component: 'Input', + fieldName: 'bookingPrice', + label: '预约价格', + }, + { + component: 'Input', + fieldName: 'payPrice', + label: '实付价格', + }, + { + component: 'Input', + fieldName: 'payType', + label: '支付方式', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '服务id', + field: 'serverId', + }, + { + title: '预约数量', + field: 'serverNum', + }, + { + title: '预约类型', + field: 'bookingType', + }, + { + title: '服务封面', + field: 'serverImg', + }, + { + title: '预约时间', + field: 'bookingTime', + }, + { + title: '预约人姓名', + field: 'bookingUserNema', + }, + { + title: '预约人电话', + field: 'bookingUserPhone', + }, + { + title: '预约价格', + field: 'bookingPrice', + }, + { + title: '实付价格', + field: 'payPrice', + }, + { + title: '支付方式', + field: 'payType', + }, + { + title: '备注', + field: 'remark', + }, + { + title: '状态', + field: 'state', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '服务id', + fieldName: 'serverId', + component: 'Select', + rules: 'required', + }, + { + label: '预约数量', + fieldName: 'serverNum', + component: 'Input', + }, + { + label: '预约类型', + fieldName: 'bookingType', + component: 'Input', + }, + // { + // label: '服务封面', + // fieldName: 'serverImg', + // component: 'Input', + // }, + { + label: '预约时间', + fieldName: 'bookingTime', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '预约人姓名', + fieldName: 'bookingUserNema', + component: 'Input', + }, + { + label: '预约人电话', + fieldName: 'bookingUserPhone', + component: 'Textarea', + }, + { + label: '预约价格', + fieldName: 'bookingPrice', + component: 'Input', + }, + // { + // label: '实付价格', + // fieldName: 'payPrice', + // component: 'Input', + // }, + // { + // label: '支付方式', + // fieldName: 'payType', + // component: 'Input', + // }, + { + label: '备注', + fieldName: 'remark', + component: 'Textarea', + }, + // { + // label: '状态', + // fieldName: 'state', + // component: 'Input', + // }, +]; diff --git a/apps/web-antd/src/views/property/serverbooking/index.vue b/apps/web-antd/src/views/property/serverbooking/index.vue new file mode 100644 index 00000000..ebac0db0 --- /dev/null +++ b/apps/web-antd/src/views/property/serverbooking/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/serverbooking/serverbooking-modal.vue b/apps/web-antd/src/views/property/serverbooking/serverbooking-modal.vue new file mode 100644 index 00000000..917c0f89 --- /dev/null +++ b/apps/web-antd/src/views/property/serverbooking/serverbooking-modal.vue @@ -0,0 +1,124 @@ + + + + diff --git a/apps/web-antd/src/views/property/suppliers/data.ts b/apps/web-antd/src/views/property/suppliers/data.ts new file mode 100644 index 00000000..cc03cf2e --- /dev/null +++ b/apps/web-antd/src/views/property/suppliers/data.ts @@ -0,0 +1,150 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'suppliersName', + label: '供应商名称', + }, + { + component: 'Textarea', + fieldName: 'phone', + label: '电话', + }, + { + component: 'Textarea', + fieldName: 'location', + label: '地址', + }, + { + component: 'Textarea', + fieldName: 'user', + label: '联系人', + }, + { + component: 'Input', + fieldName: 'state', + label: '状态', + }, + { + component: 'Textarea', + fieldName: 'bank', + label: '开户行', + }, + { + component: 'Textarea', + fieldName: 'bankNumber', + label: '卡号', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '供应商名称', + field: 'suppliersName', + }, + { + title: '电话', + field: 'phone', + }, + { + title: '地址', + field: 'location', + }, + { + title: '联系人', + field: 'user', + }, + { + title: '状态', + field: 'state', + }, + { + title: '开户行', + field: 'bank', + }, + { + title: '卡号', + field: 'bankNumber', + }, + { + title: '备注', + field: 'remark', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '供应商名称', + fieldName: 'suppliersName', + component: 'Input', + rules: 'required', + }, + { + label: '电话', + fieldName: 'phone', + component: 'Textarea', + rules: 'required', + }, + { + label: '地址', + fieldName: 'location', + component: 'Textarea', + rules: 'required', + }, + { + label: '联系人', + fieldName: 'user', + component: 'Textarea', + rules: 'required', + }, + { + label: '状态', + fieldName: 'state', + component: 'Input', + }, + { + label: '开户行', + fieldName: 'bank', + component: 'Textarea', + }, + { + label: '卡号', + fieldName: 'bankNumber', + component: 'Textarea', + }, + { + label: '备注', + fieldName: 'remark', + component: 'Textarea', + }, +]; diff --git a/apps/web-antd/src/views/property/suppliers/index.vue b/apps/web-antd/src/views/property/suppliers/index.vue new file mode 100644 index 00000000..7f1722d3 --- /dev/null +++ b/apps/web-antd/src/views/property/suppliers/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/suppliers/suppliers-modal.vue b/apps/web-antd/src/views/property/suppliers/suppliers-modal.vue new file mode 100644 index 00000000..00c063a9 --- /dev/null +++ b/apps/web-antd/src/views/property/suppliers/suppliers-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/src/views/property/verification/data.ts b/apps/web-antd/src/views/property/verification/data.ts new file mode 100644 index 00000000..37094fae --- /dev/null +++ b/apps/web-antd/src/views/property/verification/data.ts @@ -0,0 +1,118 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'serverId', + label: '服务id', + }, + { + component: 'Input', + fieldName: 'userId', + label: '核销人id', + }, + { + component: 'Input', + fieldName: 'outcome', + label: '核销结果', + }, + { + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + fieldName: 'time', + label: '核销时间', + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '主键', + field: 'id', + }, + { + title: '服务id', + field: 'serverId', + }, + { + title: '核销人id', + field: 'userId', + }, + { + title: '核销结果', + field: 'outcome', + }, + { + title: '核销时间', + field: 'time', + }, + { + title: '备注', + field: 'remark', + }, + { + title: '创建时间', + field: 'createTime', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '服务id', + fieldName: 'serverId', + component: 'Input', + rules: 'required', + }, + { + label: '核销人id', + fieldName: 'userId', + component: 'Input', + rules: 'required', + }, + { + label: '核销结果', + fieldName: 'outcome', + component: 'Input', + rules: 'required', + }, + { + label: '核销时间', + fieldName: 'time', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + rules: 'required', + }, + { + label: '备注', + fieldName: 'remark', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/verification/index.vue b/apps/web-antd/src/views/property/verification/index.vue new file mode 100644 index 00000000..c0c2f3e6 --- /dev/null +++ b/apps/web-antd/src/views/property/verification/index.vue @@ -0,0 +1,182 @@ + + + diff --git a/apps/web-antd/src/views/property/verification/verification-modal.vue b/apps/web-antd/src/views/property/verification/verification-modal.vue new file mode 100644 index 00000000..46e250d9 --- /dev/null +++ b/apps/web-antd/src/views/property/verification/verification-modal.vue @@ -0,0 +1,101 @@ + + + + diff --git a/apps/web-antd/vite.config.mts b/apps/web-antd/vite.config.mts index 7e884500..abb1d32e 100644 --- a/apps/web-antd/vite.config.mts +++ b/apps/web-antd/vite.config.mts @@ -27,7 +27,7 @@ export default defineConfig(async () => { changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), // mock代理目标地址 - target: 'http://localhost:8080', + target: 'http://127.0.0.1:8080/', ws: true, }, },