Browse Source

refactor:重构商品表单基本信息样式

antshop
linyaostalker 5 years ago
parent
commit
223de5d6ab
  1. 10
      backend/modules/goods/views/goods/goods.php

10
backend/modules/goods/views/goods/goods.php

@ -4,9 +4,9 @@ use backend\modules\goods\models\ars\Category;
use backend\modules\goods\models\ars\Brand; use backend\modules\goods\models\ars\Brand;
use backend\modules\goods\models\ars\ShopCategory; use backend\modules\goods\models\ars\ShopCategory;
use backend\modules\goods\models\ars\Supplier; use backend\modules\goods\models\ars\Supplier;
use linyao\widgets\Select2;
use yii\bootstrap4\Html; use yii\bootstrap4\Html;
use backend\modules\goods\models\ars\Goods; use backend\modules\goods\models\ars\Goods;
use blobt\widgets\Icheck;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model backend\modules\goods\models\ars\Goods */ /* @var $model backend\modules\goods\models\ars\Goods */
@ -64,14 +64,14 @@ use backend\modules\goods\models\ars\Goods;
<?= $form->field($model, 'experience_points')->textInput() ?> <?= $form->field($model, 'experience_points')->textInput() ?>
<?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?> <?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>
</div>
<div class="goods-base-info">
<?= $form->field($model, 'limit_count')->textInput() ?> <?= $form->field($model, 'limit_count')->textInput() ?>
</div>
<?= $form->field($model, 'stock')->textInput() ?>
<div class="goods-base-info">
<?= $form->field($model, 'stock')->textInput()->label('库存(-1为不限制)') ?>
<?= $form->field($model, 'stock_warn')->textInput() ?>
<?= $form->field($model, 'stock_warn')->textInput(['placeholder' => '低于该值警告库存不足']) ?>
</div> </div>
<?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?> <?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>

Loading…
Cancel
Save