-
diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue
new file mode 100644
index 000000000..87b7002dc
--- /dev/null
+++ b/src/components/ui/CardSummary.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss
index abe905c55..237450e48 100644
--- a/src/css/quasar.variables.scss
+++ b/src/css/quasar.variables.scss
@@ -28,5 +28,6 @@ $color-spacer: rgba(255, 255, 255, 0.3);
$border-thin-light: 1px solid $color-spacer-light;
$dark-shadow-color: #000;
+$dark: #292929;
$layout-shadow-dark: 0 0 10px 2px rgba(0, 0, 0, 0.2), 0 0px 10px rgba(0, 0, 0, 0.24);
$spacing-md: 16px;
diff --git a/src/pages/Claim/Card/ClaimCard.vue b/src/pages/Claim/Card/ClaimCard.vue
index cf8f7687c..df6faf323 100644
--- a/src/pages/Claim/Card/ClaimCard.vue
+++ b/src/pages/Claim/Card/ClaimCard.vue
@@ -18,33 +18,4 @@ const state = useState();
-
-
-
-
-
+
\ No newline at end of file
diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue
index c3959b7d2..84b924c2f 100644
--- a/src/pages/Claim/Card/ClaimDescriptor.vue
+++ b/src/pages/Claim/Card/ClaimDescriptor.vue
@@ -1,13 +1,12 @@
-
-
-
-
+
+
+
-
+
+
+ {{ entity.client.name }}
+ {{ entity.client.name }}
+
+
+
{{ t('claim.card.created') }}
- {{ toDate(claim.created) }}
+ {{ toDate(entity.created) }}
-
+
{{ t('claim.card.state') }}
-
- {{ claim.claimState.description }}
+
+ {{ entity.claimState.description }}
- {{ t('claim.card.ticketId') }}
-
- {{ claim.ticketFk }}
-
-
-
+
+ {{ t('claim.card.ticketId') }}
+
+
+
+ {{ entity.ticketFk }}
+
+
+
+
-
- {{ t('claim.card.assignedTo') }}
- {{ claim.worker.user.name }}
+
+
+ {{ t('claim.card.assignedTo') }}
+
+ {{ entity.worker.user.name }}
@@ -102,7 +106,7 @@ function stateColor(code) {
size="md"
icon="vn:client"
color="primary"
- :to="{ name: 'CustomerCard', params: { id: claim.clientFk } }"
+ :to="{ name: 'CustomerCard', params: { id: entity.clientFk } }"
>
{{ t('claim.card.customerSummary') }}
@@ -110,7 +114,7 @@ function stateColor(code) {
size="md"
icon="vn:ticket"
color="primary"
- :to="{ name: 'TicketCard', params: { id: claim.ticketFk } }"
+ :to="{ name: 'TicketCard', params: { id: entity.ticketFk } }"
>
{{ t('claim.card.claimedTicket') }}
diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue
index 7c6eeb6d7..98027b4ad 100644
--- a/src/pages/Claim/Card/ClaimSummary.vue
+++ b/src/pages/Claim/Card/ClaimSummary.vue
@@ -1,12 +1,9 @@
-
-
-
-
-
-
-
-
- {{ t('claim.summary.created') }}
- {{ toDate(claim.created) }}
-
-
- {{ t('claim.summary.state') }}
-
-
- {{ claim.claimState.description }}
-
-
-
-
-
-
- {{ t('claim.summary.assignedTo') }}
- {{ claim.worker.user.nickname }}
-
-
- {{ t('claim.summary.attendedBy') }}
- {{ claim.client.salesPersonUser.name }}
-
-
-
-
- {{ t('claim.summary.details') }}
-
-
-
-
- {{ t(col.label) }}
-
-
-
-
-
-
- {{ t('claim.summary.actions') }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {{ claim.id }} - {{ claim.client.name }}
+
+
+
+
+
+
+
+
+ {{ t('claim.summary.created') }}
+
+ {{ toDate(claim.created) }}
+
+
+ {{
+ t('claim.summary.state')
+ }}
+
+
+ {{ claim.claimState.description }}
+
+
+
+
+
+
+ {{
+ t('claim.summary.assignedTo')
+ }}
+ {{
+ claim.worker.user.nickname
+ }}
+
+
+ {{
+ t('claim.summary.attendedBy')
+ }}
+ {{
+ claim.client.salesPersonUser.name
+ }}
+
+
+
+
+
+
+ {{ t('claim.summary.details') }}
+
+
+
+
+ {{ t(col.label) }}
+
+
+
+
+
+
+ {{ t('claim.summary.actions') }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue
index 778c5071d..f3be46a7c 100644
--- a/src/pages/Customer/Card/CustomerDescriptor.vue
+++ b/src/pages/Customer/Card/CustomerDescriptor.vue
@@ -1,11 +1,9 @@
-
-
-
-
+
+
-
+
- {{ t('customer.card.salesPerson') }}
- {{ customer.salesPersonUser.name }}
+ {{
+ t('customer.card.salesPerson')
+ }}
+
+ {{ entity.salesPersonUser.name }}
+
- {{ t('customer.card.credit') }}
- {{ toCurrency(customer.credit) }}
+
+ {{ t('customer.card.credit') }}
+
+
+ {{ toCurrency(entity.credit) }}
+
- {{ t('customer.card.securedCredit') }}
- {{ toCurrency(customer.creditInsurance) }}
+ {{
+ t('customer.card.securedCredit')
+ }}
+
+ {{ toCurrency(entity.creditInsurance) }}
+
-
- {{ t('customer.card.payMethod') }}
- {{ customer.payMethod.name }}
+
+ {{
+ t('customer.card.payMethod')
+ }}
+
+ {{ entity.payMethod.name }}
+
{{ t('customer.card.debt') }}
- {{ toCurrency(customer.debt) }}
+
+ {{ toCurrency(entity.debt) }}
+
-
+
{{ t('customer.card.isDisabled') }}
-
+
{{ t('customer.card.isFrozen') }}
-
+
{{ t('customer.card.hasDebt') }}
-
+
{{ t('customer.card.notChecked') }}
-
+
{{ t('customer.card.noWebAccess') }}
diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue
index 496c342ae..1e55ed224 100644
--- a/src/pages/Customer/Card/CustomerSummary.vue
+++ b/src/pages/Customer/Card/CustomerSummary.vue
@@ -1,13 +1,9 @@
-
-
-
-
-
-
-
-
-
- {{ t('customer.summary.basicData') }}
-
-
-
-
+
+
+
+
+
+
+ {{ t('customer.summary.basicData') }}
+
+
+
+
-
-
- {{ t('customer.summary.customerId') }}
- {{ customer.id }}
-
-
-
-
- {{ t('customer.summary.name') }}
- {{ customer.name }}
-
-
-
-
- {{ t('customer.summary.contact') }}
- {{ customer.contact }}
-
-
-
-
- {{ t('customer.summary.salesPerson') }}
- {{ customer.salesPersonUser.name }}
-
-
-
-
- {{ t('customer.summary.phone') }}
- {{ customer.phone }}
-
-
-
-
- {{ t('customer.summary.mobile') }}
- {{ customer.mobile }}
-
-
-
-
- {{ t('customer.summary.email') }}
- {{ customer.email }}
-
-
-
-
- {{ t('customer.summary.contactChannel') }}
- {{ customer.contactChannel.name }}
-
-
-
-
-
-
-
- {{ t('customer.summary.fiscalAddress') }}
-
-
-
- {{ t('customer.summary.socialName') }}
- {{ customer.socialName }}
-
-
-
-
- {{ t('customer.summary.fiscalId') }}
- {{ customer.fi }}
-
-
-
-
- {{ t('customer.summary.postcode') }}
- {{ customer.postcode }}
-
-
-
-
- {{ t('customer.summary.province') }}
- {{ customer.province.name }}
-
-
-
-
- {{ t('customer.summary.country') }}
- {{ customer.country.country }}
-
-
-
-
- {{ t('customer.summary.street') }}
- {{ customer.street }}
-
-
-
-
-
-
-
- {{ t('customer.summary.fiscalData') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('customer.summary.billingData') }}
-
-
-
- {{ t('customer.summary.payMethod') }}
- {{ customer.payMethod.name }}
-
-
-
-
- {{ t('customer.summary.bankAccount') }}
- {{ customer.iban }}
-
-
-
-
- {{ t('customer.summary.dueDay') }}
- {{ customer.dueDay }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('customer.summary.consignee') }}
-
-
-
- {{ t('customer.summary.addressName') }}
- {{ customer.defaultAddress.nickname }}
-
-
-
-
- {{ t('customer.summary.addressCity') }}
- {{ customer.defaultAddress.city }}
-
-
-
-
- {{ t('customer.summary.addressStreet') }}
- {{ customer.defaultAddress.street }}
-
-
-
-
-
-
-
- {{ t('customer.summary.webAccess') }}
-
-
-
- {{ t('customer.summary.username') }}
- {{ customer.account.name }}
-
-
-
-
-
-
-
-
-
-
- {{ t('customer.summary.businessData') }}
-
-
-
- {{ t('customer.summary.totalGreuge') }}
- {{ toCurrency(customer.totalGreuge) }}
-
-
-
-
- {{ t('customer.summary.mana') }}
- {{ toCurrency(customer.mana.mana) }}
-
-
-
-
-
- {{ t('customer.summary.priceIncreasingRate') }}
-
- {{ toPercentage(priceIncreasingRate) }}
-
-
-
-
- {{ t('customer.summary.averageInvoiced') }}
- {{ toCurrency(customer.averageInvoiced.invoiced) }}
-
-
-
-
- {{ t('customer.summary.claimRate') }}
- {{ toPercentage(claimRate) }}
-
-
-
-
-
-
-
- {{ t('customer.summary.financialData') }}
-
-
-
- {{ t('customer.summary.risk') }}
-
- {{ toCurrency(customer.debt.debt) }}
-
-
-
-
- {{ t('customer.summary.riskInfo') }}
-
-
-
-
-
- {{ t('customer.summary.credit') }}
-
- {{ toCurrency(customer.credit) }}
-
-
-
-
- {{ t('customer.summary.creditInfo') }}
-
-
-
-
-
- {{ t('customer.summary.securedCredit') }}
- {{ toCurrency(customer.creditInsurance) }}
-
-
-
- {{ t('customer.summary.securedCreditInfo') }}
-
-
-
-
-
- {{ t('customer.summary.balance') }}
- {{ toCurrency(customer.sumRisk) || toCurrency(0) }}
-
-
-
- {{ t('customer.summary.balanceInfo') }}
-
-
-
-
-
- {{ t('customer.summary.balanceDue') }}
-
- {{ toCurrency(balanceDue) }}
-
-
-
-
- {{ t('customer.summary.balanceDueInfo') }}
-
-
-
-
-
- {{ t('customer.summary.recoverySince') }}
- {{ toDate(customer.recovery.started) }}
-
-
-
-
+
+
+
+ {{ t('customer.summary.customerId') }}
+
+ {{ entity.id }}
+
+
+
+
+
+ {{ t('customer.summary.name') }}
+
+ {{ entity.name }}
+
+
+
+
+
+ {{ t('customer.summary.contact') }}
+
+ {{ entity.contact }}
+
+
+
+
+
+ {{ t('customer.summary.salesPerson') }}
+
+ {{
+ entity.salesPersonUser.name
+ }}
+
+
+
+
+
+ {{ t('customer.summary.phone') }}
+
+ {{ entity.phone }}
+
+
+
+
+
+ {{ t('customer.summary.mobile') }}
+
+ {{ entity.mobile }}
+
+
+
+
+
+ {{ t('customer.summary.email') }}
+
+ {{ entity.email }}
+
+
+
+
+
+ {{ t('customer.summary.contactChannel') }}
+
+ {{
+ entity.contactChannel.name
+ }}
+
+
+
-
-
-
+
+
+
+ {{ t('customer.summary.fiscalAddress') }}
+
+
+
+
+ {{ t('customer.summary.socialName') }}
+
+ {{ entity.socialName }}
+
+
+
+
+
+ {{ t('customer.summary.fiscalId') }}
+
+ {{ entity.fi }}
+
+
+
+
+
+ {{ t('customer.summary.postcode') }}
+
+ {{ entity.postcode }}
+
+
+
+
+
+ {{ t('customer.summary.province') }}
+
+ {{ entity.province.name }}
+
+
+
+
+
+ {{ t('customer.summary.country') }}
+
+ {{ entity.country.country }}
+
+
+
+
+
+ {{ t('customer.summary.street') }}
+
+ {{ entity.street }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.fiscalData') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('customer.summary.billingData') }}
+
+
+
+
+ {{ t('customer.summary.payMethod') }}
+
+ {{ entity.payMethod.name }}
+
+
+
+
+
+ {{ t('customer.summary.bankAccount') }}
+
+ {{ entity.iban }}
+
+
+
+
+
+ {{ t('customer.summary.dueDay') }}
+
+ {{ entity.dueDay }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('customer.summary.consignee') }}
+
+
+
+
+ {{ t('customer.summary.addressName') }}
+
+
+ {{ entity.defaultAddress.nickname }}
+
+
+
+
+
+
+ {{ t('customer.summary.addressCity') }}
+
+ {{
+ entity.defaultAddress.city
+ }}
+
+
+
+
+
+ {{ t('customer.summary.addressStreet') }}
+
+
+ {{ entity.defaultAddress.street }}
+
+
+
+
+
+
+
+
+ {{ t('customer.summary.webAccess') }}
+
+
+
+
+ {{ t('customer.summary.username') }}
+
+ {{ entity.account.name }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('customer.summary.businessData') }}
+
+
+
+
+ {{ t('customer.summary.totalGreuge') }}
+
+
+ {{ toCurrency(entity.totalGreuge) }}
+
+
+
+
+
+
+ {{ t('customer.summary.mana') }}
+
+
+ {{ toCurrency(entity.mana.mana) }}
+
+
+
+
+
+
+ {{ t('customer.summary.priceIncreasingRate') }}
+
+
+ {{ toPercentage(priceIncreasingRate) }}
+
+
+
+
+
+
+ {{ t('customer.summary.averageInvoiced') }}
+
+
+ {{ toCurrency(entity.averageInvoiced.invoiced) }}
+
+
+
+
+
+
+ {{ t('customer.summary.claimRate') }}
+
+ {{ toPercentage(claimRate) }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.financialData') }}
+
+
+
+
+ {{ t('customer.summary.risk') }}
+
+
+ {{ toCurrency(entity.debt.debt) }}
+
+
+
+
+
+ {{ t('customer.summary.riskInfo') }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.credit') }}
+
+
+ {{ toCurrency(entity.credit) }}
+
+
+
+
+
+ {{ t('customer.summary.creditInfo') }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.securedCredit') }}
+
+
+ {{ toCurrency(entity.creditInsurance) }}
+
+
+
+
+
+ {{ t('customer.summary.securedCreditInfo') }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.balance') }}
+
+
+ {{ toCurrency(entity.sumRisk) || toCurrency(0) }}
+
+
+
+
+
+ {{ t('customer.summary.balanceInfo') }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.balanceDue') }}
+
+
+ {{ toCurrency(balanceDue) }}
+
+
+
+
+
+ {{ t('customer.summary.balanceDueInfo') }}
+
+
+
+
+
+
+
+ {{ t('customer.summary.recoverySince') }}
+
+
+ {{ toDate(entity.recovery.started) }}
+
+
+
+
+
+
+
+
-
diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue
index d26801582..31252f3e3 100644
--- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue
+++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue
@@ -1,9 +1,8 @@
-
-
+
+
+
+ {{ entity.ref }}
+ {{ entity.ref }}
+
+
+
- {{ t('invoiceOut.card.issued') }}
- {{ toDate(invoiceOut.issued) }}
+
+ {{ t('invoiceOut.card.issued') }}
+
+ {{ toDate(entity.issued) }}
- {{ t('invoiceOut.card.amount') }}
- {{ toCurrency(invoiceOut.amount) }}
+
+ {{ t('invoiceOut.card.amount') }}
+
+ {{ toCurrency(entity.amount) }}
-
- {{ t('invoiceOut.card.client') }}
+
+
+ {{ t('invoiceOut.card.client') }}
+
- {{ invoiceOut.client.name }}
+ {{ entity.client.name }}
-
+
-
- {{ t('invoiceOut.card.company') }}
- {{ invoiceOut.company.code }}
+
+ {{
+ t('invoiceOut.card.company')
+ }}
+ {{ entity.company.code }}
{{ t('invoiceOut.card.customerCard') }}
-
+
{{ t('invoiceOut.card.ticketList') }}
diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue
index 79c6fd122..bf9c76fde 100644
--- a/src/pages/Ticket/Card/TicketDescriptor.vue
+++ b/src/pages/Ticket/Card/TicketDescriptor.vue
@@ -1,12 +1,10 @@
-
-
-
-
+
+
+
+ {{ entity.client.name }}
+ {{ entity.client.name }}
+
+
+
-
- {{ t('ticket.card.ticketId') }}
- #{{ ticket.id }}
-
-
+
{{ t('ticket.card.state') }}
-
- {{ ticket.ticketState.state.name }}
+
+ {{ entity.ticketState.state.name }}
+
+
+
+
+ {{ t('ticket.card.shipped') }}
+
+ {{ toDate(entity.shipped) }}
+
+
+
+
+
+ {{ t('ticket.card.customerId') }}
+
+
+
+ {{ entity.clientFk }}
+
+
+
+
+
+
+
+
+ {{ t('ticket.card.salesPerson') }}
+
+
+ {{ entity.client.salesPersonUser.name }}
-
- {{ t('ticket.card.customerId') }}
-
- {{ ticket.clientFk }}
-
-
-
+
+
+ {{ t('ticket.card.warehouse') }}
-
-
- {{ t('ticket.card.salesPerson') }}
- {{ ticket.client.salesPersonUser.name }}
+ {{ entity.warehouse.name }}
-
-
- {{ t('ticket.card.warehouse') }}
- {{ ticket.warehouse.name }}
-
-
- {{ t('ticket.card.shipped') }}
- {{ toDate(ticket.shipped) }}
-
-
-
+
{{ t('ticket.card.agency') }}
- {{ ticket.agencyMode.name }}
+ {{ entity.agencyMode.name }}
@@ -101,7 +127,7 @@ function stateColor(state) {
size="md"
icon="vn:client"
color="primary"
- :to="{ name: 'CustomerCard', params: { id: ticket.clientFk } }"
+ :to="{ name: 'CustomerCard', params: { id: entity.clientFk } }"
>
{{ t('ticket.card.customerCard') }}
diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue
index f2cdb4c7a..111a1e957 100644
--- a/src/pages/Ticket/Card/TicketSummary.vue
+++ b/src/pages/Ticket/Card/TicketSummary.vue
@@ -29,6 +29,7 @@ const entityId = computed(() => $props.id || route.params.id);
const ticket = ref();
const salesLines = ref(null);
const editableStates = ref([]);
+
async function fetch() {
const { data } = await axios.get(`Tickets/${entityId.value}/summary`);
if (data) {