fix and auto app

pull/3/head
Rustem 2025-02-11 10:43:41 +05:00
parent c633817636
commit cd39e80224
5 changed files with 222 additions and 1984 deletions

View File

@ -1,545 +1,8 @@
{ {
"module": "pipicar", "module": "pipicar",
"name": "pipicar.auto", "name": "users",
"type": "crud", "title": "Избранное",
"title": "Автомобили", "description": "'Учет.Главная'",
"data": { "type": "custom",
"table": "auto", "class": "App.Modules.main.Applications.Main"
"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"
} }

View File

@ -4,155 +4,190 @@
"type": "crud", "type": "crud",
"title": "Автомобили", "title": "Автомобили",
"data": { "data": {
"table": "auto", "table": "pipi_auto",
"pk": "id", "pk": "id",
"limit": 25, "limit": 25,
"sort_order": "asc",
"sort_field": "code",
"segment": true, "segment": true,
"timestamp": false, "timestamp": true,
"fields": { "fields": {
"id": { "id": {
"type": "pk" "type": "pk"
}, },
"code": { "code": {
"type": "string", "type": "string",
"validation": "required" "validation": "required|unique:pipi_auto,code",
"comment": "Код"
}, },
"name_ru": { "name": {
"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", "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", "type": "string",
"validation": "nullable" "nullable": true,
"comment": "Серийный номер"
}, },
"mo_num": { "state_number": {
"type": "int", "type": "string",
"validation": "nullable|integer" "nullable": true,
"comment": "Госномер"
}, },
"used_by_documents": { "manufacture_year": {
"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", "type": "date",
"validation": "required|date" "nullable": true,
"comment": "Год производства"
}, },
"ended_at": { "passport_number": {
"type": "string",
"nullable": true,
"comment": "Номер техпаспорта"
},
"passport_date": {
"type": "date", "type": "date",
"validation": "nullable|date" "nullable": true,
"comment": "Дата техпаспорта"
}, },
"whitespace": { "estimated_cost": {
"type": "virtual" "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": { "ui": {
"grid": { "grid": {
"title": "План счетов", "title": "Автомобили",
"template": "app.base.crud.grid", "template": "app.base.crud.grid",
"cols": [ "cols": [
{ {
"name": "code", "name": "code",
"caption": "Счёт" "caption": "Код"
}, },
{ {
"name": "name_kz", "name": "name",
"caption": "Наименование на казахском" "caption": "Наименование"
}, },
{ {
"name": "name_ru", "name": "brand_id",
"caption": "Наименование на русском" "caption": "Марка"
}, },
{ {
"name": "account_type", "name": "model_id",
"caption": "Тип счёта" "caption": "Модель"
}, },
{ {
"name": "used_by_documents", "name": "state_number",
"caption": "Исп. в первич. док-тах" "caption": "Госномер"
}, },
{ {
"name": "used_by_system", "name": "manufacture_year",
"caption": "Исп. системой" "caption": "Год производства"
},
{
"name": "accounts_plan_particle",
"caption": "Подраздел плана счетов"
},
{
"name": "type_of_organization",
"caption": "Тип плана счетов"
},
{
"name": "started_at",
"caption": "Дата начала действия"
},
{
"name": "ended_at",
"caption": "Дата окончания действия"
},
{
"name": "id",
"caption": "ИД"
} }
], ],
"action": { "action": {
"head": [ "head": [
"add" "add"
],
"row": [
"edit",
"delete"
] ]
}, },
"filter": { "filter": {
@ -161,98 +196,24 @@
{ {
"cols": [ "cols": [
{ {
"size": 1, "size": 4,
"input": { "input": {
"name": "code", "name": "code",
"label": "Cчёт" "label": "Код"
}
},
{
"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, "size": 4,
"input": { "input": {
"name": "accounts_plan_particle", "name": "name",
"label": "Подраздел плана счетов" "label": "Наименование"
} }
}, },
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "accounts_plan_part", "name": "state_number",
"label": "Раздел плана счетов" "label": "Госномер"
}
},
{
"size": 4,
"input": {
"name": "type_of_organization",
"label": "Тип плана счетов"
}
},
{
"size": 4,
"input": {
"name": "started_at",
"label": "Дата начала действия"
}
},
{
"size": 4,
"input": {
"name": "ended_at",
"label": "Дата окончания действия"
} }
} }
] ]
@ -262,90 +223,32 @@
}, },
"forms": { "forms": {
"add": { "add": {
"title": "Добавление записи в справочник \"План счетов\"", "title": "Добавление автомобиля",
"template": "app.base.crud.form", "template": "app.base.crud.form",
"form": { "form": {
"inject_component": [ "submits": "struct:crud.form.edit.submits",
"Js.Refs.AccountsPlan"
],
"submits": "struct:accounting.form.edit.submits",
"rows": [ "rows": [
{ {
"cols": [ "cols": [
{ {
"size": 2, "size": 4,
"input": { "input": {
"name": "code", "name": "code",
"label": "Cчёт" "label": "Код"
}
},
{
"size": 2,
"input": {
"name": "mo_num",
"label": "МО №"
} }
}, },
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "started_at", "name": "name",
"label": "Дата начала действия" "label": "Наименование"
} }
}, },
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "ended_at", "name": "state_number",
"label": "Дата окончания действия" "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": "Наименование на русском"
} }
} }
] ]
@ -355,22 +258,22 @@
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "account_type", "name": "brand_id",
"label": "Тип счёта" "label": "Марка"
} }
}, },
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "article_source", "name": "model_id",
"label": "Источник статьи" "label": "Модель"
} }
}, },
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "element_source", "name": "color_id",
"label": "Источник элемента" "label": "Цвет"
} }
} }
] ]
@ -378,21 +281,24 @@
{ {
"cols": [ "cols": [
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "used_by_documents", "name": "manufacture_year",
"label": "Используется только в первичных документах" "label": "Год производства"
} }
} },
]
},
{
"cols": [
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "used_by_system", "name": "estimated_cost",
"label": "Используется только системой" "label": "Оценочная стоимость"
}
},
{
"size": 4,
"input": {
"name": "owner_id",
"label": "Владелец"
} }
} }
] ]
@ -401,89 +307,31 @@
} }
}, },
"edit": { "edit": {
"title": "Редактирование записи в справочнике \"План счетов\"", "title": "Редактирование автомобиля",
"template": "app.base.crud.form", "template": "app.base.crud.form",
"form": { "form": {
"inject_component": [
"Js.Refs.AccountsPlan"
],
"rows": [ "rows": [
{ {
"cols": [ "cols": [
{ {
"size": 2, "size": 4,
"input": { "input": {
"name": "code", "name": "code",
"label": "Cчёт" "label": "Код"
}
},
{
"size": 2,
"input": {
"name": "mo_num",
"label": "МО №"
} }
}, },
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "started_at", "name": "name",
"label": "Дата начала действия" "label": "Наименование"
} }
}, },
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "ended_at", "name": "state_number",
"label": "Дата окончания действия" "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": "Наименование на русском"
} }
} }
] ]
@ -493,22 +341,22 @@
{ {
"size": 4, "size": 4,
"input": { "input": {
"name": "account_type", "name": "brand_id",
"label": "Тип счёта" "label": "Марка"
} }
}, },
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "article_source", "name": "model_id",
"label": "Источник статьи" "label": "Модель"
} }
}, },
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "element_source", "name": "color_id",
"label": "Источник элемента" "label": "Цвет"
} }
} }
] ]
@ -516,27 +364,30 @@
{ {
"cols": [ "cols": [
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "used_by_documents", "name": "manufacture_year",
"label": "Используется только в первичных документах" "label": "Год производства"
} }
} },
]
},
{
"cols": [
{ {
"size": 12, "size": 4,
"input": { "input": {
"name": "used_by_system", "name": "estimated_cost",
"label": "Используется только системой" "label": "Оценочная стоимость"
}
},
{
"size": 4,
"input": {
"name": "owner_id",
"label": "Владелец"
} }
} }
] ]
} }
], ],
"submits": "struct:accounting.form.edit.submits" "submits": "struct:crud.form.edit.submits"
} }
} }
} }

View File

@ -1,4 +1,2 @@
@extends('layouts.app')
@section('content') @section('content')
@endsection @endsection

View File

@ -1,545 +1,8 @@
{ {
"module": "pipicar", "module": "pipicar",
"name": "pipicar.auto", "name": "users",
"type": "crud", "title": "Избранное",
"title": "Автомобили", "description": "'Учет.Главная'",
"data": { "type": "custom",
"table": "auto", "class": "App.Modules.main.Applications.Main"
"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"
} }

View File

@ -1,545 +1,8 @@
{ {
"module": "pipicar", "module": "pipicar",
"name": "pipicar.auto", "name": "users",
"type": "crud", "title": "Избранное",
"title": "Автомобили", "description": "'Учет.Главная'",
"data": { "type": "custom",
"table": "auto", "class": "App.Modules.main.Applications.Main"
"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"
} }