diff --git a/src/pages/customer/create.vue b/src/pages/customer/create.vue index bda8e30..3976449 100755 --- a/src/pages/customer/create.vue +++ b/src/pages/customer/create.vue @@ -25,8 +25,6 @@
- -
General Info
@@ -292,12 +290,8 @@ export default defineComponent({ customer_home_type: number, customer_state: number; customer_description: string; - }) - { - - let path = import.meta.env.VITE_BASE_URL + "/customer/create"; axios({ method: "post", diff --git a/src/pages/customer/profile/home.vue b/src/pages/customer/profile/home.vue index 43b446d..85015a6 100755 --- a/src/pages/customer/profile/home.vue +++ b/src/pages/customer/profile/home.vue @@ -472,6 +472,41 @@
+ +
+
+
Automatic Deliveries
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
idNameAddressTownGallonsDate
{{ auto['id'] }}{{ auto['customer_full_name'] }}{{ auto['customer_address'] }}{{ auto['customer_town'] }}{{ auto['gallons_delivered'] }}{{ auto['fill_date'] }}
+
+
+ + +
Orders
@@ -485,8 +520,6 @@ id Status Name - - Address Town Gallons @@ -529,7 +562,6 @@ - @@ -538,20 +570,20 @@ - - - -
+ + + +
@@ -675,6 +707,7 @@ export default defineComponent({ }, deliveries: [], + autodeliveries: [], delivery_page: 1, delivery_perPage: 50, delivery_recordsLength: 0, @@ -733,6 +766,13 @@ export default defineComponent({ headers: authHeader(), }).then((response: any) => { this.automatic_status = response.data.status + if (this.automatic_status === 1){ + + this.getCustomerAutoDelivery(this.customer.id) + } + + + this.checktotalOil(this.customer.id) }) }, @@ -877,6 +917,17 @@ export default defineComponent({ }) }, + getCustomerAutoDelivery(userid: any) { + let path = import.meta.env.VITE_AUTO_URL + '/delivery/all/profile/' + userid ; + axios({ + method: 'get', + url: path, + headers: authHeader(), + }).then((response: any) => { + this.autodeliveries = response.data + }) + }, + getCustomerDelivery(userid: any, delivery_page: any) { let path = import.meta.env.VITE_BASE_URL + '/delivery/customer/' + userid + '/' + delivery_page; axios({ diff --git a/src/pages/customer/tank/edit.vue b/src/pages/customer/tank/edit.vue index 6a78f2c..a9c81de 100644 --- a/src/pages/customer/tank/edit.vue +++ b/src/pages/customer/tank/edit.vue @@ -54,8 +54,6 @@ - -
-