This commit is contained in:
@@ -389,7 +389,6 @@ export default {
|
|||||||
closeSelect() {
|
closeSelect() {
|
||||||
this.openSelectDialog = false;
|
this.openSelectDialog = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
form() {
|
form() {
|
||||||
return window.$gz.form;
|
return window.$gz.form;
|
||||||
},
|
},
|
||||||
@@ -398,6 +397,9 @@ export default {
|
|||||||
window.$gz.form.fieldValueChanged(this.pvm, ref);
|
window.$gz.form.fieldValueChanged(this.pvm, ref);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
selectAlternate(item) {
|
||||||
|
console.log(item);
|
||||||
|
},
|
||||||
async AddressSelectAlternatePostal() {
|
async AddressSelectAlternatePostal() {
|
||||||
this.selectType = 2;
|
this.selectType = 2;
|
||||||
await populateAlternateAddresses(this);
|
await populateAlternateAddresses(this);
|
||||||
@@ -530,24 +532,24 @@ async function populateAlternateAddresses(vm) {
|
|||||||
vm.alternateAddresses.push({
|
vm.alternateAddresses.push({
|
||||||
name: res.data.customerpost.name,
|
name: res.data.customerpost.name,
|
||||||
viz: formatAddress(res.data.customerpost).postal,
|
viz: formatAddress(res.data.customerpost).postal,
|
||||||
icon: "$ayiBell",
|
icon: window.$gz.util.iconForType(window.$gz.type.Customer),
|
||||||
src: res.data
|
src: res.data.customerpost
|
||||||
});
|
});
|
||||||
//headoffice if present
|
//headoffice if present
|
||||||
if (res.data.headofficepost) {
|
if (res.data.headofficepost) {
|
||||||
vm.alternateAddresses.push({
|
vm.alternateAddresses.push({
|
||||||
name: res.data.headofficepost.name,
|
name: res.data.headofficepost.name,
|
||||||
viz: formatAddress(res.data.headofficepost).postal,
|
viz: formatAddress(res.data.headofficepost).postal,
|
||||||
icon: "$ayiBell",
|
icon: window.$gz.util.iconForType(window.$gz.type.HeadOffice),
|
||||||
src: res.data
|
src: res.data.headofficepost
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
vm.alternateAddresses.push({
|
vm.alternateAddresses.push({
|
||||||
name: res.data.customerphys.name,
|
name: res.data.customerphys.name,
|
||||||
viz: formatAddress(res.data.customerphys).physical,
|
viz: formatAddress(res.data.customerphys).physical,
|
||||||
icon: "$ayiBell",
|
icon: window.$gz.util.iconForType(window.$gz.type.Customer),
|
||||||
src: res.data
|
src: res.data.customerphys
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -566,8 +568,8 @@ async function populateAlternateAddresses(vm) {
|
|||||||
vm.alternateAddresses.push({
|
vm.alternateAddresses.push({
|
||||||
name: res.data.unit.name,
|
name: res.data.unit.name,
|
||||||
viz: formatAddress(res.data.unit).physical,
|
viz: formatAddress(res.data.unit).physical,
|
||||||
icon: "$ayiBell",
|
icon: window.$gz.util.iconForType(window.$gz.type.Unit),
|
||||||
src: res.data
|
src: res.data.unit
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -704,5 +706,9 @@ function formatAddress(o) {
|
|||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user