check.php
3.16 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
<?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>
<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>