<!DOCTYPE html>
|
<html lang="zh-cn">
|
<head>
|
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>GJ008</title>
|
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
<link rel="stylesheet" type="text/css" href="css/bootstrap-table.min.css">
|
<link rel="stylesheet" type="text/css" href="css/index.css">
|
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
<link rel="stylesheet" type="text/css" href="css/bootstrap-table.min.css">
|
<link rel="stylesheet" type="text/css" href="css/index.css">
|
<link rel="stylesheet" type="text/css" href="css/Style.css">
|
<script src="js/jquery.min.js"></script>
|
<script src='js/echarts.min.js'></script>
|
<script src="js/bootstrap.min.js"></script>
|
<script src='js/bootstrap-table.min.js'></script>
|
<script src='js/bootstrap-table-zh-CN.min.js'></script>
|
<script src="js/jquery.SuperSlide.2.1.3.js"></script>
|
<script src="js/jquery.qrcode.min.js"></script>
|
<style>
|
.list_main {
|
height: 685px;
|
width: 100%;
|
position: relative;
|
}
|
|
.list_main,
|
.list_main ul {
|
overflow: hidden;
|
position: relative;
|
}
|
|
.list_main ul li {
|
width: 100%;
|
height: 100px;
|
}
|
|
.list_main ul li > div {
|
float: left;
|
width: 12.5%;
|
margin-right: 2%;
|
margin-bottom: 20px;
|
background-color: rgba(38,93,70, 0.3);
|
padding-top: 10px;
|
position: relative;
|
}
|
|
.list_main ul li img {
|
position: absolute;
|
left: 5px;
|
top: 10px;
|
}
|
|
.list_main ul li > div:nth-child(7n) {
|
margin-right: 0;
|
}
|
|
.list_main ul li p {
|
text-align: left;
|
padding-left: 17%;
|
color: #AAAAAA;
|
}
|
|
.list_span {
|
display: inline-block;
|
color: #AAAAAA;
|
}
|
|
.list_span1 {
|
color: #AAAAAA;
|
}
|
|
.list_span2 {
|
display: inline-block;
|
color: #AAAAAA;
|
}
|
|
.red {
|
border: 4px solid red;
|
display: inline-block;
|
width: 1px;
|
border-radius: 15px;
|
margin-right: 10px;
|
}
|
|
.lv {
|
border: 4px solid #3bff72;
|
display: inline-block;
|
width: 1px;
|
border-radius: 15px;
|
margin-right: 8px;
|
}
|
|
.header {
|
width: 100%;
|
height: 80px;
|
padding: 0 20px;
|
min-width: 1366px;
|
}
|
|
|
.bg_header {
|
width: 100%;
|
height: 90px;
|
background: url(img/title_11.png) no-repeat;
|
background-size: 100% 100%;
|
}
|
|
.t_title {
|
width: 100%;
|
height: 100%;
|
text-align: center;
|
font-size: 3em;
|
line-height: 77px;
|
color: #09d1ea ;
|
/*letter-spacing;*/
|
}
|
|
.hd {
|
position: relative;
|
height: 480px;
|
}
|
|
.red_border {
|
border-color: rgba(255,255,255,0.1);
|
background: linear-gradient(to left, #ff1147, #ff1147) left top no-repeat, linear-gradient(to bottom, #ff1147, #ff1147) left top no-repeat, linear-gradient(to left, #ff1147, #ff1147) right top no-repeat, linear-gradient(to bottom, #ff1147, #ff1147) right top no-repeat, linear-gradient(to left, #ff1147, #ff1147) left bottom no-repeat, linear-gradient(to bottom, #ff1147, #ff1147) left bottom no-repeat, linear-gradient(to left, #ff1147, #ff1147) right bottom no-repeat, linear-gradient(to left, #ff1147, #ff1147) right bottom no-repeat;
|
background-size: 3px 20px, 20px 3px, 3px 20px, 20px 3px;
|
background-color: rgba(255,17,71,0.2) !important;
|
}
|
|
.yellow_border {
|
border-color: rgba(255,255,255,0.1);
|
background: linear-gradient(to left, #FFFFBB, #FFFFBB) left top no-repeat, linear-gradient(to bottom, #FFFFBB, #FFFFBB) left top no-repeat, linear-gradient(to left, #FFFFBB, #FFFFBB) right top no-repeat, linear-gradient(to bottom, #FFFFBB, #FFFFBB) right top no-repeat, linear-gradient(to left, #FFFFBB, #FFFFBB) left bottom no-repeat, linear-gradient(to bottom, #FFFFBB, #FFFFBB) left bottom no-repeat, linear-gradient(to left, #FFFFBB, #FFFFBB) right bottom no-repeat, linear-gradient(to left, #FFFFBB, #FFFFBB) right bottom no-repeat;
|
background-size: 3px 20px, 20px 3px, 3px 20px, 20px 3px;
|
background-color: rgba(243,201,7,0.2) !important;
|
}
|
|
.list_main {
|
font-size: 16px;
|
}
|
|
.list_main ul li > div {
|
padding-left: 20px;
|
}
|
|
.list_main ul li img {
|
top: 10px;
|
}
|
|
|
|
.tb_order > tbody > tr {
|
/* background-color: #000; */
|
}
|
|
table tr td {
|
text-align: center;
|
vertical-align: middle !important;
|
/*border: 1px solid #464646;*/
|
border-right: 0px;
|
height: 40px;
|
font-size: 16px;
|
font-family: '黑体';
|
font-family: Arial;
|
border: none;
|
}
|
|
.table > caption + thead > tr:first-child > td, .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > td, .table > thead:first-child > tr:first-child > th {
|
background-color: #000;
|
color: #3bff72;
|
|
}
|
|
.fixed-table-container tbody td .th-inner, .fixed-table-container thead th .th-inner {
|
font-size: 15px;
|
color:#09d1ea;
|
padding:20px 0 15px 0;
|
}
|
|
|
.col-sm-2 {
|
margin: 0 1.5%;
|
width: 14.6%;
|
text-align: center;
|
background-color:rgba(255,255,255,0.1);
|
border-radius: 5px;
|
}
|
|
.panel-title {
|
color: #78787b;;
|
/* font-weight: bold; */
|
}
|
|
.panel-body {
|
background: rgba(255,255,255,0);
|
text-align: center;
|
line-height: 80px;
|
font-size: 40px;
|
color: #7f42ff ;
|
font-family: Arial;
|
}
|
|
|
|
|
.fixed-table-pagination .pagination-detail, .fixed-table-pagination div.pagination {
|
color: #fff;
|
}
|
|
.fixed-table-container tbody .selected td {
|
background: rgba(64,64,64,1);
|
}
|
.panel{
|
padding: 30px 0 10px 0;
|
margin-bottom: 0;
|
}
|
.clock {
|
width:450px;
|
float: left;
|
color: #fff;
|
margin-top: -20px;
|
margin-right:5px;
|
color:#09d1ea;
|
}
|
|
.clock #Date {
|
font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
|
font-size: 20px;
|
text-align: center;
|
text-shadow: 0 0 0px #00c6ff;
|
float:left;
|
margin-right: 20px
|
}
|
|
.clock ul {
|
width:450px;
|
margin: 0 auto;
|
padding: 0px;
|
list-style: none;
|
text-align: left;
|
margin-left: 10px;
|
}
|
|
.clock ul li {
|
display: inline;
|
font-size: 24px;
|
text-align: left;
|
font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
|
text-shadow: 0 0 0px #00c6ff;
|
}
|
#tb_order tr td{
|
text-align: center;
|
height: 32px;
|
line-height: 32px;
|
font-size: 14px;
|
/* font-family: '黑体'; */
|
color: #a6a8ae;
|
font-family: Arial;
|
/* border: 1px solid #464646; */
|
border: none;
|
}
|
.widget-content{
|
border: 3px solid #080c1c;
|
border-radius: 3px;
|
}
|
html{
|
background: #000000 url(img/bg-main.png) no-repeat !important;
|
background-size: cover;
|
width: 100%;
|
height: 100%;
|
}
|
.bs-checkbox input[type=checkbox]:before {
|
content: "";
|
vertical-align: middle;
|
width: 13px;
|
height: 13px;
|
background: #000;
|
}
|
.pagination-info{
|
color:#00c6ff
|
}
|
.bootstrap-table .table{
|
border-radius:none
|
}
|
th{
|
background-color:transparent !important;
|
}
|
td{
|
background-color:transparent;
|
}
|
tr{
|
background-color:transparent
|
}
|
#tb_order tr:nth-child(even) {
|
background: #080c1c;
|
}
|
</style>
|
<script type="text/javascript">
|
// var demoData = [];
|
var checkID = 0;
|
$(document).ready(function () {
|
|
// 创建两个变量,一个数组中的月和日的名称
|
var monthNames = ["1 月", "2 月", "3 月", "4 月", "5 月", "6 月", "7 月", "8 月", "9 月", "10 月", "11 月", "12 月"];
|
setInterval(function () {
|
$.ajax({
|
url: "http://172.16.72.3:86/DaLian/DateTime",
|
dataType: "JSON",
|
type: "POST",
|
success: function (data) {
|
$('#Date').html(data[0].FULLYEAR + " 年" + " " + monthNames[data[0].FULLMONTH - 1] + ' ' + data[0].FULLDATE + " 日 " + ' ' + data[0].FULLXQ);
|
$("#sec").html(data[0].FULLSECONDS);
|
$("#min").html(data[0].FULLMINUTES);
|
$("#hours").html(data[0].FULLHOURS);
|
year = data[0].FULLSECONDS;
|
//month = data[0].FULLMINUTES;
|
//day = data[0].FULLXQ;
|
},
|
error: function (data) {
|
//alert("" + data.messager + "");
|
}
|
})
|
}, 1000);
|
|
});
|
$(function () {
|
Load();
|
Load1();
|
setInterval(function () {
|
$('#tb_order').bootstrapTable('refresh');
|
Load1();
|
}, 16000);
|
})
|
|
function Load() {
|
$('#tb_order').bootstrapTable({
|
url: "http://172.16.72.3:86/DaLian/RoughcastData",
|
method: 'get', //请求方式(*)
|
dataType: "json",
|
queryParams: queryParams,//传递参数(*)
|
striped: false, //是否显示行间隔色
|
cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
|
pagination: true, //是否显示分页(*)
|
sortable: false, //是否启用排序
|
sortable: false, //是否启用排序
|
search: false, //是否启用搜索框
|
sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*)
|
pageNumber: 1, //初始化加载第一页,默认第一页
|
pageSize: 13, //每页的记录行数(*)
|
pageList: [13], //可供选择的每页的行数(*)
|
strictSearch: false, //设置为 true启用 全匹配搜索,否则为模糊搜索
|
clickToSelect: true, //是否启用点击选中行
|
singleSelect: true, //设置True 将禁止多选
|
uniqueId: "ID", //每一行的唯一标识,一般为主键列
|
cardView: false, //是否显示详细视图
|
detailView: false, //是否显示父子表
|
//height: 750,
|
columns: [
|
{
|
field: 'ck', checkbox: true, width: 30, align: 'center', clickToSelect: true,
|
formatter: function (value, row, index) {
|
|
if (index == checkID) {
|
$('#code').html("");
|
$('#zck').html("");
|
$("#code").qrcode({
|
render: "canvas", //也可以替换为table
|
width: 110,
|
height: 110,
|
text: row.Product_wo,
|
|
});
|
$("#zck").html(row.Product_wo);
|
return {
|
checked: true,
|
}
|
}
|
}
|
},
|
|
{ field: 'ID', title: '序号', align: "center" },
|
{ field: 'Product_startime', title: '开工日期', align: "center" },
|
{ field: 'Product_wolk', title: '生产工单', align: "center" },
|
{ field: 'Product_devicname', title: '设备/产线', align: "center" },
|
{ field: 'Product_pnspec', title: '物料规格', align: "center" },
|
{ field: 'Product_pname', title: '物料名称', align: "center" },
|
{ field: 'Product_pnum', title: '物料编码', align: "center" },
|
{ field: 'Product_faqty', title: '备料数量', align: "center" },
|
{ field: 'Product_weiqty', title: '未发数量', align: "center" },
|
{ field: 'Product_kuqty', title: '当前库存', align: "center" },
|
{ field: 'Product_wo', title: '备料单号', align: "center" },
|
{ field: 'Product_staus', title: '状态', align: "center" },
|
{ field: 'Product_pctnum', title: '产品编码', align: "center" },
|
{ field: 'Product_pctname', title: '产品名称', align: "center" },
|
{ field: 'Product_pcspec', title: '产品规格', align: "center" }
|
|
|
],
|
onClickRow: function (row, $element) {
|
$('#code').html("");
|
$('#zck').html("");
|
$("#code").qrcode({
|
render: "canvas", //也可以替换为table
|
width: 100,
|
height: 100,
|
text: row.Product_wo,
|
});
|
$("#zck").html(row.Product_wo);
|
checkID = $element.data('index');
|
},
|
onCheck:function(row, $element) {
|
$('#code').html("");
|
$('#zck').html("");
|
$("#code").qrcode({
|
render: "canvas", //也可以替换为table
|
width: 100,
|
height: 100,
|
text: row.Product_wo,
|
});
|
$("#zck").html(row.Product_wo);
|
checkID = $element.data('index');
|
},
|
onLoadSuccess:function(row){
|
var a=$('#tb_order').bootstrapTable('getSelections');
|
if(a.length<=0){
|
$('#code').html("");
|
$('#zck').html("");
|
}
|
|
}
|
})
|
}
|
//得到查询的参数
|
function queryParams(params) {
|
var temp = { //这里的键的名字和控制器的变量名必须一直,这边改动,控制器也需要改成一样的
|
limit: params.limit, //页面大小
|
offset: (params.offset / params.limit) + 1, //页码
|
};
|
return temp;
|
}
|
|
function Load1() {
|
$.ajax({
|
url: "http://172.16.72.3:86/DaLian/Roughcast_Count",
|
dataType: "JSON",
|
type: "POST",
|
success: function (data) {
|
$("#AnDengSum").html("");
|
$("#DeviceSum").html("");
|
$("#PartSum").html("");
|
$("#MassSum").html("");
|
|
$("#AnDengSum").html(data[0].AnDengSum==""?0:data[0].AnDengSum);
|
$("#DeviceSum").html(data[0].DeviceSum==""?0:data[0].DeviceSum);
|
$("#PartSum").html(data[0].PartSum==""?0:parseFloat(data[0].PartSum).toFixed(0));
|
var num =data[0].MassSum==""?0:parseFloat(data[0].MassSum).toFixed(0)
|
$("#MassSum").html(num*1);
|
},
|
error: function (data) {
|
$.iMessager.alert("提示", "" + data1.messager + "", "messager-warning");
|
}
|
})
|
}
|
|
|
</script>
|
</head>
|
<body>
|
<div class="col-sm-12" style="background-color: rgba(0,0,0,1);">
|
<div class="header">
|
<div class="bg_header">
|
<div class="header_nav fl t_title">
|
毛坯仓库发料看板
|
</div>
|
<div class="clock">
|
<ul>
|
<li id="Date"></li>
|
<li id="hours"> </li>
|
<li id="point">:</li>
|
<li id="min"> </li>
|
<li id="point">:</li>
|
<li id="sec"> </li>
|
</ul>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-12">
|
<div class="widget-box" style="margin-top:2%;">
|
|
<div class="col-sm-2">
|
<div class="panel" style=" ">
|
<div class="">
|
<h3 class="panel-title" style="font-size:18px;">今日入库</h3>
|
</div>
|
<div class="panel-body" id="AnDengSum">
|
0
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-2">
|
<div class="panel" style=" ">
|
<div class="" >
|
<h3 class="panel-title" style="font-size: 18px;">今日出库</h3>
|
</div>
|
<div class="panel-body" id="DeviceSum">
|
0
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-2">
|
<div class="panel" style=" ">
|
<div class="">
|
<h3 class="panel-title" style="font-size: 18px;">当前库存</h3>
|
</div>
|
<div class="panel-body" id="PartSum">
|
0
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-2">
|
<div class="panel" style=" ">
|
<div class="">
|
<h3 class="panel-title" style="font-size: 18px;">备料请求</h3>
|
</div>
|
<div class="panel-body" id="MassSum">
|
0
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-2">
|
<div class="panel" style=" ">
|
<div class="">
|
<h3 class="panel-title" style="font-size: 18px;">正在出库</h3>
|
</div>
|
<div class="panel-body" id="zck">
|
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-2" style="width:8%;">
|
<div style="background-color:#fff; height: 141px;">
|
<div id="code" style="padding-top:15px;"></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="col-sm-12" style="width: 97.5%; margin: 0 1%;">
|
<div class="widget-box">
|
<div class="widget-title" style="margin-top:30px;margin-left:10px">
|
<span class="icon">
|
<!-- <i class="glyphicon glyphicon-align-left"></i> -->
|
<span style="font-size: 18px; color:#09d1ea">备料任务列表</span>
|
</span>
|
</div>
|
<div class="widget-content">
|
<table id="tb_order" class="table-condensed table-responsive tb_order" data-filter-control="true"></table>
|
</div>
|
</div>
|
</div>
|
</body>
|
</html>
|