Spelling issues

This commit is contained in:
2024-07-29 13:43:49 -04:00
parent f030501ae3
commit d4f8002605
2 changed files with 10 additions and 18 deletions

View File

@@ -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,

View File

@@ -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,10 +407,15 @@ 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'
}) })
this.$router.push({ name: "today" }); if (this.deliveryOrder.automatic == 1){
this.$router.push({ name: "automatic" });
}else{
this.$router.push({ name: "today" });
}
} }
else { else {
Notify.create({ Notify.create({
@@ -454,7 +459,6 @@ export default defineComponent({
}; };
this.UpdateOilOrder(payload); this.UpdateOilOrder(payload);
this.CreateTransaction(money_payload) this.CreateTransaction(money_payload)
} }