You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.1 KiB
64 lines
2.1 KiB
<?php
|
|
|
|
use antgoods\models\ars\Category;
|
|
use antgoods\models\ars\Brand;
|
|
use antgoods\models\ars\ShopCategory;
|
|
use antgoods\models\ars\Supplier;
|
|
use linyao\widgets\Select2;
|
|
use yii\bootstrap4\Html;
|
|
use antgoods\models\ars\Goods;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model antgoods\models\ars\Goods */
|
|
/* @var $form yii\widgets\ActiveForm */
|
|
?>
|
|
<?= $form->field($model, 'cat_id')->dropDownList(Category::modelColumn(), ['prompt' => '请选择', 'disabled' => $judgeGoodsCategory]) ?>
|
|
|
|
<?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?>
|
|
|
|
<?= $form->field($model, 'shop_cat_id')->dropDownList(ShopCategory::modelColumn(), ['prompt' => '请选择']) ?>
|
|
|
|
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
|
|
|
|
<?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>
|
|
|
|
<?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
|
|
|
|
<?= $form->field($model, 'supplier_id')->dropDownList(Supplier::modelColumn(), ['prompt' => '请选择']) ?>
|
|
|
|
<?= $form->field($model, 'weight')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'length')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'width')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'height')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'diameter')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>
|
|
|
|
<?= $form->field($model, 'limit_count')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'stock')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'stock_warn')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'market_price')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'price')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
|
|
|
|
<?= $form->field($model, 'is_sale')->radioList(Goods::$isSale) ?>
|
|
|
|
<?= $form->field($model, 'sort_order')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'bouns_points')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'experience_points')->textInput() ?>
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
|
|
<?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
|
|
</div>
|