From 5b6b6c74700256ad57b5ca2b6368cc109080a64b Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 19 Mar 2025 14:58:41 +0300 Subject: [PATCH] =?utf8?q?ERP-329=20=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20?= =?utf8?q?=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=20=D0=B4?= =?utf8?q?=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81=20?= =?utf8?q?=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=D0=B0=D0=BC=D0=B8=20=D0=BC=D0=BF?= =?utf8?q?=20=D0=B8=20=D0=B0=D0=BC=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/ShipmentController.php | 3 +- erp24/views/shipment/auto-polnogramma.php | 53 +++++++++++++++-------- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/erp24/controllers/ShipmentController.php b/erp24/controllers/ShipmentController.php index 2fc8f128..9bc3b584 100755 --- a/erp24/controllers/ShipmentController.php +++ b/erp24/controllers/ShipmentController.php @@ -4,6 +4,7 @@ namespace app\controllers; use yii\web\Controller; use yii_app\records\Products1c; +use yii_app\records\Products1cNomenclature; class ShipmentController extends Controller { @@ -41,7 +42,7 @@ class ShipmentController extends Controller public function actionAutoPolnogramma() { return $this->render('auto-polnogramma', [ - 'groups' => Products1c::findAll(['tip' => Products1c::TYPE_PRODUCTS_GROUP]) + 'categories' => Products1cNomenclature::find()->select('type_num')->groupBy('type_num')->all() ]); } } \ No newline at end of file diff --git a/erp24/views/shipment/auto-polnogramma.php b/erp24/views/shipment/auto-polnogramma.php index 50d8502b..aa536f07 100644 --- a/erp24/views/shipment/auto-polnogramma.php +++ b/erp24/views/shipment/auto-polnogramma.php @@ -68,40 +68,57 @@ use sjaakp\bandoneon\Bandoneon; 'btn btn-apply btn-primary', 'style' => 'width:100%']);?> -
+
'polnogramma-type-filter', - 'data' => ['min' => 'min', 'max' => 'max'], - 'options' => ['placeholder' => 'Тип п-ма', 'id' => 'polnogramma-type'], + 'name' => 'week-filter', + 'data' => ['1' => '1', '2' => '2'], + 'options' => ['placeholder' => 'Неделя', 'id' => 'week'], 'pluginOptions' => ['allowClear' => true], ]) ?>
'city-filter', + 'name' => 'region-filter', 'data' => ArrayHelper::map(StoreCityList::findAll(['type' => StoreCityList::TYPE_REGION]), 'id', 'name'), - 'options' => ['placeholder' => 'Город', 'id' => 'city'], + 'options' => ['placeholder' => 'Регион', 'id' => 'region'], 'pluginOptions' => ['allowClear' => true], ]) ?>
-
-
- +
+ +
+
+ 'bush_chef_florist', + 'value' => null, + 'data' => ArrayHelper::map(Admin::findAll(['group_id' => AdminGroup::GROUP_BUSH_CHEF_FLORIST]), 'id', 'name'), + 'options' => [ + 'placeholder' => 'Кустовой шеф-флорист', + 'class' => 'form-select', + 'id' => 'bush_chef_florist', + ], + 'pluginOptions' => [ + 'allowClear' => true, + ], + ]); ?> +
+
+ +
+
+ 'btn btn-apply btn-save', 'style' => 'width:100%']);?>
- - - $group->name"; - echo "
'group-{$group->id}>
"; - } ?> - - + $category->type_num"; + echo "
id}\">
"; + } + Bandoneon::end() ?>
-- 2.39.5