浏览代码

allow edit

uat
Jason Chuang 10 小时前
父节点
当前提交
30886689fa
共有 1 个文件被更改,包括 20 次插入1 次删除
  1. +20
    -1
      src/pages/User/DetailsPage_Individual/UserInformationCard_Individual.js

+ 20
- 1
src/pages/User/DetailsPage_Individual/UserInformationCard_Individual.js 查看文件

@@ -405,7 +405,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => {
{FieldUtils.getComboField({
label: `${en.idDocType}:`,
valueName: "idDocType",
disabled: true,
disabled: !editMode || currentUserData.verifiedBy != null,
dataList: ComboData.idDocType,
filterOptions: (options) => options,
getOptionLabel: getIdDocTypeLabel,
@@ -415,6 +415,25 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => {
}
return option?.type === value?.type;
},
onInputChange: (event, newValue, setInputValue) => {
if (newValue == null) {
setInputValue("");
return;
}
setInputValue(newValue);
},
onChange: (event, newValue) => {
if (newValue == null) {
formik.setFieldValue("idDocType", "");
setSelectedIdDocInputType("");
return;
}
formik.setFieldValue("idDocType", newValue.type);
setSelectedIdDocInputType(newValue.type);
if (newValue.type !== "HKID") {
formik.setFieldValue("checkDigit", "")
}
},
form: formik
})}
</Grid>


正在加载...
取消
保存