初始化
This commit is contained in:
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
$activeMenu = 'asdTestData';
|
||||
include APP_PATH . 'app/views/layouts/admin_header.php';
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><i class="fa fa-info-circle"></i> 测试数据详情</h3>
|
||||
<div class="box-tools">
|
||||
<a href="<?php echo BASE_URL; ?>/Admin/asdTestData" class="btn btn-default btn-sm">
|
||||
<i class="fa fa-arrow-left"></i> 返回列表
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-striped" style="width:auto;">
|
||||
<tr>
|
||||
<th style="width:120px;">记录ID</th>
|
||||
<td><?php echo $record['id']; ?></td>
|
||||
<th style="width:120px;">条码</th>
|
||||
<td><code><?php echo htmlspecialchars($record['qr_code']); ?></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>测试员</th>
|
||||
<td><?php echo htmlspecialchars($record['tester']); ?></td>
|
||||
<th>项目名称</th>
|
||||
<td><?php echo htmlspecialchars($record['project_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>工位</th>
|
||||
<td><?php echo htmlspecialchars($record['site']); ?></td>
|
||||
<th>站点</th>
|
||||
<td><?php echo htmlspecialchars($record['station']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>单号</th>
|
||||
<td><?php echo htmlspecialchars($record['mo']); ?></td>
|
||||
<th>工单</th>
|
||||
<td><?php echo htmlspecialchars($record['work_order']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>组别</th>
|
||||
<td><?php echo htmlspecialchars($record['group_name']); ?></td>
|
||||
<th>设备</th>
|
||||
<td><?php echo htmlspecialchars($record['device']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>运行时间</th>
|
||||
<td><?php echo htmlspecialchars($record['running_time']); ?></td>
|
||||
<th>测试时间</th>
|
||||
<td><?php echo $record['test_time']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>整体状态</th>
|
||||
<td colspan="3">
|
||||
<?php if ($record['status'] === 'PASS'): ?>
|
||||
<span class="label label-success">PASS</span>
|
||||
<?php else: ?>
|
||||
<span class="label label-danger"><?php echo htmlspecialchars($record['status']); ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 工步详情 -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><i class="fa fa-list-ol"></i> 测试工步详情(共 <?php echo count($details); ?> 步)</h3>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:50px;">序号</th>
|
||||
<th>工步名称</th>
|
||||
<th>测试项目</th>
|
||||
<th>测试值</th>
|
||||
<th>单位</th>
|
||||
<th>下限</th>
|
||||
<th>上限</th>
|
||||
<th>字符串值</th>
|
||||
<th>结果</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (empty($details)): ?>
|
||||
<tr><td colspan="9" class="text-center text-muted">无工步数据</td></tr>
|
||||
<?php else: ?>
|
||||
<?php foreach ($details as $d): ?>
|
||||
<tr>
|
||||
<td><?php echo $d['seq']; ?></td>
|
||||
<td><?php echo htmlspecialchars($d['test_name']); ?></td>
|
||||
<td><?php echo htmlspecialchars($d['test_item']); ?></td>
|
||||
<td>
|
||||
<?php if ($d['data_value'] !== null): ?>
|
||||
<strong><?php echo rtrim(rtrim($d['data_value'], '0'), '.'); ?></strong>
|
||||
<?php else: ?>
|
||||
-
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?php echo htmlspecialchars($d['test_units']); ?></td>
|
||||
<td><?php echo $d['lower_limit'] !== null ? htmlspecialchars($d['lower_limit']) : '-'; ?></td>
|
||||
<td><?php echo $d['upper_limit'] !== null ? htmlspecialchars($d['upper_limit']) : '-'; ?></td>
|
||||
<td><code><?php echo htmlspecialchars($d['test_value']); ?></code></td>
|
||||
<td>
|
||||
<?php if ($d['test_result'] === 'PASS'): ?>
|
||||
<span class="label label-success">PASS</span>
|
||||
<?php else: ?>
|
||||
<span class="label label-danger"><?php echo htmlspecialchars($d['test_result']); ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include APP_PATH . 'app/views/layouts/admin_footer.php'; ?>
|
||||
Reference in New Issue
Block a user