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.
 
 
 

84 lines
2.3 KiB

<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use backend\modules\shop\models\ars\Order;
/* @var $this yii\web\View */
/* @var $model backend\models\ars\Order */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="order-view">
<p>
<?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'user_id',
'order_sn',
'invoice_id',
[
'attribute' => 'status',
'value' => function ($model) {
return Order::dropDown('status', $model->status);
}
],
[
'attribute' => 'type',
'value' => function ($model) {
return Order::dropDown('type', $model->type);
}
],
'goods_count',
'goods_amount',
'shipping_amount',
[
'attribute' => 'shipping_type',
'width' => '7%',
'value' => function ($model) {
return Order::dropDown('shipping_type', $model->shipping_type);
}
],
'consignee',
'phone',
'province',
'city',
'area',
'taking_site',
'pay_type',
[
'attribute' => 'pay_at',
'value' => function ($model) {
return date('Y-m-d H:i:s', $model->pay_at);
}
],
'payment_sn',
'payment_amount',
'receivables',
'remarks',
'discount_amount',
'discount_description:ntext',
[
'attribute' => 'created_at',
'value' => function ($model) {
return date('Y-m-d H:i:s', $model->updated_at);
}
],
[
'attribute' => 'updated_at',
'value' => function ($model) {
return date('Y-m-d H:i:s', $model->created_at);
}
],
],
]) ?>
</div>