From 01ddd1174a279a113bf39968961ad280f5b31f4c Mon Sep 17 00:00:00 2001 From: FLL <2162874245@qq.com> Date: Fri, 27 Jun 2025 15:16:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BB=BC=E5=90=88=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/property/building/index.ts | 2 - .../src/api/property/building/types.ts | 8 +- .../src/api/property/community/index.ts | 2 - .../src/api/property/community/model.d.ts | 1 + apps/web-antd/src/api/property/floor/index.ts | 2 - apps/web-antd/src/api/property/room/index.ts | 2 - .../property/building/building-detail.vue | 15 +--- .../property/building/building-modal.vue | 13 +--- .../src/views/property/building/data.ts | 76 ++++++------------- .../src/views/property/building/index.vue | 32 +------- .../property/community/community-detail.vue | 12 +-- .../property/community/community-modal.vue | 13 +--- .../src/views/property/community/data.ts | 60 ++++----------- .../src/views/property/community/index.vue | 31 +------- .../web-antd/src/views/property/floor/data.ts | 51 +++++++------ .../src/views/property/floor/floor-modal.vue | 13 +--- .../src/views/property/floor/index.vue | 18 ----- apps/web-antd/src/views/property/room/data.ts | 68 +++++++++++------ .../src/views/property/room/index.vue | 25 ------ .../src/views/property/room/room-modal.vue | 13 +--- 20 files changed, 139 insertions(+), 318 deletions(-) diff --git a/apps/web-antd/src/api/property/building/index.ts b/apps/web-antd/src/api/property/building/index.ts index f112ac8a..55c81fd3 100644 --- a/apps/web-antd/src/api/property/building/index.ts +++ b/apps/web-antd/src/api/property/building/index.ts @@ -1,8 +1,6 @@ import type { BuildingVO, BuildingForm, BuildingQuery } 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'; diff --git a/apps/web-antd/src/api/property/building/types.ts b/apps/web-antd/src/api/property/building/types.ts index b5e36280..6a8f4e47 100644 --- a/apps/web-antd/src/api/property/building/types.ts +++ b/apps/web-antd/src/api/property/building/types.ts @@ -296,10 +296,10 @@ export interface BuildingQuery extends PageQuery { */ cqbh?: string; - /** - * 日期范围参数 - */ - params?: any; + /** + * 日期范围参数 + */ + params?: any; } diff --git a/apps/web-antd/src/api/property/community/index.ts b/apps/web-antd/src/api/property/community/index.ts index fffc701f..14c933ce 100644 --- a/apps/web-antd/src/api/property/community/index.ts +++ b/apps/web-antd/src/api/property/community/index.ts @@ -1,8 +1,6 @@ import type { CommunityVO, CommunityForm, CommunityQuery } 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'; diff --git a/apps/web-antd/src/api/property/community/model.d.ts b/apps/web-antd/src/api/property/community/model.d.ts index 1d398f70..a1045f5e 100644 --- a/apps/web-antd/src/api/property/community/model.d.ts +++ b/apps/web-antd/src/api/property/community/model.d.ts @@ -217,6 +217,7 @@ export interface CommunityQuery extends PageQuery { */ params?: any; } + export interface Community extends BaseEntity { /** * 社区名称 diff --git a/apps/web-antd/src/api/property/floor/index.ts b/apps/web-antd/src/api/property/floor/index.ts index ecdb3f37..bad3ff83 100644 --- a/apps/web-antd/src/api/property/floor/index.ts +++ b/apps/web-antd/src/api/property/floor/index.ts @@ -1,8 +1,6 @@ import type { FloorVO, FloorForm, FloorQuery } 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'; diff --git a/apps/web-antd/src/api/property/room/index.ts b/apps/web-antd/src/api/property/room/index.ts index da07ffee..a9bcfb72 100644 --- a/apps/web-antd/src/api/property/room/index.ts +++ b/apps/web-antd/src/api/property/room/index.ts @@ -1,8 +1,6 @@ import type { RoomVO, RoomForm, RoomQuery } 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'; diff --git a/apps/web-antd/src/views/property/building/building-detail.vue b/apps/web-antd/src/views/property/building/building-detail.vue index bfbf5b8b..56e026e3 100644 --- a/apps/web-antd/src/views/property/building/building-detail.vue +++ b/apps/web-antd/src/views/property/building/building-detail.vue @@ -14,7 +14,6 @@ const [BasicModal, modalApi] = useVbenModal({ }); const buildingDetail = shallowRef(null); - async function handleOpenChange(open: boolean) { if (!open) { return null; @@ -22,7 +21,6 @@ async function handleOpenChange(open: boolean) { modalApi.modalLoading(true); const {id} = modalApi.getData() as { id: number | string }; const response = await buildingInfo(id); - // 赋值 buildingDetail.value = response; modalApi.modalLoading(false); } @@ -31,15 +29,15 @@ async function handleOpenChange(open: boolean) { diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/orderCharge-modal.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/orderCharge-modal.vue new file mode 100644 index 00000000..786e7715 --- /dev/null +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/orderCharge-modal.vue @@ -0,0 +1,90 @@ + + + + diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts index 0aff2409..085d0966 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts @@ -1,6 +1,5 @@ import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; - import { getDictOptions } from '#/utils/dict'; import { renderDict } from '#/utils/render'; @@ -8,26 +7,23 @@ export const querySchema: FormSchemaGetter = () => [ { component: 'Input', fieldName: 'plantName', - label: '产品名称:', + label: '产品名称', }, { component: 'Input', fieldName: 'specification', - label: '规格:', + label: '规格', }, { component: 'Select', componentProps: { - // 可选从DictEnum中获取 DictEnum.PRODUCT_MANAGEMENT_STATUS 便于维护 options: getDictOptions('product_management_status'), }, fieldName: 'state', - label: '状态:', + label: '状态', }, ]; -// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 -// export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ { type: 'checkbox', width: 60 }, { @@ -72,7 +68,6 @@ export const columns: VxeGridProps['columns'] = [ field: 'state', slots: { default: ({ row }) => { - // 可选从DictEnum中获取 DictEnum.PRODUCT_MANAGEMENT_STATUS 便于维护 return renderDict(row.state, 'product_management_status'); }, }, @@ -153,7 +148,6 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'state', component: 'Select', componentProps: { - // 可选从DictEnum中获取 DictEnum.PRODUCT_MANAGEMENT_STATUS 便于维护 options: getDictOptions('product_management_status'), }, rules: 'selectRequired', @@ -163,9 +157,4 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'remark', component: 'Input', }, - // { - // label: '创建时间', - // fieldName: 'creatTime', - // component: 'Input', - // }, ]; diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue index 442d05b2..2fb5b956 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue @@ -2,13 +2,11 @@ import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui'; import { getVxePopupContainer } from '@vben/utils'; import { Modal, Popconfirm, Space } from 'ant-design-vue'; - import { useVbenVxeGrid, vxeCheckboxChecked, type VxeGridProps } from '#/adapter/vxe-table'; - import { plantsProductExport, plantsProductList, @@ -16,12 +14,9 @@ import { } from '#/api/property/productManagement'; import type { PropertyForm } from '#/api/property/productManagement/model'; import { commonDownloadExcel } from '#/utils/file/download'; - import PlantsProductModal from './plantsProduct-modal.vue'; import PlantsProductDetail from './plantsProduct-detail.vue'; import { columns, querySchema } from './data'; -import unitInfoModal from "#/views/property/resident/unit/unit-detail.vue"; -import type {Resident_unitForm} from "#/api/property/resident/unit/model"; const formOptions: VbenFormProps = { commonConfig: { @@ -32,28 +27,13 @@ const formOptions: VbenFormProps = { }, schema: querySchema(), wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4', - // 处理区间选择器RangePicker时间格式 将一个字段映射为两个字段 搜索/导出会用到 - // 不需要直接删除 - // fieldMappingTime: [ - // [ - // 'createTime', - // ['params[beginTime]', 'params[endTime]'], - // ['YYYY-MM-DD 00:00:00', 'YYYY-MM-DD 23:59:59'], - // ], - // ], }; const gridOptions: VxeGridProps = { checkboxConfig: { - // 高亮 highlight: true, - // 翻页时保留选中状态 reserve: true, - // 点击行选中 - // trigger: 'row', }, - // 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 - // columns: columns(), columns, height: 'auto', keepSource: true, @@ -72,7 +52,6 @@ const gridOptions: VxeGridProps = { rowConfig: { keyField: 'id', }, - // 表格全局唯一表示 保存列配置需要用到 id: 'property-property-index' }; @@ -88,6 +67,7 @@ const [PlantsProduct, modalApi] = useVbenModal({ const [PlantsProductDetailModal, PlantsProductDetailApi] = useVbenModal({ connectedComponent: PlantsProductDetail, }); + async function handleInfo(row: Required) { PlantsProductDetailApi.setData({ id: row.id }); PlantsProductDetailApi.open(); diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-detail.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-detail.vue index 30b5532e..c6790a26 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-detail.vue +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-detail.vue @@ -22,7 +22,6 @@ async function handleOpenChange(open: boolean) { modalApi.modalLoading(true); const {id} = modalApi.getData() as { id: number | string }; const response = await visitorManagementInfo(id); - // 赋值 plantsProductDetail.value = response; modalApi.modalLoading(false); } diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-modal.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-modal.vue index fc0576f3..ece04978 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-modal.vue +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/plantsProduct-modal.vue @@ -1,30 +1,24 @@