diff --git a/ayanova/src/components/work-order-address.vue b/ayanova/src/components/work-order-address.vue index e0018e54..fbbfb2fa 100644 --- a/ayanova/src/components/work-order-address.vue +++ b/ayanova/src/components/work-order-address.vue @@ -398,7 +398,23 @@ export default { } }, 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() { this.selectType = 2; @@ -415,7 +431,7 @@ export default { this.value.postCity = this.value.city; this.value.postRegion = this.value.region; this.value.postCountry = this.value.country; - //flag form dirty + this.pvm.formState.dirty = true; }, AddressCopyToPhysical() { @@ -423,7 +439,7 @@ export default { this.value.city = this.value.postCity; this.value.region = this.value.postRegion; this.value.country = this.value.postCountry; - //flag form dirty + this.pvm.formState.dirty = true; }, AddressCopyPhysicalToClipBoard() {