From cb30fc46f5e0152cb4dbb184d9d9b56c954883b4 Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 13 Mar 2025 10:12:44 +0300 Subject: [PATCH] =?utf8?q?ERP-358=20=D0=A1=D0=B2=D0=B5=D1=80=D1=81=D1=82?= =?utf8?q?=D0=B0=D1=82=D1=8C=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5?= =?utf8?q?=D0=B9=D1=81=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BF=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/ShipmentController.php | 1 + erp24/views/shipment/auto-polnogramma.php | 64 +++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 erp24/views/shipment/auto-polnogramma.php diff --git a/erp24/controllers/ShipmentController.php b/erp24/controllers/ShipmentController.php index 71a529b9..42dd143e 100755 --- a/erp24/controllers/ShipmentController.php +++ b/erp24/controllers/ShipmentController.php @@ -37,4 +37,5 @@ class ShipmentController extends Controller public function actionConfigSort() { return $this->render('config-sort'); } public function actionFields() { return $this->render('fields'); } public function actionStatusesEdit() { return $this->render('statuses-edit'); } + public function actionAutoPolnogramma() { return $this->render('auto-polnogramma'); } } \ No newline at end of file diff --git a/erp24/views/shipment/auto-polnogramma.php b/erp24/views/shipment/auto-polnogramma.php new file mode 100644 index 00000000..f1c06484 --- /dev/null +++ b/erp24/views/shipment/auto-polnogramma.php @@ -0,0 +1,64 @@ + +
+
+
+ +
+
+
+ 'year-filter', + 'data' => array_combine(range(date('Y') - 5, date('Y') + 5), range(date('Y') - 5, date('Y') + 5)), + 'options' => ['placeholder' => 'Год', 'id' => 'year'], + 'pluginOptions' => ['allowClear' => true], + ]) ?> +
+
+ 'city-filter', + 'data' => ArrayHelper::map(StoreCityList::findAll(['type' => StoreCityList::TYPE_CITY]), 'id', 'name'), + 'options' => ['placeholder' => 'Город', 'id' => 'city'], + 'pluginOptions' => ['allowClear' => true], + ]) ?> +
+
+ 'store-type-filter', + 'data' => ArrayHelper::map(StoreType::find()->orderBy('sequence_number')->all(), 'id', 'name'), + 'options' => ['placeholder' => 'Тип магазина', 'id' => 'store-type', 'style' => 'width: 110%;'], + 'pluginOptions' => ['allowClear' => true], + ]) ?> +
+
+ 'territorial-manager-filter', + 'data' => ArrayHelper::map( + array_merge( + Admin::findAll(['group_id' => AdminGroup::GROUP_BUSH_DIRECTOR]), + Admin::findAll(['id' => StoreDynamic::find()->andWhere(['category' => 3, 'active' => 1])->select('value_int')->column()]) + ), + 'id', + 'name', + ), + 'options' => ['placeholder' => 'Тер. управляющий', 'id' => 'territorial-manger'], + 'pluginOptions' => ['allowClear' => true], + ]) ?> +
+
+ +
+
+
+ +
\ No newline at end of file -- 2.39.5