diff --git a/src/pages/Order/Card/OrderSummary.vue b/src/pages/Order/Card/OrderSummary.vue index cb708fb1d..09c47d4a7 100644 --- a/src/pages/Order/Card/OrderSummary.vue +++ b/src/pages/Order/Card/OrderSummary.vue @@ -180,15 +180,17 @@ const detailsColumns = ref([ - -
- {{ props.row.item.name }} - - {{ props.row.item.subName }} - + +
+
+ {{ props.row.item.name }} + + {{ props.row.item.subName }} + +
@@ -228,24 +230,13 @@ const detailsColumns = ref([ } .description { - display: flex; - flex-direction: column; - justify-content: center; text-align: left; - height: auto; - padding-top: 12px; - padding-bottom: 12px; + padding-top: 15px; + padding-bottom: 15px; .name { - display: flex; - align-items: center; - padding-bottom: 8px; - - & > * { - flex: 1; - } - .subName { + margin-left: 5%; text-transform: uppercase; color: var(--vn-label-color); } diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue index fa82540e6..e0261fc19 100644 --- a/src/pages/Order/OrderList.vue +++ b/src/pages/Order/OrderList.vue @@ -29,7 +29,7 @@ const columns = computed(() => [ }, { align: 'left', - name: 'clientName', + name: 'clientFk', label: t('module.customer'), isTitle: true, cardVisible: true, @@ -41,20 +41,26 @@ const columns = computed(() => [ columnField: { component: null, }, + format: (row) => row?.clientName, }, { align: 'left', - name: 'name', + name: 'salesPersonFk', label: t('module.salesPerson'), - component: 'select', - attrs: { - url: 'Workers/activeWithInheritedRole', - fields: ['id', 'name'], - where: { role: 'salesPerson' }, - }, - columnField: { - component: null, + columnFilter: { + component: 'select', + inWhere: true, + attrs: { + url: 'Workers/activeWithInheritedRole', + fields: ['id', 'name'], + where: { role: 'salesPerson' }, + useLike: false, + optionValue: 'id', + optionLabel: 'name', + optionFilter: 'firstName', + }, }, + format: (row) => row?.name, }, { align: 'left', @@ -92,22 +98,30 @@ const columns = computed(() => [ }, { align: 'left', - name: 'agencyName', + name: 'agencyModeFk', label: t('module.agency'), component: 'select', cardVisible: true, attrs: { - url: 'Agencies', + url: 'agencyModes', fields: ['id', 'name'], + find: { + value: 'agencyModeFk', + label: 'agencyName', + }, }, columnField: { component: null, }, + format: (row) => row?.agencyName, }, { align: 'left', name: 'total', label: t('module.total'), + columnFilter: { + inWhere: true, + }, format: ({ total }) => toCurrency(total), cardVisible: true, },