From cd39e8022495af8bbf92af4ade7a9c842ba96f93 Mon Sep 17 00:00:00 2001 From: Rustem Date: Tue, 11 Feb 2025 10:43:41 +0500 Subject: [PATCH] fix and auto app --- modules/applications/app.json | 547 +---------------------------- modules/auto/app.json | 563 +++++++++++------------------- modules/main/views/main.blade.php | 2 - modules/owner_contracts/app.json | 547 +---------------------------- modules/owners/app.json | 547 +---------------------------- 5 files changed, 222 insertions(+), 1984 deletions(-) diff --git a/modules/applications/app.json b/modules/applications/app.json index 6b283eb..563f456 100644 --- a/modules/applications/app.json +++ b/modules/applications/app.json @@ -1,545 +1,8 @@ { "module": "pipicar", - "name": "pipicar.auto", - "type": "crud", - "title": "Автомобили", - "data": { - "table": "auto", - "pk": "id", - "limit": 25, - "sort_order": "asc", - "sort_field": "code", - "segment": true, - "timestamp": false, - "fields": { - "id": { - "type": "pk" - }, - "code": { - "type": "string", - "validation": "required" - }, - "name_ru": { - "type": "text" - }, - "name_kz": { - "type": "text" - }, - "account_type": { - "type": "foreign", - "table": "ref_base_group", - "foreign": "id", - "display": [ - "data_name_{lk}" - ], - "where": "data_type = 'T01'" - }, - "article_source": { - "type": "string", - "validation": "nullable" - }, - "element_source": { - "type": "string", - "validation": "nullable" - }, - "mo_num": { - "type": "int", - "validation": "nullable|integer" - }, - "used_by_documents": { - "type": "bool", - "validation": "nullable" - }, - "used_by_system": { - "type": "bool", - "validation": "nullable" - }, - "type_of_organization": { - "type": "foreign", - "table": "ref_property_types", - "foreign": "id", - "display": [ - "value", - "name" - ], - "validation": "nullable|int", - "label": "Тип собственности" - }, - "accounts_plan_part": { - "type": "foreign", - "table": "ref_accounts_plan_part", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "nullable|string", - "label": "Раздел плана счетов" - }, - "accounts_plan_particle": { - "type": "foreign", - "table": "ref_accounts_plan_particle", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "required|string", - "label": "Подраздел плана счетов" - }, - "started_at": { - "type": "date", - "validation": "required|date" - }, - "ended_at": { - "type": "date", - "validation": "nullable|date" - }, - "whitespace": { - "type": "virtual" - } - } - }, - "ui": { - "grid": { - "title": "План счетов", - "template": "app.base.crud.grid", - "cols": [ - { - "name": "code", - "caption": "Счёт" - }, - { - "name": "name_kz", - "caption": "Наименование на казахском" - }, - { - "name": "name_ru", - "caption": "Наименование на русском" - }, - { - "name": "account_type", - "caption": "Тип счёта" - }, - { - "name": "used_by_documents", - "caption": "Исп. в первич. док-тах" - }, - { - "name": "used_by_system", - "caption": "Исп. системой" - }, - { - "name": "accounts_plan_particle", - "caption": "Подраздел плана счетов" - }, - { - "name": "type_of_organization", - "caption": "Тип плана счетов" - }, - { - "name": "started_at", - "caption": "Дата начала действия" - }, - { - "name": "ended_at", - "caption": "Дата окончания действия" - }, - { - "name": "id", - "caption": "ИД" - } - ], - "action": { - "head": [ - "add" - ] - }, - "filter": { - "template": "app.base.crud.filter", - "rows": [ - { - "cols": [ - { - "size": 1, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 3, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 1, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 1, - "input": { - "name": "id", - "label": "ИД" - } - }, - { - "size": 3, - "input": { - "name": "used_by_documents", - "label": "Исп. только в первич. документах" - } - }, - { - "size": 3, - "input": { - "name": "used_by_system", - "label": "Исп. только системой" - } - } - ] - }, - { - "cols": [ - { - "size": 6, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 6, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - }, - { - "size": 4, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - } - ] - } - }, - "forms": { - "add": { - "title": "Добавление записи в справочник \"План счетов\"", - "template": "app.base.crud.form", - "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "submits": "struct:accounting.form.edit.submits", - "rows": [ - { - "cols": [ - { - "size": 2, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - } - ] - }, - { - "cols": [ - { - "size": 4, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 12, - "input": { - "name": "article_source", - "label": "Источник статьи" - } - }, - { - "size": 12, - "input": { - "name": "element_source", - "label": "Источник элемента" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_system", - "label": "Используется только системой" - } - } - ] - } - ] - } - }, - "edit": { - "title": "Редактирование записи в справочнике \"План счетов\"", - "template": "app.base.crud.form", - "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "rows": [ - { - "cols": [ - { - "size": 2, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - } - ] - }, - { - "cols": [ - { - "size": 4, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 12, - "input": { - "name": "article_source", - "label": "Источник статьи" - } - }, - { - "size": 12, - "input": { - "name": "element_source", - "label": "Источник элемента" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_system", - "label": "Используется только системой" - } - } - ] - } - ], - "submits": "struct:accounting.form.edit.submits" - } - } - } - }, - "actions": "struct:crud.actions" + "name": "users", + "title": "Избранное", + "description": "'Учет.Главная'", + "type": "custom", + "class": "App.Modules.main.Applications.Main" } diff --git a/modules/auto/app.json b/modules/auto/app.json index 6b283eb..d07c26a 100644 --- a/modules/auto/app.json +++ b/modules/auto/app.json @@ -4,155 +4,190 @@ "type": "crud", "title": "Автомобили", "data": { - "table": "auto", + "table": "pipi_auto", "pk": "id", "limit": 25, - "sort_order": "asc", - "sort_field": "code", "segment": true, - "timestamp": false, + "timestamp": true, "fields": { "id": { "type": "pk" }, "code": { "type": "string", - "validation": "required" + "validation": "required|unique:pipi_auto,code", + "comment": "Код" }, - "name_ru": { - "type": "text" - }, - "name_kz": { - "type": "text" - }, - "account_type": { - "type": "foreign", - "table": "ref_base_group", - "foreign": "id", - "display": [ - "data_name_{lk}" - ], - "where": "data_type = 'T01'" - }, - "article_source": { + "name": { "type": "string", - "validation": "nullable" + "nullable": true, + "comment": "Наименование" }, - "element_source": { + "type_id": { + "type": "foreign", + "table": "pipi_auto_types", + "foreign": "id", + "display": ["name"], + "nullable": true, + "comment": "Тип" + }, + "class_id": { + "type": "foreign", + "table": "pipi_auto_classes", + "foreign": "id", + "display": ["name"], + "nullable": true, + "comment": "Класс" + }, + "brand_id": { + "type": "foreign", + "table": "pipi_auto_brands", + "foreign": "id", + "display": ["name"], + "nullable": true, + "comment": "Марка" + }, + "model_id": { + "type": "foreign", + "table": "pipi_brand_models", + "foreign": "id", + "display": ["name"], + "nullable": true, + "comment": "Модель" + }, + "color_id": { + "type": "foreign", + "table": "pipi_auto_colors", + "foreign": "id", + "display": ["name"], + "nullable": true, + "comment": "Цвет" + }, + "serial_number": { "type": "string", - "validation": "nullable" + "nullable": true, + "comment": "Серийный номер" }, - "mo_num": { - "type": "int", - "validation": "nullable|integer" + "state_number": { + "type": "string", + "nullable": true, + "comment": "Госномер" }, - "used_by_documents": { - "type": "bool", - "validation": "nullable" - }, - "used_by_system": { - "type": "bool", - "validation": "nullable" - }, - "type_of_organization": { - "type": "foreign", - "table": "ref_property_types", - "foreign": "id", - "display": [ - "value", - "name" - ], - "validation": "nullable|int", - "label": "Тип собственности" - }, - "accounts_plan_part": { - "type": "foreign", - "table": "ref_accounts_plan_part", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "nullable|string", - "label": "Раздел плана счетов" - }, - "accounts_plan_particle": { - "type": "foreign", - "table": "ref_accounts_plan_particle", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "required|string", - "label": "Подраздел плана счетов" - }, - "started_at": { + "manufacture_year": { "type": "date", - "validation": "required|date" + "nullable": true, + "comment": "Год производства" }, - "ended_at": { + "passport_number": { + "type": "string", + "nullable": true, + "comment": "Номер техпаспорта" + }, + "passport_date": { "type": "date", - "validation": "nullable|date" + "nullable": true, + "comment": "Дата техпаспорта" }, - "whitespace": { - "type": "virtual" + "estimated_cost": { + "type": "float", + "nullable": true, + "comment": "Оценочная стоимость" + }, + "owner_id": { + "type": "foreign", + "table": "pipi_owners", + "foreign": "id", + "display": ["name"], + "nullable": true, + "comment": "Владелец имущества" + }, + "is_trust_management": { + "type": "boolean", + "default": false, + "comment": "В доверенном управлении" + }, + "owner_percentage": { + "type": "integer", + "nullable": true, + "comment": "Процент владельца" + }, + "owner_contract": { + "type": "string", + "nullable": true, + "comment": "Договор владельца имущества" + }, + "is_inactive": { + "type": "boolean", + "default": false, + "comment": "Не использовать" + }, + "inspection_kit": { + "type": "json", + "nullable": true, + "comment": "Комплектация для осмотра" + }, + "is_predefined": { + "type": "boolean", + "default": false, + "comment": "Предопределенный" + }, + "predefined_data_name": { + "type": "string", + "nullable": true, + "comment": "Имя предопределенных данных" + }, + "created_at": { + "type": "timestamp", + "comment": "Дата создания" + }, + "updated_at": { + "type": "timestamp", + "comment": "Дата обновления" + }, + "deleted_at": { + "type": "timestamp", + "nullable": true, + "comment": "Дата удаления" } } }, "ui": { "grid": { - "title": "План счетов", + "title": "Автомобили", "template": "app.base.crud.grid", "cols": [ { "name": "code", - "caption": "Счёт" + "caption": "Код" }, { - "name": "name_kz", - "caption": "Наименование на казахском" + "name": "name", + "caption": "Наименование" }, { - "name": "name_ru", - "caption": "Наименование на русском" + "name": "brand_id", + "caption": "Марка" }, { - "name": "account_type", - "caption": "Тип счёта" + "name": "model_id", + "caption": "Модель" }, { - "name": "used_by_documents", - "caption": "Исп. в первич. док-тах" + "name": "state_number", + "caption": "Госномер" }, { - "name": "used_by_system", - "caption": "Исп. системой" - }, - { - "name": "accounts_plan_particle", - "caption": "Подраздел плана счетов" - }, - { - "name": "type_of_organization", - "caption": "Тип плана счетов" - }, - { - "name": "started_at", - "caption": "Дата начала действия" - }, - { - "name": "ended_at", - "caption": "Дата окончания действия" - }, - { - "name": "id", - "caption": "ИД" + "name": "manufacture_year", + "caption": "Год производства" } ], "action": { "head": [ "add" + ], + "row": [ + "edit", + "delete" ] }, "filter": { @@ -161,98 +196,24 @@ { "cols": [ { - "size": 1, + "size": 4, "input": { "name": "code", - "label": "Cчёт" - } - }, - { - "size": 3, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 1, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 1, - "input": { - "name": "id", - "label": "ИД" - } - }, - { - "size": 3, - "input": { - "name": "used_by_documents", - "label": "Исп. только в первич. документах" - } - }, - { - "size": 3, - "input": { - "name": "used_by_system", - "label": "Исп. только системой" - } - } - ] - }, - { - "cols": [ - { - "size": 6, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 6, - "input": { - "name": "name_ru", - "label": "Наименование на русском" + "label": "Код" } }, { "size": 4, "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов" + "name": "name", + "label": "Наименование" } }, { "size": 4, "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" + "name": "state_number", + "label": "Госномер" } } ] @@ -262,90 +223,32 @@ }, "forms": { "add": { - "title": "Добавление записи в справочник \"План счетов\"", + "title": "Добавление автомобиля", "template": "app.base.crud.form", "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "submits": "struct:accounting.form.edit.submits", + "submits": "struct:crud.form.edit.submits", "rows": [ { "cols": [ { - "size": 2, + "size": 4, "input": { "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" + "label": "Код" } }, { "size": 4, "input": { - "name": "started_at", - "label": "Дата начала действия" + "name": "name", + "label": "Наименование" } }, { "size": 4, "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" + "name": "state_number", + "label": "Госномер" } } ] @@ -355,22 +258,22 @@ { "size": 4, "input": { - "name": "account_type", - "label": "Тип счёта" + "name": "brand_id", + "label": "Марка" } }, { - "size": 12, + "size": 4, "input": { - "name": "article_source", - "label": "Источник статьи" + "name": "model_id", + "label": "Модель" } }, { - "size": 12, + "size": 4, "input": { - "name": "element_source", - "label": "Источник элемента" + "name": "color_id", + "label": "Цвет" } } ] @@ -378,21 +281,24 @@ { "cols": [ { - "size": 12, + "size": 4, "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" + "name": "manufacture_year", + "label": "Год производства" } - } - ] - }, - { - "cols": [ + }, { - "size": 12, + "size": 4, "input": { - "name": "used_by_system", - "label": "Используется только системой" + "name": "estimated_cost", + "label": "Оценочная стоимость" + } + }, + { + "size": 4, + "input": { + "name": "owner_id", + "label": "Владелец" } } ] @@ -401,89 +307,31 @@ } }, "edit": { - "title": "Редактирование записи в справочнике \"План счетов\"", + "title": "Редактирование автомобиля", "template": "app.base.crud.form", "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], "rows": [ { "cols": [ { - "size": 2, + "size": 4, "input": { "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" + "label": "Код" } }, { "size": 4, "input": { - "name": "started_at", - "label": "Дата начала действия" + "name": "name", + "label": "Наименование" } }, { "size": 4, "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" + "name": "state_number", + "label": "Госномер" } } ] @@ -493,22 +341,22 @@ { "size": 4, "input": { - "name": "account_type", - "label": "Тип счёта" + "name": "brand_id", + "label": "Марка" } }, { - "size": 12, + "size": 4, "input": { - "name": "article_source", - "label": "Источник статьи" + "name": "model_id", + "label": "Модель" } }, { - "size": 12, + "size": 4, "input": { - "name": "element_source", - "label": "Источник элемента" + "name": "color_id", + "label": "Цвет" } } ] @@ -516,27 +364,30 @@ { "cols": [ { - "size": 12, + "size": 4, "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" + "name": "manufacture_year", + "label": "Год производства" } - } - ] - }, - { - "cols": [ + }, { - "size": 12, + "size": 4, "input": { - "name": "used_by_system", - "label": "Используется только системой" + "name": "estimated_cost", + "label": "Оценочная стоимость" + } + }, + { + "size": 4, + "input": { + "name": "owner_id", + "label": "Владелец" } } ] } ], - "submits": "struct:accounting.form.edit.submits" + "submits": "struct:crud.form.edit.submits" } } } diff --git a/modules/main/views/main.blade.php b/modules/main/views/main.blade.php index fba286c..3584129 100644 --- a/modules/main/views/main.blade.php +++ b/modules/main/views/main.blade.php @@ -1,4 +1,2 @@ -@extends('layouts.app') - @section('content') @endsection diff --git a/modules/owner_contracts/app.json b/modules/owner_contracts/app.json index 6b283eb..563f456 100644 --- a/modules/owner_contracts/app.json +++ b/modules/owner_contracts/app.json @@ -1,545 +1,8 @@ { "module": "pipicar", - "name": "pipicar.auto", - "type": "crud", - "title": "Автомобили", - "data": { - "table": "auto", - "pk": "id", - "limit": 25, - "sort_order": "asc", - "sort_field": "code", - "segment": true, - "timestamp": false, - "fields": { - "id": { - "type": "pk" - }, - "code": { - "type": "string", - "validation": "required" - }, - "name_ru": { - "type": "text" - }, - "name_kz": { - "type": "text" - }, - "account_type": { - "type": "foreign", - "table": "ref_base_group", - "foreign": "id", - "display": [ - "data_name_{lk}" - ], - "where": "data_type = 'T01'" - }, - "article_source": { - "type": "string", - "validation": "nullable" - }, - "element_source": { - "type": "string", - "validation": "nullable" - }, - "mo_num": { - "type": "int", - "validation": "nullable|integer" - }, - "used_by_documents": { - "type": "bool", - "validation": "nullable" - }, - "used_by_system": { - "type": "bool", - "validation": "nullable" - }, - "type_of_organization": { - "type": "foreign", - "table": "ref_property_types", - "foreign": "id", - "display": [ - "value", - "name" - ], - "validation": "nullable|int", - "label": "Тип собственности" - }, - "accounts_plan_part": { - "type": "foreign", - "table": "ref_accounts_plan_part", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "nullable|string", - "label": "Раздел плана счетов" - }, - "accounts_plan_particle": { - "type": "foreign", - "table": "ref_accounts_plan_particle", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "required|string", - "label": "Подраздел плана счетов" - }, - "started_at": { - "type": "date", - "validation": "required|date" - }, - "ended_at": { - "type": "date", - "validation": "nullable|date" - }, - "whitespace": { - "type": "virtual" - } - } - }, - "ui": { - "grid": { - "title": "План счетов", - "template": "app.base.crud.grid", - "cols": [ - { - "name": "code", - "caption": "Счёт" - }, - { - "name": "name_kz", - "caption": "Наименование на казахском" - }, - { - "name": "name_ru", - "caption": "Наименование на русском" - }, - { - "name": "account_type", - "caption": "Тип счёта" - }, - { - "name": "used_by_documents", - "caption": "Исп. в первич. док-тах" - }, - { - "name": "used_by_system", - "caption": "Исп. системой" - }, - { - "name": "accounts_plan_particle", - "caption": "Подраздел плана счетов" - }, - { - "name": "type_of_organization", - "caption": "Тип плана счетов" - }, - { - "name": "started_at", - "caption": "Дата начала действия" - }, - { - "name": "ended_at", - "caption": "Дата окончания действия" - }, - { - "name": "id", - "caption": "ИД" - } - ], - "action": { - "head": [ - "add" - ] - }, - "filter": { - "template": "app.base.crud.filter", - "rows": [ - { - "cols": [ - { - "size": 1, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 3, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 1, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 1, - "input": { - "name": "id", - "label": "ИД" - } - }, - { - "size": 3, - "input": { - "name": "used_by_documents", - "label": "Исп. только в первич. документах" - } - }, - { - "size": 3, - "input": { - "name": "used_by_system", - "label": "Исп. только системой" - } - } - ] - }, - { - "cols": [ - { - "size": 6, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 6, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - }, - { - "size": 4, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - } - ] - } - }, - "forms": { - "add": { - "title": "Добавление записи в справочник \"План счетов\"", - "template": "app.base.crud.form", - "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "submits": "struct:accounting.form.edit.submits", - "rows": [ - { - "cols": [ - { - "size": 2, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - } - ] - }, - { - "cols": [ - { - "size": 4, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 12, - "input": { - "name": "article_source", - "label": "Источник статьи" - } - }, - { - "size": 12, - "input": { - "name": "element_source", - "label": "Источник элемента" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_system", - "label": "Используется только системой" - } - } - ] - } - ] - } - }, - "edit": { - "title": "Редактирование записи в справочнике \"План счетов\"", - "template": "app.base.crud.form", - "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "rows": [ - { - "cols": [ - { - "size": 2, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - } - ] - }, - { - "cols": [ - { - "size": 4, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 12, - "input": { - "name": "article_source", - "label": "Источник статьи" - } - }, - { - "size": 12, - "input": { - "name": "element_source", - "label": "Источник элемента" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_system", - "label": "Используется только системой" - } - } - ] - } - ], - "submits": "struct:accounting.form.edit.submits" - } - } - } - }, - "actions": "struct:crud.actions" + "name": "users", + "title": "Избранное", + "description": "'Учет.Главная'", + "type": "custom", + "class": "App.Modules.main.Applications.Main" } diff --git a/modules/owners/app.json b/modules/owners/app.json index 6b283eb..563f456 100644 --- a/modules/owners/app.json +++ b/modules/owners/app.json @@ -1,545 +1,8 @@ { "module": "pipicar", - "name": "pipicar.auto", - "type": "crud", - "title": "Автомобили", - "data": { - "table": "auto", - "pk": "id", - "limit": 25, - "sort_order": "asc", - "sort_field": "code", - "segment": true, - "timestamp": false, - "fields": { - "id": { - "type": "pk" - }, - "code": { - "type": "string", - "validation": "required" - }, - "name_ru": { - "type": "text" - }, - "name_kz": { - "type": "text" - }, - "account_type": { - "type": "foreign", - "table": "ref_base_group", - "foreign": "id", - "display": [ - "data_name_{lk}" - ], - "where": "data_type = 'T01'" - }, - "article_source": { - "type": "string", - "validation": "nullable" - }, - "element_source": { - "type": "string", - "validation": "nullable" - }, - "mo_num": { - "type": "int", - "validation": "nullable|integer" - }, - "used_by_documents": { - "type": "bool", - "validation": "nullable" - }, - "used_by_system": { - "type": "bool", - "validation": "nullable" - }, - "type_of_organization": { - "type": "foreign", - "table": "ref_property_types", - "foreign": "id", - "display": [ - "value", - "name" - ], - "validation": "nullable|int", - "label": "Тип собственности" - }, - "accounts_plan_part": { - "type": "foreign", - "table": "ref_accounts_plan_part", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "nullable|string", - "label": "Раздел плана счетов" - }, - "accounts_plan_particle": { - "type": "foreign", - "table": "ref_accounts_plan_particle", - "foreign": "id", - "display": [ - "code", - "name_{lk}" - ], - "validation": "required|string", - "label": "Подраздел плана счетов" - }, - "started_at": { - "type": "date", - "validation": "required|date" - }, - "ended_at": { - "type": "date", - "validation": "nullable|date" - }, - "whitespace": { - "type": "virtual" - } - } - }, - "ui": { - "grid": { - "title": "План счетов", - "template": "app.base.crud.grid", - "cols": [ - { - "name": "code", - "caption": "Счёт" - }, - { - "name": "name_kz", - "caption": "Наименование на казахском" - }, - { - "name": "name_ru", - "caption": "Наименование на русском" - }, - { - "name": "account_type", - "caption": "Тип счёта" - }, - { - "name": "used_by_documents", - "caption": "Исп. в первич. док-тах" - }, - { - "name": "used_by_system", - "caption": "Исп. системой" - }, - { - "name": "accounts_plan_particle", - "caption": "Подраздел плана счетов" - }, - { - "name": "type_of_organization", - "caption": "Тип плана счетов" - }, - { - "name": "started_at", - "caption": "Дата начала действия" - }, - { - "name": "ended_at", - "caption": "Дата окончания действия" - }, - { - "name": "id", - "caption": "ИД" - } - ], - "action": { - "head": [ - "add" - ] - }, - "filter": { - "template": "app.base.crud.filter", - "rows": [ - { - "cols": [ - { - "size": 1, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 3, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 1, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 1, - "input": { - "name": "id", - "label": "ИД" - } - }, - { - "size": 3, - "input": { - "name": "used_by_documents", - "label": "Исп. только в первич. документах" - } - }, - { - "size": 3, - "input": { - "name": "used_by_system", - "label": "Исп. только системой" - } - } - ] - }, - { - "cols": [ - { - "size": 6, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 6, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - }, - { - "size": 4, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - } - ] - } - }, - "forms": { - "add": { - "title": "Добавление записи в справочник \"План счетов\"", - "template": "app.base.crud.form", - "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "submits": "struct:accounting.form.edit.submits", - "rows": [ - { - "cols": [ - { - "size": 2, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - } - ] - }, - { - "cols": [ - { - "size": 4, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 12, - "input": { - "name": "article_source", - "label": "Источник статьи" - } - }, - { - "size": 12, - "input": { - "name": "element_source", - "label": "Источник элемента" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_system", - "label": "Используется только системой" - } - } - ] - } - ] - } - }, - "edit": { - "title": "Редактирование записи в справочнике \"План счетов\"", - "template": "app.base.crud.form", - "form": { - "inject_component": [ - "Js.Refs.AccountsPlan" - ], - "rows": [ - { - "cols": [ - { - "size": 2, - "input": { - "name": "code", - "label": "Cчёт" - } - }, - { - "size": 2, - "input": { - "name": "mo_num", - "label": "МО №" - } - }, - { - "size": 4, - "input": { - "name": "started_at", - "label": "Дата начала действия" - } - }, - { - "size": 4, - "input": { - "name": "ended_at", - "label": "Дата окончания действия" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "type_of_organization", - "label": "Тип плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_part", - "label": "Раздел плана счетов", - "readonly": true - } - }, - { - "size": 12, - "input": { - "name": "accounts_plan_particle", - "label": "Подраздел плана счетов", - "js_event": { - "onchange": "accountPlanParticleChange" - } - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "name_kz", - "label": "Наименование на казахском" - } - }, - { - "size": 12, - "input": { - "name": "name_ru", - "label": "Наименование на русском" - } - } - ] - }, - { - "cols": [ - { - "size": 4, - "input": { - "name": "account_type", - "label": "Тип счёта" - } - }, - { - "size": 12, - "input": { - "name": "article_source", - "label": "Источник статьи" - } - }, - { - "size": 12, - "input": { - "name": "element_source", - "label": "Источник элемента" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_documents", - "label": "Используется только в первичных документах" - } - } - ] - }, - { - "cols": [ - { - "size": 12, - "input": { - "name": "used_by_system", - "label": "Используется только системой" - } - } - ] - } - ], - "submits": "struct:accounting.form.edit.submits" - } - } - } - }, - "actions": "struct:crud.actions" + "name": "users", + "title": "Избранное", + "description": "'Учет.Главная'", + "type": "custom", + "class": "App.Modules.main.Applications.Main" }