1、入住人员添加字段
This commit is contained in:
@@ -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',
|
||||
|
@@ -51,6 +51,12 @@ async function handleOpenChange(open: boolean) {
|
||||
<DescriptionsItem label="入驻人员">
|
||||
{{ personDetail.userName+'-'+renderDictValue(personDetail.gender,'sys_user_sex')+'-'+personDetail.phone}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="身份证号">
|
||||
{{ personDetail.idCard}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="邮箱">
|
||||
{{ personDetail.email}}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="所属单位">
|
||||
{{personDetail.unitName+'-'+personDetail.unitId }}
|
||||
</DescriptionsItem>
|
||||
|
@@ -86,11 +86,11 @@ async function handleConfirm() {
|
||||
}
|
||||
// getValues获取为一个readonly的对象 需要修改必须先深拷贝一次
|
||||
let data = cloneDeep(await formApi.getValues());
|
||||
if (userInfo) {
|
||||
data.userName = userInfo.userName
|
||||
data.phone = userInfo.phone
|
||||
data.gender = userInfo.gender
|
||||
}
|
||||
// if (userInfo) {
|
||||
// data.userName = userInfo.userName
|
||||
// data.phone = userInfo.phone
|
||||
// data.gender = userInfo.gender
|
||||
// }
|
||||
if(unitName.value){
|
||||
data.unitName = unitName.value
|
||||
}
|
||||
|
Reference in New Issue
Block a user