From: marina Date: Thu, 13 Mar 2025 07:12:44 +0000 (+0300) Subject: ERP-358 Сверстать интерфейс автопм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cb30fc46f5e0152cb4dbb184d9d9b56c954883b4;p=erp24_rep%2Fyii-erp24%2F.git ERP-358 Сверстать интерфейс автопм --- 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