From 59ea4711d0d72aaa620062014ed5d9b9d68eef08 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 3 May 2021 15:17:57 +0000 Subject: [PATCH] --- ayanova/src/components/work-order-address.vue | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ayanova/src/components/work-order-address.vue b/ayanova/src/components/work-order-address.vue index cd6c8752..e0018e54 100644 --- a/ayanova/src/components/work-order-address.vue +++ b/ayanova/src/components/work-order-address.vue @@ -389,7 +389,6 @@ export default { closeSelect() { this.openSelectDialog = false; }, - form() { return window.$gz.form; }, @@ -398,6 +397,9 @@ export default { window.$gz.form.fieldValueChanged(this.pvm, ref); } }, + selectAlternate(item) { + console.log(item); + }, async AddressSelectAlternatePostal() { this.selectType = 2; await populateAlternateAddresses(this); @@ -530,24 +532,24 @@ async function populateAlternateAddresses(vm) { vm.alternateAddresses.push({ name: res.data.customerpost.name, viz: formatAddress(res.data.customerpost).postal, - icon: "$ayiBell", - src: res.data + icon: window.$gz.util.iconForType(window.$gz.type.Customer), + src: res.data.customerpost }); //headoffice if present if (res.data.headofficepost) { vm.alternateAddresses.push({ name: res.data.headofficepost.name, viz: formatAddress(res.data.headofficepost).postal, - icon: "$ayiBell", - src: res.data + icon: window.$gz.util.iconForType(window.$gz.type.HeadOffice), + src: res.data.headofficepost }); } } else { vm.alternateAddresses.push({ name: res.data.customerphys.name, viz: formatAddress(res.data.customerphys).physical, - icon: "$ayiBell", - src: res.data + icon: window.$gz.util.iconForType(window.$gz.type.Customer), + src: res.data.customerphys }); } } @@ -566,8 +568,8 @@ async function populateAlternateAddresses(vm) { vm.alternateAddresses.push({ name: res.data.unit.name, viz: formatAddress(res.data.unit).physical, - icon: "$ayiBell", - src: res.data + icon: window.$gz.util.iconForType(window.$gz.type.Unit), + src: res.data.unit }); } } @@ -704,5 +706,9 @@ function formatAddress(o) { return sb.ToString(); } } + + + + */