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.

62 lines
2.0 KiB

  1. <?php
  2. use antgoods\models\ars\Category;
  3. use antgoods\models\ars\Brand;
  4. use antgoods\models\ars\ShopCategory;
  5. use antgoods\models\ars\Supplier;
  6. use linyao\widgets\Select2;
  7. use yii\bootstrap4\Html;
  8. /* @var $this yii\web\View */
  9. /* @var $model antgoods\models\ars\Goods */
  10. /* @var $form yii\widgets\ActiveForm */
  11. ?>
  12. <?= $form->field($model, 'cat_id')->dropDownList(Category::modelColumn(), ['prompt' => '请选择', 'disabled' => $judgeGoodsCategory]) ?>
  13. <?= $form->field($model, 'brand_id')->dropDownList(Brand::modelColumn(), ['prompt' => '请选择']) ?>
  14. <?= $form->field($model, 'shop_cat_id')->dropDownList(ShopCategory::modelColumn(), ['prompt' => '请选择']) ?>
  15. <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16. <?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>
  17. <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
  18. <?= $form->field($model, 'supplier_id')->dropDownList(Supplier::modelColumn(), ['prompt' => '请选择']) ?>
  19. <?= $form->field($model, 'weight')->textInput() ?>
  20. <?= $form->field($model, 'length')->textInput() ?>
  21. <?= $form->field($model, 'width')->textInput() ?>
  22. <?= $form->field($model, 'height')->textInput() ?>
  23. <?= $form->field($model, 'diameter')->textInput() ?>
  24. <?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>
  25. <?= $form->field($model, 'limit_count')->textInput() ?>
  26. <?= $form->field($model, 'stock')->textInput() ?>
  27. <?= $form->field($model, 'stock_warn')->textInput() ?>
  28. <?= $form->field($model, 'market_price')->textInput() ?>
  29. <?= $form->field($model, 'price')->textInput() ?>
  30. <?= $form->field($model, 'brief')->textInput(['maxlength' => true]) ?>
  31. <?= $form->field($model, 'is_sale')->radioList($model::$isSale) ?>
  32. <?= $form->field($model, 'sort_order')->textInput() ?>
  33. <?= $form->field($model, 'bouns_points')->textInput() ?>
  34. <?= $form->field($model, 'experience_points')->textInput() ?>
  35. <div class="form-group">
  36. <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
  37. <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
  38. </div>