fix: itemfixedPrice inputs
This commit is contained in:
parent
d13cab0a24
commit
77ad96a58b
|
@ -76,16 +76,8 @@ const columns = computed(() => [
|
||||||
name: 'rate2',
|
name: 'rate2',
|
||||||
...defaultColumnAttrs,
|
...defaultColumnAttrs,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnField: {
|
component: 'input',
|
||||||
class: 'expand',
|
type: 'number',
|
||||||
component: 'input',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
columnFilter: {
|
|
||||||
class: 'expand',
|
|
||||||
component: 'input',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('item.fixedPrice.packingPrice'),
|
label: t('item.fixedPrice.packingPrice'),
|
||||||
|
@ -93,35 +85,18 @@ const columns = computed(() => [
|
||||||
name: 'rate3',
|
name: 'rate3',
|
||||||
...defaultColumnAttrs,
|
...defaultColumnAttrs,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnField: {
|
component: 'input',
|
||||||
class: 'expand',
|
type: 'number',
|
||||||
component: 'input',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
columnFilter: {
|
|
||||||
class: 'expand',
|
|
||||||
component: 'input',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
label: t('item.fixedPrice.minPrice'),
|
label: t('item.fixedPrice.minPrice'),
|
||||||
field: 'minPrice',
|
field: 'minPrice',
|
||||||
columnClass: 'shrink',
|
|
||||||
name: 'minPrice',
|
name: 'minPrice',
|
||||||
...defaultColumnAttrs,
|
...defaultColumnAttrs,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnField: {
|
component: 'input',
|
||||||
class: 'expand',
|
type: 'number',
|
||||||
component: 'input',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
columnFilter: {
|
|
||||||
class: 'expand',
|
|
||||||
component: 'input',
|
|
||||||
type: 'number',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('item.fixedPrice.started'),
|
label: t('item.fixedPrice.started'),
|
||||||
|
@ -162,16 +137,9 @@ const columns = computed(() => [
|
||||||
name: 'warehouseFk',
|
name: 'warehouseFk',
|
||||||
...defaultColumnAttrs,
|
...defaultColumnAttrs,
|
||||||
columnClass: 'shrink',
|
columnClass: 'shrink',
|
||||||
columnFilter: {
|
component: 'select',
|
||||||
component: 'select',
|
|
||||||
},
|
options: warehousesOptions,
|
||||||
columnField: {
|
|
||||||
component: 'select',
|
|
||||||
class: 'expand',
|
|
||||||
},
|
|
||||||
attrs: {
|
|
||||||
options: warehousesOptions,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
|
@ -518,29 +486,35 @@ function handleOnDataSave({ CrudModelRef }) {
|
||||||
</span>
|
</span>
|
||||||
<span class="subName">{{ row.subName }}</span>
|
<span class="subName">{{ row.subName }}</span>
|
||||||
<ItemDescriptorProxy :id="row.itemFk" />
|
<ItemDescriptorProxy :id="row.itemFk" />
|
||||||
<FetchedTags style="width: max-content; max-width: 220px" :item="row" />
|
<FetchedTags :item="row" />
|
||||||
</template>
|
</template>
|
||||||
<template #column-rate2="props">
|
<template #column-rate2="props">
|
||||||
<VnInput
|
<QTd class="col">
|
||||||
mask="###.##"
|
<VnInput
|
||||||
v-model.number="props.row.rate2"
|
type="currency"
|
||||||
v-on="getRowUpdateInputEvents(props)"
|
style="width: 75px"
|
||||||
>
|
v-model.number="props.row.rate2"
|
||||||
<template #append>€</template>
|
v-on="getRowUpdateInputEvents(props)"
|
||||||
</VnInput>
|
>
|
||||||
|
<template #append>€</template>
|
||||||
|
</VnInput>
|
||||||
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #column-rate3="props">
|
<template #column-rate3="props">
|
||||||
<VnInput
|
<QTd class="col">
|
||||||
mask="###.##"
|
<VnInput
|
||||||
v-model.number="props.row.rate3"
|
style="width: 75px"
|
||||||
v-on="getRowUpdateInputEvents(props)"
|
type="currency"
|
||||||
>
|
v-model.number="props.row.rate3"
|
||||||
<template #append>€</template>
|
v-on="getRowUpdateInputEvents(props)"
|
||||||
</VnInput>
|
>
|
||||||
|
<template #append>€</template>
|
||||||
|
</VnInput>
|
||||||
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #column-minPrice="props">
|
<template #column-minPrice="props">
|
||||||
<QTd class="col">
|
<QTd class="col">
|
||||||
<div class="row" style="width: 115px">
|
<div class="row">
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:model-value="props.row.hasMinPrice"
|
:model-value="props.row.hasMinPrice"
|
||||||
@update:model-value="updateMinPrice($event, props)"
|
@update:model-value="updateMinPrice($event, props)"
|
||||||
|
@ -549,6 +523,8 @@ function handleOnDataSave({ CrudModelRef }) {
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInput
|
||||||
class="col"
|
class="col"
|
||||||
|
type="currency"
|
||||||
|
mask="###.##"
|
||||||
:disable="props.row.hasMinPrice === 1"
|
:disable="props.row.hasMinPrice === 1"
|
||||||
v-model.number="props.row.minPrice"
|
v-model.number="props.row.minPrice"
|
||||||
v-on="getRowUpdateInputEvents(props)"
|
v-on="getRowUpdateInputEvents(props)"
|
||||||
|
@ -577,15 +553,17 @@ function handleOnDataSave({ CrudModelRef }) {
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #column-warehouseFk="props">
|
<template #column-warehouseFk="props">
|
||||||
<VnSelect
|
<QTd class="col">
|
||||||
style="max-width: 150px"
|
<VnSelect
|
||||||
:options="warehousesOptions"
|
style="max-width: 150px"
|
||||||
hide-selected
|
:options="warehousesOptions"
|
||||||
option-label="name"
|
hide-selected
|
||||||
option-value="id"
|
option-label="name"
|
||||||
v-model="props.row.warehouseFk"
|
option-value="id"
|
||||||
v-on="getRowUpdateInputEvents(props, false, 'select')"
|
v-model="props.row.warehouseFk"
|
||||||
/>
|
v-on="getRowUpdateInputEvents(props, false, 'select')"
|
||||||
|
/>
|
||||||
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #column-deleteAction="{ row, rowIndex }">
|
<template #column-deleteAction="{ row, rowIndex }">
|
||||||
<QIcon
|
<QIcon
|
||||||
|
|
Loading…
Reference in New Issue