This commit is contained in:
parent
477984076b
commit
6de59c6419
|
@ -164,6 +164,7 @@ const columns = computed(() => [
|
|||
{
|
||||
title: t('Delete'),
|
||||
icon: 'delete',
|
||||
isPrimary: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -226,11 +226,13 @@ const columns = computed(() => [
|
|||
title: t('Clone item'),
|
||||
icon: 'vn:clone',
|
||||
action: cloneItem,
|
||||
isPrimary: true,
|
||||
},
|
||||
{
|
||||
title: t('view Summary'),
|
||||
icon: 'preview',
|
||||
action: (row) => viewSummary(row.id, ItemSummary),
|
||||
isPrimary: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -9,7 +9,8 @@ import useNotify from 'src/composables/useNotify.js';
|
|||
import axios from 'axios';
|
||||
import { toDate } from 'src/filters';
|
||||
import VnTable from 'components/VnTable/VnTable.vue';
|
||||
|
||||
import VnInput from 'src/components/common/VnInput.vue';
|
||||
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||
const { t } = useI18n();
|
||||
const { notify } = useNotify();
|
||||
const stateStore = useStateStore();
|
||||
|
@ -64,7 +65,7 @@ const columns = computed(() => [
|
|||
},
|
||||
{
|
||||
label: t('item.buyRequest.requested'),
|
||||
name: 'saleQuantity',
|
||||
name: 'quantity',
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
|
@ -100,7 +101,7 @@ const columns = computed(() => [
|
|||
{
|
||||
label: t('item.buyRequest.state'),
|
||||
name: 'state',
|
||||
action: (row) => getState(row.isOk),
|
||||
format: (row) => getState(row.isOk),
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
|
@ -333,11 +334,12 @@ onBeforeMount(() => {
|
|||
/>
|
||||
</QDialog>
|
||||
</QPage> -->
|
||||
<VnSubToolbar />
|
||||
<VnTable
|
||||
ref="tableRef"
|
||||
data-key="itemRequest"
|
||||
url="ticketRequests/filter"
|
||||
order="id DESC"
|
||||
order="shippedDate ASC, isOk ASC"
|
||||
:columns="columns"
|
||||
:is-editable="true"
|
||||
auto-load
|
||||
|
@ -355,6 +357,27 @@ onBeforeMount(() => {
|
|||
<WorkerDescriptorProxy :id="row.requesterFk" />
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<template #column-item="{ row }">
|
||||
<span @click.stop disabled="row.isOk != null">
|
||||
<VnInput type="number" v-model="row.item" fill-input />
|
||||
</span>
|
||||
</template>
|
||||
<template #column-achieved="{ row }">
|
||||
<span @click.stop disabled="!request.itemFk || request.isOk != null">
|
||||
<VnInput
|
||||
type="number"
|
||||
v-model="row.achieved"
|
||||
fill-input
|
||||
@keyup.enter="changeQuantity(row)"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
<template #column-concept="{ row }">
|
||||
<span @click.stop disabled="row.isOk != null">
|
||||
{{ row.itemDescription }}
|
||||
</span>
|
||||
</template>
|
||||
</VnTable>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue