From a5f93c3a6c5ec2078a5c987e5c236001c40a5113 Mon Sep 17 00:00:00 2001 From: dev_ljl <2590379346@qq.com> Date: Fri, 18 Jul 2025 18:40:13 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=88=BF=E5=B1=8B=E6=94=B6=E8=B4=B9?= =?UTF-8?q?=202=E3=80=81=E9=80=80=E8=B4=B9=E5=AE=A1=E6=A0=B8=203=E3=80=81?= =?UTF-8?q?=E6=88=BF=E9=97=B4=E6=B7=BB=E5=8A=A0=E5=A5=97=E5=86=85=E9=9D=A2?= =?UTF-8?q?=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../costManagement/houseCharge/index.ts | 61 ++++++ .../costManagement/houseCharge/model.d.ts | 130 +++++++++++ .../costManagement/returnPayFee/index.ts | 61 ++++++ .../costManagement/returnPayFee/model.d.ts | 154 ++++++++++++++ .../maintainPlan/model.d.ts | 11 +- .../web-antd/src/api/property/room/model.d.ts | 11 +- .../costManagement/houseCharge/data.ts | 181 ++++++++++++++++ .../houseCharge/house-charge-detail.vue | 91 ++++++++ .../houseCharge/houseCharge-add.vue | 201 ++++++++++++++++++ .../houseCharge/houseCharge-update.vue | 149 +++++++++++++ .../costManagement/houseCharge/index.vue | 189 ++++++++++++++++ .../costManagement/returnPayFee/data.ts | 103 +++++++++ .../costManagement/returnPayFee/index.vue | 172 +++++++++++++++ .../returnPayFee/return-pay-detail.vue | 64 ++++++ .../returnPayFee/returnPayFee-modal.vue | 108 ++++++++++ .../equipmentManagement/machine/data.ts | 30 +-- .../equipmentManagement/machine/index.vue | 62 +++--- .../equipmentManagement/maintainPlan/data.ts | 50 ++--- .../maintainPlan/index.vue | 4 +- .../maintainPlan/maintainPlan-modal.vue | 49 ++++- apps/web-antd/src/views/property/room/data.ts | 16 +- 21 files changed, 1801 insertions(+), 96 deletions(-) create mode 100644 apps/web-antd/src/api/property/costManagement/houseCharge/index.ts create mode 100644 apps/web-antd/src/api/property/costManagement/houseCharge/model.d.ts create mode 100644 apps/web-antd/src/api/property/costManagement/returnPayFee/index.ts create mode 100644 apps/web-antd/src/api/property/costManagement/returnPayFee/model.d.ts create mode 100644 apps/web-antd/src/views/property/costManagement/houseCharge/data.ts create mode 100644 apps/web-antd/src/views/property/costManagement/houseCharge/house-charge-detail.vue create mode 100644 apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-add.vue create mode 100644 apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-update.vue create mode 100644 apps/web-antd/src/views/property/costManagement/houseCharge/index.vue create mode 100644 apps/web-antd/src/views/property/costManagement/returnPayFee/data.ts create mode 100644 apps/web-antd/src/views/property/costManagement/returnPayFee/index.vue create mode 100644 apps/web-antd/src/views/property/costManagement/returnPayFee/return-pay-detail.vue create mode 100644 apps/web-antd/src/views/property/costManagement/returnPayFee/returnPayFee-modal.vue diff --git a/apps/web-antd/src/api/property/costManagement/houseCharge/index.ts b/apps/web-antd/src/api/property/costManagement/houseCharge/index.ts new file mode 100644 index 00000000..c48acb4e --- /dev/null +++ b/apps/web-antd/src/api/property/costManagement/houseCharge/index.ts @@ -0,0 +1,61 @@ +import type { HouseChargeVO, HouseChargeForm, HouseChargeQuery } 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 houseChargeList(params?: HouseChargeQuery) { + return requestClient.get>('/property/houseCharge/list', { params }); +} + +/** + * 导出房屋收费列表 + * @param params + * @returns 房屋收费列表 + */ +export function houseChargeExport(params?: HouseChargeQuery) { + return commonExport('/property/houseCharge/export', params ?? {}); +} + +/** + * 查询房屋收费详情 + * @param id id + * @returns 房屋收费详情 + */ +export function houseChargeInfo(id: ID) { + return requestClient.get(`/property/houseCharge/${id}`); +} + +/** + * 新增房屋收费 + * @param data + * @returns void + */ +export function houseChargeAdd(data: HouseChargeForm) { + return requestClient.postWithMsg('/property/houseCharge', data); +} + +/** + * 更新房屋收费 + * @param data + * @returns void + */ +export function houseChargeUpdate(data: HouseChargeForm) { + return requestClient.putWithMsg('/property/houseCharge', data); +} + +/** + * 删除房屋收费 + * @param id id + * @returns void + */ +export function houseChargeRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/houseCharge/${id}`); +} diff --git a/apps/web-antd/src/api/property/costManagement/houseCharge/model.d.ts b/apps/web-antd/src/api/property/costManagement/houseCharge/model.d.ts new file mode 100644 index 00000000..46089c13 --- /dev/null +++ b/apps/web-antd/src/api/property/costManagement/houseCharge/model.d.ts @@ -0,0 +1,130 @@ +import type {PageQuery, BaseEntity} from '#/api/common'; + +export interface HouseChargeVO { + /** + * 主键 + */ + id: string | number; + + /** + * 房屋 + */ + roomId: string | number; + + /** + * 收费项目 + */ + costItemsId: string | number; + + /** + * 应收金额 + */ + amountReceivable: number; + + /** + * 计费开始时间 + */ + startTime: string; + + /** + * 计费结束时间 + */ + endTime: string; + + /** + * 状态 + */ + state: string; + + /** + * 说明 + */ + remark: string; + + chargeTime: any[]; + /** + * 缴费周期 + */ + chargeCycle: number; + +} + +export interface HouseChargeForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 房屋 + */ + roomId?: string | number; + + /** + * 收费项目 + */ + costItemsId?: string | number; + + /** + * 应收金额 + */ + amountReceivable?: number; + + /** + * 计费开始时间 + */ + startTime?: string; + + /** + * 计费结束时间 + */ + endTime?: string; + + /** + * 状态 + */ + state?: string; + + /** + * 说明 + */ + remark?: string; + +} + +export interface HouseChargeQuery extends PageQuery { + /** + * 房屋 + */ + roomId?: string | number; + + /** + * 收费项目 + */ + costItemsId?: string | number; + + /** + * 应收金额 + */ + amountReceivable?: number; + + /** + * 计费开始时间 + */ + startTime?: string; + + /** + * 计费结束时间 + */ + endTime?: string; + + /** + * 状态 + */ + state?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/costManagement/returnPayFee/index.ts b/apps/web-antd/src/api/property/costManagement/returnPayFee/index.ts new file mode 100644 index 00000000..34a8de02 --- /dev/null +++ b/apps/web-antd/src/api/property/costManagement/returnPayFee/index.ts @@ -0,0 +1,61 @@ +import type { ReturnPayFeeVO, ReturnPayFeeForm, ReturnPayFeeQuery } 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 returnPayFeeList(params?: ReturnPayFeeQuery) { + return requestClient.get>('/property/returnPayFee/list', { params }); +} + +/** + * 导出退费审核列表 + * @param params + * @returns 退费审核列表 + */ +export function returnPayFeeExport(params?: ReturnPayFeeQuery) { + return commonExport('/property/returnPayFee/export', params ?? {}); +} + +/** + * 查询退费审核详情 + * @param id id + * @returns 退费审核详情 + */ +export function returnPayFeeInfo(id: ID) { + return requestClient.get(`/property/returnPayFee/${id}`); +} + +/** + * 新增退费审核 + * @param data + * @returns void + */ +export function returnPayFeeAdd(data: ReturnPayFeeForm) { + return requestClient.postWithMsg('/property/returnPayFee', data); +} + +/** + * 更新退费审核 + * @param data + * @returns void + */ +export function returnPayFeeUpdate(data: ReturnPayFeeForm) { + return requestClient.putWithMsg('/property/returnPayFee', data); +} + +/** + * 删除退费审核 + * @param id id + * @returns void + */ +export function returnPayFeeRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/returnPayFee/${id}`); +} diff --git a/apps/web-antd/src/api/property/costManagement/returnPayFee/model.d.ts b/apps/web-antd/src/api/property/costManagement/returnPayFee/model.d.ts new file mode 100644 index 00000000..b9a5d954 --- /dev/null +++ b/apps/web-antd/src/api/property/costManagement/returnPayFee/model.d.ts @@ -0,0 +1,154 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface ReturnPayFeeVO { + /** + * 主键 + */ + id: string | number; + + /** + * 退款单号 + */ + returnNo?: string; + + /** + * 支付单号 + */ + payNo?: string; + + /** + * 退款原因 + */ + reason?: string; + + /** + * 费用类型id + */ + itemId?: string | number; + + /** + * 业主id + */ + userId?: string | number; + + /** + * 支付金额 + */ + payAcount?: number; + + /** + * 支付时间 + */ + payTime?: string; + + /** + * 退费状态 + */ + state: string; + + /** + * 说明 + */ + remark: string; + +} + +export interface ReturnPayFeeForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 退款单号 + */ + returnNo?: string; + + /** + * 支付单号 + */ + payNo?: string; + + /** + * 退款原因 + */ + reason?: string; + + /** + * 费用类型id + */ + itemId?: string | number; + + /** + * 业主id + */ + userId?: string | number; + + /** + * 支付金额 + */ + payAcount?: number; + + /** + * 支付时间 + */ + payTime?: string; + + /** + * 退费状态 + */ + state?: string; + + /** + * 说明 + */ + remark?: string; + +} + +export interface ReturnPayFeeQuery extends PageQuery { + /** + * 退款单号 + */ + returnNo?: string; + + /** + * 支付单号 + */ + payNo?: string; + + /** + * 退款原因 + */ + reason?: string; + + /** + * 费用类型id + */ + itemId?: string | number; + + /** + * 业主id + */ + userId?: string | number; + + /** + * 支付金额 + */ + payAcount?: number; + + /** + * 支付时间 + */ + payTime?: string; + + /** + * 退费状态 + */ + state?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/equipmentManagement/maintainPlan/model.d.ts b/apps/web-antd/src/api/property/equipmentManagement/maintainPlan/model.d.ts index cfea1a69..6350b7c2 100644 --- a/apps/web-antd/src/api/property/equipmentManagement/maintainPlan/model.d.ts +++ b/apps/web-antd/src/api/property/equipmentManagement/maintainPlan/model.d.ts @@ -1,4 +1,4 @@ -import type { PageQuery, BaseEntity } from '#/api/common'; +import type {PageQuery, BaseEntity} from '#/api/common'; export interface MaintainPlanVO { /** @@ -56,6 +56,11 @@ export interface MaintainPlanVO { */ state: string; + planDate: any[] + + userId: string[]; + + machineMaintainPlanStaffBoList:any[]; } export interface MaintainPlanForm extends BaseEntity { @@ -168,7 +173,7 @@ export interface MaintainPlanQuery extends PageQuery { state?: string; /** - * 日期范围参数 - */ + * 日期范围参数 + */ params?: any; } diff --git a/apps/web-antd/src/api/property/room/model.d.ts b/apps/web-antd/src/api/property/room/model.d.ts index 122d596b..a01052ac 100644 --- a/apps/web-antd/src/api/property/room/model.d.ts +++ b/apps/web-antd/src/api/property/room/model.d.ts @@ -2,7 +2,7 @@ import type { PageQuery, BaseEntity } from '#/api/common'; export interface RoomVO { /** - * + * */ id: string | number; @@ -22,10 +22,15 @@ export interface RoomVO { roomType: number; /** - * 面积(平方米) + * 建筑面积(平方米) */ area: number; + /** + * 套内面积(平方米) + */ + insideInArea: number; + /** * 户型(如2室1厅1卫) */ @@ -50,7 +55,7 @@ export interface RoomVO { export interface RoomForm extends BaseEntity { /** - * + * */ id?: string | number; diff --git a/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts b/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts new file mode 100644 index 00000000..3ff35ae1 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/data.ts @@ -0,0 +1,181 @@ +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'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'ApiSelect', + componentProps: { + api:async ()=>{ + return (await costItemSettingList({pageSize: 1000, pageNum: 1}))?.rows + }, + afterFetch: (data: { chargeItem: string; id: string }[]) => { + return data.map((item: any) => ({ + label: item.chargeItem, + value: item.id, + })); + }, + }, + fieldName: 'costItemsId', + label: '收费项目', + }, + { + component: 'Select', + fieldName: 'state', + label: '状态', + componentProps: { + options: getDictOptions('wy_fysfzt') + }, + }, +]; +export const columns: VxeGridProps['columns'] = [ + {type: 'checkbox', width: 60}, + { + title: '房屋', + field: 'roomId', + minWidth: 150, + }, + { + title: '收费项目', + field: 'costItemsId', + width: 150, + }, + { + title: '应收金额', + field: 'amountReceivable', + width: 150, + }, + { + title: '计费开始时间', + field: 'startTime', + width: 150, + }, + { + title: '计费结束时间', + field: 'endTime', + width: 150, + }, + { + title: '状态', + field: 'state', + width: 150, + slots: { + default: ({row}) => { + return renderDict(row.state, 'wy_fysfzt') + } + } + }, + { + title: '说明', + field: 'remark', + width: 150, + }, + { + 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: 'roomId', + component: 'TreeSelect', + componentProps: { + }, + rules: 'selectRequired', + }, + { + label: '费用类型', + fieldName: 'costType', + component: 'Select', + componentProps: { + }, + rules: 'selectRequired', + }, + { + label: '收费项目', + fieldName: 'costItemsId', + component: 'ApiSelect', + componentProps: {}, + rules: 'selectRequired', + }, + { + label: '应收金额', + fieldName: 'amountReceivable', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '计费时间', + fieldName: 'chargeTime', + component: 'RangePicker', + componentProps: { + format: 'YYYY-MM-DD', + valueFormat: 'YYYY-MM-DD', + }, + rules: 'selectRequired', + }, + { + label: '说明', + fieldName: 'remark', + component: 'Textarea', + formItemClass: 'col-span-2', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, +]; + +export const modalSchemaUpdate: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '支付方式', + fieldName: 'payType', + component: 'Select', + componentProps: { + options:getDictOptions('wy_zffs') + }, + rules: 'selectRequired', + }, + { + label: '缴费周期', + fieldName: 'chargeCycle', + component: 'InputNumber', + componentProps: { + min:1, + precision:0, + placeholder:'请输入缴费周期(月)' + }, + suffix: () => h('span', { style: {fontSize: '0.875rem',fontWeight:500,} }, '月'), + rules: 'selectRequired', + }, +] 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 new file mode 100644 index 00000000..fa29c7e5 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/house-charge-detail.vue @@ -0,0 +1,91 @@ + + + diff --git a/apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-add.vue b/apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-add.vue new file mode 100644 index 00000000..b11da258 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-add.vue @@ -0,0 +1,201 @@ + + + + diff --git a/apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-update.vue b/apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-update.vue new file mode 100644 index 00000000..43014f3b --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/houseCharge-update.vue @@ -0,0 +1,149 @@ + + + + diff --git a/apps/web-antd/src/views/property/costManagement/houseCharge/index.vue b/apps/web-antd/src/views/property/costManagement/houseCharge/index.vue new file mode 100644 index 00000000..657226eb --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/houseCharge/index.vue @@ -0,0 +1,189 @@ + + + diff --git a/apps/web-antd/src/views/property/costManagement/returnPayFee/data.ts b/apps/web-antd/src/views/property/costManagement/returnPayFee/data.ts new file mode 100644 index 00000000..1a89c3e7 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/returnPayFee/data.ts @@ -0,0 +1,103 @@ +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', + fieldName: 'returnNo', + label: '退款单号', + }, + { + component: 'Select', + componentProps:{ + options:getDictOptions('wy_tfshzt') + }, + fieldName: 'state', + label: '审核状态', + }, +]; +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '退款单号', + field: 'returnNo', + width: 180, + }, + { + title: '支付单号', + field: 'payNo', + width: 180, + }, + { + title: '支付金额', + field: 'payAcount', + width: 100, + }, + { + title: '支付时间', + field: 'payTime', + width: 180, + }, + { + title: '退款原因', + field: 'reason', + minWidth: 180, + }, + { + title: '审核状态', + field: 'state', + width: 150, + slots:{ + default:({row})=>{ + return renderDict(row.state,'wy_tfshzt') + } + } + }, + { + title: '审核意见', + field: 'remark', + width: 180, + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const stateOptions = [ + { label: '审核通过', value: '1' }, + { label: '审核不通过', value: '2' }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '审核状态', + fieldName: 'state', + component: 'RadioGroup', + componentProps: { + buttonStyle: 'solid', + options: stateOptions, + }, + rules:'required' + }, + { + label: '审核意见', + fieldName: 'remark', + component: 'Textarea', + }, +]; diff --git a/apps/web-antd/src/views/property/costManagement/returnPayFee/index.vue b/apps/web-antd/src/views/property/costManagement/returnPayFee/index.vue new file mode 100644 index 00000000..3f0f2930 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/returnPayFee/index.vue @@ -0,0 +1,172 @@ + + + diff --git a/apps/web-antd/src/views/property/costManagement/returnPayFee/return-pay-detail.vue b/apps/web-antd/src/views/property/costManagement/returnPayFee/return-pay-detail.vue new file mode 100644 index 00000000..4b9a2b91 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/returnPayFee/return-pay-detail.vue @@ -0,0 +1,64 @@ + + + diff --git a/apps/web-antd/src/views/property/costManagement/returnPayFee/returnPayFee-modal.vue b/apps/web-antd/src/views/property/costManagement/returnPayFee/returnPayFee-modal.vue new file mode 100644 index 00000000..0e706473 --- /dev/null +++ b/apps/web-antd/src/views/property/costManagement/returnPayFee/returnPayFee-modal.vue @@ -0,0 +1,108 @@ + + + + diff --git a/apps/web-antd/src/views/property/equipmentManagement/machine/data.ts b/apps/web-antd/src/views/property/equipmentManagement/machine/data.ts index 81762779..02a7d3d1 100644 --- a/apps/web-antd/src/views/property/equipmentManagement/machine/data.ts +++ b/apps/web-antd/src/views/property/equipmentManagement/machine/data.ts @@ -42,16 +42,16 @@ export const columns: VxeGridProps['columns'] = [ field: 'machineBrand', width:100 }, - { - title: '设备类型', - field: 'machineTypeId', - width:100 - }, - { - title: '位置详情', - field: 'locationId', - width:100 - }, + // { + // title: '设备类型', + // field: 'machineTypeId', + // width:100 + // }, + // { + // title: '位置详情', + // field: 'locationId', + // width:100 + // }, { title: '采购价格', field: 'purchasePrice', @@ -92,11 +92,11 @@ export const columns: VxeGridProps['columns'] = [ } } }, - { - title: '责任人', - field: 'personId', - width:100 - }, + // { + // title: '责任人', + // field: 'personId', + // width:100 + // }, { field: 'action', fixed: 'right', diff --git a/apps/web-antd/src/views/property/equipmentManagement/machine/index.vue b/apps/web-antd/src/views/property/equipmentManagement/machine/index.vue index 8e58bef2..896e0194 100644 --- a/apps/web-antd/src/views/property/equipmentManagement/machine/index.vue +++ b/apps/web-antd/src/views/property/equipmentManagement/machine/index.vue @@ -24,7 +24,7 @@ import MachineTypeTree from '../components/machine-type-tree.vue' import machineDetail from './machine-detail.vue' import {ref} from "vue"; -const selectTypeId = ref('') +const selectTypeId = ref([]) const formOptions: VbenFormProps = { commonConfig: { @@ -36,8 +36,8 @@ const formOptions: VbenFormProps = { schema: querySchema(), wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4', handleReset: async () => { - selectTypeId.value = ''; - const { formApi, reload } = tableApi; + selectTypeId.value = []; + const {formApi, reload} = tableApi; await formApi.resetForm(); const formValues = formApi.form.values; formApi.setLatestSubmissionValues(formValues); @@ -61,7 +61,11 @@ const gridOptions: VxeGridProps = { proxyConfig: { ajax: { query: async ({page}, formValues = {}) => { - formValues.machineTypeId = selectTypeId.value + if (selectTypeId.value && selectTypeId.value.length) { + formValues.machineTypeId = selectTypeId.value[0] + }else { + formValues.machineTypeId =[] + } return await machineList({ pageNum: page.currentPage, pageSize: page.pageSize, @@ -135,32 +139,32 @@ function handleDownloadExcel() {