Misc. tweaks for model-crud, customer-field

This commit is contained in:
Lance Edgar 2022-08-11 00:17:34 -05:00
parent 4189bdf919
commit 2a1f5764a1
2 changed files with 26 additions and 15 deletions

View file

@ -4,6 +4,7 @@
<byjove-autocomplete v-if="!readonly && !useDropdown"
v-model="customerUUID"
ref="autocomplete"
:service-url="autocompleteUrl"
@input="customerChanged">
</byjove-autocomplete>
@ -148,6 +149,13 @@ export default {
this.$emit('input', value)
},
setCustomer(customer) {
this.$refs.autocomplete.selectionMade({
value: customer.uuid,
label: customer._str,
})
},
},
}