delay.php 4.83 KB
<?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>