|
@@ -50,7 +50,7 @@
|
|
|
<div style="width: 100%">
|
|
|
<div style="width: 100%">
|
|
|
<el-form-item prop="buyCorporationId">
|
|
|
- <el-select v-model="formData.data.buyCorporationId" style="width: 100%" @change="changeCustomer">
|
|
|
+ <el-select v-model="formData.data.buyCorporationId" filterable style="width: 100%" @change="changeCustomer">
|
|
|
<el-option v-for="item in customerList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -691,47 +691,59 @@ const changeTemplate = (val) => {
|
|
|
formData.data.sellCorporationId = res.corporationId;
|
|
|
if (res.corporationId) {
|
|
|
proxy.post("/corporation/detail", { id: res.corporationId }).then((detailCorporation) => {
|
|
|
- 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.countryEnStr) {
|
|
|
+ formData.data.sellCountryName = detailCorporation.countryEnStr;
|
|
|
+ }
|
|
|
+ if (detailCorporation.provinceEnStr) {
|
|
|
+ formData.data.sellProvinceName = detailCorporation.provinceEnStr;
|
|
|
+ }
|
|
|
+ if (detailCorporation.cityEnStr) {
|
|
|
+ formData.data.sellCityName = detailCorporation.cityEnStr;
|
|
|
}
|
|
|
- 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) {
|
|
|
+ formData.data.sellAddress = detailCorporation.addressEn;
|
|
|
}
|
|
|
- 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;
|