From bdf42122f7de70750ca78cea34cd572ccd97da10 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Fri, 3 Mar 2023 11:06:42 +0000 Subject: [PATCH] slightly better edit med feeds layout --- src/views/medfeeds/MedFeedsEdit.vue | 124 ++++++++++++++-------------- 1 file changed, 64 insertions(+), 60 deletions(-) diff --git a/src/views/medfeeds/MedFeedsEdit.vue b/src/views/medfeeds/MedFeedsEdit.vue index ba157ce..30e2712 100644 --- a/src/views/medfeeds/MedFeedsEdit.vue +++ b/src/views/medfeeds/MedFeedsEdit.vue @@ -10,85 +10,89 @@ + :items="customers" + v-model="mf.customer" + v-model:search="search[1]" + item-title="full_title" + return-object + :loading="searching[1]" + append-icon="mdi-magnify" + @keyup.enter="searchCustomers()" + @click:append="searchCustomers()" + no-data-text="No results (press Enter to search)" + > + v-model="mf.vet.practice" + v-model:search="search[2]" + :loading="searching[2]" + append-icon="mdi-magnify" + item-title="practice" + item-value="id" + @keyup.enter="searchVets()" + @click:append="searchVets()" + no-data-text="No results (press Enter to search)" + > - {{ mf.medication }} + v-model="mf.medication.name" + v-model:search="search[3]" + :loading="searching[3]" + append-icon="mdi-magnify" + item-title="name" + item-value="id" + @keyup.enter="searchMeds()" + no-data-text="No results (press Enter to search)" + @click:append="searchMeds()" + > - Name : {{ mf.medication.name }}
- Info : - Med Code : {{ mf.medication.med_code }}
- Inclusion Rate : {{ mf.medication.inclusion_rate }} + + + Name : {{ mf.medication.name }}
+
+ + + Med Code : {{ mf.medication.med_code }}
+ Inclusion Rate : {{ mf.medication.inclusion_rate }} +
+
- {{ mf.product }} + item-title="code" + v-model="mf.product" + return-object + v-model:search="search[4]" + append-icon="mdi-magnify" + :loading="searching[4]" + @keyup.enter="searchProducts()" + @click:append="searchProducts()" + no-data-text="No results (press Enter to search)" + > + + + - {{ mf.product.name }} - - @@ -97,18 +101,18 @@ - + Save + variant="text" + @click="saveMedFeed(mf)">Save Add + variant="text" + @click="saveMedFeed(mf)">Add