Browse Source

开发商品筛选功能

antshop
linyaostalker 5 years ago
parent
commit
f5ada14c49
  1. 55
      backend/modules/goods/views/goods/_search.php

55
backend/modules/goods/views/goods/_search.php

@ -3,6 +3,9 @@
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
use \blobt\widgets\DateRangePicker; use \blobt\widgets\DateRangePicker;
use linyao\widgets\Select2;
use backend\modules\goods\models\ars\Category;
use backend\modules\goods\models\ars\ShopCategory;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model common\models\searchs\GoodsSearch */ /* @var $model common\models\searchs\GoodsSearch */
@ -29,6 +32,58 @@ use \blobt\widgets\DateRangePicker;
]) ])
?> ?>
</div> </div>
<div class="col">
<?= $form->field($model, 'name', [
"template" => "{input}{error}",
"inputOptions" => [
"placeholder" => "商品名称",
"class" => "form-control",
],
"errorOptions" => [
"class" => "error-tips"
]
])
?>
</div>
<div class="col">
<?= $form->field($model, 'sn', [
"template" => "{input}{error}",
"inputOptions" => [
"placeholder" => "商品唯一货号",
"class" => "form-control",
],
"errorOptions" => [
"class" => "error-tips"
]
])
?>
</div>
<div class="col">
<?= $form->field($model, 'cat_id', [
"template" => "{input}{error}",
"inputOptions" => [
"placeholder" => "后台商品类别",
"class" => "form-control",
],
"errorOptions" => [
"class" => "error-tips"
]
])->dropDownList(Category::modelColumn(), ['prompt' => '后台商品类别']);
?>
</div>
<div class="col">
<?= $form->field($model, 'shop_cat_id', [
"template" => "{input}{error}",
"inputOptions" => [
"placeholder" => "前端商品类别",
"class" => "form-control",
],
"errorOptions" => [
"class" => "error-tips"
]
])->dropDownList(ShopCategory::modelColumn(), ['prompt' => '前端商品类别']);
?>
</div>
<div class="col"> <div class="col">
<?= $form->field($model, "created_at_range", [ <?= $form->field($model, "created_at_range", [
"template" => "{input}{error}", "template" => "{input}{error}",

Loading…
Cancel
Save