From: marina Date: Wed, 19 Mar 2025 11:58:41 +0000 (+0300) Subject: ERP-329 Новый интерфейс для работы с заказами мп и амо X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5b6b6c74700256ad57b5ca2b6368cc109080a64b;p=erp24_rep%2Fyii-erp24%2F.git ERP-329 Новый интерфейс для работы с заказами мп и амо --- 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() ?>