check.php 3.16 KB
<?php

use yii\helpers\Url;
use app\ht\widgets\LinkPager;

$this->title = '维修方案报价检查';
$this->params['breadcrumbs'][] = '设备管理';
$this->params['breadcrumbs'][] = ['label' => '故障管理', 'url' => ['/device/fault/index']];
$this->params['breadcrumbs'][] =  $this->title;

?>

<div class="panel panel-default">
    <div class="panel-body">
        <form action="<?=Url::toRoute("/device/fault/check-repair-all")?>" method="get" class="filter-form">
            <div class=" text-center">
                <button type="submit" class="btn btn-primary" id="save">一键修复</button>&nbsp;&nbsp;&nbsp;&nbsp;
                <a class="btn btn-default" href="<?=Url::toRoute("/device/fault/check")?>">刷新</a>
            </div>
        </form>
    </div>
</div>
<div class="panel panel-default">

    <div  class="panel-body">
        <?php if (!empty($list)) : ?>
            <table class="table table-striped table-bordered"  id="brand-table">
                <tr>
                    <th style="width:5%;" class="text-center align-middle hqy-all-select">ID</th>
                    <th style="width:15%;">故障原因</th>
                    <th style="width:18%;">解决方案</th>
                    <th style="width:10%;">型号</th>
                    <th style="width:8%;">配件费用</th>
                    <th style="width:5%;">工时</th>
                    <th style="width:5%;">难度系数</th>
                    <th style="width:8%;">当前工时费</th>
                    <th style="width:7%;">当前报价</th>
                    <th style="width:7%;">纠正工时费</th>
                    <th style="width:7%;">纠正报价</th>
                    <th style="width:5%;">修复</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach ($list as $plan) : ?>
                    <tr>
                        <td class="text-center align-middle hqy-row-select"><?=$plan['id'] ?></td>
                        <td ><?= $plan['reason'] ?></td>
                        <td ><?= $plan['name'] ?></td>
                        <td ><?= $plan['model'] ?></td>
                        <td ><?= $plan['parts_price'] ?></td>
                        <td ><?= $plan['repair_hours'] ?></td>
                        <td ><?= $plan['difficulty_degree'] ?></td>
                        <td style="color: red;"><?= $plan['labor_price'] ?></td>
                        <td style="color: red;"><?= $plan['price'] ?></td>
                        <td style="color: limegreen;"><?= $plan['c_labor_price'] ?></td>
                        <td style="color: limegreen;"><?= $plan['c_price'] ?></td>
                        <td >
                            <a  onclick="confirmRedirect('<?php echo Url::toRoute(['/device/fault/check-repair', 'id' => $plan['id']])  ?>','确定修复此维修方案报价吗?')" title="修复" href="javascript:void(0)">修复</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        <?php else : ?>
            <p class="text-center">
                没有异常数据
            </p>
        <?php endif; ?>
    </div>

</div>