|
|
@@ -0,0 +1,788 @@
|
|
|
+<!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: 15px; color: #38dcff; font-weight: 700; float: left; padding-top: 40px;"></span>
|
|
|
+ <span id="页面跳转" class="dk-report-loading" style="padding-left: 1080px; font-size: 15px; color: #38dcff; font-weight: 700; float: left; margin-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="二检" class="table-hover table-striped" style="font-size: 14px; width: 1866px; margin-left: 27px; margin-top: -10px;">
|
|
|
+ <thead style="border: 1px solid #38dcff ">
|
|
|
+ <tr style="height: 47px; width: 1866px;">
|
|
|
+ <td scope="col" class="text-center" style="text-align: right;width: 130px; font-size: 30px; color: #f8f9fa; ">
|
|
|
+ <div id="dqsj" name="dqsj" style="float: right"></div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ <div>
|
|
|
+ <table class="table-hover table-striped" style="font-size: 14px; width: 1866px; margin-left: 27px; margin-top: -15px;">
|
|
|
+ <tr style="height: 40px; width: 1866px;">
|
|
|
+ <td scope="col" class="text-center" id="txtsumcy" style="width: 311px; font-size: 50px; color: #f8f9fa; ">总出窑数</td>
|
|
|
+ <td scope="col" class="text-center" id="sumcy" style="width: 311px; font-size: 50px; color: #f8f9fa; "></td>
|
|
|
+ <td scope="col" class="text-center" id="txtsumhgl" style="width: 311px; font-size: 50px; color: #f8f9fa; ">总合格率</td>
|
|
|
+ <td scope="col" class="text-center" id="sumhgl" style="width: 311px; font-size: 50px; color: #f8f9fa; "></td>
|
|
|
+ <td scope="col" class="text-center" id="txtsumjs" style="width: 311px; font-size: 50px; color: #f8f9fa; ">总产量</td>
|
|
|
+ <td scope="col" class="text-center" id="sumjs" style="width: 311px; font-size: 50px; color: #f8f9fa; "></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div id="1" class="box_body" style="display: flex; flex-direction: column; display:block;">
|
|
|
+ <table class="table-hover table-striped" style="font-size: 14px; width: 1866px; margin-left: -11px; margin-top: -15px;">
|
|
|
+
|
|
|
+ <tr style="height: 40px; width: 1866px;">
|
|
|
+ <td colspan="6" scope="col" class="text-center" id="txtone" style="width: 918px; font-size: 45px; color: #f8f9fa; ">一线</td>
|
|
|
+ <td colspan="6" scope="col" class="text-center" id="txttwo" style="width: 918px; font-size: 45px; color: #f8f9fa; ">二线</td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 40px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 30px; color: #f8f9fa;">出窑数</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="onecy" style="width: 130px; font-size: 30px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 30px; color: #f8f9fa;">合格率</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="onehgl" style="width: 130px; font-size: 30px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 30px; color: #f8f9fa;">产量</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="onecl" style="width: 130px; font-size: 30px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 30px; color: #f8f9fa;">出窑数</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twocy" style="width: 130px; font-size: 30px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 30px; color: #f8f9fa;">合格率</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twohgl" style="width: 130px; font-size: 30px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 30px; color: #f8f9fa;">产量</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twocl" style="width: 130px; font-size: 30px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 40px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 20px; color: #f8f9fa;">缺陷位置</td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" style="width: 130px; font-size: 20px; color: #f8f9fa;">数量</td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" style="width: 130px; font-size: 20px; color: #f8f9fa;">达成情况</td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" style="width: 130px; font-size: 20px; color: #f8f9fa;">缺陷位置</td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" style="width: 130px; font-size: 20px; color: #f8f9fa;">数量</td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" style="width: 130px; font-size: 20px; color: #f8f9fa;">达成情况</td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz1" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl1" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="2" scope="col" class="text-center" id="onedcqk1" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz1"style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl1" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="2" scope="col" class="text-center" id="twodcqk1" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz2" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl2" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz2" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl2" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz3" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl3" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="4" scope="col" class="text-center" id="onedcqk2" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz3" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl3" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="4" scope="col" class="text-center" id="twodcqk2" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz4" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl4" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz4" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl4" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz5" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl5" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz5" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl5" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz6" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl6" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz6" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl6" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz7" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl7" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="4" scope="col" class="text-center" id="onedcqk3" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz7" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl7" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="4" scope="col" class="text-center" id="twodcqk3" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px; ">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz8" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl8" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz8" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl8" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz9" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl9" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz9" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl9" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz10" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl10" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz10" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl10" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz11" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl11" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="3" scope="col" class="text-center" id="onedcqk4" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz11" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl11" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="3" scope="col" class="text-center" id="twodcqk4" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz12" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl12" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz12" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl12" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz13" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl13" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz13" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl13" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz14" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl14" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" id="onedcqk5" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz14" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl14" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" id="twodcqk5" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz15" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl15" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" id="onedcqk6" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz15" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl15" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" id="twodcqk6" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz16" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl16" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" id="onedcqk7" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz16" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl16" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" scope="col" class="text-center" id="twodcqk7" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz17" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl17" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="2" scope="col" class="text-center" id="onedcqk8" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz17" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl17" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="3" rowspan="2" scope="col" class="text-center" id="twodcqk8" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 38px;">
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="oneqxwz18" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="onesl18" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="1" scope="col" class="text-center" id="twoqxwz18" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ <td colspan="2" scope="col" class="text-center" id="twosl18" style="width: 130px; font-size: 18px; color: #f8f9fa;"></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <table class="table-hover table-striped" style="font-size: 14px; width: 1866px; margin-left: 27px; margin-top: -15px;">
|
|
|
+ <tr style="height: 27px; width: 1866px;">
|
|
|
+ <td scope="col" class="text-center" id="CrackSum" style="width: 918px; font-size: 55px; color: #f8f9fa; " colspan="10">--</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <!-- #region 横板 -->
|
|
|
+
|
|
|
+ <div class="box_body" style="display: flex; flex-direction: column; margin-top:-1%;margin-left:27px;">
|
|
|
+ <!--表格-->
|
|
|
+ <div style="width: 1866px; height: 830px; display: flex; flex-direction: row; ">
|
|
|
+ <div style="width: 60%; height: 930px; padding-right: 2px;">
|
|
|
+ <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; font-size: 35px;">
|
|
|
+ <tr class="tr_title_warning" style=" font-size: 45px;">
|
|
|
+ <td colspan="9" style="color:white;" id="lieone">裂(一线):</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tr_title_warning" style=" font-size: 35px;">
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%;">责任工号</td>
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">位置</td>
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">数量</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div style="display: flex; height: 600px; overflow: hidden;;margin-top:-13px">
|
|
|
+ <table id="firstTable_template" style="display:none;">
|
|
|
+ <tr class="tr_title_warning" style="height: 30px; font-size: 35px; ">
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">{dg}</td>
|
|
|
+ <td style="font-size: 25px; color: white; width: 30% ">{dp}</td>
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">{dc}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table id="firstTable" cellspacing="0" cellpadding="0" border="0" style="width: 100%; ">
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="width: 60%;height:930px;">
|
|
|
+ <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
|
|
|
+ <tr class="tr_title_warning" style=" font-size: 45px;">
|
|
|
+ <td colspan="9" style="color:white;" id="lietwo">裂(二线):</td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tr_title_warning" style=" font-size: 35px;">
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">责任工号</td>
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">位置</td>
|
|
|
+ <td style="font-size: 30px; color: white; width: 30%">数量</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div style="display: flex; height: 600px; overflow: hidden;; margin-top: -13px ">
|
|
|
+ <table id="SecondTable_template" style="display: none; ">
|
|
|
+ <tr class="tr_bg_light_orange" style="height:30px;">
|
|
|
+ <td style="font-size: 30px; color: white; width: 30% ">{mg}</td>
|
|
|
+ <td style="font-size: 25px; color: white; width: 30%">{mp}</td>
|
|
|
+ <td style="font-size: 30px; color: white; width: 30% ">{mc}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table id="SecondTable" cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- #endregion -->
|
|
|
+ <!--版权信息-->
|
|
|
+ <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 type="text/javascript">
|
|
|
+ var jumptime = 120000;
|
|
|
+ var jumptimes = 0;
|
|
|
+ var lodpage = 1;
|
|
|
+ $(document).ready(function () {
|
|
|
+ jumptimes = jumptime;
|
|
|
+ doGetData = setInterval(function () { SecondLode(); }, 1000);
|
|
|
+ });
|
|
|
+ function SecondLode() {
|
|
|
+ if (jumptimes == 0) {
|
|
|
+ ++lodpage;
|
|
|
+ if ((lodpage % 2) == 0) {
|
|
|
+ jumptime = 60000
|
|
|
+ } else {
|
|
|
+ jumptime = 120000;
|
|
|
+ }
|
|
|
+ jumptimes = jumptime;
|
|
|
+ timeUpdate();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $("#页面跳转").html('页面跳转倒计时(秒):' + jumptimes / 1000);
|
|
|
+ jumptimes = jumptimes - 1000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function timeUpdate() {
|
|
|
+ $("#1").toggle("d-none");
|
|
|
+ $("#2").toggle("d-none");
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <script>
|
|
|
+ //实时缺陷刷新时间
|
|
|
+ //获取当前时间
|
|
|
+ var firstInterval;
|
|
|
+ var firstTableRowCount = 0;
|
|
|
+ var SecondInterval;
|
|
|
+ var SecondTableRowCount = 0;
|
|
|
+ var refreshTime2 = 20000;
|
|
|
+ var currentTime2 = 0;
|
|
|
+ var doGetData;
|
|
|
+ var doGetTime;
|
|
|
+ $(document).ready(function () {
|
|
|
+ loadData();
|
|
|
+ doGetData = setInterval(function () { loadData(); }, 1000);
|
|
|
+ //第二样式 加载
|
|
|
+ FastTable();
|
|
|
+ firstDayTable();
|
|
|
+ SecondDayTable();
|
|
|
+ //刷新时间
|
|
|
+ loadServerTime();
|
|
|
+ doGetTime = setInterval(function () { loadServerTime(); }, 60000);
|
|
|
+ doGetTime = setInterval(function () { FastTable(); }, 15000);
|
|
|
+ doGetTime = setInterval(function () { TimeStar(); }, 10000);
|
|
|
+ });
|
|
|
+
|
|
|
+ //加载数据
|
|
|
+ function loadData() {
|
|
|
+ if (currentTime2 == 0) {
|
|
|
+ currentTime2 = refreshTime2;
|
|
|
+ //总合格率
|
|
|
+ HGL();
|
|
|
+ //汇总产量
|
|
|
+ NumberStatistics();
|
|
|
+ //一线合格率
|
|
|
+ HGL1();
|
|
|
+ //二线合格率
|
|
|
+ HGL2();
|
|
|
+ //出窑数
|
|
|
+ CYS();
|
|
|
+ //一线缺陷数
|
|
|
+ ONEDEFECT();
|
|
|
+ //二线缺陷数
|
|
|
+ TWODEFECT();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $("#实时缺陷加载").html('刷新倒计时(秒):' + currentTime2 / 1000);
|
|
|
+ currentTime2 = currentTime2 - 1000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //取服务器时间
|
|
|
+ function loadServerTime() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=fwq', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ $('#dqsj').html(json["sj"]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //产量
|
|
|
+ function NumberStatistics() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=NumberStatistics', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json['success'] == true) {
|
|
|
+ $('#onecl').html( json["rows"][0]["一线"]);
|
|
|
+ $('#twocl').html(json["rows"][0]["二线"]);
|
|
|
+ $('#sumjs').html( json["rows"][0]["总产量"]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //出窑数
|
|
|
+ function CYS() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=CYS', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json['success'] == true) {
|
|
|
+ $('#onecy').html(json["rows"][0]["一线"]);
|
|
|
+ $('#twocy').html(json["rows"][0]["二线"]);
|
|
|
+ $('#sumcy').html(json["rows"][0]["总产量"]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ //合格率
|
|
|
+ function HGL() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=HGL', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var tst = Number(json["sumhgl"].toString().match(/^\d+(?:\.\d{0,2})?/))
|
|
|
+ $('#sumhgl').html((Number(json["sumhgl"].toString().match(/^\d+(?:\.\d{0,2})?/)) + "%"));
|
|
|
+ if (json["sumhgl"] >= 98.5 && json["sumhgl"] < 99) {
|
|
|
+ document.getElementById('sumhgl').style.color = 'yellow'
|
|
|
+ }
|
|
|
+ if (json["sumhgl"] < 98.5) {
|
|
|
+ document.getElementById('sumhgl').style.color = 'red'
|
|
|
+ }
|
|
|
+ if (json["sumhgl"] >= 99) {
|
|
|
+ document.getElementById('sumhgl').style.color = 'white'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function HGL1() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=HGL1', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var tst = Number(json["sumhgl"].toString().match(/^\d+(?:\.\d{0,2})?/))
|
|
|
+ $('#onehgl').html((Number(json["sumhgl"].toString().match(/^\d+(?:\.\d{0,2})?/)) + "%"));
|
|
|
+ if (json["sumhgl"] >= 98.5 && json["sumhgl"] < 99) {
|
|
|
+ document.getElementById('onehgl').style.color = 'yellow'
|
|
|
+ }
|
|
|
+ if (json["sumhgl"] < 98.5) {
|
|
|
+ document.getElementById('onehgl').style.color = 'red'
|
|
|
+ }
|
|
|
+ if (json["sumhgl"] >= 99) {
|
|
|
+ document.getElementById('onehgl').style.color = 'white'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function HGL2() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=HGL2', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var tst = Number(json["sumhgl"].toString().match(/^\d+(?:\.\d{0,2})?/))
|
|
|
+ $('#twohgl').html((Number(json["sumhgl"].toString().match(/^\d+(?:\.\d{0,2})?/)) + "%"));
|
|
|
+ if (json["sumhgl"] >= 98.5 && json["sumhgl"] < 99) {
|
|
|
+ document.getElementById('twohgl').style.color = 'yellow'
|
|
|
+ }
|
|
|
+ if (json["sumhgl"] < 98.5) {
|
|
|
+ document.getElementById('twohgl').style.color = 'red'
|
|
|
+ }
|
|
|
+ if (json["sumhgl"] >= 99) {
|
|
|
+ document.getElementById('twohgl').style.color = 'white'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //一线缺陷
|
|
|
+ function ONEDEFECT() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=oneDefectNum', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json['success'] == true) {
|
|
|
+ $('#oneqxwz1').html(json["rows"][0]["CODE16_3"]);
|
|
|
+ $('#onesl1').html(json["rows"][1]["CODE16_3"]);
|
|
|
+ $('#oneqxwz2').html(json["rows"][0]["CODE17"]);
|
|
|
+ $('#onesl2').html(json["rows"][1]["CODE17"]);
|
|
|
+ $('#oneqxwz3').html(json["rows"][0]["CODE9_1"]);
|
|
|
+ $('#onesl3').html(json["rows"][1]["CODE9_1"]);
|
|
|
+ $('#oneqxwz4').html(json["rows"][0]["CODE10_1"]);
|
|
|
+ $('#onesl4').html(json["rows"][1]["CODE10_1"]);
|
|
|
+ $('#oneqxwz5').html(json["rows"][0]["CODE16_1"]);
|
|
|
+ $('#onesl5').html(json["rows"][1]["CODE16_1"]);
|
|
|
+ $('#oneqxwz6').html(json["rows"][0]["CODE7_1"]);
|
|
|
+ $('#onesl6').html(json["rows"][1]["CODE7_1"]);
|
|
|
+ $('#oneqxwz7').html(json["rows"][0]["CODE9_2"]);
|
|
|
+ $('#onesl7').html(json["rows"][1]["CODE9_2"]);
|
|
|
+ $('#oneqxwz8').html(json["rows"][0]["CODE10_2"]);
|
|
|
+ $('#onesl8').html(json["rows"][1]["CODE10_2"]);
|
|
|
+ $('#oneqxwz9').html(json["rows"][0]["CODE16_2"]);
|
|
|
+ $('#onesl9').html(json["rows"][1]["CODE16_2"]);
|
|
|
+ $('#oneqxwz10').html(json["rows"][0]["CODE7_2"]);
|
|
|
+ $('#onesl10').html(json["rows"][1]["CODE7_2"]);
|
|
|
+ $('#oneqxwz11').html(json["rows"][0]["CODE5"]);
|
|
|
+ $('#onesl11').html(json["rows"][1]["CODE5"]);
|
|
|
+ $('#oneqxwz12').html(json["rows"][0]["CODE4"]);
|
|
|
+ $('#onesl12').html(json["rows"][1]["CODE4"]);
|
|
|
+ $('#oneqxwz13').html(json["rows"][0]["CODE3"]);
|
|
|
+ $('#onesl13').html(json["rows"][1]["CODE3"]);
|
|
|
+ $('#oneqxwz14').html(json["rows"][0]["CODE50"]);
|
|
|
+ $('#onesl14').html(json["rows"][1]["CODE50"]);
|
|
|
+ $('#oneqxwz15').html(json["rows"][0]["CODE2"]);
|
|
|
+ $('#onesl15').html(json["rows"][1]["CODE2"]);
|
|
|
+ $('#oneqxwz16').html(json["rows"][0]["CODE1"]);
|
|
|
+ $('#onesl16').html(json["rows"][1]["CODE1"]);
|
|
|
+ $('#oneqxwz17').html(json["rows"][0]["CODE6"]);
|
|
|
+ $('#onesl17').html(json["rows"][1]["CODE6"]);
|
|
|
+ $('#oneqxwz18').html(json["rows"][0]["CODE3_4"]);
|
|
|
+ $('#onesl18').html(json["rows"][1]["CODE3_4"]);
|
|
|
+
|
|
|
+ var code16_3 = Number(json["rows"][1]["CODE16_3"]) || 0;
|
|
|
+ var code17 = Number(json["rows"][1]["CODE17"]) || 0;
|
|
|
+ var code9_1 = Number(json["rows"][1]["CODE9_1"]) || 0;
|
|
|
+ var code10_1 = Number(json["rows"][1]["CODE10_1"]) || 0;
|
|
|
+ var code16_1 = Number(json["rows"][1]["CODE16_1"]) || 0;
|
|
|
+ var code7_1 = Number(json["rows"][1]["CODE7_1"]) || 0;
|
|
|
+ var code9_2 = Number(json["rows"][1]["CODE9_2"]) || 0;
|
|
|
+ var code10_2 = Number(json["rows"][1]["CODE10_2"]) || 0;
|
|
|
+ var code16_2 = Number(json["rows"][1]["CODE16_2"]) || 0;
|
|
|
+ var code7_2 = Number(json["rows"][1]["CODE7_2"]) || 0;
|
|
|
+ var code5 = Number(json["rows"][1]["CODE5"]) || 0;
|
|
|
+ var code4 = Number(json["rows"][1]["CODE4"]) || 0;
|
|
|
+ var code3 = Number(json["rows"][1]["CODE3"]) || 0;
|
|
|
+ var code50 = Number(json["rows"][1]["CODE50"]) || 0;
|
|
|
+ var code2 = Number(json["rows"][1]["CODE2"]) || 0;
|
|
|
+ var code1 = Number(json["rows"][1]["CODE1"]) || 0;
|
|
|
+ var code6 = Number(json["rows"][1]["CODE6"]) || 0;
|
|
|
+ var code3_4 = Number(json["rows"][1]["CODE3_4"]) || 0;
|
|
|
+ var cys = Number(json["rows"][2]["CYS"]) || 0;
|
|
|
+
|
|
|
+ // 计算百分比,避免除数为0
|
|
|
+ var percentage1 = cys !== 0 ? ((cys - code16_3 - code17) / cys) * 100 : 0;
|
|
|
+ var percentage2 = cys !== 0 ? ((cys - code9_1 - code10_1 - code16_1 - code7_1) / cys) * 100 : 0;
|
|
|
+ var percentage3 = cys !== 0 ? ((cys - code9_2 - code10_2 - code16_2 - code7_2) / cys) * 100 : 0;
|
|
|
+ var percentage4 = cys !== 0 ? ((cys - code5 - code4 - code3) / cys) * 100 : 0;
|
|
|
+ var percentage5 = cys !== 0 ? ((cys - code50) / cys) * 100 : 0;
|
|
|
+ var percentage6 = cys !== 0 ? ((cys - code2) / cys) * 100 : 0;
|
|
|
+ var percentage7 = cys !== 0 ? ((cys - code1) / cys) * 100 : 0;
|
|
|
+ var percentage8 = cys !== 0 ? ((cys - code6 - code3_4) / cys) * 100 : 0;
|
|
|
+
|
|
|
+ // 格式化显示(保留两位小数)
|
|
|
+ $('#onedcqk1').html(percentage1.toFixed(2) + "%");
|
|
|
+ $('#onedcqk2').html(percentage2.toFixed(2) + "%");
|
|
|
+ $('#onedcqk3').html(percentage3.toFixed(2) + "%");
|
|
|
+ $('#onedcqk4').html(percentage4.toFixed(2) + "%");
|
|
|
+ $('#onedcqk5').html(percentage5.toFixed(2) + "%");
|
|
|
+ $('#onedcqk6').html(percentage6.toFixed(2) + "%");
|
|
|
+ $('#onedcqk7').html(percentage7.toFixed(2) + "%");
|
|
|
+ $('#onedcqk8').html(percentage8.toFixed(2) + "%");
|
|
|
+ defectColor(percentage1, 'onedcqk1');
|
|
|
+ defectColor(percentage2, 'onedcqk2');
|
|
|
+ defectColor(percentage3, 'onedcqk3');
|
|
|
+ defectColor(percentage4, 'onedcqk4');
|
|
|
+ defectColor(percentage5, 'onedcqk5');
|
|
|
+ defectColor(percentage6, 'onedcqk6');
|
|
|
+ defectColor(percentage7, 'onedcqk7');
|
|
|
+ defectColor(percentage8, 'onedcqk8');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function defectColor(percentage,id) {
|
|
|
+ if (percentage >= 98.5 && percentage < 99) {
|
|
|
+ document.getElementById(id).style.color = 'yellow'
|
|
|
+ }
|
|
|
+ if (percentage < 98.5) {
|
|
|
+ document.getElementById(id).style.color = 'red'
|
|
|
+ }
|
|
|
+ if (percentage >= 99) {
|
|
|
+ document.getElementById(id).style.color = 'white'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //二线缺陷
|
|
|
+ function TWODEFECT() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=twoDefectNum', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json['success'] == true) {
|
|
|
+ $('#twoqxwz1').html(json["rows"][0]["CODE16_3"]);
|
|
|
+ $('#twosl1').html(json["rows"][1]["CODE16_3"]);
|
|
|
+ $('#twoqxwz2').html(json["rows"][0]["CODE17"]);
|
|
|
+ $('#twosl2').html(json["rows"][1]["CODE17"]);
|
|
|
+ $('#twoqxwz3').html(json["rows"][0]["CODE9_1"]);
|
|
|
+ $('#twosl3').html(json["rows"][1]["CODE9_1"]);
|
|
|
+ $('#twoqxwz4').html(json["rows"][0]["CODE10_1"]);
|
|
|
+ $('#twosl4').html(json["rows"][1]["CODE10_1"]);
|
|
|
+ $('#twoqxwz5').html(json["rows"][0]["CODE16_1"]);
|
|
|
+ $('#twosl5').html(json["rows"][1]["CODE16_1"]);
|
|
|
+ $('#twoqxwz6').html(json["rows"][0]["CODE7_1"]);
|
|
|
+ $('#twosl6').html(json["rows"][1]["CODE7_1"]);
|
|
|
+ $('#twoqxwz7').html(json["rows"][0]["CODE9_2"]);
|
|
|
+ $('#twosl7').html(json["rows"][1]["CODE9_2"]);
|
|
|
+ $('#twoqxwz8').html(json["rows"][0]["CODE10_2"]);
|
|
|
+ $('#twosl8').html(json["rows"][1]["CODE10_2"]);
|
|
|
+ $('#twoqxwz9').html(json["rows"][0]["CODE16_2"]);
|
|
|
+ $('#twosl9').html(json["rows"][1]["CODE16_2"]);
|
|
|
+ $('#twoqxwz10').html(json["rows"][0]["CODE7_2"]);
|
|
|
+ $('#twosl10').html(json["rows"][1]["CODE7_2"]);
|
|
|
+ $('#twoqxwz11').html(json["rows"][0]["CODE5"]);
|
|
|
+ $('#twosl11').html(json["rows"][1]["CODE5"]);
|
|
|
+ $('#twoqxwz12').html(json["rows"][0]["CODE4"]);
|
|
|
+ $('#twosl12').html(json["rows"][1]["CODE4"]);
|
|
|
+ $('#twoqxwz13').html(json["rows"][0]["CODE3"]);
|
|
|
+ $('#twosl13').html(json["rows"][1]["CODE3"]);
|
|
|
+ $('#twoqxwz14').html(json["rows"][0]["CODE50"]);
|
|
|
+ $('#twosl14').html(json["rows"][1]["CODE50"]);
|
|
|
+ $('#twoqxwz15').html(json["rows"][0]["CODE2"]);
|
|
|
+ $('#twosl15').html(json["rows"][1]["CODE2"]);
|
|
|
+ $('#twoqxwz16').html(json["rows"][0]["CODE1"]);
|
|
|
+ $('#twosl16').html(json["rows"][1]["CODE1"]);
|
|
|
+ $('#twoqxwz17').html(json["rows"][0]["CODE6"]);
|
|
|
+ $('#twosl17').html(json["rows"][1]["CODE6"]);
|
|
|
+ $('#twoqxwz18').html(json["rows"][0]["CODE3_4"]);
|
|
|
+ $('#twosl18').html(json["rows"][1]["CODE3_4"]);
|
|
|
+
|
|
|
+ var code16_3 = Number(json["rows"][1]["CODE16_3"]) || 0;
|
|
|
+ var code17 = Number(json["rows"][1]["CODE17"]) || 0;
|
|
|
+ var code9_1 = Number(json["rows"][1]["CODE9_1"]) || 0;
|
|
|
+ var code10_1 = Number(json["rows"][1]["CODE10_1"]) || 0;
|
|
|
+ var code16_1 = Number(json["rows"][1]["CODE16_1"]) || 0;
|
|
|
+ var code7_1 = Number(json["rows"][1]["CODE7_1"]) || 0;
|
|
|
+ var code9_2 = Number(json["rows"][1]["CODE9_2"]) || 0;
|
|
|
+ var code10_2 = Number(json["rows"][1]["CODE10_2"]) || 0;
|
|
|
+ var code16_2 = Number(json["rows"][1]["CODE16_2"]) || 0;
|
|
|
+ var code7_2 = Number(json["rows"][1]["CODE7_2"]) || 0;
|
|
|
+ var code5 = Number(json["rows"][1]["CODE5"]) || 0;
|
|
|
+ var code4 = Number(json["rows"][1]["CODE4"]) || 0;
|
|
|
+ var code3 = Number(json["rows"][1]["CODE3"]) || 0;
|
|
|
+ var code50 = Number(json["rows"][1]["CODE50"]) || 0;
|
|
|
+ var code2 = Number(json["rows"][1]["CODE2"]) || 0;
|
|
|
+ var code1 = Number(json["rows"][1]["CODE1"]) || 0;
|
|
|
+ var code6 = Number(json["rows"][1]["CODE6"]) || 0;
|
|
|
+ var code3_4 = Number(json["rows"][1]["CODE3_4"]) || 0;
|
|
|
+ var cys = Number(json["rows"][2]["CYS"]) || 0;
|
|
|
+
|
|
|
+ // 计算百分比,避免除数为0
|
|
|
+ var percentage1 = cys !== 0 ? ((cys - code16_3 - code17) / cys) * 100 : 0;
|
|
|
+ var percentage2 = cys !== 0 ? ((cys - code9_1 - code10_1 - code16_1 - code7_1) / cys) * 100 : 0;
|
|
|
+ var percentage3 = cys !== 0 ? ((cys - code9_2 - code10_2 - code16_2 - code7_2) / cys) * 100 : 0;
|
|
|
+ var percentage4 = cys !== 0 ? ((cys - code5 - code4 - code3) / cys) * 100 : 0;
|
|
|
+ var percentage5 = cys !== 0 ? ((cys - code50) / cys) * 100 : 0;
|
|
|
+ var percentage6 = cys !== 0 ? ((cys - code2) / cys) * 100 : 0;
|
|
|
+ var percentage7 = cys !== 0 ? ((cys - code1) / cys) * 100 : 0;
|
|
|
+ var percentage8 = cys !== 0 ? ((cys - code6 - code3_4) / cys) * 100 : 0;
|
|
|
+
|
|
|
+ // 格式化显示(保留两位小数)
|
|
|
+ $('#twodcqk1').html(percentage1.toFixed(2) + "%");
|
|
|
+ $('#twodcqk2').html(percentage2.toFixed(2) + "%");
|
|
|
+ $('#twodcqk3').html(percentage3.toFixed(2) + "%");
|
|
|
+ $('#twodcqk4').html(percentage4.toFixed(2) + "%");
|
|
|
+ $('#twodcqk5').html(percentage5.toFixed(2) + "%");
|
|
|
+ $('#twodcqk6').html(percentage6.toFixed(2) + "%");
|
|
|
+ $('#twodcqk7').html(percentage7.toFixed(2) + "%");
|
|
|
+ $('#twodcqk8').html(percentage8.toFixed(2) + "%");
|
|
|
+ defectColor(percentage1, 'twodcqk1');
|
|
|
+ defectColor(percentage2, 'twodcqk2');
|
|
|
+ defectColor(percentage3, 'twodcqk3');
|
|
|
+ defectColor(percentage4, 'twodcqk4');
|
|
|
+ defectColor(percentage5, 'twodcqk5');
|
|
|
+ defectColor(percentage6, 'twodcqk6');
|
|
|
+ defectColor(percentage7, 'twodcqk7');
|
|
|
+ defectColor(percentage8, 'twodcqk8');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //加载数据到表格控件
|
|
|
+ function loadTable(id, url, callback) {
|
|
|
+ $(id + '加载').html('<i class="fa fa-spinner fa-pulse fa-fw"></i>');
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ function FastTable() {
|
|
|
+ CrackSum();
|
|
|
+ }
|
|
|
+ function CrackSum() {
|
|
|
+ $.get('SecondaryCheck.ashx?m=SumCrack', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ $('#lieone').text("裂(一线):" + json["rows"][0]["一线"]);
|
|
|
+ $('#lietwo').text("裂(二线):" + json["rows"][1]["一线"]);
|
|
|
+ $('#CrackSum').text("裂总量:" + json["rows"][2]["一线"]);
|
|
|
+ if (json["rows"][2]["一线"] > 20) {
|
|
|
+ document.getElementById('CrackSum').style.color = 'red'
|
|
|
+ } else {
|
|
|
+ document.getElementById('CrackSum').style.color = 'white'
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function firstTableScroll() {
|
|
|
+ var scrollHeight = $("#firstTable_template").find("tr").outerHeight();
|
|
|
+ $("#firstTable").animate({ marginTop: -scrollHeight, }, 500,
|
|
|
+ function () {
|
|
|
+ $(this).css({ marginTop: "0px", }).find("tr:first").appendTo(this);
|
|
|
+ if (firstTableRowCount > -1) {
|
|
|
+ firstTableRowCount--;
|
|
|
+ } else {
|
|
|
+ clearInterval(firstInterval);
|
|
|
+ firstDayTable();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ //明细表
|
|
|
+ function firstDayTable() {
|
|
|
+ $.get("SecondaryCheckTwo.ashx?m=firstTable", function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ $("#firstTable").html("");
|
|
|
+ for (var i = 0; i < json["rows"].length; i++) {
|
|
|
+ var temp = $("#firstTable_template").html();
|
|
|
+ temp = temp.replace("<tbody>", "").replace("</tbody>", "");
|
|
|
+ temp = temp.replace('{dg}', json["rows"][i]['CODE']);
|
|
|
+ temp = temp.replace('{dp}', json["rows"][i]['位置统计']);
|
|
|
+ temp = temp.replace('{dc}', json["rows"][i]['一线产量']);
|
|
|
+ $("#firstTable").append(temp);
|
|
|
+ }
|
|
|
+ firstTableRowCount = json["rows"].length;
|
|
|
+ if (firstInterval > 10) {
|
|
|
+ firstInterval = setInterval(firstTableScroll, 2000);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function SecondTableScroll() {
|
|
|
+ var scrollHeight = $("#SecondTable_template").find("tr").outerHeight();
|
|
|
+ $("#SecondTable").animate({ marginTop: -scrollHeight, }, 500,
|
|
|
+ function () {
|
|
|
+ $(this).css({ marginTop: "0px", }).find("tr:first").appendTo(this);
|
|
|
+ if (firstTableRowCount > -1) {
|
|
|
+ firstTableRowCount--;
|
|
|
+ } else {
|
|
|
+ clearInterval(SecondInterval);
|
|
|
+ SecondDayTable();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ //明细表
|
|
|
+ function SecondDayTable() {
|
|
|
+ $.get("SecondaryCheckTwo.ashx?m=SecondTable", function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ $("#SecondTable").html("");
|
|
|
+ for (var i = 0; i < json["rows"].length; i++) {
|
|
|
+ var temp = $("#SecondTable_template").html();
|
|
|
+ temp = temp.replace("<tbody>", "").replace("</tbody>", "");
|
|
|
+ temp = temp.replace('{mg}', json["rows"][i]['CODE']);
|
|
|
+ temp = temp.replace('{mp}', json["rows"][i]['位置统计']);
|
|
|
+ temp = temp.replace('{mc}', json["rows"][i]['二线产量']);
|
|
|
+ $("#SecondTable").append(temp);
|
|
|
+ }
|
|
|
+ SecondTableRowCount = json["rows"].length;
|
|
|
+ if (SecondTableRowCount > 10) {
|
|
|
+ SecondInterval = setInterval(SecondTableScroll, 2000);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //颜色
|
|
|
+ function TimeStar() {
|
|
|
+ firstTableColor();
|
|
|
+ SecondTableColor();
|
|
|
+ }
|
|
|
+ function firstTableColor() {
|
|
|
+ var count = 0;
|
|
|
+ $(function () {
|
|
|
+ $("#firstTable tr td:nth-child(3)").each(function () {
|
|
|
+ if (parseFloat($(this).text()) >= 2) {
|
|
|
+ document.getElementById("firstTable").rows[count].cells[0].style.color = "red";
|
|
|
+ } else if ((parseFloat($(this).text()) < 2)) {
|
|
|
+ document.getElementById("firstTable").rows[count].cells[0].style.color = "white";
|
|
|
+ }
|
|
|
+ count++;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function SecondTableColor() {
|
|
|
+ var count = 0;
|
|
|
+ $(function () {
|
|
|
+ $("#SecondTable tr td:nth-child(3)").each(function () {
|
|
|
+ if (parseFloat($(this).text()) >= 2) {
|
|
|
+ document.getElementById("SecondTable").rows[count].cells[0].style.color = "red";
|
|
|
+ } else if ((parseFloat($(this).text()) < 2)) {
|
|
|
+ document.getElementById("SecondTable").rows[count].cells[0].style.color = "white";
|
|
|
+ }
|
|
|
+ count++;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ </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;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</body>
|
|
|
+</html>
|