This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user