diff --git a/apps/web-antd/src/main.ts b/apps/web-antd/src/main.ts index 5d728a02..f3228461 100644 --- a/apps/web-antd/src/main.ts +++ b/apps/web-antd/src/main.ts @@ -1,6 +1,5 @@ import { initPreferences } from '@vben/preferences'; import { unmountGlobalLoading } from '@vben/utils'; - import { overridesPreferences } from './preferences'; /** @@ -27,5 +26,4 @@ async function initApplication() { // 移除并销毁loading unmountGlobalLoading(); } - initApplication(); diff --git a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/conferenceReservations-modal.vue b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/conferenceReservations-modal.vue new file mode 100644 index 00000000..28a9f1bc --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/conferenceReservations-modal.vue @@ -0,0 +1,127 @@ + + + + + + 会议室名称: 会议室01容纳人数: 50 + 会议室地址: 5楼505配套设备: 话筒、音响、大屏。。 + 会议室负责人: 王林联系电话: 15809875678 + 基础费用: 600元 + + + + + + + + + + diff --git a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/data.ts b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/data.ts new file mode 100644 index 00000000..64a9f8c3 --- /dev/null +++ b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/data.ts @@ -0,0 +1,92 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import {getDictOptions} from "#/utils/dict"; + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'projectName', + label: '产品名称', + }, + { + component: 'Select', + componentProps: { + options: getDictOptions('product_management_status'), + }, + fieldName: 'state', + label: '状态', + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '会议预定人', + fieldName: 'projectName', + component: 'Input', + rules: 'required', + }, + { + label: '使用单位', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + { + label: '会议主题', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + { + label: '预约日期', + fieldName: 'visitingTimeRange', + component: 'RangePicker', + componentProps: { + showTime: { + format: 'HH:mm:ss' + }, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + placeholder: ['开始时间', '结束时间'] + }, + rules: 'required', + }, + { + label: '参会人数', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + { + label: '参会人员', + fieldName: 'price', + component: 'Input', + rules: 'required', + }, + // { + // label: '备注', + // fieldName: 'price', + // component: 'Input', + // rules: 'required', + // }, + { + label: '是否需要增值服务', + fieldName: 'bookingParkingSpace', + component: 'RadioGroup', + componentProps: { + options: [ + { label: '是', value: '0' }, + { label: '否', value: '1' }, + ], + }, + rules: 'required', + }, +]; diff --git a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue index 5a44e01d..2222ae7f 100644 --- a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue +++ b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue @@ -1,19 +1,79 @@ + 请先填写以下信息,查询可用会议室 + + + + + + + + + 重置 + 搜索 + + - {{ item.one }}去预约 + {{ item.one }}去预约 容纳人数: {{ item.two }}人 基础费用: {{ item.three }}元 - 基础服务: {{ item.four }} + 基础设备: {{ item.four }} 基础服务: {{ item.five }} + -