This commit is contained in:
2021-05-03 16:20:06 +00:00
parent 59ea4711d0
commit bf20274c59

View File

@@ -398,7 +398,23 @@ export default {
} }
}, },
selectAlternate(item) { selectAlternate(item) {
console.log(item); if (this.selectType == 2) {
//postal
this.value.postAddress = item.src.postAddress;
this.value.postCity = item.src.postCity;
this.value.postRegion = item.src.postRegion;
this.value.postCountry = item.src.postCountry;
this.pvm.formState.dirty = true;
} else {
//physical
this.value.address = item.src.address;
this.value.city = item.src.city;
this.value.region = item.src.region;
this.value.country = item.src.country;
this.pvm.formState.dirty = true;
}
}, },
async AddressSelectAlternatePostal() { async AddressSelectAlternatePostal() {
this.selectType = 2; this.selectType = 2;
@@ -415,7 +431,7 @@ export default {
this.value.postCity = this.value.city; this.value.postCity = this.value.city;
this.value.postRegion = this.value.region; this.value.postRegion = this.value.region;
this.value.postCountry = this.value.country; this.value.postCountry = this.value.country;
//flag form dirty
this.pvm.formState.dirty = true; this.pvm.formState.dirty = true;
}, },
AddressCopyToPhysical() { AddressCopyToPhysical() {
@@ -423,7 +439,7 @@ export default {
this.value.city = this.value.postCity; this.value.city = this.value.postCity;
this.value.region = this.value.postRegion; this.value.region = this.value.postRegion;
this.value.country = this.value.postCountry; this.value.country = this.value.postCountry;
//flag form dirty
this.pvm.formState.dirty = true; this.pvm.formState.dirty = true;
}, },
AddressCopyPhysicalToClipBoard() { AddressCopyPhysicalToClipBoard() {