访客修改
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
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 = () => [
|
||||
{
|
||||
@@ -19,14 +17,14 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'interviewedUnit',
|
||||
label: '邀约单位',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
options: getDictOptions('wy_appointment_tatus'),
|
||||
},
|
||||
fieldName: 'serveStatus',
|
||||
label: '预约状态',
|
||||
},
|
||||
// {
|
||||
// component: 'Select',
|
||||
// componentProps: {
|
||||
// options: getDictOptions('wy_appointment_tatus'),
|
||||
// },
|
||||
// fieldName: 'serveStatus',
|
||||
// label: '预约状态',
|
||||
// },
|
||||
];
|
||||
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
@@ -64,7 +62,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'interviewedUnit',
|
||||
},
|
||||
{
|
||||
title: '拜访事由',
|
||||
title: '事由',
|
||||
field: 'visitingReason',
|
||||
},
|
||||
{
|
||||
@@ -78,24 +76,24 @@ export const columns: VxeGridProps['columns'] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '是否预约车位',
|
||||
field: 'bookingParkingSpace',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
return renderDict(row.bookingParkingSpace, 'wy_parking_spot');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '预约状态',
|
||||
field: 'serveStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
return renderDict(row.serveStatus, 'wy_appointment_tatus');
|
||||
},
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: '是否预约车位',
|
||||
// field: 'bookingParkingSpace',
|
||||
// slots: {
|
||||
// default: ({ row }) => {
|
||||
// return renderDict(row.bookingParkingSpace, 'wy_parking_spot');
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: '预约状态',
|
||||
// field: 'serveStatus',
|
||||
// slots: {
|
||||
// default: ({ row }) => {
|
||||
// return renderDict(row.serveStatus, 'wy_appointment_tatus');
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
{
|
||||
title: '提交时间',
|
||||
field: 'createTime',
|
||||
@@ -150,7 +148,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '拜访事由',
|
||||
label: '事由',
|
||||
fieldName: 'visitingReason',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
@@ -169,29 +167,29 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预约车位',
|
||||
fieldName: 'bookingParkingSpace',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
options: [
|
||||
{ label: '否', value: '1' },
|
||||
{ label: '是', value: '0' },
|
||||
],
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '车牌号',
|
||||
fieldName: 'licensePlate',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
dependencies: {
|
||||
// 类型不为按钮时显示
|
||||
show: (values) => values.bookingParkingSpace === '0',
|
||||
triggerFields: ['bookingParkingSpace'],
|
||||
},
|
||||
},
|
||||
// {
|
||||
// label: '预约车位',
|
||||
// fieldName: 'bookingParkingSpace',
|
||||
// component: 'RadioGroup',
|
||||
// componentProps: {
|
||||
// options: [
|
||||
// { label: '否', value: '1' },
|
||||
// { label: '是', value: '0' },
|
||||
// ],
|
||||
// },
|
||||
// rules: 'required',
|
||||
// },
|
||||
// {
|
||||
// label: '车牌号',
|
||||
// fieldName: 'licensePlate',
|
||||
// component: 'Input',
|
||||
// rules: 'required',
|
||||
// dependencies: {
|
||||
// // 类型不为按钮时显示
|
||||
// show: (values) => values.bookingParkingSpace === '0',
|
||||
// triggerFields: ['bookingParkingSpace'],
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// label: '人脸图片',
|
||||
// fieldName: 'facePictures',
|
||||
|
@@ -53,25 +53,25 @@ async function handleOpenChange(open: boolean) {
|
||||
<DescriptionsItem label="被访单位">
|
||||
{{ visitorInvitationDetail.interviewedUnit }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="拜访事由">
|
||||
<DescriptionsItem label="事由">
|
||||
{{ visitorInvitationDetail.visitingReason }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="拜访时间">
|
||||
{{ visitorInvitationDetail.visitingBeginTime+' - '+visitorInvitationDetail.visitingBeginTime }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="是否预约车位" v-if="visitorInvitationDetail.bookingParkingSpace!=null">
|
||||
<component
|
||||
:is="renderDict(visitorInvitationDetail.bookingParkingSpace,'wy_parking_spot')"
|
||||
/>
|
||||
</DescriptionsItem>
|
||||
<!-- <DescriptionsItem label="是否预约车位" v-if="visitorInvitationDetail.bookingParkingSpace!=null">-->
|
||||
<!-- <component-->
|
||||
<!-- :is="renderDict(visitorInvitationDetail.bookingParkingSpace,'wy_parking_spot')"-->
|
||||
<!-- />-->
|
||||
<!-- </DescriptionsItem>-->
|
||||
<DescriptionsItem label="车牌号">
|
||||
{{ visitorInvitationDetail.licensePlate }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="预约状态" v-if="visitorInvitationDetail.serveStatus!=null">
|
||||
<component
|
||||
:is="renderDict(visitorInvitationDetail.serveStatus,'wy_appointment_tatus')"
|
||||
/>
|
||||
</DescriptionsItem>
|
||||
<!-- <DescriptionsItem label="预约状态" v-if="visitorInvitationDetail.serveStatus!=null">-->
|
||||
<!-- <component-->
|
||||
<!-- :is="renderDict(visitorInvitationDetail.serveStatus,'wy_appointment_tatus')"-->
|
||||
<!-- />-->
|
||||
<!-- </DescriptionsItem>-->
|
||||
<DescriptionsItem label="提交时间">
|
||||
{{ visitorInvitationDetail.createTime }}
|
||||
</DescriptionsItem>
|
||||
|
@@ -1,7 +1,5 @@
|
||||
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 = () => [
|
||||
{
|
||||
@@ -19,14 +17,14 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'interviewedUnit',
|
||||
label: '被访单位',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
options: getDictOptions('wy_appointment_tatus'),
|
||||
},
|
||||
fieldName: 'serveStatus',
|
||||
label: '预约状态',
|
||||
},
|
||||
// {
|
||||
// component: 'Select',
|
||||
// componentProps: {
|
||||
// options: getDictOptions('wy_appointment_tatus'),
|
||||
// },
|
||||
// fieldName: 'serveStatus',
|
||||
// label: '预约状态',
|
||||
// },
|
||||
// {
|
||||
// component: 'RangePicker',
|
||||
// componentProps: {
|
||||
@@ -87,7 +85,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'interviewedUnit',
|
||||
},
|
||||
{
|
||||
title: '拜访事由',
|
||||
title: '事由',
|
||||
field: 'visitingReason',
|
||||
},
|
||||
{
|
||||
@@ -101,24 +99,24 @@ export const columns: VxeGridProps['columns'] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '是否预约车位',
|
||||
field: 'bookingParkingSpace',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
return renderDict(row.bookingParkingSpace, 'wy_parking_spot');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '预约状态',
|
||||
field: 'serveStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
return renderDict(row.serveStatus, 'wy_appointment_tatus');
|
||||
},
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: '是否预约车位',
|
||||
// field: 'bookingParkingSpace',
|
||||
// slots: {
|
||||
// default: ({ row }) => {
|
||||
// return renderDict(row.bookingParkingSpace, 'wy_parking_spot');
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: '预约状态',
|
||||
// field: 'serveStatus',
|
||||
// slots: {
|
||||
// default: ({ row }) => {
|
||||
// return renderDict(row.serveStatus, 'wy_appointment_tatus');
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
{
|
||||
title: '提交时间',
|
||||
field: 'updateTime',
|
||||
|
@@ -53,25 +53,25 @@ async function handleOpenChange(open: boolean) {
|
||||
<DescriptionsItem label="被访单位">
|
||||
{{ visitorTodoDetail.interviewedUnit }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="拜访事由">
|
||||
<DescriptionsItem label="事由">
|
||||
{{ visitorTodoDetail.visitingReason }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="拜访时间">
|
||||
{{ visitorTodoDetail.visitingBeginTime+' - '+visitorTodoDetail.visitingBeginTime }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="是否预约车位" v-if="visitorTodoDetail.bookingParkingSpace!=null">
|
||||
<component
|
||||
:is="renderDict(visitorTodoDetail.bookingParkingSpace,'wy_parking_spot')"
|
||||
/>
|
||||
</DescriptionsItem>
|
||||
<!-- <DescriptionsItem label="是否预约车位" v-if="visitorTodoDetail.bookingParkingSpace!=null">-->
|
||||
<!-- <component-->
|
||||
<!-- :is="renderDict(visitorTodoDetail.bookingParkingSpace,'wy_parking_spot')"-->
|
||||
<!-- />-->
|
||||
<!-- </DescriptionsItem>-->
|
||||
<DescriptionsItem label="车牌号">
|
||||
{{ visitorTodoDetail.licensePlate }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="预约状态" v-if="visitorTodoDetail.serveStatus!=null">
|
||||
<component
|
||||
:is="renderDict(visitorTodoDetail.serveStatus,'wy_appointment_tatus')"
|
||||
/>
|
||||
</DescriptionsItem>
|
||||
<!-- <DescriptionsItem label="预约状态" v-if="visitorTodoDetail.serveStatus!=null">-->
|
||||
<!-- <component-->
|
||||
<!-- :is="renderDict(visitorTodoDetail.serveStatus,'wy_appointment_tatus')"-->
|
||||
<!-- />-->
|
||||
<!-- </DescriptionsItem>-->
|
||||
<DescriptionsItem label="提交时间">
|
||||
{{ visitorTodoDetail.createTime }}
|
||||
</DescriptionsItem>
|
||||
|
Reference in New Issue
Block a user