2025-09-04 07:00:15 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
<title>最近一次打印数据</title>
|
|
|
|
|
|
<script src="../x_admin/js/jq.js"></script>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
body {
|
|
|
|
|
|
margin: 0 0;
|
|
|
|
|
|
padding: 0 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.big_box{
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
}
|
|
|
|
|
|
.down{
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
|
box-shadow: 1px 1px 1px;
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
|
cursor: pointer
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="big_box">
|
|
|
|
|
|
<table border="1" cellpadding="5">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th>MAC地址</th>
|
|
|
|
|
|
<th>SN码</th>
|
|
|
|
|
|
<th>箱号</th>
|
2025-11-03 18:18:07 +08:00
|
|
|
|
<th>是否注销</th>
|
2025-09-04 07:00:15 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
{volist name="data" id="item"}
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>{$item.mac_code|default='未分配'}</td>
|
|
|
|
|
|
<td>{$item.sn_code}</td>
|
|
|
|
|
|
<td>{$item.box_code}-{$item.box_num}</td>
|
2025-11-03 18:18:07 +08:00
|
|
|
|
<td>
|
|
|
|
|
|
{if condition="$item.is_del == 0"}
|
|
|
|
|
|
否
|
|
|
|
|
|
{else /}
|
|
|
|
|
|
是
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
</td>
|
2025-09-04 07:00:15 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
{/volist}
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<div class="down">点击下载</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
$('.down').on('click',function(){
|
|
|
|
|
|
// $.ajax({
|
|
|
|
|
|
// url:"print_device_data_index_action", //请求的url地址
|
|
|
|
|
|
// dataType:"json", //返回格式为json
|
|
|
|
|
|
// async:true,//请求是否异步,默认为异步,这也是ajax重要特性
|
|
|
|
|
|
// data:{"id":"value"}, //参数值
|
|
|
|
|
|
// type:"POST", //请求方式
|
|
|
|
|
|
// beforeSend:function(){
|
|
|
|
|
|
// //请求前的处理
|
|
|
|
|
|
// },
|
|
|
|
|
|
// success:function(req){
|
|
|
|
|
|
// //请求成功时处理
|
|
|
|
|
|
// },
|
|
|
|
|
|
// complete:function(){
|
|
|
|
|
|
// //请求完成的处理
|
|
|
|
|
|
// },
|
|
|
|
|
|
// error:function(){
|
|
|
|
|
|
// //请求出错处理
|
|
|
|
|
|
// }});
|
|
|
|
|
|
// window.open('https://www.example.com', '_blank');
|
2025-09-04 07:09:15 +08:00
|
|
|
|
window.location.href = 'https://tc.pcxbc.com/z/print_device_data_index?type=down'
|
2025-09-04 07:00:15 +08:00
|
|
|
|
})
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|