#6321 - Negative ticket #158

Open
jsegarra wants to merge 156 commits from 6321_negative_tickets into dev
5 changed files with 90 additions and 86 deletions
Showing only changes of commit 67eb21b707 - Show all commits

View File

@ -352,24 +352,24 @@ export default {
goTo: 'Go to', goTo: 'Go to',
}, },
negative: { negative: {
hour: 'Hora', hour: 'Hour',
id: 'Id_Articulo', id: 'Id Article',
longName:'Articulo', longName: 'Article',
supplier: 'Productor', supplier: 'Supplier',
colour:'Color', colour: 'Colour',
size:'Medida', size: 'Size',
origen: 'Origen', origen: 'Origen',
value:'Negativo', value: 'Negative',
itemFk: 'itemFk', itemFk: 'itemFk',
warehouseFk: 'warehouseFk', warehouseFk: 'warehouseFk',
producer: 'producer', producer: 'producer',
category: 'category', category: 'category',
warehouse: 'warehouse', warehouse: 'warehouse',
lack: 'Negativo', lack: 'Negative',
inkFk: 'inkFk', inkFk: 'inkFk',
timed: 'timed', timed: 'timed',
minTimed: 'minTimed', minTimed: 'minTimed',
} },
}, },
claim: { claim: {
pageTitles: { pageTitles: {

View File

@ -1,13 +1,13 @@
<script setup> <script setup>
import { computed, } from 'vue'; import { computed } from 'vue';
import { toDate, toPercentage, } from 'filters/index'; import { toDate, toPercentage } from 'filters/index';
import CrudModel from 'src/components/CrudModel.vue'; import CrudModel from 'src/components/CrudModel.vue';
import FetchData from 'src/components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import { useDialogPluginComponent } from 'quasar'; import { useDialogPluginComponent } from 'quasar';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
const { t } = useI18n(); const { t } = useI18n();
// const quasar = useQuasar(); const URL_KEY = 'Tickets/ItemLack';
const $props = defineProps({ const $props = defineProps({
id: { id: {
@ -16,6 +16,7 @@ const $props = defineProps({
}, },
}); });
const entityId = computed(() => $props.id);
const columns = computed(() => [ const columns = computed(() => [
{ {
@ -77,8 +78,6 @@ const columns = computed(() => [
}, },
]); ]);
defineEmits([...useDialogPluginComponent.emits]); defineEmits([...useDialogPluginComponent.emits]);
const { dialogRef, onDialogHide } = useDialogPluginComponent(); const { dialogRef, onDialogHide } = useDialogPluginComponent();
@ -87,12 +86,10 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent();
<template> <template>
<CrudModel <CrudModel
v-if="$props.id" v-if="$props.id"
data-key="ClaimEnds" :data-key="URL_KEY"
url="ClaimEnds/filter" :url="`${URL_KEY}/${entityId}/detail`"
save-url="ClaimEnds/crud" ref="itemLackForm"
ref="claimActionsForm"
v-model:selected="selectedRows" v-model:selected="selectedRows"
:filter="{ where: { claimFk: claimId } }"
:default-remove="true" :default-remove="true"
:default-save="false" :default-save="false"
:default-reset="false" :default-reset="false"
@ -152,7 +149,5 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent();
<style lang="scss"> <style lang="scss">
.q-dialog { .q-dialog {
} }
</style> </style>

View File

@ -1,7 +1,6 @@
<script setup> <script setup>
import TicketDescriptor from './TicketDescriptor.vue'; import TicketDescriptor from './TicketDescriptor.vue';
const $props = defineProps({ const $props = defineProps({
id: { id: {
type: Number, type: Number,
@ -13,9 +12,4 @@ const $props = defineProps({
<TicketDescriptor v-if="$props.id" :id="$props.id" /> <TicketDescriptor v-if="$props.id" :id="$props.id" />
</template> </template>
<style lang="scss"> <style lang="scss"></style>
.q-dialog {
.q-card{max-width: fit-content !important;}
}
</style>

View File

@ -56,7 +56,8 @@ const agencies = ref();
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem><QItemSection> <QItem>
<QItemSection>
<VnInput <VnInput
v-model="params.producer" v-model="params.producer"
:label="t('ticket.negative.producer')" :label="t('ticket.negative.producer')"
@ -73,7 +74,8 @@ const agencies = ref();
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem> <QItemSection> <QItem>
<QItemSection>
<VnInput <VnInput
v-model="params.size" v-model="params.size"
:label="t('ticket.negative.size')" :label="t('ticket.negative.size')"
@ -81,7 +83,8 @@ const agencies = ref();
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem> <QItemSection> <QItem>
<QItemSection>
<VnInput <VnInput
v-model="params.origen" v-model="params.origen"
:label="t('ticket.negative.origen')" :label="t('ticket.negative.origen')"
@ -89,8 +92,8 @@ const agencies = ref();
/> />
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem>
<QItem> <QItemSection> <QItemSection>
<VnInput <VnInput
v-model="params.value" v-model="params.value"
:label="t('ticket.negative.value')" :label="t('ticket.negative.value')"

View File

@ -18,8 +18,8 @@ const currentRow= ref(null);
const quasar = useQuasar(); const quasar = useQuasar();
const viewSummary = (value) => { const viewSummary = (value) => {
showTicketDialog.value = true showTicketDialog.value = true;
currentRow.value = value currentRow.value = value;
// quasar.dialog({ // quasar.dialog({
// component: VnConfirm, // component: VnConfirm,
// componentProps: { // componentProps: {
@ -155,7 +155,6 @@ const columns = computed(() => [
</template> </template>
<template #body-cell-icons="{ value }"> <template #body-cell-icons="{ value }">
<QTd align="center"> <QTd align="center">
<QIcon <QIcon
@click.stop="viewSummary(value)" @click.stop="viewSummary(value)"
class="q-ml-md" class="q-ml-md"
@ -175,14 +174,27 @@ const columns = computed(() => [
</template> </template>
</VnPaginate> </VnPaginate>
</div> </div>
<VnConfirm <QDialog ref="dialogRef" v-model="showTicketDialog">
v-model="showTicketDialog" <QCard class="q-pa-sm">
:title="t('confirmGreuges')" <QCardSection class="row items-center q-pb-none">
> <QBtn
icon="close"
:disable="isLoading"
flat
round
dense
v-close-popup
/> </QCardSection
><QCardSection class="row items-center"
><TicketDescriptorDialog
:id="currentRow.itemFk"
></TicketDescriptorDialog></QCardSection></QCard
></QDialog>
<!-- <VnConfirm :title="t('confirmGreuges')">
<template #customHTML> <template #customHTML>
<TicketDescriptorDialog :id="currentRow"></TicketDescriptorDialog>
</template> </template>
</VnConfirm> </VnConfirm> -->
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above> <QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
<QScrollArea class="fit text-grey-8"> <QScrollArea class="fit text-grey-8">
<TicketFilter data-key="NegativeList" /> <TicketFilter data-key="NegativeList" />
@ -207,6 +219,6 @@ const columns = computed(() => [
} }
div.q-dialog__inner > div { div.q-dialog__inner > div {
max-width: fit-content !important; max-width: fit-content !important;
background-color: red !important; // background-color: red !important;
} }
</style> </style>