#6321 - Negative ticket #158

Open
jsegarra wants to merge 156 commits from 6321_negative_tickets into dev
2 changed files with 87 additions and 29 deletions
Showing only changes of commit 674b8bb1dc - Show all commits

View File

@ -118,16 +118,52 @@ const tableColumnComponents = computed(() => ({
props: {},
event: () => ({}),
},
shipped: {
component: 'span',
props: {},
event: () => ({}),
},
theoreticalhour: {
component: 'span',
props: {},
event: () => ({}),
},
state: {
component: VnSelectFilter,
type: 'select',
filterValue: null,
attrs: {
'option-value': 'id',
'option-label': 'name',
'emit-value': false,
'map-options': false,
'use-input': false,
'hide-selected': false,
options: editableStates.value,
},
event: getInputEvents,
},
agName: {
component: 'span',
props: {},
event: () => ({}),
},
zoneName: {
component: 'span',
props: {},
event: () => ({}),
},
nickname: {
component: 'span',
props: {},
event: () => ({}),
},
name: {
component: 'span',
props: {},
event: () => ({}),
},
// name: {
// component: 'span',
// props: {},
// event: () => ({}),
// },
quantity: {
component: VnInput,
props: {
@ -146,22 +182,6 @@ const tableColumnComponents = computed(() => ({
},
event: getInputEvents,
},
state: {
component: VnSelectFilter,
type: 'select',
filterValue: null,
attrs: {
'option-value': 'id',
'option-label': 'name',
'emit-value': false,
'map-options': false,
'use-input': false,
'hide-selected': false,
options: editableStates.value,
},
event: getInputEvents,
},
alertLevelCode: {
component: 'span',
@ -200,15 +220,15 @@ const columns = computed(() => [
align: 'left',
},
{
name: 'nickname',
label: t('ticket.negative.detail.nickname'),
field: 'nickname',
name: 'shipped',
label: t('ticket.negative.detail.shipped'),
field: 'shipped',
align: 'left',
},
{
name: 'name',
label: t('ticket.negative.detail.name'),
field: 'name',
name: 'theoreticalhour',
label: t('ticket.negative.detail.theoreticalhour'),
field: 'theoreticalhour',
align: 'left',
},
{
@ -217,6 +237,31 @@ const columns = computed(() => [
field: 'stateId',
align: 'left',
},
{
name: 'agName',
label: t('ticket.negative.detail.agName'),
field: 'agName',
align: 'left',
},
{
name: 'zoneName',
label: t('ticket.negative.detail.zoneName'),
field: 'zoneName',
align: 'left',
},
{
name: 'nickname',
label: t('ticket.negative.detail.nickname'),
field: 'nickname',
align: 'left',
},
// {
// name: 'name',
// label: t('ticket.negative.detail.name'),
// field: 'name',
// align: 'left',
// },
{
name: 'quantity',
label: t('ticket.negative.detail.quantity'),
@ -256,7 +301,7 @@ const columns = computed(() => [
defineEmits([...useDialogPluginComponent.emits]);
const { dialogRef, onDialogHide } = useDialogPluginComponent();
// const { dialogRef, onDialogHide } = useDialogPluginComponent();
// async function changeState(value) {
/* if (!ticket.value.id) return;

View File

@ -167,8 +167,21 @@ const columns = computed(() => [
</QTd>
</template>
<template #body-cell-icons="{ value }">
<template #body-cell-icons="{ row, value }">
<QTd align="center">
<QIcon
@click.stop="updateNegativeOrigin(row)"
class="q-ml-md"
color="primary"
name="outgoing_email"
size="sm"
>
<QTooltip>
{{ t('Preview') }}
</QTooltip>
<!-- <TicketDescriptorProxy :id="value" /> -->
</QIcon>
<QIcon
@click.stop="viewSummary(value)"
class="q-ml-md"