delay.php
4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
use yii\helpers\Url;
use app\ht\widgets\LinkPager;
use common\models\RepairOrder;
$this->title = '异常订单';
$this->params['breadcrumbs'][] = '交易管理';
$this->params['breadcrumbs'][] = ['label' => '订单列表', 'url' => ['/trade/order/index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.btncls{margin:0 10px!important;}
</style>
<div class="panel panel-default">
<div class="panel-body">
<?php if (!empty($orderList)) : ?>
<table class="table table-striped table-bordered" id="brand-table">
<thead>
<tr>
<th style="width:5%;">订单ID</th>
<th style="width:33%;">订单信息</th>
<th style="width:12%;">报修时间</th>
<th style="width:8%;">支付金额</th>
<th style="width:7%;">订单状态</th>
<th style="width:7%;">带走设备</th>
<th style="width:7%;">接单工程师</th>
<th style="width:8%;">是否回访完毕</th>
<th style="width:20%;">操作</th>
</tr>
</thead>
<tbody>
<?php foreach ($orderList as $order) : ?>
<tr>
<td class="text-center align-middle hqy-row-select"><?=$order['id'] ?></td>
<td >
订单编号:<span style="font-weight: bold; color: #C40000; margin-left: 10px;"><?= $order['order_no'] ?></span><br/>
客户姓名:<span style="font-weight: bold; margin-left: 10px;"><?= $order['nickname'] ?>(<?=$order['phone'] ?>)</span><br/>
设备名称:<a style="margin-left: 10px;" href="<?=$order['device_info_url']; ?>"><?=$order['repair_device_name']; ?></a><br/>
设备拥有者:<span style="font-weight: bold; margin-left: 10px;"><?= $order['ownername'] ?></span><br/>
上门地址:<span style="font-weight: bold; margin-left: 10px;"><?= $order['address'] ?></span><br/>
报修渠道:<span style="font-weight: bold; margin-left: 10px;"><?= $channels[$order['repair_channel']] ?></span>
</td>
<td >
<?=Yii::$app->formatter->asTime($order['created_at'],"yyyy-MM-dd HH:mm:ss"); ?>
</td>
<td >
<?= $order['pay_price'] ?>
</td>
<td >
<?=$orderStatusList[$order['status']];?>
<?php if ($order['is_admin_close']==1){
echo "(管理员关闭)";}
else if ($order['is_user_close']==1){
echo "(用户处理关闭)";}
else if ($order['is_engineer_close']==1){
echo "(工程师处理关闭)";}
else if ($order['is_suspend'] != \common\business\SuspendOrder::SUSPEND_STATUS_OFF){
echo \common\business\SuspendOrder::suspendLabels($order['is_suspend']);}
?><br/>
</td>
<td >
<?=$order["is_take_away_label"] ? $order["is_take_away_label"] : "未带走" ?>
</td>
<td >
<?= $order['engineer_name'] ?>
</td>
<td >
<b style="color: #C40000;font-size: 13px;">
<?= (isset($order['interview_finished']) && $order['interview_finished'])==1 ? "是" : "否" ?>
</b>
</td>
<td >
<a href="<?php echo Url::toRoute(['/trade/order/info', 'id' => $order['id']]) ?>">查看详情</a>
<?php if ($order['status'] == 0): ?>
<a href="<?php echo Url::toRoute(['/trade/order/allot', 'id' => $order['id']]) ?>">平台派单</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else : ?>
<p class="text-center">
没有找到数据
</p>
<?php endif; ?>
</div>
<div class="panel-footer">
<div class="hqy-panel-pager">
<?= LinkPager::widget([
'pagination' => $pages,
]); ?>
<div class="clearfix"></div>
</div>
</div>
</div>