feat: showLabelerDialog
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
d2292601de
commit
814056d920
|
@ -1,30 +1,15 @@
|
|||
<script setup>
|
||||
import { ref, computed, onMounted, onBeforeMount } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { computed } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { QBtn } from 'quasar';
|
||||
|
||||
import VnPaginate from 'src/components/ui/VnPaginate.vue';
|
||||
import FetchData from 'src/components/FetchData.vue';
|
||||
import VnSelect from 'components/common/VnSelect.vue';
|
||||
import VnInput from 'src/components/common/VnInput.vue';
|
||||
import FetchedTags from 'components/ui/FetchedTags.vue';
|
||||
import VnConfirm from 'components/ui/VnConfirm.vue';
|
||||
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||
|
||||
import { useQuasar } from 'quasar';
|
||||
import { toCurrency } from 'src/filters';
|
||||
import axios from 'axios';
|
||||
import useNotify from 'src/composables/useNotify.js';
|
||||
import { usePrintService } from 'composables/usePrintService';
|
||||
const { openReport } = usePrintService();
|
||||
|
||||
const quasar = useQuasar();
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const { t } = useI18n();
|
||||
const { notify } = useNotify();
|
||||
const $props = defineProps({
|
||||
id: {
|
||||
type: String,
|
||||
|
@ -32,7 +17,6 @@ const $props = defineProps({
|
|||
default: null,
|
||||
},
|
||||
});
|
||||
const rowsSelected = ref([]);
|
||||
const entityId = computed(() => $props.id || route.params.id);
|
||||
|
||||
const entriesTableColumns = computed(() => [
|
||||
|
@ -112,30 +96,28 @@ const entriesTableColumns = computed(() => [
|
|||
<QTable
|
||||
:rows="rows"
|
||||
:columns="entriesTableColumns"
|
||||
selection="multiple"
|
||||
row-key="id"
|
||||
class="full-width q-mt-md"
|
||||
flat
|
||||
dense
|
||||
class="q-ml-lg"
|
||||
:grid="$q.screen.lt.md"
|
||||
v-model:selected="rowsSelected"
|
||||
:no-data-label="t('globals.noResults')"
|
||||
>
|
||||
<template #body="props">
|
||||
<QTr>
|
||||
<QTd>
|
||||
<!-- <QTd>
|
||||
<QCheckbox v-model="props.selected" />
|
||||
</QTd>
|
||||
</QTd> -->
|
||||
<QTd v-for="col in props.cols" :key="col.name">
|
||||
{{ col.value }}
|
||||
<FetchedTags
|
||||
v-if="col.name === 'item'"
|
||||
:item="props.row['item']"
|
||||
></FetchedTags>
|
||||
</QTd>
|
||||
</QTr>
|
||||
</template>
|
||||
</QTable> </template
|
||||
></VnPaginate> </QCardSection
|
||||
></QCard>
|
||||
</QTable>
|
||||
</template></VnPaginate
|
||||
>
|
||||
</QCardSection></QCard
|
||||
>
|
||||
</QDialog>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ const columns = computed(() => [
|
|||
},
|
||||
{
|
||||
align: 'left',
|
||||
label: t('globals.shipped'),
|
||||
label: t('shipped'),
|
||||
name: 'shipped',
|
||||
isTitle: false,
|
||||
create: true,
|
||||
|
@ -47,7 +47,7 @@ const columns = computed(() => [
|
|||
},
|
||||
{
|
||||
align: 'left',
|
||||
label: t('globals.landed'),
|
||||
label: t('landed'),
|
||||
name: 'landed',
|
||||
isTitle: false,
|
||||
create: true,
|
||||
|
@ -69,7 +69,7 @@ const columns = computed(() => [
|
|||
computed,
|
||||
actions: [
|
||||
{
|
||||
title: t('Print buys'),
|
||||
title: t('printBuys'),
|
||||
icon: 'print',
|
||||
action: (row) => printBuys(row.id),
|
||||
},
|
||||
|
@ -121,7 +121,6 @@ import VnTable from 'components/VnTable/VnTable.vue';
|
|||
|
||||
<i18n>
|
||||
es:
|
||||
Print buys: Imprimir etiquetas
|
||||
Inventory entry: Es inventario
|
||||
Virtual entry: Es una redada
|
||||
Search entries: Buscar entradas
|
||||
|
|
|
@ -9,3 +9,4 @@ entryFilter:
|
|||
reference: Reference
|
||||
landed: Landed
|
||||
shipped: Shipped
|
||||
printBuys: Print buys
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
Search entries: Buscar entradas
|
||||
You can search by entry reference: Puedes buscar por referencia de la entrada
|
||||
|
||||
entryList:
|
||||
eti: Etiquetas
|
||||
list:
|
||||
|
@ -12,3 +13,4 @@ entryFilter:
|
|||
|
||||
landed: F. llegada
|
||||
shipped: F. salida
|
||||
printBuys: Imprimir etiquetas
|
||||
|
|
Loading…
Reference in New Issue