upgrade to odbcn v6 now working vetter

This commit is contained in:
Paul Wilde 2023-03-23 19:43:01 +00:00
parent d4f7fa7337
commit 8195e81657
2 changed files with 19 additions and 4 deletions

View file

@ -51,6 +51,11 @@
</v-row> </v-row>
</v-container> </v-container>
</v-card-text> </v-card-text>
<v-banner icon="$error" color="error" v-if="error != ''">
<v-banner-text>
{{ error }}
</v-banner-text>
</v-banner>
<v-card-actions> <v-card-actions>
<v-btn v-if="!mf.isNew" color="red-darken-1" <v-btn v-if="!mf.isNew" color="red-darken-1"
variant="text" variant="text"
@ -107,7 +112,8 @@ export default {
medications: [], medications: [],
products: [], products: [],
search: [], search: [],
searching: {} searching: {},
error: ""
} }
}, },
computed: { computed: {
@ -125,13 +131,19 @@ export default {
this.$emit('closetab','list') this.$emit('closetab','list')
}, },
saveMedFeed(medfeed) { saveMedFeed(medfeed) {
this.error = ""
let url = this.$api_url + "/customers/medicated-feeds/" + this.mf.id + "/save" let url = this.$api_url + "/customers/medicated-feeds/" + this.mf.id + "/save"
console.log("Saving Med Feed...")
axios.put(url,{ axios.put(url,{
medfeed: medfeed medfeed: medfeed
}) })
.then(resp => { .then(resp => {
console.log(resp) let stat = resp.data
this.$emit('medfeedupdated') if (stat.status == true ) {
this.$emit('medfeedupdated')
} else {
this.error = "Error Saving... "
}
}) })
.catch(err => { .catch(err => {
console.log(err) console.log(err)

View file

@ -30,7 +30,8 @@
<v-row class="item" :class="{ at_risk : item.customer.at_risk }"> <v-row class="item" :class="{ at_risk : item.customer.at_risk }">
<v-col cols="4"> <v-col cols="4">
Medicated Feed : {{ item.id }}<br/> Medicated Feed : {{ item.id }}<br/>
{{ item.customer.acc_no }} - {{ item.customer.name }} {{ item.customer.acc_no }} - {{ item.customer.name }}<br/>
{{ item.vet.practice }}
</v-col> </v-col>
<v-col> <v-col>
{{ item.medication.name }} {{ item.medication.inclusion_rate }}<br /> {{ item.medication.name }} {{ item.medication.inclusion_rate }}<br />
@ -177,6 +178,8 @@ export default {
}, },
medfeedUpdated(){ medfeedUpdated(){
this.getMedFeedsList() this.getMedFeedsList()
this.edit = false
this.tab = "list"
} }
} }
} }