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