fix: product quantity input and modules dependencies title fixed

This commit is contained in:
2025-09-18 20:37:35 +04:00
parent 053c1da5db
commit 79189bea9a
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ const useModulesTableColumns = () => {
{ {
title: ( title: (
<Group gap={"sm"}> <Group gap={"sm"}>
<Text>Зависит от модулей</Text> Зависит от модулей
<Tooltip <Tooltip
label={ label={
"Зависимости автоматически подключатся при сохранении" "Зависимости автоматически подключатся при сохранении"

View File

@ -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}