diff --git a/src/pages/Customer/Card/CustomerConsumption.vue b/src/pages/Customer/Card/CustomerConsumption.vue index f0d8dea47..cf80e42eb 100644 --- a/src/pages/Customer/Card/CustomerConsumption.vue +++ b/src/pages/Customer/Card/CustomerConsumption.vue @@ -61,6 +61,60 @@ const columns = computed(() => [ columnFilter: false, cardVisible: true, }, + { + align: 'left', + name: 'buyerId', + label: t('components.itemsFilterPanel.salesPersonFk'), + component: 'select', + attrs: { + url: 'TicketRequests/getItemTypeWorker', + optionLabel: 'nickname', + optionValue: 'id', + + fields: ['id', 'nickname'], + sortBy: ['nickname ASC'], + optionFilter: 'firstName', + }, + cardVisible: false, + visible: false, + }, + // { + // align: 'left', + // name: 'typeId', + // label: t('globals.pageTitles.itemType'), + // component: 'select', + // attrs: ({ model }) => { + // return { + // url: 'ItemTypes', + // optionLabel: 'name', + // optionValue: (row) => row.category?.name, + // optionCaption: (row) => row.category?.name, + // template: ``, + // htmlContent: ``, + // include: 'category', + // fields: ['id', 'name', 'categoryFk'], + // sortBy: ['name ASC'], + // 'phone-number': model, + // }; + // }, + // attrs: { + // }, + // cardVisible: false, + // visible: false, + // }, + // { + // align: 'left', + // name: 'categoryId', + // label: t('item.list.category'), + // component: 'select', + // attrs: { + // url: 'ItemCategories', + // fields: ['id', 'name'], + // sortBy: ['name ASC'], + // }, + // cardVisible: false, + // visible: false, + // }, { name: 'description', align: 'left', @@ -119,7 +173,7 @@ const openSendEmailDialog = async () => { openConfirmationModal( t('The consumption report will be sent'), t('Please, confirm'), - () => sendCampaignMetricsEmail({ address: arrayData.store.data.email }) + () => sendCampaignMetricsEmail({ address: arrayData.store.data.email }), ); }; const sendCampaignMetricsEmail = ({ address }) => { @@ -152,7 +206,7 @@ const updateDateParams = (value, params) => { v-if="campaignList" data-key="CustomerConsumption" url="Clients/consumption" - :order="['itemTypeFk', 'itemName', 'itemSize', 'description']" + :order="['itemTypeFk', 'itemName', 'itemSize', 'description']" :filter="{ where: { clientFk: route.params.id } }" :columns="columns" search-url="consumption" @@ -204,6 +258,40 @@ const updateDateParams = (value, params) => {