diff --git a/src/pages/Customer/Card/CustomerBalance.vue b/src/pages/Customer/Card/CustomerBalance.vue index 9e2cfb6ff..a718275af 100644 --- a/src/pages/Customer/Card/CustomerBalance.vue +++ b/src/pages/Customer/Card/CustomerBalance.vue @@ -5,9 +5,10 @@ import { useRoute } from 'vue-router'; import { date, QCheckbox, QBtn, useQuasar } from 'quasar'; -import { useState } from 'src/composables/useState'; import { toCurrency } from 'src/filters'; +import { useState } from 'src/composables/useState'; import { useStateStore } from 'stores/useStateStore'; +import { useValidator } from 'src/composables/useValidator'; import FetchData from 'components/FetchData.vue'; import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; @@ -15,10 +16,11 @@ import CustomerNewPayment from 'src/pages/Customer/components/CustomerNewPayment import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; const { t } = useI18n(); -const route = useRoute(); +const { validate } = useValidator(); const quasar = useQuasar(); -const stateStore = useStateStore(); +const route = useRoute(); const state = useState(); +const stateStore = useStateStore(); const user = state.getUser(); const clientRisks = ref(null); @@ -225,7 +227,7 @@ const updateCompanyId = (id) => { {{ props.value }} @@ -244,6 +246,7 @@ const updateCompanyId = (id) => { option-label="code" option-value="id" v-model="companyId" + :rules="validate('entry.companyFk')" /> diff --git a/src/pages/Customer/Card/CustomerBillingData.vue b/src/pages/Customer/Card/CustomerBillingData.vue index 2cf18de43..00ad407fe 100644 --- a/src/pages/Customer/Card/CustomerBillingData.vue +++ b/src/pages/Customer/Card/CustomerBillingData.vue @@ -69,13 +69,7 @@ const getBankEntities = () => {
- - - +
[ field: 'created', label: t('Since'), name: 'created', - format: (value) => date.formatDate(value, 'DD/MM/YYYY hh:mm:ss'), + format: (value) => date.formatDate(value, 'DD/MM/YYYY hh:mm'), }, { align: 'left', @@ -105,7 +105,7 @@ const toCustomerCreditCreate = () => { > {{ props.value }} diff --git a/src/pages/Customer/Card/CustomerFileManagement.vue b/src/pages/Customer/Card/CustomerFileManagement.vue index 47b561596..c845493ae 100644 --- a/src/pages/Customer/Card/CustomerFileManagement.vue +++ b/src/pages/Customer/Card/CustomerFileManagement.vue @@ -215,7 +215,7 @@ const toCustomerFileManagementCreate = () => { {{ props.value }} diff --git a/src/pages/Customer/Card/CustomerFiscalData.vue b/src/pages/Customer/Card/CustomerFiscalData.vue index ee78274f3..b8b0ba74f 100644 --- a/src/pages/Customer/Card/CustomerFiscalData.vue +++ b/src/pages/Customer/Card/CustomerFiscalData.vue @@ -160,6 +160,7 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk, countryFk }, formDa [ field: 'shipped', label: t('Date'), name: 'date', - format: (value) => date.formatDate(value, 'DD/MM/YYYY hh:mm:ss'), + format: (value) => date.formatDate(value, 'DD/MM/YYYY hh:mm'), }, { align: 'left', @@ -144,7 +144,7 @@ const toCustomerGreugeCreate = () => { > {{ props.value }} diff --git a/src/pages/Customer/Card/CustomerSamples.vue b/src/pages/Customer/Card/CustomerSamples.vue index ca5d63dcb..fba6402ed 100644 --- a/src/pages/Customer/Card/CustomerSamples.vue +++ b/src/pages/Customer/Card/CustomerSamples.vue @@ -109,7 +109,7 @@ const toCustomerSamplesCreate = () => { > {{ props.value }} diff --git a/src/pages/Customer/Card/CustomerWebAccess.vue b/src/pages/Customer/Card/CustomerWebAccess.vue index b666780a2..80f294e25 100644 --- a/src/pages/Customer/Card/CustomerWebAccess.vue +++ b/src/pages/Customer/Card/CustomerWebAccess.vue @@ -20,7 +20,7 @@ const filter = { where: { id: `${route.params.id}` } }; :url="'VnUsers/preview'" model="client" > -