| Name |
Status |
- Town |
Address |
+ Town |
+
Gallons |
Date |
Automatic |
@@ -55,8 +56,9 @@
+ {{ oil['customer_address'] }} |
{{ oil['customer_town'] }} |
- {{ oil['customer_address'] }} |
+
Fill
{{ oil['gallons_ordered'] }}
diff --git a/src/pages/delivery/viewstatus/finalized.vue b/src/pages/delivery/viewstatus/finalized.vue
index 688ee94..efd6034 100644
--- a/src/pages/delivery/viewstatus/finalized.vue
+++ b/src/pages/delivery/viewstatus/finalized.vue
@@ -27,8 +27,9 @@
| Ticket Id |
Name |
Status |
- Town |
+
Address |
+ Town |
Gallons |
Date |
Automatic |
@@ -57,8 +58,9 @@
- {{ oil['customer_town'] }} |
+
{{ oil['customer_address'] }} |
+ {{ oil['customer_town'] }} |
Fill
{{ oil['gallons_ordered'] }}
diff --git a/src/pages/delivery/viewstatus/issue.vue b/src/pages/delivery/viewstatus/issue.vue
index 04f3970..c081603 100755
--- a/src/pages/delivery/viewstatus/issue.vue
+++ b/src/pages/delivery/viewstatus/issue.vue
@@ -26,8 +26,9 @@
| Ticket Id |
Name |
Status |
- Town |
+
Address |
+ Town |
Gallons |
Date |
Automatic |
@@ -57,8 +58,9 @@
- {{ oil['customer_town'] }} |
+
{{ oil['customer_address'] }} |
+ {{ oil['customer_town'] }} |
Fill
{{ oil['gallons_ordered'] }}
diff --git a/src/pages/delivery/viewstatus/pending.vue b/src/pages/delivery/viewstatus/pending.vue
index 04629ca..957f3b5 100644
--- a/src/pages/delivery/viewstatus/pending.vue
+++ b/src/pages/delivery/viewstatus/pending.vue
@@ -28,8 +28,9 @@
| Id |
Name |
Status |
- Town |
+
Address |
+ Town |
Gallons |
Date |
Auto |
@@ -64,8 +65,9 @@
- {{ oil['customer_town'] }} |
+
{{ oil['customer_address'] }} |
+ {{ oil['customer_town'] }} |
Fill
{{ oil['gallons_ordered'] }}
diff --git a/src/pages/delivery/viewstatus/todaysdeliveries.vue b/src/pages/delivery/viewstatus/todaysdeliveries.vue
index 058bfa2..9d48df6 100755
--- a/src/pages/delivery/viewstatus/todaysdeliveries.vue
+++ b/src/pages/delivery/viewstatus/todaysdeliveries.vue
@@ -44,13 +44,13 @@
|
-
+
| {{ oil['id'] }} |
{{ oil['customer_name'] }}
|
-
+
Waiting
cancelled
@@ -61,7 +61,7 @@
Finalized
-
+
|
{{ oil['customer_town'] }} |
@@ -88,7 +88,7 @@
Yes
-
+
Cash
CC
Cash/CC
@@ -106,11 +106,10 @@
-
-
-
-
-
+
+
+
+
@@ -124,9 +123,10 @@
-
-
- {{ recordsLength }} items Found
+
+
+ {{ recordsLength }} items Found
diff --git a/src/pages/delivery/viewstatus/tommorrow.vue b/src/pages/delivery/viewstatus/tommorrow.vue
index a4cfd38..a704883 100644
--- a/src/pages/delivery/viewstatus/tommorrow.vue
+++ b/src/pages/delivery/viewstatus/tommorrow.vue
@@ -26,11 +26,12 @@
- | Ticket Id |
+ Account Id |
Name |
Status |
- Town |
+
Address |
+ Town |
Gallons |
Date |
Automatic |
@@ -59,8 +60,9 @@
- {{ oil['customer_town'] }} |
+
{{ oil['customer_address'] }} |
+ {{ oil['customer_town'] }} |
Fill
{{ oil['gallons_ordered'] }}
@@ -101,7 +103,7 @@
- {{ recordsLength }} items Found
+
diff --git a/src/pages/delivery/viewstatus/waiting.vue b/src/pages/delivery/viewstatus/waiting.vue
index b5741b5..8497e52 100755
--- a/src/pages/delivery/viewstatus/waiting.vue
+++ b/src/pages/delivery/viewstatus/waiting.vue
@@ -25,11 +25,12 @@
- | Ticket Id |
+ Account Id |
Name |
Status |
- Town |
+
Address |
+ Town |
Gallons |
Date |
Automatic |
@@ -57,8 +58,9 @@
- {{ oil['customer_town'] }} |
+
{{ oil['customer_address'] }} |
+ {{ oil['customer_town'] }} |
Fill
{{ oil['gallons_ordered'] }}
diff --git a/src/pages/pay/pay_oil.vue b/src/pages/pay/pay_oil.vue
index c924e7e..0fce359 100755
--- a/src/pages/pay/pay_oil.vue
+++ b/src/pages/pay/pay_oil.vue
@@ -380,7 +380,7 @@ export default defineComponent({
type_of_card: '',
last_four_digits: '',
expiration_year: '',
- security_number: 0,
+ security_number: '',
}
],
diff --git a/src/pages/ticket/ticket.vue b/src/pages/ticket/ticket.vue
index 132e785..0373a4d 100644
--- a/src/pages/ticket/ticket.vue
+++ b/src/pages/ticket/ticket.vue
@@ -13,10 +13,12 @@
- {{ customer.customer_first_name }} {{ customer.customer_last_name }}
+
+ {{ customer.customer_first_name }} {{ customer.customer_last_name }}
{{ customer.account_number }}
{{ customer.customer_address }}
+ {{ customer.customer_apt }}
{{ customer.customer_town }}
@@ -28,34 +30,35 @@
-
-
-
+
+
+
- {{ customer_description.description }}
- Promo: {{ promo.text_on_ticket }}
-
- PRIME
- SAME DAY
- EMERGENCY
+ {{ customer_description.description }}
+ Promo: {{ promo.text_on_ticket
+ }}
+
+ PRIME
+ SAME DAY
+ EMERGENCY
- CASH
- Credit Card
- Credit Card/Cash
- Check
- Other
-
-
- {{ delivery.gallons_ordered }}
- Fill
+ CASH
+ Credit Card
+ Credit Card/Cash
+
+ Check
+ Other
+
+
+ {{ delivery.gallons_ordered }}
+ Fill
+
-
-
-
- {{ delivery.dispatcher_notes }}
+
+
+ {{ delivery.dispatcher_notes }}
+
-
-
@@ -118,8 +121,8 @@
{{ total_amount_after_discount }}
- {{ total_amount }}
-
+ {{ total_amount }}
+
diff --git a/src/pages/ticket/ticketauto.vue b/src/pages/ticket/ticketauto.vue
index f808c34..c55eeb4 100644
--- a/src/pages/ticket/ticketauto.vue
+++ b/src/pages/ticket/ticketauto.vue
@@ -1,55 +1,113 @@
-
-
-
-
-
- #2
-
-
-
-
- {{ customer.customer_phone_number }}
+
+
+
+
+ #2
+
+
+
+
+ {{ customer.customer_phone_number }}
+
+
+
+ {{ customer.customer_first_name }} {{ customer.customer_last_name }}
-
- {{ customer.customer_first_name }} {{ customer.customer_last_name }}
-
- {{ customer.account_number }}
- {{ customer.customer_address }}
-
-
- {{ customer.customer_town }}
- {{ customer.customer_state }}
- {{ customer.customer_zip }}
-
-
-
-
-
-
- {{ past_delivery.when_delivered }} - {{ past_delivery.gallons_delivered }}
-
-
- {{ past_delivery2.when_delivered }} - {{ past_delivery2.gallons_delivered }}
+ {{ customer.account_number }}
+ {{ customer.customer_address }}
+
+
+ {{ customer.customer_town }}
+
+ {{ customer.customer_zip }}
+
+
+
+
+
+ {{ customer_description.description }}
+
+
+
+
+ Credit Card
+
+
+ Fill
+
+
+
+
+ {{ delivery.dispatcher_notes }}
+
+
+
+
+
+
+
+ Auburn Oil
+ PO BOX 123
+
+
+ Auburn
+
+ Ma
+
+ 01501
+
+
+ 508 426 8800
+
+
+
+
+
+ {{ past_delivery.when_delivered }} - {{ past_delivery.gallons_delivered }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- FILL
-
-
+
+
+ {{ delivery.expected_delivery_date }}
+
+
+ AUTO
+
+
+
+ {{todays_price }}
+
+
+
+
+
-
@@ -68,13 +126,12 @@ import Footer from '../../layouts/footers/footer.vue'
import { notify } from "@kyvg/vue3-notification"
export default defineComponent({
- name: 'TicketAuto',
+ name: 'Ticket',
components: {
Header,
SideBar,
Footer,
-
},
data() {
@@ -95,7 +152,38 @@ export default defineComponent({
when_delivered: '',
}
],
-
+ delivery: {
+ id: '',
+ customer_id: 0,
+ customer_name: '',
+ customer_address: '',
+ customer_town: '',
+ customer_state: 0,
+ customer_zip: '',
+ gallons_ordered: 0,
+ customer_asked_for_fill: 0,
+ gallons_delivered: '',
+ customer_filled: 0,
+ delivery_status: 0,
+ when_ordered: '',
+ when_delivered: '',
+ expected_delivery_date: '',
+ automatic: 0,
+ oil_id: 0,
+ supplier_price: '',
+ customer_price: 0,
+ customer_temperature: '',
+ dispatcher_notes: '',
+ prime: 0,
+ same_day: 0,
+ emergency: 0,
+ payment_type: 0,
+ payment_card_id: 0,
+ driver_employee_id: 0,
+ driver_first_name: '',
+ driver_last_name: '',
+ promo_id: 0,
+ },
customer: {
id: 0,
user_id: 0,
@@ -110,33 +198,30 @@ export default defineComponent({
customer_phone_number: '',
account_number: '',
},
- automatic: {
+ customer_description: {
id: 0,
customer_id: 0,
- customer_full_name: '',
- last_fill: '',
- last_updated: '',
- estimated_gallons_left: 0,
- estimated_gallons_left_prev_day: 0,
- tank_height: '',
- tank_size: '',
- house_factor: '',
+ account_number: '',
+ company_id: '',
+ fill_location: 0,
+ description: '',
},
-
- priceprime: 0,
- pricesameday: 0,
- total_amount: 0,
+
+ todays_price: 0,
+
}
},
created() {
- this.getAutomaticOrder(this.$route.params.id);
+ this.getAutoOrder(this.$route.params.id)
+ this.gettodayprice();
},
watch: {
$route() {
- this.getAutomaticOrder(this.$route.params.id);
+ this.getAutoOrder(this.$route.params.id)
+ this.gettodayprice();
},
},
mounted() {
@@ -144,7 +229,7 @@ export default defineComponent({
},
methods: {
- getAutomaticOrder(delivery_id: any) {
+ getAutoOrder(delivery_id: any) {
let path = import.meta.env.VITE_AUTO_URL + "/delivery/" + delivery_id;
axios({
method: "get",
@@ -152,8 +237,9 @@ export default defineComponent({
withCredentials: true,
})
.then((response: any) => {
- this.automatic = response.data;
- this.getCustomer(response.data.customer_id);
+ this.delivery = response.data;
+ this.getCustomer(this.delivery.customer_id)
+
})
.catch(() => {
@@ -164,7 +250,40 @@ export default defineComponent({
});
});
},
+ getCustomerDescription(userid: any) {
+ let path = import.meta.env.VITE_BASE_URL + '/customer/description/' + userid;
+ axios({
+ method: 'get',
+ url: path,
+ headers: authHeader(),
+ }).then((response: any) => {
+ this.customer_description = response.data
+ })
+ },
+
+ gettodayprice() {
+ let path = import.meta.env.VITE_BASE_URL + "/info/price/oil";
+ axios({
+ method: "get",
+ url: path,
+ withCredentials: true,
+ })
+ .then((response: any) => {
+ if (response.data.ok) {
+
+ this.todays_price = response.data.price_for_customer;
+
+ }
+ })
+ .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;
@@ -176,6 +295,7 @@ export default defineComponent({
this.customer = response.data
this.getPastDeliveries1(this.customer.id)
this.getPastDeliveries2(this.customer.id)
+ this.getCustomerDescription(this.customer.id)
})
},
@@ -187,7 +307,6 @@ export default defineComponent({
headers: authHeader(),
}).then((response: any) => {
this.past_deliveries1 = response.data
- console.log(this.past_deliveries1);
})
},
getPastDeliveries2(userid: any) {
@@ -200,6 +319,7 @@ export default defineComponent({
this.past_deliveries2 = response.data
})
},
+
},
})
| | |