title = $model->id; $this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?>
= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
= 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); } ], ], ]) ?>