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.

59 lines
1.3 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\ars\Goods */
  6. $this->title = $model->name;
  7. $this->params['breadcrumbs'][] = ['label' => 'Goods', 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. \yii\web\YiiAsset::register($this);
  10. ?>
  11. <div class="goods-view">
  12. <p>
  13. <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
  14. </p>
  15. <?= DetailView::widget([
  16. 'model' => $model,
  17. 'attributes' => [
  18. 'id',
  19. 'pid',
  20. 'cat_id',
  21. 'brand_id',
  22. 'shop_cat_id',
  23. 'name',
  24. 'sn',
  25. 'code',
  26. 'supplier_id',
  27. 'weight',
  28. 'length',
  29. 'width',
  30. 'height',
  31. 'diameter',
  32. 'unit',
  33. 'sold_count',
  34. 'limit_count',
  35. 'stock',
  36. 'stock_warn',
  37. 'market_price',
  38. 'price',
  39. 'brief',
  40. 'description:ntext',
  41. 'image',
  42. 'model_id',
  43. 'is_sale',
  44. 'sort_order',
  45. 'bouns_points',
  46. 'experience_points',
  47. 'is_delete',
  48. 'express_template',
  49. 'created_at',
  50. 'updated_at',
  51. ],
  52. ]) ?>
  53. </div>