feat:会议室预约会议室类型查询

This commit is contained in:
2025-08-26 15:53:38 +08:00
parent d6da044b48
commit 82e971d98f
3 changed files with 37 additions and 34 deletions

View File

@@ -2,8 +2,6 @@ import type {FormSchemaGetter} from '#/adapter/form';
import type {VxeGridProps} from '#/adapter/vxe-table';
import {renderDict} from "#/utils/render";
import {getDictOptions} from "#/utils/dict";
import {h} from "vue";
import {Rate} from "ant-design-vue";
export const querySchema: FormSchemaGetter = () => [
{
@@ -96,34 +94,34 @@ export const columns: VxeGridProps['columns'] = [
// field: 'planCompleTime',
// width: 100,
// },
{
title: '完成时间',
field: 'compleTime',
width: 100,
},
{
title: '评价',
field: 'serviceEvalua',
width: 180,
slots: {
default: ({row}) => {
return h(Rate, {
value: row.serviceEvalua || 0,
disabled: true,
});
},
},
},
{
title: '是否超时',
field: 'isTimeOut',
width: 100,
slots: {
default: ({row}) => {
return row.isTimeOut ? renderDict(row.isTimeOut, 'wy_sf') : '';
},
},
},
// {
// title: '完成时间',
// field: 'compleTime',
// width: 100,
// },
// {
// title: '评价',
// field: 'serviceEvalua',
// width: 180,
// slots: {
// default: ({row}) => {
// return h(Rate, {
// value: row.serviceEvalua || 0,
// disabled: true,
// });
// },
// },
// },
// {
// title: '是否超时',
// field: 'isTimeOut',
// width: 100,
// slots: {
// default: ({row}) => {
// return row.isTimeOut ? renderDict(row.isTimeOut, 'wy_sf') : '';
// },
// },
// },
{
title: '创建时间',
field: 'createTime',

View File

@@ -47,7 +47,7 @@ async function handleOpenChange(open: boolean) {
try {
if (orderDetail.value.orderImgUrl) {
const res = await ossInfo([orderDetail.value.orderImgUrl]);
let imgUrls = [];
let imgUrls = [] as string[];
res.forEach(item => {
imgUrls.push(item.url)
})
@@ -55,7 +55,7 @@ async function handleOpenChange(open: boolean) {
}
if (orderDetail.value.imgUrl) {
const res = await ossInfo([orderDetail.value.imgUrl]);
let imgUrls = [];
let imgUrls = [] as string[];
res.forEach(item => {
imgUrls.push(item.url)
})
@@ -106,7 +106,6 @@ async function handleOpenChange(open: boolean) {
<!-- {{ orderDetail.planCompleTime }}-->
<!-- </DescriptionsItem>-->
<DescriptionsItem label="备注" :span="2">
{{ orderDetail.remark }}
</DescriptionsItem>

View File

@@ -13,6 +13,11 @@
placeholder="请选择类型"
style="width: 150px;"
>
<SelectOption
key="all"
value="all">
全部类型
</SelectOption>
<SelectOption
v-for="item in getDictOptions('meeting_room_type')"
:key="item.value"
@@ -20,6 +25,7 @@
>
{{ item.label }}
</SelectOption>
</Select>
</a-form-item>
<a-form-item label="会议日期">
@@ -113,7 +119,7 @@ async function handleSearch() {
openStartHours: openStartHours??undefined,
openEndHours:openEndHours??undefined,
appointmentTime:formState.appointmentTime?formState.appointmentTime.format('YYYY-MM-DD'):undefined,
meetingRoomType:formState.meetingRoomType
meetingRoomType:formState.meetingRoomType=='all'?undefined:formState.meetingRoomType,
}
meetingList.value =await notlist(obj);
}