@@ -363,7 +363,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
valueName: "country", | valueName: "country", | ||||
disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
dataList: ComboData.country, | dataList: ComboData.country, | ||||
getOptionLabel: (option) => intl.formatMessage({ id: option.type? option.type : "hongKong" }), | |||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type }) : "", | |||||
form: formik | form: formik | ||||
})} | })} | ||||
</Grid> | </Grid> | ||||
@@ -374,7 +374,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
valueName: "district", | valueName: "district", | ||||
disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
dataList: ComboData.district, | dataList: ComboData.district, | ||||
getOptionLabel: (option) => intl.formatMessage({ id: option.type? option.type : "hongKong" }), | |||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type }) : "", | |||||
form: formik | form: formik | ||||
})} | })} | ||||
</Grid> | </Grid> | ||||
@@ -91,8 +91,8 @@ const OrganizationCard_loadFromUser = ({ userData, userId }) => { | |||||
faxNumber: values.faxNumber | faxNumber: values.faxNumber | ||||
}, | }, | ||||
addressTemp: { | addressTemp: { | ||||
country: values.country, | |||||
district: values.district, | |||||
country: values.country.key, | |||||
district: values.district.key, | |||||
addressLine1: values.addressLine1, | addressLine1: values.addressLine1, | ||||
addressLine2: values.addressLine2, | addressLine2: values.addressLine2, | ||||
addressLine3: values.addressLine3, | addressLine3: values.addressLine3, | ||||
@@ -228,6 +228,7 @@ const OrganizationCard_loadFromUser = ({ userData, userId }) => { | |||||
label: FieldUtils.notNullFieldLabel("Country:"), | label: FieldUtils.notNullFieldLabel("Country:"), | ||||
valueName: "country", | valueName: "country", | ||||
dataList: ComboData.country, | dataList: ComboData.country, | ||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type}) : "", | |||||
form: formik | form: formik | ||||
})} | })} | ||||
</Grid> | </Grid> | ||||
@@ -237,6 +238,7 @@ const OrganizationCard_loadFromUser = ({ userData, userId }) => { | |||||
label: FieldUtils.notNullFieldLabel("District:"), | label: FieldUtils.notNullFieldLabel("District:"), | ||||
valueName: "district", | valueName: "district", | ||||
dataList: ComboData.district, | dataList: ComboData.district, | ||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type}) : "", | |||||
form: formik | form: formik | ||||
})} | })} | ||||
</Grid> | </Grid> | ||||
@@ -411,7 +411,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
{FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
label: "Country:", | label: "Country:", | ||||
valueName: "country", | valueName: "country", | ||||
getOptionLabel: (option) => intl.formatMessage({ id: option.type? option.type : "hongKong" }), | |||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type }) : "", | |||||
dataList: ComboData.country, | dataList: ComboData.country, | ||||
disabled: (!editMode), | disabled: (!editMode), | ||||
form: formik | form: formik | ||||
@@ -500,7 +500,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
label: "District:", | label: "District:", | ||||
valueName: "district", | valueName: "district", | ||||
dataList: ComboData.district, | dataList: ComboData.district, | ||||
getOptionLabel: (option) => intl.formatMessage({ id: option.type? option.type : "islandCombo" }), | |||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type }) : "", | |||||
disabled: (!editMode), | disabled: (!editMode), | ||||
form: formik | form: formik | ||||
})} | })} | ||||
@@ -525,7 +525,7 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
label: "Country:", | label: "Country:", | ||||
valueName: "country", | valueName: "country", | ||||
dataList: ComboData.country, | dataList: ComboData.country, | ||||
getOptionLabel: (option) => intl.formatMessage({ id: option.type? option.type : "hongKong" }), | |||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type }) : "", | |||||
disabled: true, | disabled: true, | ||||
form: formik | form: formik | ||||
})} | })} | ||||
@@ -566,7 +566,7 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
label: "District:", | label: "District:", | ||||
valueName: "district", | valueName: "district", | ||||
dataList: ComboData.district, | dataList: ComboData.district, | ||||
getOptionLabel: (option) => intl.formatMessage({ id: option.type? option.type : "islandCombo" }), | |||||
getOptionLabel: (option) => option.type? intl.formatMessage({ id: option.type }) : "", | |||||
disabled: true, | disabled: true, | ||||
form: formik | form: formik | ||||
})} | })} | ||||