diff --git a/components/server/MaintenanceVisitsTemplate.vue b/components/server/MaintenanceVisitsTemplate.vue index 788a0d2..a1dbede 100644 --- a/components/server/MaintenanceVisitsTemplate.vue +++ b/components/server/MaintenanceVisitsTemplate.vue @@ -5,8 +5,8 @@
-
-
+
+
Customer:
{{ mvt.customer }}
@@ -208,8 +208,8 @@ const updateCustomerID = async () => { const response = await Axios.get(`https://${clientsideConfig.url}:${clientsideConfig.port}/api/getCustomerByName/${mvt.value.customer}`); customer.value = response.data; mvt.value.customerID = customer.value.customerID; - store.commit('toggleClientChanged'); - store.commit('toggleClientId', mvt.value.customerID); + store.commit('toggleCustomerChanged'); + store.commit('toggleCustomerId', mvt.value.customerID); } catch (err) { console.log(err.response.statusText); } @@ -235,8 +235,8 @@ const updateNewCustomerID = async () => { try { const response = await Axios.get(`https://${clientsideConfig.url}:${clientsideConfig.port}/api/getCustomerByName/${newCustomer.value}`); newCustomerID.value = response.data.customerID; - store.commit('toggleClientChanged'); - store.commit('toggleClientId', newCustomerID.value) + store.commit('toggleCustomerChanged'); + store.commit('toggleCustomerId', newCustomerID.value) } catch (err) { console.log(err.response.statusText); } diff --git a/components/server/MaintenanceVisitsTemplateTable.vue b/components/server/MaintenanceVisitsTemplateTable.vue index ba15be8..b21556f 100644 --- a/components/server/MaintenanceVisitsTemplateTable.vue +++ b/components/server/MaintenanceVisitsTemplateTable.vue @@ -1,6 +1,6 @@