feat: factory article for product
This commit is contained in:
@@ -11,11 +11,19 @@ export const useProductsTableColumns = () => {
|
||||
accessorKey: "article",
|
||||
header: "Артикул",
|
||||
enableSorting: false,
|
||||
size: 100,
|
||||
},
|
||||
{
|
||||
accessorKey: "factoryArticle",
|
||||
header: "Складской артикул",
|
||||
enableSorting: false,
|
||||
size: 100,
|
||||
},
|
||||
{
|
||||
accessorKey: "name",
|
||||
header: "Название",
|
||||
enableSorting: false,
|
||||
size: 150,
|
||||
},
|
||||
{
|
||||
accessorKey: "barcodes",
|
||||
@@ -39,36 +47,43 @@ export const useProductsTableColumns = () => {
|
||||
);
|
||||
},
|
||||
enableSorting: false,
|
||||
size: 50,
|
||||
},
|
||||
{
|
||||
accessorKey: "barcodeTemplate.name",
|
||||
header: "Шаблон штрихкода",
|
||||
enableSorting: false,
|
||||
size: 50,
|
||||
},
|
||||
{
|
||||
accessorKey: "brand",
|
||||
header: "Бренд",
|
||||
enableSorting: false,
|
||||
size: 50,
|
||||
},
|
||||
{
|
||||
accessorKey: "composition",
|
||||
header: "Состав",
|
||||
enableSorting: false,
|
||||
size: 50,
|
||||
},
|
||||
{
|
||||
accessorKey: "color",
|
||||
header: "Цвет",
|
||||
enableSorting: false,
|
||||
size: 50,
|
||||
},
|
||||
{
|
||||
accessorKey: "size",
|
||||
header: "Размер",
|
||||
enableSorting: false,
|
||||
size: 50,
|
||||
},
|
||||
{
|
||||
accessorKey: "additionalInfo",
|
||||
header: "Доп. информация",
|
||||
enableSorting: false,
|
||||
size: 120,
|
||||
},
|
||||
],
|
||||
[]
|
||||
|
||||
@@ -70,6 +70,11 @@ const CreateProductModal = ({
|
||||
label={"Артикул"}
|
||||
{...form.getInputProps("article")}
|
||||
/>
|
||||
<TextInput
|
||||
placeholder={"Введите складской артикул"}
|
||||
label={"Складской артикул"}
|
||||
{...form.getInputProps("factoryArticle")}
|
||||
/>
|
||||
<TagsInput
|
||||
placeholder={
|
||||
!form.values.barcodes.length
|
||||
|
||||
Reference in New Issue
Block a user