Spelling issues
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<q-page>
|
||||
<div class="q-pa-md">
|
||||
|
||||
<q-table title="Todays Deliveries" :rows="deliveries" :columns="columns" row-key="id" :filter="filter"
|
||||
<q-table title="Automatic Deliveries" :rows="deliveries" :columns="columns" row-key="id" :filter="filter"
|
||||
v-model="filter" class="q-mb-lg">
|
||||
<template v-slot:top-right>
|
||||
<q-input dense debounce="300" v-model="filter" placeholder="Search">
|
||||
@@ -129,7 +129,6 @@ export default defineComponent({
|
||||
},
|
||||
mounted() {
|
||||
this.userStatus()
|
||||
this.updatestatus()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -148,17 +147,7 @@ userStatus() {
|
||||
}
|
||||
})
|
||||
},
|
||||
updatestatus() {
|
||||
let path = import.meta.env.VITE_BASE_URL + '/delivery/updatestatus/outfordelivery';
|
||||
axios({
|
||||
method: 'get',
|
||||
url: path,
|
||||
headers: authHeader(),
|
||||
}).then((response: any) => {
|
||||
if (response.data.update)
|
||||
console.log("ok")
|
||||
})
|
||||
},
|
||||
|
||||
get_employee() {
|
||||
const path = import.meta.env.VITE_BASE_URL + '/employee/userid/' + this.user.user_id
|
||||
axios({
|
||||
@@ -174,7 +163,6 @@ get_employee() {
|
||||
},
|
||||
get_automatics() {
|
||||
const path = import.meta.env.VITE_AUTO_URL + '/delivery/driver/' + this.employee.id
|
||||
console.log(path)
|
||||
axios({
|
||||
method: 'get',
|
||||
url: path,
|
||||
|
||||
@@ -373,7 +373,7 @@ export default defineComponent({
|
||||
if (response.status == 201) {
|
||||
Notify.create({
|
||||
message: 'Confirmed Transaction',
|
||||
type: 'postive',
|
||||
type: 'positive',
|
||||
position: 'top'
|
||||
})
|
||||
this.$router.push({ name: "today" });
|
||||
@@ -407,10 +407,15 @@ export default defineComponent({
|
||||
if (response.data.ok) {
|
||||
Notify.create({
|
||||
message: 'Delivered',
|
||||
type: 'postive',
|
||||
type: 'positive',
|
||||
position: 'top'
|
||||
})
|
||||
this.$router.push({ name: "today" });
|
||||
if (this.deliveryOrder.automatic == 1){
|
||||
this.$router.push({ name: "automatic" });
|
||||
}else{
|
||||
this.$router.push({ name: "today" });
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
Notify.create({
|
||||
@@ -454,7 +459,6 @@ export default defineComponent({
|
||||
|
||||
};
|
||||
|
||||
|
||||
this.UpdateOilOrder(payload);
|
||||
this.CreateTransaction(money_payload)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user