From 342bbfc9bc1bfba9a25debd7414640e491a01d89 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Thu, 23 Mar 2023 17:05:16 +0000 Subject: [PATCH] added vet and med search --- src/components/CustomerSearch.vue | 3 +- src/components/MedSearch.vue | 81 ++++++++++++++++++++++++ src/components/ProductSearch.vue | 4 +- src/components/VetSearch.vue | 73 ++++++++++++++++++++++ src/views/contracts/ContractEdit.vue | 12 ++-- src/views/customers/CustomerList.vue | 2 +- src/views/medfeeds/MedFeedsEdit.vue | 92 +++++++++++++--------------- src/views/medfeeds/MedFeedsList.vue | 84 ++++++++++++------------- 8 files changed, 249 insertions(+), 102 deletions(-) create mode 100644 src/components/MedSearch.vue create mode 100644 src/components/VetSearch.vue diff --git a/src/components/CustomerSearch.vue b/src/components/CustomerSearch.vue index 3a8b2fb..cdb9c97 100644 --- a/src/components/CustomerSearch.vue +++ b/src/components/CustomerSearch.vue @@ -11,8 +11,7 @@ v-slot="{ item }" key-field="acc_no" > - - + {{ item.acc_no }} - {{ item.name }} diff --git a/src/components/MedSearch.vue b/src/components/MedSearch.vue new file mode 100644 index 0000000..300d89b --- /dev/null +++ b/src/components/MedSearch.vue @@ -0,0 +1,81 @@ + + + + diff --git a/src/components/ProductSearch.vue b/src/components/ProductSearch.vue index ad8363c..7797da1 100644 --- a/src/components/ProductSearch.vue +++ b/src/components/ProductSearch.vue @@ -11,8 +11,8 @@ v-slot="{ item }" key-field="code" > - - + + {{ item.code }} - {{ item.name }} diff --git a/src/components/VetSearch.vue b/src/components/VetSearch.vue new file mode 100644 index 0000000..0f22c9a --- /dev/null +++ b/src/components/VetSearch.vue @@ -0,0 +1,73 @@ + + + + diff --git a/src/views/contracts/ContractEdit.vue b/src/views/contracts/ContractEdit.vue index 3d7321d..89d4c24 100644 --- a/src/views/contracts/ContractEdit.vue +++ b/src/views/contracts/ContractEdit.vue @@ -4,10 +4,9 @@ - - {{ contract.customer.acc_no }} - {{ contract.customer.name }} + - + - - + + @@ -140,6 +139,7 @@ export default { } } }, + emits: ['closetab','contractupdate'], methods: { close() { this.$emit('closetab','list') diff --git a/src/views/customers/CustomerList.vue b/src/views/customers/CustomerList.vue index 4957b37..b571175 100644 --- a/src/views/customers/CustomerList.vue +++ b/src/views/customers/CustomerList.vue @@ -122,7 +122,7 @@ export default {