Misc. tweaks for model-crud, customer-field
This commit is contained in:
parent
4189bdf919
commit
2a1f5764a1
2 changed files with 26 additions and 15 deletions
|
@ -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,
|
||||
})
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue