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.

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