diff --git a/src/components/ui/TicketProblems.vue b/src/components/ui/TicketProblems.vue
new file mode 100644
index 000000000..2965396b1
--- /dev/null
+++ b/src/components/ui/TicketProblems.vue
@@ -0,0 +1,40 @@
+
+
+
+
+ {{ $t('salesTicketsTable.noVerifiedData') }}
+
+
+ {{ $t('salesTicketsTable.purchaseRequest') }}
+
+
+ {{ $t('salesTicketsTable.notVisible') }}
+
+
+ {{ $t('salesTicketsTable.clientFrozen') }}
+
+
+
+ {{ $t('salesTicketsTable.risk') }}: {{ row.risk - row.credit }}
+
+
+
+ {{ $t('salesTicketsTable.componentLack') }}
+
+
+ {{ $t('salesTicketsTable.tooLittle') }}
+
+
+
diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue
index 95a162670..4fa7b9bdc 100644
--- a/src/pages/Customer/Card/CustomerSummary.vue
+++ b/src/pages/Customer/Card/CustomerSummary.vue
@@ -320,7 +320,7 @@ const sumRisk = ({ clientRisks }) => {
:value="entity.recommendedCredit"
/>
-
+
diff --git a/src/pages/Monitor/Ticket/MonitorTickets.vue b/src/pages/Monitor/Ticket/MonitorTickets.vue
index f08402d69..4a31418fb 100644
--- a/src/pages/Monitor/Ticket/MonitorTickets.vue
+++ b/src/pages/Monitor/Ticket/MonitorTickets.vue
@@ -24,13 +24,18 @@ const tableRef = ref(null);
const provinceOpts = ref([]);
const stateOpts = ref([]);
const zoneOpts = ref([]);
-const visibleColumns = ref([]);
const { viewSummary } = useSummaryDialog();
const from = Date.vnNew();
from.setHours(0, 0, 0, 0);
const to = new Date(from.getTime());
to.setDate(to.getDate() + 1);
to.setHours(23, 59, 59, 999);
+const stateColors = {
+ notice: 'info',
+ success: 'positive',
+ warning: 'warning',
+ alert: 'negative',
+};
function exprBuilder(param, value) {
switch (param) {
@@ -225,7 +230,7 @@ const columns = computed(() => [
{
title: t('salesTicketsTable.goToLines'),
icon: 'vn:lines',
- color: 'priamry',
+ color: 'primary',
action: (row) => openTab(row.id),
isPrimary: true,
attrs: {
@@ -236,7 +241,7 @@ const columns = computed(() => [
{
title: t('salesTicketsTable.preview'),
icon: 'preview',
- color: 'priamry',
+ color: 'primary',
action: (row) => viewSummary(row.id, TicketSummary),
isPrimary: true,
attrs: {
@@ -254,10 +259,10 @@ const getBadgeAttrs = (date) => {
let timeTicket = new Date(date);
timeTicket.setHours(0, 0, 0, 0);
- let comparation = today - timeTicket;
+ let timeDiff = today - timeTicket;
- if (comparation == 0) return { color: 'warning', 'text-color': 'black' };
- if (comparation < 0) return { color: 'success', 'text-color': 'black' };
+ if (timeDiff == 0) return { color: 'warning', 'text-color': 'black' };
+ if (timeDiff < 0) return { color: 'success', 'text-color': 'black' };
return { color: 'transparent', 'text-color': 'white' };
};
@@ -272,13 +277,6 @@ const autoRefreshHandler = (value) => {
}
};
-const stateColors = {
- notice: 'info',
- success: 'positive',
- warning: 'warning',
- alert: 'negative',
-};
-
const totalPriceColor = (ticket) => {
const total = parseInt(ticket.totalWithVat);
if (total > 0 && total < 50) return 'warning';
@@ -286,10 +284,10 @@ const totalPriceColor = (ticket) => {
const formatShippedDate = (date) => {
if (!date) return '-';
- const split1 = date.split('T');
- const [year, month, day] = split1[0].split('-');
- const _date = new Date(year, month - 1, day);
- return toDateFormat(_date);
+ const dateSplit = date.split('T');
+ const [year, month, day] = dateSplit[0].split('-');
+ const newDate = new Date(year, month - 1, day);
+ return toDateFormat(newDate);
};
const openTab = (id) =>
@@ -337,7 +335,6 @@ const openTab = (id) =>
:expr-builder="exprBuilder"
:offset="50"
:columns="columns"
- :visible-columns="visibleColumns"
:right-search="false"
default-mode="table"
auto-load
@@ -422,7 +419,7 @@ const openTab = (id) =>
-