预约记录

This commit is contained in:
FLL 2025-07-09 15:04:05 +08:00
parent e860009b61
commit afa9e303cb
4 changed files with 5 additions and 144 deletions

View File

@ -28,7 +28,7 @@ export function bookingExport(params?: BookingQuery) {
* @returns booking详情
*/
export function bookingInfo(id: ID) {
return requestClient.get<BookingVO>(`/property/meetbooking/{id}`);
return requestClient.get<BookingVO>(`/property/meetbooking/${id}`);
}
/**

View File

@ -33,7 +33,7 @@ async function handleOpenChange(open: boolean) {
</script>
<template>
<BasicModal :footer="false" :fullscreen-button="false" title="访客管理信息" class="w-[70%]">
<BasicModal :footer="false" :fullscreen-button="false" title="会议室预约记录信息" class="w-[70%]">
<Descriptions v-if="conferenceReservationRecordsDetail" size="small" :column="2" bordered :labelStyle="{width:'100px'}">
<DescriptionsItem label="会议室名称">
{{ conferenceReservationRecordsDetail.name}}
@ -71,7 +71,7 @@ async function handleOpenChange(open: boolean) {
</DescriptionsItem>
<DescriptionsItem label="预约状态" v-if="conferenceReservationRecordsDetail.state!=null">
<component
:is="renderDict(conferenceReservationRecordsDetail.state,'wy_yyzt')"
:is="renderDict(conferenceReservationRecordsDetail.state,'pro_appointment_status')"
/>
</DescriptionsItem>
<DescriptionsItem label="提交时间">

View File

@ -25,7 +25,7 @@ export const querySchema: FormSchemaGetter = () => [
{
component: 'Select',
componentProps: {
options: getDictOptions('wy_yyzt'),
options: getDictOptions('pro_appointment_status'),
},
fieldName: 'state',
label: '预约状态',
@ -38,11 +38,6 @@ export const columns: VxeGridProps['columns'] = [
field: 'name',
minWidth:'120'
},
{
title: '会议室地址',
field: 'meetLocation',
minWidth:'120'
},
{
title: '所属单位',
field: 'unit',
@ -101,7 +96,7 @@ export const columns: VxeGridProps['columns'] = [
field: 'state',
slots: {
default: ({ row }) => {
return renderDict(row.state, 'wy_yyzt');
return renderDict(row.state, 'pro_appointment_status');
},
},
minWidth:'120'
@ -119,124 +114,3 @@ export const columns: VxeGridProps['columns'] = [
width: 180,
},
];
export const modalSchema: FormSchemaGetter = () => [
{
label: '主键',
fieldName: 'id',
component: 'Input',
dependencies: {
show: () => false,
triggerFields: [''],
},
},
{
label: '会议室名称',
fieldName: 'name',
component: 'Input',
rules: 'required',
},
{
label: '会议室id',
fieldName: 'meetId',
component: 'Input',
rules: 'required',
},
{
label: '会议室地址',
fieldName: 'meetLocation',
component: 'Input',
rules: 'required',
},
{
label: '所属单位',
fieldName: 'unit',
component: 'Input',
rules: 'required',
},
{
label: '预定人',
fieldName: 'person',
component: 'Input',
rules: 'required',
},
{
label: '联系方式',
fieldName: 'phone',
component: 'Input',
rules: 'required',
},
{
label: '预定开始时间',
fieldName: 'scheduledStarttime',
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
rules: 'required',
},
{
label: '预定结束时间',
fieldName: 'scheduledEndtime',
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
rules: 'required',
},
{
label: '参会人数',
fieldName: 'personSum',
component: 'Input',
rules: 'required',
},
{
label: '费用',
fieldName: 'price',
component: 'Input',
rules: 'required',
},
{
label: '是否包含增值服务',
fieldName: 'attach',
component: 'Input',
rules: 'required',
},
{
label: '支付状态',
fieldName: 'payState',
component: 'Select',
componentProps: {
options: getDictOptions('pro_charging_status'),
},
rules: 'selectRequired',
},
{
label: '状态',
fieldName: 'state',
component: 'Select',
componentProps: {
options: getDictOptions('wy_yyzt'),
},
rules: 'selectRequired',
},
{
label: '创建人id',
fieldName: 'createById',
component: 'Input',
},
{
label: '更新人id',
fieldName: 'updateById',
component: 'Input',
},
{
label: '搜索值',
fieldName: 'searchValue',
component: 'Input',
},
];

View File

@ -66,7 +66,6 @@ async function handleInfo(row: Required<BookingForm>) {
}
async function handleExamine(row: Required<BookingForm>) {
await handleInfo(row);
await tableApi.query();
}
@ -109,18 +108,6 @@ async function handleUnsubscribe(row: Required<BookingForm>) {
{{ '退订' }}
</ghost-button>
</Popconfirm>
<Popconfirm
:get-popup-container="getVxePopupContainer"
placement="left"
title="确认删除?"
@confirm="handleDelete(row)"
>
<ghost-button
@click.stop=""
>
{{ '改签' }}
</ghost-button>
</Popconfirm>
</Space>
</template>
</BasicTable>