feat: header itemProposal dialog

This commit is contained in:
Javier Segarra 2024-05-15 16:09:26 +02:00
parent 1c15a02a5f
commit b03578eb65
1 changed files with 17 additions and 1 deletions

View File

@ -3,8 +3,10 @@ import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import VnPaginate from 'components/ui/VnPaginate.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import { useSession } from 'src/composables/useSession';
const { t } = useI18n();
const session = useSession();
const $props = defineProps({
item: {
@ -14,6 +16,7 @@ const $props = defineProps({
});
const proposalSelected = ref([]);
const quantity = ref(-1);
const token = session.getTokenMultimedia();
const showProposalDialog = ref(false);
const defaultColumnAttrs = {
@ -138,10 +141,23 @@ async function confirm() {
<QDialog ref="dialogRef" @hide="onDialogHide" v-model="showProposalDialog" full-width>
<QCard class="q-pa-lg">
<QCardSection class="row items-center q-pb-none">
<span class="text-h6 text-grey">{{ t('proposal.title') }}</span>
<QImg
:src="`/api/Images/catalog/50x50/${item.itemFk}/download?access_token=${token}`"
spinner-color="primary"
:ratio="1"
height="50px"
width="50px"
class="image remove-bg"
:alt="'asdads'"
/>
<span class="text-h6">{{ item.longName }}</span>
<QSpace />
<QBtn icon="close" flat round dense v-close-popup />
</QCardSection>
<QCardSection class="row items-center justify-center column items-stretch">
<span class="text-h6 text-grey">{{ t('proposal.title') }}</span>
</QCardSection>
<QCardSection class="row items-center justify-center column items-stretch">
<VnPaginate
data-key="ItemsGetSimilar"