1、入住人员添加字段

This commit is contained in:
2025-07-23 20:57:17 +08:00
parent 9d75dd2168
commit 4ff469f0ae
5 changed files with 195 additions and 111 deletions

View File

@@ -136,12 +136,52 @@ export const modalSchema: FormSchemaGetter = () => [
},
},
{
label: '入住员工',
fieldName: 'userId',
component: "Select",
rules: 'selectRequired',
formItemClass: 'col-span-2'
label: '员工名称',
fieldName: 'userName',
component: "Input",
rules: 'required',
},
{
label: '联系电话',
fieldName: 'phone',
component: "Input",
rules: 'required',
},
{
label: '性别',
fieldName: 'gender',
component: "Select",
componentProps:{
options: getDictOptions('sys_user_sex')
},
rules: 'required',
},
{
label: '身份证号',
fieldName: 'idCard',
component: "Input",
},
{
label: '邮箱',
fieldName: 'email',
component: "Input",
},
{
label: '人员状态',
fieldName: 'state',
component: 'Select',
componentProps: {
options: getDictOptions('wy_rzryzt'),
},
rules: 'selectRequired'
},
// {
// label: '入住员工',
// fieldName: 'userId',
// component: "Select",
// rules: 'selectRequired',
// formItemClass: 'col-span-2'
// },
{
label: '所属单位',
fieldName: 'unitId',
@@ -182,20 +222,6 @@ export const modalSchema: FormSchemaGetter = () => [
},
formItemClass: 'col-span-2',
},
{
label: '人员状态',
fieldName: 'state',
component: 'Select',
componentProps: {
options: getDictOptions('wy_rzryzt'),
},
rules: 'selectRequired'
},
{
label: '',
fieldName: 'time',
component: ''
},
{
label: '授权期限',
fieldName: 'authTime',