feat: upodates
This commit is contained in:
parent
0a3703532e
commit
b5db786b06
|
@ -403,6 +403,11 @@ function handleOnDataSaved(_) {
|
||||||
<template #top-left v-if="!$props.withoutHeader">
|
<template #top-left v-if="!$props.withoutHeader">
|
||||||
<slot name="top-left"></slot>
|
<slot name="top-left"></slot>
|
||||||
</template>
|
</template>
|
||||||
|
<template #body-selection="scope">
|
||||||
|
<pre>{{ scope }}</pre>
|
||||||
|
|
||||||
|
<!-- <slot name="body-selection" :data="scope"></slot> -->
|
||||||
|
</template>
|
||||||
<template #top-right v-if="!$props.withoutHeader">
|
<template #top-right v-if="!$props.withoutHeader">
|
||||||
<VnVisibleColumn
|
<VnVisibleColumn
|
||||||
v-if="isTableMode"
|
v-if="isTableMode"
|
||||||
|
|
|
@ -99,7 +99,6 @@ const title = ref();
|
||||||
:fields="['id', 'nickname']"
|
:fields="['id', 'nickname']"
|
||||||
sort-by="nickname ASC"
|
sort-by="nickname ASC"
|
||||||
:rules="validate('client.salesPersonFk')"
|
:rules="validate('client.salesPersonFk')"
|
||||||
:use-like="false"
|
|
||||||
emit-value
|
emit-value
|
||||||
auto-load
|
auto-load
|
||||||
>
|
>
|
||||||
|
|
|
@ -92,7 +92,7 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit
|
||||||
<QTooltip>{{ t('customer.card.isDisabled') }}</QTooltip>
|
<QTooltip>{{ t('customer.card.isDisabled') }}</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
<QIcon
|
<QIcon
|
||||||
v-if="!entity.substitutionAllowed"
|
v-if="!entity?.substitutionAllowed"
|
||||||
name="help"
|
name="help"
|
||||||
size="xs"
|
size="xs"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
@ -100,7 +100,7 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit
|
||||||
<QTooltip>{{ t('Disabled substitution') }}</QTooltip>
|
<QTooltip>{{ t('Disabled substitution') }}</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
<QIcon
|
<QIcon
|
||||||
v-if="entity.substitutionAllowed"
|
v-if="entity?.substitutionAllowed"
|
||||||
name="help"
|
name="help"
|
||||||
size="xs"
|
size="xs"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|
|
@ -281,16 +281,21 @@ onUnmounted(() => {});
|
||||||
/></div
|
/></div
|
||||||
></template>
|
></template>
|
||||||
<!-- <template #body="scope">{{ scope }}</template> -->
|
<!-- <template #body="scope">{{ scope }}</template> -->
|
||||||
<template #body-selection="scope">
|
<template #body-selection>
|
||||||
<QTd align="center" v-if="$props.replaceAction"
|
<QTd align="center" v-if="$props.replaceAction">
|
||||||
><QCheckbox
|
<!-- <pre>
|
||||||
|
{{ row.selected }}
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
{{ itemLack }} -->
|
||||||
|
<!-- <QCheckbox
|
||||||
v-model="scope.selected"
|
v-model="scope.selected"
|
||||||
:disable="!(scope.row.available >= itemLack.lack * -1)"
|
:disable="!(scope.row.available >= itemLack.lack * -1)"
|
||||||
>
|
>
|
||||||
<QTooltip v-if="!(scope.row.available >= itemLack.lack * -1)">
|
<QTooltip v-if="!(scope.row.available >= itemLack.lack * -1)">
|
||||||
Nop</QTooltip
|
Nop</QTooltip
|
||||||
>
|
>
|
||||||
</QCheckbox>
|
</QCheckbox> -->
|
||||||
<!-- <div v-else class="q-ml-sm">
|
<!-- <div v-else class="q-ml-sm">
|
||||||
<QIcon name="info" size="sm"></QIcon>
|
<QIcon name="info" size="sm"></QIcon>
|
||||||
</div
|
</div
|
||||||
|
@ -354,16 +359,14 @@ onUnmounted(() => {});
|
||||||
</template> -->
|
</template> -->
|
||||||
|
|
||||||
<template #column-price2="{ row }">
|
<template #column-price2="{ row }">
|
||||||
<QTd
|
<!-- <QTd align="center"> -->
|
||||||
class="col"
|
|
||||||
align="center"
|
|
||||||
:class="[conditionalValuePrice(row.price2)]"
|
|
||||||
>
|
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{ toCurrency(row.price2) }}
|
{{ toCurrency(row.price2) }}
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
{{ toCurrency(row.price2) }}
|
<span :class="[conditionalValuePrice(row.price2)]">{{
|
||||||
</QTd>
|
toCurrency(row.price2)
|
||||||
|
}}</span>
|
||||||
|
<!-- </QTd> -->
|
||||||
</template>
|
</template>
|
||||||
<template #column-difference="{ row }">
|
<template #column-difference="{ row }">
|
||||||
<!-- <pre>asdad{{ row }}</pre> -->
|
<!-- <pre>asdad{{ row }}</pre> -->
|
||||||
|
|
|
@ -19,6 +19,8 @@ import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import VnImg from 'src/components/ui/VnImg.vue';
|
import VnImg from 'src/components/ui/VnImg.vue';
|
||||||
import TicketLackTable from './TicketLackTable.vue';
|
import TicketLackTable from './TicketLackTable.vue';
|
||||||
import ItemProposalProxy from 'src/pages/Item/components/ItemProposalProxy.vue';
|
import ItemProposalProxy from 'src/pages/Item/components/ItemProposalProxy.vue';
|
||||||
|
import { toCurrency } from 'filters/index';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const URL_KEY = 'Tickets/ItemLack';
|
const URL_KEY = 'Tickets/ItemLack';
|
||||||
const editableStates = ref([]);
|
const editableStates = ref([]);
|
||||||
|
@ -217,7 +219,7 @@ const replaceItem = () => {
|
||||||
</template>
|
</template>
|
||||||
</VnSubToolbar>
|
</VnSubToolbar>
|
||||||
<QPage>
|
<QPage>
|
||||||
<div class="full-width q-pa-md" style="padding-bottom: 0px">
|
<div class="full-width" style="padding-bottom: 0px">
|
||||||
<!-- <p>item:{{ item }}</p>
|
<!-- <p>item:{{ item }}</p>
|
||||||
<p>itemLack:{{ itemLack }}</p>
|
<p>itemLack:{{ itemLack }}</p>
|
||||||
<p>selectedRows:{{ selectedRows }}</p>
|
<p>selectedRows:{{ selectedRows }}</p>
|
||||||
|
@ -228,12 +230,20 @@ const replaceItem = () => {
|
||||||
ref="itemLackForm"
|
ref="itemLackForm"
|
||||||
@on-fetch="copyOriginalRowsData"
|
@on-fetch="copyOriginalRowsData"
|
||||||
auto-load
|
auto-load
|
||||||
|
class="full-width q-pa-md"
|
||||||
>
|
>
|
||||||
<template #body>
|
<template #body>
|
||||||
<!-- <VnLv >
|
<!-- <VnLv >
|
||||||
<template #label> -->
|
<template #label> -->
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<VnImg :id="item.id" class="rounded image-wrapper"></VnImg>
|
<VnImg :id="item.id" class="rounded image-wrapper"></VnImg>
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
"
|
||||||
|
>
|
||||||
<QBadge
|
<QBadge
|
||||||
class="q-ml-xs"
|
class="q-ml-xs"
|
||||||
v-if="itemLack"
|
v-if="itemLack"
|
||||||
|
@ -241,6 +251,13 @@ const replaceItem = () => {
|
||||||
:color="itemLack.lack === 0 ? 'green' : 'red'"
|
:color="itemLack.lack === 0 ? 'green' : 'red'"
|
||||||
:label="itemLack.lack"
|
:label="itemLack.lack"
|
||||||
/>
|
/>
|
||||||
|
<QBadge
|
||||||
|
class="q-ml-xs q-mt-xs"
|
||||||
|
v-if="itemLack"
|
||||||
|
:label="toCurrency(itemLack.lack)"
|
||||||
|
outline
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<QBtn flat class="link text-blue">
|
<QBtn flat class="link text-blue">
|
||||||
{{ item.longName }}
|
{{ item.longName }}
|
||||||
<ItemDescriptorProxy :id="entityId" />
|
<ItemDescriptorProxy :id="entityId" />
|
||||||
|
|
|
@ -238,7 +238,6 @@ const tableRef = ref(null);
|
||||||
"
|
"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
{{ editableStates }}
|
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
:data-key="URL_KEY"
|
:data-key="URL_KEY"
|
||||||
|
|
Loading…
Reference in New Issue