diff --git a/back/inventory/serializers.py b/back/inventory/serializers.py
index e8958ee..e1aecff 100644
--- a/back/inventory/serializers.py
+++ b/back/inventory/serializers.py
@@ -22,7 +22,14 @@ class InventorySerializer(serializers.ModelSerializer):
class Meta:
model = InventoryItem
- fields = ["id", "partner", "partner_name", "name", "total_elements"]
+ fields = [
+ "id",
+ "name",
+ "created_at",
+ "total_elements",
+ "partner",
+ "partner_name",
+ ]
def get_total_elements(self, instance):
return Element.objects.filter(inventory=instance).count()
diff --git a/front/helpers.ts b/front/helpers.ts
index 0f620d8..4b44a81 100644
--- a/front/helpers.ts
+++ b/front/helpers.ts
@@ -18,4 +18,13 @@ export type ApiTypeExternal = {
'НаименованиеПолное': string;
Description: string;
Ref_Key: string;
+}
+
+export const makeColumns = (cols: string[]) => {
+ return cols.map(el => {
+ return {
+ key: el,
+ label: el.toUpperCase()
+ }
+ })
}
\ No newline at end of file
diff --git a/front/pages/organization/index.vue b/front/pages/organization/index.vue
index 0a2f221..7653ec5 100644
--- a/front/pages/organization/index.vue
+++ b/front/pages/organization/index.vue
@@ -1,5 +1,5 @@
-
-
+
+
- {{ row.id }}
+ {{ row.name }}
+
+ {{ new Date(row.created_at).toLocaleString() }}
+
\ No newline at end of file