fix: product quantity input and modules dependencies title fixed
This commit is contained in:
@ -21,7 +21,7 @@ const useModulesTableColumns = () => {
|
|||||||
{
|
{
|
||||||
title: (
|
title: (
|
||||||
<Group gap={"sm"}>
|
<Group gap={"sm"}>
|
||||||
<Text>Зависит от модулей</Text>
|
Зависит от модулей
|
||||||
<Tooltip
|
<Tooltip
|
||||||
label={
|
label={
|
||||||
"Зависимости автоматически подключатся при сохранении"
|
"Зависимости автоматически подключатся при сохранении"
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import {
|
|||||||
Flex,
|
Flex,
|
||||||
Image,
|
Image,
|
||||||
NumberInput,
|
NumberInput,
|
||||||
rem,
|
|
||||||
Stack,
|
Stack,
|
||||||
Textarea,
|
Textarea,
|
||||||
Title,
|
Title,
|
||||||
@ -111,7 +110,7 @@ const ProductView: FC<Props> = ({ dealProduct }) => {
|
|||||||
{!dealProduct.product && (
|
{!dealProduct.product && (
|
||||||
<Image
|
<Image
|
||||||
flex={1}
|
flex={1}
|
||||||
radius={rem(10)}
|
radius={"md"}
|
||||||
fit={"cover"}
|
fit={"cover"}
|
||||||
// src={dealProduct.product.imageUrl}
|
// src={dealProduct.product.imageUrl}
|
||||||
/>
|
/>
|
||||||
@ -123,13 +122,14 @@ const ProductView: FC<Props> = ({ dealProduct }) => {
|
|||||||
{/*{value.product.barcodes.join(", ")}*/}
|
{/*{value.product.barcodes.join(", ")}*/}
|
||||||
{/*</Text>*/}
|
{/*</Text>*/}
|
||||||
<NumberInput
|
<NumberInput
|
||||||
mt={rem(10)}
|
|
||||||
suffix={" шт."}
|
suffix={" шт."}
|
||||||
value={dealProduct.quantity}
|
value={dealProduct.quantity}
|
||||||
onChange={quantity =>
|
onChange={quantity =>
|
||||||
isNumber(quantity) && debouncedOnChange({ quantity })
|
isNumber(quantity) && debouncedOnChange({ quantity })
|
||||||
}
|
}
|
||||||
placeholder={"Введите количество товара"}
|
placeholder={"Введите количество товара"}
|
||||||
|
min={1}
|
||||||
|
allowNegative={false}
|
||||||
/>
|
/>
|
||||||
<Textarea
|
<Textarea
|
||||||
defaultValue={dealProduct.comment}
|
defaultValue={dealProduct.comment}
|
||||||
|
|||||||
Reference in New Issue
Block a user