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

View File

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

View File

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