]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
ERP-389: is_active в city_store_params + новый интерфейс управления магазином
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 2 Jun 2026 13:22:44 +0000 (16:22 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 2 Jun 2026 13:22:44 +0000 (16:22 +0300)
commit5377d4f87291b6addbdbd886734e9a6995b1fb99
treeae90574f5c2ec9ccad915e0e59d7de73b4865b60
parente556e476ed3ae42648487fc73f7f693d36ec0dda
ERP-389: is_active в city_store_params + новый интерфейс управления магазином

- Разделены поля visible (CityStore) и is_active (CityStoreParams):
  visible больше не меняется при смене is_active
- Неактивные магазины остаются в списке /city-store-params с оранжевым фоном
- Добавлены константы категорий в StoreDynamic (CATEGORY_IS_ACTIVE=4 и др.)
- История активности: изменение is_active записывается в store_dynamic (category=4)
- Новый интерфейс /city-store-management на основе мокапа v8:
  4 вкладки (Карточка, Операционное, SEO, Сервисная), комбобокс выбора магазина,
  AJAX-сохранение, dirty-tracking, RBAC на вкладку Сервисная (Директор + IT)
- Миграции: store_type.code (slug) и city_store_params.is_active
- StoreService зарегистрирован как singleton в DI-контейнере

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 files changed:
erp24/config/web.php
erp24/controllers/CityStoreManagementController.php [new file with mode: 0644]
erp24/controllers/CityStoreParamsController.php
erp24/migrations/m260601_100000_add_code_to_store_type.php [new file with mode: 0644]
erp24/migrations/m260601_110000_add_is_active_to_city_store_params.php [new file with mode: 0644]
erp24/records/CityStoreParams.php
erp24/records/StoreDynamic.php
erp24/records/StoreType.php
erp24/services/StoreService.php
erp24/views/city-store-management/index.php [new file with mode: 0644]
erp24/views/city-store-params/index.php
erp24/views/layouts/store-management.php [new file with mode: 0644]
erp24/views/store-type/create.php
erp24/views/store-type/update.php
erp24/web/css/city-store-management.css [new file with mode: 0644]
erp24/web/js/city-store-management/city-store-management.js [new file with mode: 0644]
erp24/web/js/city-store-params/city-store-params.js