|
@@ -704,66 +704,56 @@ const changeTemplate = (val) => {
|
|
if (detailCorporation.countryEnStr) {
|
|
if (detailCorporation.countryEnStr) {
|
|
formData.data.sellCountryName = detailCorporation.countryEnStr;
|
|
formData.data.sellCountryName = detailCorporation.countryEnStr;
|
|
}
|
|
}
|
|
- if (res.provinceEnStr) {
|
|
|
|
- formData.data.sellProvinceName = detailCorporation.provinceEnStr;
|
|
|
|
- }
|
|
|
|
- if (res.cityEnStr) {
|
|
|
|
- formData.data.sellCityName = detailCorporation.cityEnStr;
|
|
|
|
- }
|
|
|
|
- if (detailCorporation.countryEnStr) {
|
|
|
|
- formData.data.sellCountryName = detailCorporation.countryEnStr;
|
|
|
|
- } else {
|
|
|
|
- proxy.post("/customizeArea/list", { parentId: "0" }).then((resCountry) => {
|
|
|
|
- let sellCountryData = resCountry.filter((item) => item.id === detailCorporation.countryId);
|
|
|
|
- if (sellCountryData && sellCountryData.length > 0) {
|
|
|
|
- formData.data.sellCountryName = sellCountryData[0].chineseName;
|
|
|
|
- } else {
|
|
|
|
- formData.data.sellCountryName = "";
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
if (detailCorporation.provinceEnStr) {
|
|
if (detailCorporation.provinceEnStr) {
|
|
formData.data.sellProvinceName = detailCorporation.provinceEnStr;
|
|
formData.data.sellProvinceName = detailCorporation.provinceEnStr;
|
|
- } else if (detailCorporation.countryId) {
|
|
|
|
- proxy
|
|
|
|
- .post("/customizeArea/list", {
|
|
|
|
- parentId: detailCorporation.countryId,
|
|
|
|
- })
|
|
|
|
- .then((resProvince) => {
|
|
|
|
- let sellProvinceData = resProvince.filter((item) => item.id === detailCorporation.provinceId);
|
|
|
|
- if (sellProvinceData && sellProvinceData.length > 0) {
|
|
|
|
- formData.data.sellProvinceName = sellProvinceData[0].name;
|
|
|
|
- } else {
|
|
|
|
- formData.data.sellProvinceName = "";
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- formData.data.sellProvinceName = "";
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
if (detailCorporation.cityEnStr) {
|
|
if (detailCorporation.cityEnStr) {
|
|
formData.data.sellCityName = detailCorporation.cityEnStr;
|
|
formData.data.sellCityName = detailCorporation.cityEnStr;
|
|
- } else if (detailCorporation.provinceId) {
|
|
|
|
- proxy
|
|
|
|
- .post("/customizeArea/list", {
|
|
|
|
- parentId: detailCorporation.provinceId,
|
|
|
|
- })
|
|
|
|
- .then((resCity) => {
|
|
|
|
- let sellCityData = resCity.filter((item) => item.id === detailCorporation.cityId);
|
|
|
|
- if (sellCityData && sellCityData.length > 0) {
|
|
|
|
- formData.data.sellCityName = sellCityData[0].name;
|
|
|
|
- } else {
|
|
|
|
- formData.data.sellCityName = "";
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- formData.data.sellCityName = "";
|
|
|
|
}
|
|
}
|
|
if (detailCorporation.addressEn) {
|
|
if (detailCorporation.addressEn) {
|
|
formData.data.sellAddress = detailCorporation.addressEn;
|
|
formData.data.sellAddress = detailCorporation.addressEn;
|
|
- } else {
|
|
|
|
- formData.data.sellAddress = detailCorporation.address;
|
|
|
|
}
|
|
}
|
|
|
|
+ // proxy.post("/customizeArea/list", { parentId: "0" }).then((resCountry) => {
|
|
|
|
+ // let sellCountryData = resCountry.filter((item) => item.id === detailCorporation.countryId);
|
|
|
|
+ // if (sellCountryData && sellCountryData.length > 0) {
|
|
|
|
+ // formData.data.sellCountryName = sellCountryData[0].chineseName;
|
|
|
|
+ // } else {
|
|
|
|
+ // formData.data.sellCountryName = "";
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // if (detailCorporation.countryId) {
|
|
|
|
+ // proxy
|
|
|
|
+ // .post("/customizeArea/list", {
|
|
|
|
+ // parentId: detailCorporation.countryId,
|
|
|
|
+ // })
|
|
|
|
+ // .then((resProvince) => {
|
|
|
|
+ // let sellProvinceData = resProvince.filter((item) => item.id === detailCorporation.provinceId);
|
|
|
|
+ // if (sellProvinceData && sellProvinceData.length > 0) {
|
|
|
|
+ // formData.data.sellProvinceName = sellProvinceData[0].name;
|
|
|
|
+ // } else {
|
|
|
|
+ // formData.data.sellProvinceName = "";
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // formData.data.sellProvinceName = "";
|
|
|
|
+ // }
|
|
|
|
+ // if (detailCorporation.provinceId) {
|
|
|
|
+ // proxy
|
|
|
|
+ // .post("/customizeArea/list", {
|
|
|
|
+ // parentId: detailCorporation.provinceId,
|
|
|
|
+ // })
|
|
|
|
+ // .then((resCity) => {
|
|
|
|
+ // let sellCityData = resCity.filter((item) => item.id === detailCorporation.cityId);
|
|
|
|
+ // if (sellCityData && sellCityData.length > 0) {
|
|
|
|
+ // formData.data.sellCityName = sellCityData[0].name;
|
|
|
|
+ // } else {
|
|
|
|
+ // formData.data.sellCityName = "";
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // formData.data.sellCityName = "";
|
|
|
|
+ // }
|
|
|
|
+ // formData.data.sellAddress = detailCorporation.address;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
formData.data.sellContactName = res.contactName;
|
|
formData.data.sellContactName = res.contactName;
|