| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="shortcut icon" href="/img/logo.png" />
- <link rel="bookmark" href="/img/logo.png" />
- <link rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
- <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
- <link href="/Plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
- <link rel="stylesheet" href="../DashBoard.css?v3" />
- <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
- <script src="/Plugins/xrequest/xrequest.min.js"></script>
- <title>东科软件</title>
- </head>
- <body class="bg-white p-0 dk-report">
- <!--实时缺陷记录-->
- <div class="container-fluid pt-1 p-0 box_1920_1080">
- <div class="position-absolute">
- <span id="实时缺陷加载" class="dk-report-loading" style="padding-left: 290px;font-size: 13px;color: #38dcff;font-weight: 700;float: left;padding-top: 40px;"></span>
- </div>
- <h4 class="text-center pb-2 dk-report-title" style="font-size: 60px; font-weight: bolder;color: #f8f9fa;">小件看板</h4>
- <table id="小件看板第一table" class="table-hover table-striped" style="font-size: 14px; width: 1875px; margin-left: 21px; margin-top: -18px;">
- <thead style="border: 1px solid #38dcff ">
- <tr style="height: 42px; width: 1866px;">
- <td scope="col" class="text-center" id="wd" style="width: 130px; font-size: 35px; color: #f8f9fa; text-align:left ">
- <div style="text-align: left; font-size: 35px;">出窑数:<soan id="cys" style=" font-size: 35px;"></soan></div>
- <div style="text-align:right;margin-top:-3%"<span id="sj" style=" font-size: 35px;">0000-00-00 00:00</span></div>
- </td>
- </tr>
- </thead>
- </table>
- <div style="width: 49%; height:65%">
- <table id="修坯上水" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
- <thead style="border: 1px solid #38dcff ">
- <tr style="height: 35px; width: 1866px;">
- <td colspan="6" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: center ">修坯上水</td>
- </tr>
- <tr style="height: 35px; width: 1866px; ">
- <td colspan="3" scope="col" class="text-center" id="xpcl" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: left ">总 产 量:</td>
- <td colspan="3" scope="col" class="text-center" id="xphgl" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: left ">总合格率:</td>
- </tr>
- <tr style="height: 28px; width: 1866px; ">
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 28px; color: #f8f9fa; text-align: center ">工 号</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 28px; color: #f8f9fa; text-align: center ">产 量</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 28px; color: #f8f9fa; text-align: center ">合格率</td>
- </tr>
- </thead>
- </table>
- <table id="修坯上水模版" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px; display: none;">
- <thead style="border: 1px solid #38dcff ">
- <tr style="height: 24px; ">
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 25px; color: #f8f9fa; text-align: left ">{gh}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 25px; color: #f8f9fa; text-align: left ">{cl}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 25px; color: #f8f9fa; text-align: left ">{hgl}</td>
- </tr>
- </thead>
- </table>
- <table id="xpsssj" cellspacing="0" cellpadding="0" border="0" style="width: 100%; margin-left: 21px; margin-top: -17px; ">
- </table>
- </div>
- <div style="width: 937px; height: 35%; margin-top: -700px; ">
- <table id="施釉" class="table-hover table-striped" style="font-size: 30px; height: 5%; width: 100%; margin-left: 960px; ">
- <tr style="height: 35px; width: 1866px;">
- <td colspan="6" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: center ">施釉</td>
- </tr>
- <tr style="height: 35px; width: 1866px;">
- <td colspan="3" scope="col" class="text-center" id="sycl" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: left ">总 产 量:</td>
- <td colspan="3" scope="col" class="text-center" id="syhgl" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: left ">总合格率:</td>
- </tr>
- <tr style="height: 28px; width: 1866px; ">
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 28px; color: #f8f9fa; text-align: center ">工 号</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 28px; color: #f8f9fa; text-align: center ">产 量</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 28px; color: #f8f9fa; text-align: center ">合格率</td>
- </tr>
- </table>
- <table id="施釉模版" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 960px; margin-top: -17px; display: none;">
- <thead style="border: 1px solid #38dcff ">
- <tr style="height: 32px; width: 1866px; ">
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 25px; color: #f8f9fa; text-align: left ">{gh}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 25px; color: #f8f9fa; text-align: left ">{cl}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 25px; color: #f8f9fa; text-align: left ">{hgl}</td>
- </tr>
- </thead>
- </table>
- <table id="施釉数据" cellspacing="0" cellpadding="0" border="0" style="width: 100%; margin-left: 960px; margin-top: -17px; ">
- </table>
- </div>
- <div style="width: 49%; height: 40%; margin-top: 203px ">
- <table id="二检" class="table-hover table-striped" style="font-size: 30px; height: 5%; width: 100%; margin-left: 21px; ">
- <tr style="height: 35px; width: 1866px;">
- <td colspan="8" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 33px; color: #f8f9fa; text-align: center ">二检</td>
- </tr>
- <tr style="height: 28px; width: 1866px; ">
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 28px; color: #f8f9fa; text-align: center ">工 号</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 120px; font-size: 28px; color: #f8f9fa; text-align: center ">产 量</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 28px; color: #f8f9fa; text-align: center ">外裂量</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 120px; font-size: 28px; color: #f8f9fa; text-align: center ">合格率</td>
- </tr>
- </table>
- <table id="二检模版" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px; display: none; ">
- <thead style="border: 1px solid #38dcff ">
- <tr style="height: 30px; width: 1866px; ">
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 23px; color: #f8f9fa; text-align: left ">{gh}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 120px; font-size: 23px; color: #f8f9fa; text-align: left ">{cl}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 23px; color: #f8f9fa; text-align: left ">{wll}</td>
- <td colspan="2" scope="col" class="text-center" id="wd" style="width: 120px; font-size: 23px; color: #f8f9fa; text-align: left ">{hgl}</td>
- </tr>
- </thead>
- </table>
- <table id="二检数据" cellspacing="0" cellpadding="0" border="0" style="width: 100%; margin-left: 21px; margin-top: -17px; ">
- </table>
- </div>
- <div style="width: 937px; height: 10%; margin-left: 960px; margin-top: -605px ">
- <table id="缺陷汇总" class="table-hover table-striped" style="font-size: 30px; height: 100%; width: 100%; ">
- <tr style="height: 35px; width: 1866px; ">
- <td colspan="6" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 30px; color: #f8f9fa; text-align: center ">缺陷汇总</td>
- </tr>
- <tr style="height: 32px; width: 1866px; ">
- <td colspan="1" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 20px; color: #f8f9fa; text-align: left ">条 码</td>
- <td colspan="1" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">责任工号</td>
- <td colspan="1" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">缺陷名称</td>
- <td colspan="1" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">产品型号</td>
- <td colspan="1" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">二检工号</td>
- <td colspan="1" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">产品分级</td>
- </tr>
- </table>
- <div style="width: 100%; margin-top: -17px; height: 207px">
- <table id="缺陷汇总模版" class="table-hover table-striped" style="width: 100%; height: 100%; display: none; ">
- <thead style="border: 1px solid #38dcff ">
- <tr style="height: 36px; width: 1866px; ">
- <td scope="col" class="text-center" id="wd" style="width: 100px; font-size: 15px; color: #f8f9fa; text-align: left ">{tm}</td>
- <td scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">{zrgh}</td>
- <td scope="col" class="text-center" id="wd" style="width: 100px; font-size: 18px; color: #f8f9fa; text-align: left ">{qxmc}</td>
- <td scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">{cpxh}</td>
- <td scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">{ejgh}</td>
- <td scope="col" class="text-center" id="wd" style="width: 100px; font-size: 25px; color: #f8f9fa; text-align: left ">{cpfj}</td>
- </tr>
- </thead>
- </table>
- <table id="缺陷汇总数据" cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
- </table>
- </div>
- </div>
- </div>
- <!--版权信息-->
- <script src="/Plugins/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
- <script src="/Plugins/bootstrap-table/bootstrap-table.min.js"></script>
- <script src="/Plugins/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
- <script src="/Plugins/sweetalert/sweetalert.min.js"></script>
- <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
- <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
- <script>
- //缺陷明细定时翻页
- var showpage = 10; //显示条数
- var pages = 1; //当前页数
- var excesspage; //剩余条数
- var countpage; //总条数
- $(document).ready(function () {
- Lode();
- TablesFour();
- doGetData = setInterval(function () { TablesFour(); }, 8000);
- doGetData = setInterval(function () { Lode(); }, 18000);
- doGetData = setInterval(function () { loadServerTime(); }, 60000);
- doGetData = setInterval(function () { Table1Color(); }, 3000);
- });
- function Lode() {
- loadServerTime();
- Summary();
- TableOne();
- TablesTwo();
- TablesThree();
- }
- function Table1Color() {
- Table1Color1();
- Table1Color2();
- Table1Color3();
- }
- function Table1Color1() {
- var count = 0;
- $("#xpsssj tr td:nth-child(3)").each(function () {
- if (parseFloat($(this).text().slice(0,-1)) < 98) {
- $(this).css("color", "red");
- } else {
- $(this).css("color", "white");
- }
- count++;
- });
- }
- function Table1Color2() {
- var count = 0;
- $("#施釉数据 tr td:nth-child(3)").each(function () {
- if (parseFloat($(this).text().slice(0, -1)) < 98) {
- $(this).css("color", "red");
- } else {
- $(this).css("color", "white");
- }
- count++;
- });
- }
- function Table1Color3() {
- var count = 0;
- $("#二检数据 tr td:nth-child(4)").each(function () {
- if (parseFloat($(this).text().slice(0, -1)) < 98) {
- $(this).css("color", "red");
- } else {
- $(this).css("color", "white");
- }
- count++;
- });
- }
- //取服务器时间
- function loadServerTime() {
- $.get('SmallKanban.ashx?m=fwq', function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- $('#sj').html(json["sj"]);
- }
- });
- }
- function Summary() {
- $.get('SmallKanban.ashx?m=Summary', function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- $('#cys').text(json["rows"][0]["出窑数量"]);
- $('#xpcl').text("总产量:"+json["rows"][0]["修坯上水产量"]);
- $('#sycl').text("总产量:" + json["rows"][0]["施釉产量"]);
- var onenumber = json["rows"][0]["修坯上水合格率"].slice(0, -1);
- var twonumber = json["rows"][0]["施釉合格率"].slice(0, -1);
- if (onenumber < 98) {
- document.getElementById('xphgl').style.color = 'red'
- } else {
- document.getElementById('xphgl').style.color = 'white'
- }
- if (twonumber < 98) {
- document.getElementById('syhgl').style.color = 'red'
- } else {
- document.getElementById('syhgl').style.color = 'white'
- }
- $('#xphgl').text("总合格率:" + json["rows"][0]["修坯上水合格率"]);
- $('#syhgl').text("总合格率:" + json["rows"][0]["施釉合格率"]);
- }
- });
- }
- function TableOne() {
- $.get('SmallKanban.ashx?m=修坯上水', function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- $("#xpsssj").html("");
- for (var i = 0; i < json["rows"].length; i++) {
- var temp = $("#修坯上水模版").html();
- temp = temp.replace("<tbody>", "").replace("</tbody>", "");
- temp = temp.replace('{gh}', json["rows"][i]['工号']);
- temp = temp.replace('{cl}', json["rows"][i]['产量']);
- temp = temp.replace('{hgl}', json["rows"][i]['合格率']);
- $("#xpsssj").append(temp);
- }
- }
- });
- }
- function TablesTwo() {
- $.get('SmallKanban.ashx?m=二检', function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- $("#二检数据").html("");
- for (var i = 0; i < json["rows"].length; i++) {
- var temp = $("#二检模版").html();
- temp = temp.replace("<tbody>", "").replace("</tbody>", "");
- temp = temp.replace('{gh}', json["rows"][i]['工号']);
- temp = temp.replace('{cl}', json["rows"][i]['产量']);
- temp = temp.replace('{wll}', json["rows"][i]['外裂量']);
- temp = temp.replace('{hgl}', json["rows"][i]['合格率']);
- $("#二检数据").append(temp);
- }
- }
- });
- }
- function TablesThree() {
- $.get('SmallKanban.ashx?m=施釉', function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- $("#施釉数据").html("");
- for (var i = 0; i < json["rows"].length; i++) {
- var temp = $("#施釉模版").html();
- temp = temp.replace("<tbody>", "").replace("</tbody>", "");
- temp = temp.replace('{gh}', json["rows"][i]['工号']);
- temp = temp.replace('{cl}', json["rows"][i]['产量']);
- temp = temp.replace('{hgl}', json["rows"][i]['合格率']);
- $("#施釉数据").append(temp);
- }
- }
- });
- }
- function TablesFour() {
- $.get('SmallKanban.ashx?m=缺陷汇总数量', function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- countpage = parseInt(json["counts"]);
- }
- });
- excesspage = countpage - (showpage * pages)
- if (excesspage > 0) {
- pages++;
- }
- else {
- pages = 1;
- }
- $.get('SmallKanban.ashx?m=缺陷汇总&&page=' + pages, function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- $("#缺陷汇总数据").html("");
- for (var i = 0; i < json["rows"].length; i++) {
- var temp = $("#缺陷汇总模版").html();
- temp = temp.replace("<tbody>", "").replace("</tbody>", "");
- temp = temp.replace('{tm}', json["rows"][i]['条码']);
- temp = temp.replace('{zrgh}', json["rows"][i]['责任工号']);
- temp = temp.replace('{qxmc}', json["rows"][i]['缺陷名称']);
- temp = temp.replace('{cpxh}', json["rows"][i]['产品型号']);
- temp = temp.replace('{ejgh}', json["rows"][i]['二检工号']);
- temp = temp.replace('{cpfj}', json["rows"][i]['产品分级']);
- $("#缺陷汇总数据").append(temp);
- }
- }
- });
- }
- </script>
- <style>
- table {
- height: 40px;
- color: #f8f9fa !important;
- font-size: 20px;
- font-weight: 700;
- background: rgba(25, 52, 90,.5);
- border: 1px solid #38dcff;
- margin-bottom: 1rem;
- }
- td {
- padding: 2px !important;
- text-align: center !important;
- border-bottom: 1px solid #38dcff !important;
- border-right: 1px dashed #38dcff !important;
- border: white;
- }
- a {
- background-color: lightblue;
- }
- </style>
- </body>
- </html>
|