medfeed edit processing

This commit is contained in:
Paul Wilde 2023-03-17 16:48:21 +00:00
parent 92fc782ca5
commit b19a24842d

View file

@ -160,7 +160,16 @@ export default {
this.$emit('closetab','list') this.$emit('closetab','list')
}, },
saveMedFeed(medfeed) { saveMedFeed(medfeed) {
console.log(medfeed) let url = this.$api_url + "/customers/medicated-feeds/" + this.mf.id + "/save"
axios.put(url,{
medfeed: medfeed
})
.then(resp => {
console.log(resp)
})
.catch(err => {
console.log(err)
})
}, },
searchCustomers() { searchCustomers() {
this.searching[1] = true this.searching[1] = true