Merge pull request 'feat: refs #8293 addZoneToClaimList' (!1088) from 8293-addZoneToClaimList into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1088 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
cbdfe2b2ec
|
@ -30,7 +30,7 @@ defineExpose({ states });
|
||||||
<span>{{ formatFn(tag.value) }}</span>
|
<span>{{ formatFn(tag.value) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params }">
|
||||||
<div class="q-pa-sm q-gutter-y-sm">
|
<div class="q-pa-sm q-gutter-y-sm">
|
||||||
<VnInput
|
<VnInput
|
||||||
:label="t('claim.customerId')"
|
:label="t('claim.customerId')"
|
||||||
|
@ -49,12 +49,9 @@ defineExpose({ states });
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('Salesperson')"
|
:label="t('Salesperson')"
|
||||||
v-model="params.salesPersonFk"
|
v-model="params.salesPersonFk"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
url="Workers/activeWithInheritedRole"
|
url="Workers/activeWithInheritedRole"
|
||||||
:filter="{ where: { role: 'salesPerson' } }"
|
:filter="{ where: { role: 'salesPerson' } }"
|
||||||
:use-like="false"
|
:use-like="false"
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
option-filter="firstName"
|
option-filter="firstName"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
@ -63,12 +60,9 @@ defineExpose({ states });
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('claim.attendedBy')"
|
:label="t('claim.attendedBy')"
|
||||||
v-model="params.attenderFk"
|
v-model="params.attenderFk"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
url="Workers/activeWithInheritedRole"
|
url="Workers/activeWithInheritedRole"
|
||||||
:filter="{ where: { role: 'salesPerson' } }"
|
:filter="{ where: { role: 'salesPerson' } }"
|
||||||
:use-like="false"
|
:use-like="false"
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
option-filter="firstName"
|
option-filter="firstName"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
@ -77,9 +71,7 @@ defineExpose({ states });
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('claim.state')"
|
:label="t('claim.state')"
|
||||||
v-model="params.claimStateFk"
|
v-model="params.claimStateFk"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
:options="states"
|
:options="states"
|
||||||
option-value="id"
|
|
||||||
option-label="description"
|
option-label="description"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
@ -87,7 +79,6 @@ defineExpose({ states });
|
||||||
/>
|
/>
|
||||||
<VnInputDate
|
<VnInputDate
|
||||||
v-model="params.created"
|
v-model="params.created"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
:label="t('claim.created')"
|
:label="t('claim.created')"
|
||||||
outlined
|
outlined
|
||||||
rounded
|
rounded
|
||||||
|
@ -96,10 +87,7 @@ defineExpose({ states });
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('Item')"
|
:label="t('Item')"
|
||||||
v-model="params.itemFk"
|
v-model="params.itemFk"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
url="Items/withName"
|
url="Items/withName"
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
:use-like="false"
|
:use-like="false"
|
||||||
sort-by="id DESC"
|
sort-by="id DESC"
|
||||||
outlined
|
outlined
|
||||||
|
@ -118,21 +106,26 @@ defineExpose({ states });
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('claim.responsible')"
|
:label="t('claim.responsible')"
|
||||||
v-model="params.claimResponsibleFk"
|
v-model="params.claimResponsibleFk"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
url="Workers/activeWithInheritedRole"
|
url="Workers/activeWithInheritedRole"
|
||||||
:filter="{ where: { role: 'salesPerson' } }"
|
:filter="{ where: { role: 'salesPerson' } }"
|
||||||
:use-like="false"
|
:use-like="false"
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
option-filter="firstName"
|
option-filter="firstName"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
rounded
|
rounded
|
||||||
/>
|
/>
|
||||||
|
<VnSelect
|
||||||
|
:label="t('claim.zone')"
|
||||||
|
v-model="params.zoneFk"
|
||||||
|
url="Zones"
|
||||||
|
:use-like="false"
|
||||||
|
outlined
|
||||||
|
rounded
|
||||||
|
dense
|
||||||
|
/>
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
v-model="params.myTeam"
|
v-model="params.myTeam"
|
||||||
:label="t('params.myTeam')"
|
:label="t('params.myTeam')"
|
||||||
@update:model-value="searchFn()"
|
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -153,6 +146,7 @@ en:
|
||||||
created: Created
|
created: Created
|
||||||
myTeam: My team
|
myTeam: My team
|
||||||
itemFk: Item
|
itemFk: Item
|
||||||
|
zoneFk: Zone
|
||||||
es:
|
es:
|
||||||
params:
|
params:
|
||||||
search: Contiene
|
search: Contiene
|
||||||
|
@ -165,6 +159,7 @@ es:
|
||||||
created: Creada
|
created: Creada
|
||||||
myTeam: Mi equipo
|
myTeam: Mi equipo
|
||||||
itemFk: Artículo
|
itemFk: Artículo
|
||||||
|
zoneFk: Zona
|
||||||
Client Name: Nombre del cliente
|
Client Name: Nombre del cliente
|
||||||
Salesperson: Comercial
|
Salesperson: Comercial
|
||||||
Item: Artículo
|
Item: Artículo
|
||||||
|
|
|
@ -10,6 +10,7 @@ import ClaimSummary from './Card/ClaimSummary.vue';
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||||
|
import ZoneDescriptorProxy from '../Zone/Card/ZoneDescriptorProxy.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { viewSummary } = useSummaryDialog();
|
const { viewSummary } = useSummaryDialog();
|
||||||
|
@ -95,7 +96,12 @@ const columns = computed(() => [
|
||||||
optionLabel: 'description',
|
optionLabel: 'description',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
orderBy: 'priority',
|
orderBy: 'cs.priority',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
label: t('claim.zone'),
|
||||||
|
name: 'zoneFk'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
|
@ -132,7 +138,7 @@ const STATE_COLOR = {
|
||||||
<VnTable
|
<VnTable
|
||||||
data-key="ClaimList"
|
data-key="ClaimList"
|
||||||
url="Claims/filter"
|
url="Claims/filter"
|
||||||
:order="['priority ASC', 'created ASC']"
|
:order="['cs.priority ASC', 'created ASC']"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
redirect="claim"
|
redirect="claim"
|
||||||
:right-search="false"
|
:right-search="false"
|
||||||
|
@ -148,6 +154,12 @@ const STATE_COLOR = {
|
||||||
<VnUserLink :name="row.workerName" :worker-id="row.workerFk" />
|
<VnUserLink :name="row.workerName" :worker-id="row.workerFk" />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
<template #column-zoneFk="{ row }">
|
||||||
|
<span class="link" @click.stop>
|
||||||
|
{{ row.zoneName }}
|
||||||
|
<ZoneDescriptorProxy :id="row.zoneId" />
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue