|
@ -59,7 +59,7 @@ class OrderSearch extends Order |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |
|
|
'attribute' => 'user_id', |
|
|
'attribute' => 'user_id', |
|
|
'width' => '7%', |
|
|
|
|
|
|
|
|
'width' => '5%', |
|
|
// 'value' => function ($model) {
|
|
|
// 'value' => function ($model) {
|
|
|
// return base64_decode($model->user->nickname);
|
|
|
// return base64_decode($model->user->nickname);
|
|
|
// }
|
|
|
// }
|
|
@ -68,21 +68,21 @@ class OrderSearch extends Order |
|
|
'attribute' => 'order_sn', |
|
|
'attribute' => 'order_sn', |
|
|
'width' => '8%', |
|
|
'width' => '8%', |
|
|
], |
|
|
], |
|
|
[ |
|
|
|
|
|
'attribute' => 'invoice_id', |
|
|
|
|
|
'width' => '8%', |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'attribute' => 'status', |
|
|
|
|
|
'width' => '5%', |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
// [
|
|
|
|
|
|
// 'attribute' => 'invoice_id',
|
|
|
|
|
|
// 'width' => '8%',
|
|
|
|
|
|
// ],
|
|
|
[ |
|
|
[ |
|
|
'attribute' => 'type', |
|
|
'attribute' => 'type', |
|
|
'width' => '5%', |
|
|
'width' => '5%', |
|
|
|
|
|
'value' => function ($model) { |
|
|
|
|
|
return !empty($model->type) ? Order::dropDown('type', $model->type) : ''; |
|
|
|
|
|
} |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |
|
|
'label' => '订单信息', |
|
|
'label' => '订单信息', |
|
|
'format' => 'raw', |
|
|
'format' => 'raw', |
|
|
|
|
|
'width' => '7%', |
|
|
'value' => function ($model) { |
|
|
'value' => function ($model) { |
|
|
return Yii::$app->controller->renderPartial('order_info', ['model' => $model]); |
|
|
return Yii::$app->controller->renderPartial('order_info', ['model' => $model]); |
|
|
}, |
|
|
}, |
|
@ -90,6 +90,7 @@ class OrderSearch extends Order |
|
|
[ |
|
|
[ |
|
|
'label' => '物流信息', |
|
|
'label' => '物流信息', |
|
|
'format' => 'raw', |
|
|
'format' => 'raw', |
|
|
|
|
|
'width' => '20%', |
|
|
'value' => function ($model) { |
|
|
'value' => function ($model) { |
|
|
return Yii::$app->controller->renderPartial('shipping_info', ['model' => $model]); |
|
|
return Yii::$app->controller->renderPartial('shipping_info', ['model' => $model]); |
|
|
}, |
|
|
}, |
|
@ -97,22 +98,26 @@ class OrderSearch extends Order |
|
|
[ |
|
|
[ |
|
|
'label' => '收货信息', |
|
|
'label' => '收货信息', |
|
|
'format' => 'raw', |
|
|
'format' => 'raw', |
|
|
|
|
|
'width' => '17%', |
|
|
'value' => function ($model) { |
|
|
'value' => function ($model) { |
|
|
return Yii::$app->controller->renderPartial('table_consignee_info', ['model' => $model]); |
|
|
return Yii::$app->controller->renderPartial('table_consignee_info', ['model' => $model]); |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |
|
|
'attribute' => 'remarks', |
|
|
|
|
|
'width' => '8%', |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'attribute' => 'updated_at', |
|
|
|
|
|
'width' => '8%', |
|
|
|
|
|
|
|
|
'attribute' => 'status', |
|
|
|
|
|
'width' => '5%', |
|
|
'value' => function ($model) { |
|
|
'value' => function ($model) { |
|
|
return date('Y-m-d H:i:s', $model->updated_at); |
|
|
|
|
|
|
|
|
return Order::dropDown('status', $model->status); |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
// [
|
|
|
// [
|
|
|
|
|
|
// 'attribute' => 'updated_at',
|
|
|
|
|
|
// 'width' => '8%',
|
|
|
|
|
|
// 'value' => function ($model) {
|
|
|
|
|
|
// return date('Y-m-d H:i:s', $model->updated_at);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ],
|
|
|
|
|
|
// [
|
|
|
// 'attribute' => 'created_at',
|
|
|
// 'attribute' => 'created_at',
|
|
|
// 'value' => function ($model) {
|
|
|
// 'value' => function ($model) {
|
|
|
// return date('Y-m-d H:i:s', $model->created_at);
|
|
|
// return date('Y-m-d H:i:s', $model->created_at);
|
|
|