diff --git a/src/views/medfeeds/MedFeedsEdit.vue b/src/views/medfeeds/MedFeedsEdit.vue index 02f26d6..f09cd30 100644 --- a/src/views/medfeeds/MedFeedsEdit.vue +++ b/src/views/medfeeds/MedFeedsEdit.vue @@ -51,6 +51,11 @@ + + + {{ error }} + + { - console.log(resp) - this.$emit('medfeedupdated') + let stat = resp.data + if (stat.status == true ) { + this.$emit('medfeedupdated') + } else { + this.error = "Error Saving... " + } }) .catch(err => { console.log(err) diff --git a/src/views/medfeeds/MedFeedsList.vue b/src/views/medfeeds/MedFeedsList.vue index 7fa11e8..a47cace 100644 --- a/src/views/medfeeds/MedFeedsList.vue +++ b/src/views/medfeeds/MedFeedsList.vue @@ -30,7 +30,8 @@ Medicated Feed : {{ item.id }}
- {{ item.customer.acc_no }} - {{ item.customer.name }} + {{ item.customer.acc_no }} - {{ item.customer.name }}
+ {{ item.vet.practice }}
{{ item.medication.name }} {{ item.medication.inclusion_rate }}
@@ -177,6 +178,8 @@ export default { }, medfeedUpdated(){ this.getMedFeedsList() + this.edit = false + this.tab = "list" } } }