|
|
@@ -61,6 +61,7 @@ const OrganizationDetailPage = () => { |
|
|
|
HttpUtils.get({ |
|
|
|
url: UrlUtils.GET_ORG_PATH + "/" + params.id, |
|
|
|
onSuccess: function (response) { |
|
|
|
console.log(response) |
|
|
|
response.data["country"] = getObjectByValue(ComboData.country, "key", response.data.address?.country); |
|
|
|
response.data["district"] = getObjectByValue(ComboData.district, "key", response.data.address?.district); |
|
|
|
response.data["addressLine1"] = response.data.addressTemp?.addressLine1; |
|
|
@@ -81,28 +82,27 @@ const OrganizationDetailPage = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
if(isPrimaryLoggedIn()){ |
|
|
|
if (params.id > 0) { |
|
|
|
HttpUtils.get({ |
|
|
|
url: UrlUtils.GET_PUB_ORG_PATH, |
|
|
|
onSuccess: function (response) { |
|
|
|
response.data["country"] = getObjectByValue(ComboData.country, "key", response.data.address?.country); |
|
|
|
response.data["district"] = getObjectByValue(ComboData.district, "key", response.data.address?.district); |
|
|
|
response.data["addressLine1"] = response.data.addressTemp?.addressLine1; |
|
|
|
response.data["addressLine2"] = response.data.addressTemp?.addressLine2; |
|
|
|
response.data["addressLine3"] = response.data.addressTemp?.addressLine3; |
|
|
|
|
|
|
|
response.data["phoneNumber"] = response.data.contactTel?.phoneNumber; |
|
|
|
response.data["tel_countryCode"] = response.data.contactTel?.countryCode; |
|
|
|
|
|
|
|
response.data["faxNumber"] = response.data.faxNo?.faxNumber; |
|
|
|
response.data["fax_countryCode"] = response.data.faxNo?.countryCode; |
|
|
|
|
|
|
|
response.data["brExpiryDate"] = response.data.brExpiryDate ? DateUtils.dateStr(response.data.brExpiryDate) : ""; |
|
|
|
setFormData(response.data) |
|
|
|
setList(response.historyList) |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
HttpUtils.get({ |
|
|
|
url: UrlUtils.GET_PUB_ORG_PATH, |
|
|
|
onSuccess: function (response) { |
|
|
|
console.log(response) |
|
|
|
response.data["country"] = getObjectByValue(ComboData.country, "key", response.data.address?.country); |
|
|
|
response.data["district"] = getObjectByValue(ComboData.district, "key", response.data.address?.district); |
|
|
|
response.data["addressLine1"] = response.data.addressTemp?.addressLine1; |
|
|
|
response.data["addressLine2"] = response.data.addressTemp?.addressLine2; |
|
|
|
response.data["addressLine3"] = response.data.addressTemp?.addressLine3; |
|
|
|
|
|
|
|
response.data["phoneNumber"] = response.data.contactTel?.phoneNumber; |
|
|
|
response.data["tel_countryCode"] = response.data.contactTel?.countryCode; |
|
|
|
|
|
|
|
response.data["faxNumber"] = response.data.faxNo?.faxNumber; |
|
|
|
response.data["fax_countryCode"] = response.data.faxNo?.countryCode; |
|
|
|
|
|
|
|
response.data["brExpiryDate"] = response.data.brExpiryDate ? DateUtils.dateStr(response.data.brExpiryDate) : ""; |
|
|
|
setFormData(response.data) |
|
|
|
setList(response.historyList) |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|