#7353 fine tunning monitors #624

Merged
jorgep merged 34 commits from 7353-fineTunningMonitor into dev 2024-09-02 07:33:43 +00:00
3 changed files with 12 additions and 23 deletions
Showing only changes of commit 495cd2cc2f - Show all commits

View File

@ -7,11 +7,12 @@ import { toDateFormat } from 'src/filters/date.js';
import VnTable from 'src/components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnRow from 'src/components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import { dateRange } from 'src/filters';
const { t } = useI18n(); const { t } = useI18n();
const from = ref(Date.vnNew()); const dates = dateRange(Date.vnNew());
const to = ref(Date.vnNew()); const from = ref(dates[0]);
const to = ref(dates[1]);
const filter = computed(() => { const filter = computed(() => {
const obj = {}; const obj = {};

View File

@ -8,6 +8,7 @@ import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnInputNumber from 'src/components/common/VnInputNumber.vue'; import VnInputNumber from 'src/components/common/VnInputNumber.vue';
import FetchData from 'src/components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import { dateRange } from 'src/filters';
defineProps({ dataKey: { type: String, required: true } }); defineProps({ dataKey: { type: String, required: true } });
const { t } = useI18n(); const { t } = useI18n();
@ -15,11 +16,7 @@ const warehouses = ref();
const groupedStates = ref(); const groupedStates = ref();
const handleScopeDays = (params, days, callback) => { const handleScopeDays = (params, days, callback) => {
const from = Date.vnNew(); const [from, to] = dateRange(Date.vnNew());
from.setHours(0, 0, 0, 0);
const to = Date.vnNew();
to.setHours(23, 59, 59, 999);
if (!days) { if (!days) {
Object.assign(params, { from, to, scopeDays: 1 }); Object.assign(params, { from, to, scopeDays: 1 });
} else { } else {

View File

@ -25,17 +25,8 @@ const stateOpts = ref([]);
const zoneOpts = ref([]); const zoneOpts = ref([]);
const visibleColumns = ref([]); const visibleColumns = ref([]);
const { viewSummary } = useSummaryDialog(); const { viewSummary } = useSummaryDialog();
const from = computed(() => { const [from, to] = dateRange(Date.vnNew());
const date = Date.vnNew();
date.setHours(0, 0, 0, 0);
return date;
});
const to = computed(() => {
const date = Date.vnNew();
date.setDate(date.getDate() + 1);
date.setHours(23, 59, 59, 999);
return date;
});
function exprBuilder(param, value) { function exprBuilder(param, value) {
switch (param) { switch (param) {
case 'stateFk': case 'stateFk':
@ -377,7 +368,7 @@ const openTab = (id) =>
</QCheckbox> </QCheckbox>
</template> </template>
<template #column-totalProblems="{ row }"> <template #column-totalProblems="{ row }">
<QTd class="no-padding" style="max-width: 50px"> <QTd class="no-padding" style="max-width: 60px">
<QIcon <QIcon
v-if="row.isTaxDataChecked === 0" v-if="row.isTaxDataChecked === 0"
name="vn:no036" name="vn:no036"
@ -442,13 +433,13 @@ const openTab = (id) =>
</QTd> </QTd>
</template> </template>
<template #column-clientFk="{ row }"> <template #column-clientFk="{ row }">
<QTd class="no-padding" @click.stop.prevent> <QTd class="no-padding" @click.stop.prevent :title="row.nickname">
<span class="link">{{ row.nickname }}</span> <span class="link">{{ row.nickname }}</span>
<CustomerDescriptorProxy :id="row.clientFk" /> <CustomerDescriptorProxy :id="row.clientFk" />
</QTd> </QTd>
</template> </template>
<template #column-salesPersonFk="{ row }"> <template #column-salesPersonFk="{ row }">
<QTd class="no-padding" @click.stop.prevent> <QTd class="no-padding" @click.stop.prevent :title="row.userName">
<span class="link">{{ row.userName }}</span> <span class="link">{{ row.userName }}</span>
<WorkerDescriptorProxy :id="row.salesPersonFk" /> <WorkerDescriptorProxy :id="row.salesPersonFk" />
jorgep marked this conversation as resolved Outdated

Creo que falta añadir dashIfEmpty

Creo que falta añadir dashIfEmpty
</QTd> </QTd>
@ -489,7 +480,7 @@ const openTab = (id) =>
</QTd> </QTd>
</template> </template>
<template #column-zoneFk="{ row }"> <template #column-zoneFk="{ row }">
<QTd class="no-padding" @click.stop.prevent> <QTd class="no-padding" @click.stop.prevent :title="row.zoneName">
<span class="link">{{ row.zoneName }}</span> <span class="link">{{ row.zoneName }}</span>
<ZoneDescriptorProxy :id="row.zoneFk" /> <ZoneDescriptorProxy :id="row.zoneFk" />
</QTd> </QTd>