Updated auto

This commit is contained in:
2024-07-24 17:24:40 -04:00
parent 74fcd282db
commit 47e57f5758
3 changed files with 123 additions and 31 deletions

View File

@@ -154,7 +154,6 @@ export default defineComponent({
.then((response: any) => {
this.automatic = response.data;
this.getCustomer(response.data.customer_id);
this.sumdelivery(this.$route.params.id);
})
.catch(() => {
@@ -167,29 +166,6 @@ export default defineComponent({
},
sumdelivery(delivery_id: any) {
let path = import.meta.env.VITE_BASE_URL + "/delivery/total/" + delivery_id;
axios({
method: "get",
url: path,
withCredentials: true,
})
.then((response: any) => {
if (response.data.ok) {
this.priceprime = response.data.priceprime;
this.pricesameday = response.data.pricesameday;
this.total_amount = response.data.total_amount;
}
})
.catch(() => {
notify({
title: "Error",
text: "Could not get oil pricing",
type: "error",
});
});
},
getCustomer(userid: any) {
let path = import.meta.env.VITE_BASE_URL + '/customer/' + userid;
axios({