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.
98 lines
2.8 KiB
98 lines
2.8 KiB
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
use backend\modules\shop\models\ars\AfterSale;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model backend\modules\shop\models\ars\AfterSale */
|
|
|
|
$this->title = $model->id;
|
|
$this->params['breadcrumbs'][] = ['label' => 'After Sales', 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
\yii\web\YiiAsset::register($this);
|
|
?>
|
|
<div class="after-sale-view">
|
|
|
|
<p>
|
|
<?= Html::a('返回列表', ['index'], ['class' => 'btn btn-default']) ?>
|
|
<?php
|
|
if ($model->status == AfterSale::STATUS_UNTREATED) {
|
|
echo Html::a('同意',
|
|
[
|
|
'handle',
|
|
'status' => AfterSale::STATUS_ACCEPT,
|
|
'id' => $model->id
|
|
],
|
|
[
|
|
'class' => 'btn btn-default',
|
|
'data' => [
|
|
'confirm' => '同意用户的退货申请?',
|
|
'method' => 'post',
|
|
]
|
|
]
|
|
);
|
|
echo Html::a('拒绝',
|
|
[
|
|
'handle',
|
|
'status' => AfterSale::STATUS_REJECT,
|
|
'id' => $model->id
|
|
],
|
|
[
|
|
'class' => 'btn btn-default',
|
|
'data' => [
|
|
'confirm' => '拒绝用户的退货申请?',
|
|
'method' => 'post',
|
|
],
|
|
]
|
|
);
|
|
}
|
|
?>
|
|
</p>
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id',
|
|
'wx_refund_id',
|
|
'after_sale_sn',
|
|
'user_id',
|
|
[
|
|
'attribute' => 'order_goods_id',
|
|
'value' => function ($model) {
|
|
return $model->goods->goods_name;
|
|
}
|
|
],
|
|
'amount',
|
|
'count',
|
|
'apply_at:datetime',
|
|
'dealt_at:datetime',
|
|
'finish_at:datetime',
|
|
'operator_id',
|
|
[
|
|
'attribute' => 'refund_type',
|
|
'value' => function ($model) {
|
|
return AfterSale::$refundType[$model->refund_type];
|
|
}
|
|
],
|
|
'description:ntext',
|
|
'image:ntext',
|
|
[
|
|
'attribute' => 'status',
|
|
'value' => function ($model) {
|
|
return AfterSale::$status[$model->status];
|
|
}
|
|
],
|
|
'reason',
|
|
'remarks:ntext',
|
|
'take_shipping_sn',
|
|
[
|
|
'attribute' => 'refund_mode',
|
|
'value' => function ($model) {
|
|
return AfterSale::$refundMode[$model->refund_mode];
|
|
}
|
|
],
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|