修改接口录入保安人员

This commit is contained in:
wangyilin 2024-11-20 10:25:47 +08:00
parent 9e540a9e3f
commit c7b5d6eb8b
5 changed files with 21 additions and 9 deletions

View File

@ -67,7 +67,7 @@
</view>
<view style="display: flex;justify-content: space-between">
<text>创建时间:{{ item.createTime }}</text>
<text>身份证:{{ item.idCard }}</text>
<text>身份证:{{ item.idCard?.desensitizedValue }}</text>
</view>
</view>
<view class="projectDetailsTableIndex">

View File

@ -101,11 +101,13 @@ useLoad((options) => {
serviceProjectId: options.pid,
securityUnitId: options.uid,
sex: 0,
idCard: '',
idCard:null,
telephone:null,
dateOfBirth: null
}
} else {
formData.value = JSON.parse(options.securityUser)
const form = JSON.parse(options.securityUser)
formData.value = Object.assign({}, form, {idCard: form.idCard.originalValue, telephone: form.telephone.originalValue})
}
})
@ -144,10 +146,10 @@ const submit = () => {
securityUnitId: formData.value.securityUnitId,
name: '',
workPost: '',
telephone: '',
telephone: null ,
sex: 0,
nativePlace: '',
idCard: '',
idCard: null,
dateOfBirth: null,
securityNumber: '',
remark: '',

View File

@ -156,3 +156,5 @@ interface Item {
itemList: any[] // 根据实际情况调整类型
snowFlakeId: string
}

View File

@ -44,12 +44,14 @@ export interface ProgramUserInfo {
name?: string
telephone?: string
}
export interface ServiceProjectSecurityUserPagerVo {
createTime?: string;
dateOfBirth?: string;
homeAddress?: string;
idCard?: string;
idCard?: {
desensitizedValue?:string
originalValue?:string
};
name?: string;
nativePlace?: string;
remark?: string;
@ -61,3 +63,4 @@ export interface ServiceProjectSecurityUserPagerVo {
workPost?: string;
sex: BaseEnum<number>
}

View File

@ -4,12 +4,17 @@ export interface SecurityUserFormParams {
serviceProjectId: string;
name?: string;
workPost?: string;
telephone?: string;
telephone: value | null;
sex: number;
nativePlace?: string;
idCard: string;
idCard: value | null;
dateOfBirth?: Date | null;
securityNumber?: string;
remark?: string;
homeAddress?: string
}
export interface value{
desensitizedValue?:string
originalValue?:string
}