#7897 - masterTest_24_36 #669

Merged
jsegarra merged 115 commits from 7897_masterTest_24_36 into master 2024-09-03 06:37:49 +00:00
2 changed files with 40 additions and 35 deletions
Showing only changes of commit d588db05ac - Show all commits

View File

@ -180,9 +180,10 @@ const detailsColumns = ref([
<ItemDescriptorProxy :id="props.row.item?.id" /> <ItemDescriptorProxy :id="props.row.item?.id" />
</span> </span>
</QTd> </QTd>
<QTd key="description" :props="props" class="description"> <QTd key="description" :props="props">
<div class="description">
<div class="name"> <div class="name">
<span>{{ props.row.item.name }}</span> {{ props.row.item.name }}
<span <span
v-if="props.row.item.subName" v-if="props.row.item.subName"
class="subName" class="subName"
@ -190,6 +191,7 @@ const detailsColumns = ref([
{{ props.row.item.subName }} {{ props.row.item.subName }}
</span> </span>
</div> </div>
</div>
<FetchedTags :item="props.row.item" :max-length="5" /> <FetchedTags :item="props.row.item" :max-length="5" />
</QTd> </QTd>
<QTd key="quantity" :props="props"> <QTd key="quantity" :props="props">
@ -228,24 +230,13 @@ const detailsColumns = ref([
} }
.description { .description {
display: flex;
flex-direction: column;
justify-content: center;
text-align: left; text-align: left;
height: auto; padding-top: 15px;
padding-top: 12px; padding-bottom: 15px;
padding-bottom: 12px;
.name { .name {
display: flex;
align-items: center;
padding-bottom: 8px;
& > * {
flex: 1;
}
.subName { .subName {
margin-left: 5%;
text-transform: uppercase; text-transform: uppercase;
color: var(--vn-label-color); color: var(--vn-label-color);
} }

View File

@ -29,7 +29,7 @@ const columns = computed(() => [
}, },
{ {
align: 'left', align: 'left',
name: 'clientName', name: 'clientFk',
label: t('module.customer'), label: t('module.customer'),
isTitle: true, isTitle: true,
cardVisible: true, cardVisible: true,
@ -41,20 +41,26 @@ const columns = computed(() => [
columnField: { columnField: {
component: null, component: null,
}, },
format: (row) => row?.clientName,
}, },
{ {
align: 'left', align: 'left',
name: 'name', name: 'salesPersonFk',
label: t('module.salesPerson'), label: t('module.salesPerson'),
columnFilter: {
component: 'select', component: 'select',
inWhere: true,
attrs: { attrs: {
url: 'Workers/activeWithInheritedRole', url: 'Workers/activeWithInheritedRole',
fields: ['id', 'name'], fields: ['id', 'name'],
where: { role: 'salesPerson' }, where: { role: 'salesPerson' },
useLike: false,
optionValue: 'id',
optionLabel: 'name',
optionFilter: 'firstName',
}, },
columnField: {
component: null,
}, },
format: (row) => row?.name,
}, },
{ {
align: 'left', align: 'left',
@ -92,22 +98,30 @@ const columns = computed(() => [
}, },
{ {
align: 'left', align: 'left',
name: 'agencyName', name: 'agencyModeFk',
label: t('module.agency'), label: t('module.agency'),
component: 'select', component: 'select',
cardVisible: true, cardVisible: true,
attrs: { attrs: {
url: 'Agencies', url: 'agencyModes',
fields: ['id', 'name'], fields: ['id', 'name'],
find: {
value: 'agencyModeFk',
label: 'agencyName',
},
}, },
columnField: { columnField: {
component: null, component: null,
}, },
format: (row) => row?.agencyName,
}, },
{ {
align: 'left', align: 'left',
name: 'total', name: 'total',
label: t('module.total'), label: t('module.total'),
columnFilter: {
inWhere: true,
},
format: ({ total }) => toCurrency(total), format: ({ total }) => toCurrency(total),
cardVisible: true, cardVisible: true,
}, },