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.

52 lines
1.2 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model backend\models\ars\Order */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. \yii\web\YiiAsset::register($this);
  10. ?>
  11. <div class="order-view">
  12. <p>
  13. <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
  14. </p>
  15. <?= DetailView::widget([
  16. 'model' => $model,
  17. 'attributes' => [
  18. 'id',
  19. 'user_id',
  20. 'order_sn',
  21. 'invoice_id',
  22. 'status',
  23. 'type',
  24. 'goods_count',
  25. 'goods_amount',
  26. 'shipping_amount',
  27. 'shipping_type',
  28. 'consignee',
  29. 'phone',
  30. 'province',
  31. 'city',
  32. 'area',
  33. 'taking_site',
  34. 'pay_type',
  35. 'pay_at',
  36. 'payment_sn',
  37. 'payment_amount',
  38. 'receivables',
  39. 'remarks',
  40. 'discount_amount',
  41. 'discount_description:ntext',
  42. 'updated_at',
  43. 'created_at',
  44. ],
  45. ]) ?>
  46. </div>