diff --git a/src/layouts/headers/headerauth.vue b/src/layouts/headers/headerauth.vue index b7f6fa2..b7e2aaf 100755 --- a/src/layouts/headers/headerauth.vue +++ b/src/layouts/headers/headerauth.vue @@ -236,6 +236,7 @@ export default defineComponent({ user: {} as User, currentPhone: '', routingOptions: [ + { value: 'main', label: '407323' }, { value: 'sip', label: '407323_auburnoil' }, { value: 'cellphone1', label: 'Ed Cell' }, { value: 'cellphone2', label: 'Aneta Cell' }, diff --git a/src/pages/automatic/home.vue b/src/pages/automatic/home.vue index c927c1b..0446baa 100755 --- a/src/pages/automatic/home.vue +++ b/src/pages/automatic/home.vue @@ -28,23 +28,28 @@ - + Tank Level {{ sortAsc ? '▲' : '▼' }} - + Days Since Fill {{ sortAsc ? '▲' : '▼' }} - + Name {{ sortAsc ? '▲' : '▼' }} - + Usage Factor {{ sortAsc ? '▲' : '▼' }} - + Hot Water Tank {{ sortAsc ? '▲' : '▼' }} @@ -54,25 +59,23 @@ - +
New Auto
- + {{ oil.estimated_gallons_left }} / {{ oil.tank_size }} gal
{{ oil.days_since_last_fill }} days - + {{ oil.customer_full_name }} @@ -81,18 +84,23 @@ {{ oil.customer_address }}, {{ oil.customer_town }}
- - + + - - - - - - + + + + + + + + +
@@ -130,33 +138,36 @@
New Auto Customer
- -
{{ oil.estimated_gallons_left }} / {{ oil.tank_size }} gal estimated
+ +
{{ oil.estimated_gallons_left }} / {{ oil.tank_size + }} gal estimated
- +
- Edit Customer - + Edit Customer + - - - - - - + + + + + + + + +
@@ -290,7 +301,7 @@ export default defineComponent({ }); }, get_oil_orders() { - const path = import.meta.env.VITE_BASE_URL + '/customer/automatic/deliveries'; + const path = import.meta.env.VITE_AUTO_URL + '/delivery/all/customers'; axios.get(path, { withCredentials: true, headers: authHeader() }) .then((response: any) => { this.deliveries = response.data; diff --git a/src/pages/customer/profile/profile.vue b/src/pages/customer/profile/profile.vue index 8f019b2..d5c7405 100755 --- a/src/pages/customer/profile/profile.vue +++ b/src/pages/customer/profile/profile.vue @@ -57,10 +57,9 @@ /> - - + + + Automatic Deliveries + +
+
+ + + + + + + + + + + + + + + + + + + +
IDNameGallonsDateView
{{ auto.id }}{{ auto.customer_full_name }}{{ auto.gallons_delivered }}{{ auto.fill_date }} + + + +
+
+
@@ -42,6 +74,13 @@ interface Delivery { expected_delivery_date: string; } +interface AutomaticDelivery { + id: number; + customer_full_name: string; + gallons_delivered: number | string; + fill_date: string; +} + interface ServiceCall { id: number; scheduled_date: string; @@ -69,6 +108,7 @@ interface Transaction { // 2. Define the Props interface interface Props { deliveries: Delivery[]; + autodeliveries: AutomaticDelivery[]; serviceCalls: ServiceCall[]; transactions: Transaction[]; } diff --git a/src/pages/delivery/routes.ts b/src/pages/delivery/routes.ts index 5c29a40..7c57ae4 100755 --- a/src/pages/delivery/routes.ts +++ b/src/pages/delivery/routes.ts @@ -14,6 +14,7 @@ import deliveryFinalized from './viewstatus/finalized.vue' import deliveryTommorrow from './viewstatus/tommorrow.vue' import finalizeTicket from './update_tickets/finalize_ticket.vue'; import finalizeTicketAuto from './update_tickets/finalize_ticket_auto.vue'; +import finalizeTicketAutoNocc from './update_tickets/finalize_ticket_auto_nocc.vue'; const deliveryRoutes = [ { @@ -92,6 +93,11 @@ const deliveryRoutes = [ name: 'finalizeTicketAuto', component: finalizeTicketAuto, }, + { + path: '/delivery/tickets/finalize/auto/nocc/:id', + name: 'finalizeTicketAutoNocc', + component: finalizeTicketAutoNocc, + }, ] diff --git a/src/pages/delivery/update_tickets/finalize_ticket_auto.vue b/src/pages/delivery/update_tickets/finalize_ticket_auto.vue index 1be5276..1bdf334 100644 --- a/src/pages/delivery/update_tickets/finalize_ticket_auto.vue +++ b/src/pages/delivery/update_tickets/finalize_ticket_auto.vue @@ -369,7 +369,7 @@ type: "error", }); }); - },//TODO STUCK HERE !!!!!!!!! + }, getAutoTicket(delivery_id: any) { let path = import.meta.env.VITE_AUTO_URL + "/delivery/autoticket/" + delivery_id; axios({ @@ -416,7 +416,6 @@ }); }); }, -//TODO STUCK HERE !!!!!!!!! today_price_oil() { let path = import.meta.env.VITE_BASE_URL + '/info/price/oil' axios({ diff --git a/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue b/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue index e69de29..037086c 100644 --- a/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue +++ b/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue @@ -0,0 +1,569 @@ + + + + + + + diff --git a/src/pages/pay/oil/pay_oil.vue b/src/pages/pay/oil/pay_oil.vue index 551cacc..2962df2 100755 --- a/src/pages/pay/oil/pay_oil.vue +++ b/src/pages/pay/oil/pay_oil.vue @@ -225,14 +225,18 @@
- - - - + +