保洁+入驻
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
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 = () => [
|
||||
{
|
||||
@@ -8,6 +10,11 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'visitorName',
|
||||
label: '访客姓名',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'visitorUnit',
|
||||
label: '所属公司',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'visitorPhone',
|
||||
@@ -18,6 +25,21 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'visitingReason',
|
||||
label: '拜访事由',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'interviewedPerson',
|
||||
label: '被访人',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'interviewedUnit',
|
||||
label: '被访单位',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'interviewedPhone',
|
||||
label: '被访人联系方式',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
@@ -56,6 +78,8 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_APPOINTMENT_TATUS 便于维护
|
||||
options: getDictOptions('wy_appointment_tatus'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
@@ -76,6 +100,10 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '访客姓名',
|
||||
field: 'visitorName',
|
||||
},
|
||||
{
|
||||
title: '所属公司',
|
||||
field: 'visitorUnit',
|
||||
},
|
||||
{
|
||||
title: '访客电话',
|
||||
field: 'visitorPhone',
|
||||
@@ -84,6 +112,18 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '拜访事由',
|
||||
field: 'visitingReason',
|
||||
},
|
||||
{
|
||||
title: '被访人',
|
||||
field: 'interviewedPerson',
|
||||
},
|
||||
{
|
||||
title: '被访单位',
|
||||
field: 'interviewedUnit',
|
||||
},
|
||||
{
|
||||
title: '被访人联系方式',
|
||||
field: 'interviewedPhone',
|
||||
},
|
||||
{
|
||||
title: '拜访开始时间',
|
||||
field: 'visitingBeginTime',
|
||||
@@ -107,6 +147,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '预约状态',
|
||||
field: 'serveStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_APPOINTMENT_TATUS 便于维护
|
||||
return renderDict(row.serveStatus, 'wy_appointment_tatus');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
@@ -133,6 +179,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '所属公司',
|
||||
fieldName: 'visitorUnit',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '访客电话',
|
||||
fieldName: 'visitorPhone',
|
||||
@@ -145,6 +197,42 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '被访人',
|
||||
fieldName: 'interviewedPerson',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '被访单位',
|
||||
fieldName: 'interviewedUnit',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '被访人联系方式',
|
||||
fieldName: 'interviewedPhone',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '拜访开始时间',
|
||||
fieldName: 'visitingBeginTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '拜访结束时间',
|
||||
fieldName: 'visitingEndTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '预约车位',
|
||||
fieldName: 'bookingParkingSpace',
|
||||
@@ -167,6 +255,8 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
fieldName: 'serveStatus',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_APPOINTMENT_TATUS 便于维护
|
||||
options: getDictOptions('wy_appointment_tatus'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
|
Reference in New Issue
Block a user