diff --git a/apps/web-antd/src/api/analytics/index.ts b/apps/web-antd/src/api/analytics/index.ts index f2f58cbe..74b29f2a 100644 --- a/apps/web-antd/src/api/analytics/index.ts +++ b/apps/web-antd/src/api/analytics/index.ts @@ -13,52 +13,63 @@ export function getIndexCount() { export function getStatisticsCurrDay() { return requestClient.get('/sis/alarmEvents/query/statistics/currDay'); } + // 所有预警信息分类统计 export function getStatistics() { return requestClient.get('/sis/alarmEvents/query/statistics'); } + // 工单 export function getworkOrder() { - return requestClient.get('/property/screen/typeWorkOrderHistogram'); + return requestClient.get( + '/property/cockpit/screen/typeWorkOrderHistogram', + ); } + // 会议室 export function getTodayMeetCount() { - return requestClient.get('/property/screen/todayMeetCount'); + return requestClient.get('/property/cockpit/screen/todayMeetCount'); } + // 水电 export function getHydropower() { return requestClient.get('/property/meterInfo/statusCount'); } + // 门禁 export function getAccessControl() { return requestClient.get('/sis/e8/door/online'); } + // 摄像头状态 export function getCamera() { return requestClient.get('/sis/deviceManage/online'); } + // 访客 export function getVisitorCount() { - return requestClient.get('/property/screen/todayVisitorCount'); + return requestClient.get('/property/cockpit/screen/todayVisitorCount'); } + //车流 export async function queryTwentyfourRunningDatasByPlNos() { let params = { - "orgId": "10012", - "plNos": [ - "PFN000000012", - "PFN000000025" - ] + orgId: '10012', + plNos: ['PFN000000012', 'PFN000000025'], }; - const response = await fetch('https://server.cqnctc.com:6081/web/thirdParty/queryTwentyfourRunningDatasByPlNos', { - method: 'POST', // 指定请求方法为POST - headers: { - 'Content-Type': 'application/json', // 设置内容类型为JSON + const response = await fetch( + 'https://server.cqnctc.com:6081/web/thirdParty/queryTwentyfourRunningDatasByPlNos', + { + method: 'POST', // 指定请求方法为POST + headers: { + 'Content-Type': 'application/json', // 设置内容类型为JSON + }, + body: JSON.stringify(params), // 将参数对象转换为JSON字符串并作为请求体发送 }, - body: JSON.stringify(params), // 将参数对象转换为JSON字符串并作为请求体发送 - }); + ); return response.json(); } + // /** // * 导出资产管理列表 // * @param params diff --git a/apps/web-antd/src/api/property/chargeManagement/model.d.ts b/apps/web-antd/src/api/property/chargeManagement/model.d.ts index 2f5a1565..b7f2b924 100644 --- a/apps/web-antd/src/api/property/chargeManagement/model.d.ts +++ b/apps/web-antd/src/api/property/chargeManagement/model.d.ts @@ -65,6 +65,10 @@ export interface OrderChargeVO { * 收费状态 */ chargeStatus: string | number; + /** + * 单位 + */ + residentUnitId: string; } export interface OrderChargeForm extends BaseEntity { @@ -196,8 +200,8 @@ export interface OrderChargeQuery extends PageQuery { chargeStatus?: string | number; /** - * 日期范围参数 - */ + * 日期范围参数 + */ params?: any; } @@ -266,4 +270,8 @@ export interface orderChargeDetailForm extends BaseEntity { * 收费状态 */ chargeStatus?: string | number; + /** + * 租赁单位 + */ + residentUnitText?: string; } diff --git a/apps/web-antd/src/api/property/rentalOrder/index.ts b/apps/web-antd/src/api/property/rentalOrder/index.ts index 61829f0b..e8e302a1 100644 --- a/apps/web-antd/src/api/property/rentalOrder/index.ts +++ b/apps/web-antd/src/api/property/rentalOrder/index.ts @@ -7,14 +7,22 @@ import { commonExport } from '#/api/helper'; import { requestClient } from '#/api/request'; /** -* 查询绿植租赁-订单管理列表 -* @param params -* @returns 绿植租赁-订单管理列表 -*/ + * 查询绿植租赁-订单管理列表 + * @param params + * @returns 绿植租赁-订单管理列表 + */ export function rentalOrderList(params?: RentalOrderQuery) { - return requestClient.get>('/property/rentalOrder/list', { params }); + return requestClient.get>( + '/property/rentalOrder/list', + { params }, + ); +} +export function rentalNotSelectList(params?: RentalOrderQuery) { + return requestClient.get>( + '/property/rentalOrder/notSelectList', + { params }, + ); } - /** * 导出绿植租赁-订单管理列表 * @param params diff --git a/apps/web-antd/src/api/property/rentalOrder/model.d.ts b/apps/web-antd/src/api/property/rentalOrder/model.d.ts index 745d03d0..e38f7be1 100644 --- a/apps/web-antd/src/api/property/rentalOrder/model.d.ts +++ b/apps/web-antd/src/api/property/rentalOrder/model.d.ts @@ -86,6 +86,10 @@ export interface RentalOrderVO { */ signTime: string; + /** + * 单位名称 + */ + residentUnitText: string; } export interface RentalOrderForm extends BaseEntity { @@ -173,7 +177,6 @@ export interface RentalOrderForm extends BaseEntity { * 签署时间 */ signTime?: string; - } export interface RentalOrderQuery extends PageQuery { @@ -257,7 +260,7 @@ export interface RentalOrderQuery extends PageQuery { signTime?: string; /** - * 日期范围参数 - */ + * 日期范围参数 + */ params?: any; } diff --git a/apps/web-antd/src/api/property/resident/unit/model.d.ts b/apps/web-antd/src/api/property/resident/unit/model.d.ts index dfe50c8a..ead328ed 100644 --- a/apps/web-antd/src/api/property/resident/unit/model.d.ts +++ b/apps/web-antd/src/api/property/resident/unit/model.d.ts @@ -246,4 +246,9 @@ export interface Unit extends BaseEntity { */ area?: string; + /** + * 房间数量 + */ + roomNumber: number; + } diff --git a/apps/web-antd/src/views/property/costManagement/costItemSetting/data.ts b/apps/web-antd/src/views/property/costManagement/costItemSetting/data.ts index 0cb913d5..43f36d10 100644 --- a/apps/web-antd/src/views/property/costManagement/costItemSetting/data.ts +++ b/apps/web-antd/src/views/property/costManagement/costItemSetting/data.ts @@ -88,7 +88,7 @@ export const columns: VxeGridProps['columns'] = [ { title: '状态', field: 'state', - slots: {default: 'state'}, + slots: { default: 'state' }, width: 100, }, { @@ -158,15 +158,15 @@ export const modalSchema: FormSchemaGetter = () => [ placeholder: '请输入(如:元)', }, }, - { - label: '手机缴费', - fieldName: 'isMobilePay', - component: 'Select', - componentProps: { - options: getDictOptions('pro_mobile_payment'), - }, - rules: 'selectRequired', - }, + // { + // label: '付费方式', + // fieldName: 'paymentMode', + // component: 'Select', + // componentProps: { + // options: getDictOptions('wy_fffs'), + // }, + // rules: 'selectRequired', + // }, { label: '进位方式', fieldName: 'roundingMode', @@ -202,7 +202,6 @@ export const modalSchema: FormSchemaGetter = () => [ options: getDictOptions('pro_calculation_formula'), }, rules: 'selectRequired', - formItemClass:'col-span-2', }, { label: '计费单价', diff --git a/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts b/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts index 00b53669..83284371 100644 --- a/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts @@ -1,17 +1,18 @@ -import type {FormSchemaGetter} from '#/adapter/form'; -import type {VxeGridProps} from '#/adapter/vxe-table'; -import {getDictOptions} from "#/utils/dict"; -import {renderDict} from "#/utils/render"; -import {costItemSettingList} from "#/api/property/costManagement/costItemSetting"; +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; +import { getDictOptions } from '#/utils/dict'; +import { renderDict } from '#/utils/render'; +import { costItemSettingList } from '#/api/property/costManagement/costItemSetting'; import { h } from 'vue'; - +import { resident_unitList } from '#/api/property/resident/unit'; export const querySchema: FormSchemaGetter = () => [ { component: 'ApiSelect', componentProps: { - api:async ()=>{ - return (await costItemSettingList({pageSize: 1000, pageNum: 1}))?.rows + api: async () => { + return (await costItemSettingList({ pageSize: 1000, pageNum: 1 })) + ?.rows; }, afterFetch: (data: { chargeItem: string; id: string }[]) => { return data.map((item: any) => ({ @@ -28,12 +29,29 @@ export const querySchema: FormSchemaGetter = () => [ fieldName: 'chargeStatus', label: '缴费状态', componentProps: { - options: getDictOptions('wy_fyshzt') + options: getDictOptions('wy_fyshzt'), }, }, + { + component: 'ApiSelect', + componentProps: { + api: async () => { + const rows = await resident_unitList({ + pageSize: 1000000000, + pageNum: 1, + }); + return rows; + }, + resultField: 'rows', + labelField: 'name', + valueField: 'id', + }, + fieldName: 'residentUnitId', + label: '单位', + }, ]; export const columns: VxeGridProps['columns'] = [ - {type: 'checkbox', width: 60}, + { type: 'checkbox', width: 60 }, { title: '单位', field: 'residentUnitText', @@ -41,7 +59,7 @@ export const columns: VxeGridProps['columns'] = [ }, { title: '收费项目', - field: 'costItemsId', + field: 'chargeItemText', width: 150, }, { @@ -53,21 +71,23 @@ export const columns: VxeGridProps['columns'] = [ title: '计费开始时间', field: 'startTime', width: 150, + slots: { default: 'startTime' }, }, { title: '计费结束时间', field: 'endTime', width: 150, + slots: { default: 'endTime' }, }, { title: '缴费状态', field: 'chargeStatus', width: 150, slots: { - default: ({row}) => { - return renderDict(row.chargeStatus, 'wy_fyshzt') - } - } + default: ({ row }) => { + return renderDict(row.chargeStatus, 'wy_fyshzt'); + }, + }, }, // { // title: '状态', @@ -87,7 +107,7 @@ export const columns: VxeGridProps['columns'] = [ { field: 'action', fixed: 'right', - slots: {default: 'action'}, + slots: { default: 'action' }, title: '操作', width: 180, }, @@ -107,8 +127,7 @@ export const modalSchema: FormSchemaGetter = () => [ label: '单位', fieldName: 'residentUnitId', component: 'Select', - componentProps: { - }, + componentProps: {}, rules: 'selectRequired', formItemClass: 'col-span-2', }, @@ -136,16 +155,14 @@ export const modalSchema: FormSchemaGetter = () => [ label: '业主', fieldName: 'personId', component: 'ApiSelect', - componentProps: { - }, + componentProps: {}, rules: 'selectRequired', }, { label: '费用类型', fieldName: 'costType', component: 'Select', - componentProps: { - }, + componentProps: {}, rules: 'selectRequired', }, { @@ -201,7 +218,7 @@ export const modalSchemaUpdate: FormSchemaGetter = () => [ fieldName: 'payType', component: 'Select', componentProps: { - options:getDictOptions('wy_zffs') + options: getDictOptions('wy_zffs'), }, rules: 'selectRequired', }, @@ -210,14 +227,15 @@ export const modalSchemaUpdate: FormSchemaGetter = () => [ fieldName: 'chargeCycle', component: 'InputNumber', componentProps: { - min:1, - precision:0, - placeholder:'请输入缴费周期(月)' + min: 1, + precision: 0, + placeholder: '请输入缴费周期(月)', }, - suffix: () => h('span', { style: {fontSize: '0.875rem',fontWeight:500,} }, '月'), + suffix: () => + h('span', { style: { fontSize: '0.875rem', fontWeight: 500 } }, '月'), rules: 'selectRequired', }, -] +]; export const modalSchemaRefund: FormSchemaGetter = () => [ { label: '主键', @@ -233,6 +251,6 @@ export const modalSchemaRefund: FormSchemaGetter = () => [ fieldName: 'reason', component: 'Textarea', formItemClass: 'col-span-2', - rules:'required' + rules: 'required', }, -] +]; diff --git a/apps/web-antd/src/views/property/costManagement/houseCharge/house-charge-detail.vue b/apps/web-antd/src/views/property/costManagement/houseCharge/house-charge-detail.vue index 18da12b9..e63bfbd7 100644 --- a/apps/web-antd/src/views/property/costManagement/houseCharge/house-charge-detail.vue +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/house-charge-detail.vue @@ -39,6 +39,11 @@ async function handleOpenChange(open: boolean) { } modalApi.modalLoading(false); } +function formatDate(dateString: string) { + if (!dateString) return ''; + const date = new Date(dateString); + return date.toISOString().split('T')[0]; +} + +