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

View file

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