金豪看板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

348 lines
12 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. 
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <!--更多资源: -->
  6. <meta charset="utf-8" />
  7. <meta name="description" content="" />
  8. <meta name="keywords" content="" />
  9. <meta name="viewport"
  10. content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  11. <title>每日生产看板</title>
  12. <!--大屏-->
  13. <link type="text/css" href="~/Content/Cust003/css/public.css" rel="stylesheet" />
  14. <link type="text/css" href="~/Content/Cust003/css/icon.css" rel="stylesheet" />
  15. <link type="text/css" href="~/Content/Cust003/css/index.css" rel="stylesheet" />
  16. <link rel="stylesheet" href="~/Content/Cust069/fonts/icomoon.css">
  17. <script src="~/Content/js/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
  18. @*<script src="~/Content/Cust003/js/jquery-1.11.0.min.js" type="text/javascript"></script>*@
  19. <script src="~/Content/Cust003/js/jquery.numscroll.js"
  20. type="text/javascript"
  21. charset="utf-8"></script>
  22. <script src="~/Content/js/echarts/echarts5.3.3.min.js"></script>
  23. <style>
  24. h3 {
  25. color: #FFFFFF;
  26. text-shadow: #05d1fc 0px 1px 3px, #05d1fc 1px 0px 3px,#05d1fc 0px -1px 3px, #05d1fc -1px 0px 3px;
  27. filter: glow(color=#00FFCC,strength=3);
  28. }
  29. .rightMain_top {
  30. width: 100%;
  31. padding-bottom: 0.1rem;
  32. }
  33. .animationNone {
  34. animation: none !important;
  35. }
  36. .leftMain_top ul li {
  37. width:100% !important;
  38. }
  39. /*.CustDiv4 ul li:nth-child(1), .CustDiv4 div div ul li:nth-child(1) {
  40. width: 5% !important;
  41. }*/
  42. .leftMain_top, .leftMain_bottom {
  43. height: calc(99.5% - 0.3rem);
  44. }
  45. .leftMain_topIn, .leftMain_bottomIn, .leftMain_topIn ul:nth-child(1),
  46. .leftMain_bottomIn ul:nth-child(1), .rightMain_bottom, .rightMain_bottomIn {
  47. height: 100%;
  48. }
  49. img {
  50. height: 0.2rem;
  51. width: 0.5rem;
  52. padding-top: 0.05rem;
  53. }
  54. .bg {
  55. padding-top: 0.01rem;
  56. }
  57. .title {
  58. height: 8%;
  59. text-shadow: #01db78 0px 2px 3px, #01db78 1px 0px 3px, #05d1fc 0px -2px 3px, #05d1fc -1px 0px 3px;
  60. }
  61. .TopName {
  62. vertical-align: middle;
  63. text-align: center;
  64. font-size: 30px;
  65. font-weight: 700;
  66. color: white;
  67. }
  68. .TopNameTime {
  69. vertical-align: middle;
  70. text-align: right;
  71. font-size: 20px;
  72. font-weight: 700;
  73. color: white;
  74. }
  75. .rightMain_bottomIn .biaoge_list ul li {
  76. overflow: hidden;
  77. padding-right: 0px;
  78. }
  79. .rightMain_bottomIn .biaoge {
  80. height: calc(100% );
  81. }
  82. .zantingCla li {
  83. color:yellow !important;
  84. }
  85. </style>
  86. <script type="text/javascript">
  87. document.documentElement.style.fontSize =
  88. (document.documentElement.clientWidth / 768) * 100 + 'px'
  89. </script>
  90. <script src="~/Content/Cust003/js/echarts.min.js"></script>
  91. </head>
  92. <body>
  93. <div class="bg">
  94. <table class="title">
  95. <tr>
  96. <td style="width:20%">
  97. <div class="TopNamelogo" id="TopNamelogo">
  98. <img src="~/Content/img/zhenxiang.png" border="0" class="logoclass" />
  99. </div>
  100. </td>
  101. <td style="width:60%">
  102. <div class="TopName" id="TopName">每日生产看板</div>
  103. </td>
  104. <td style="width:20%">
  105. <div class="TopNameTime" id="TopNameTime"></div>
  106. </td>
  107. </tr>
  108. </table>
  109. <div class="leftMain_top">
  110. <div class="leftMain_topIn">
  111. <ul>
  112. <li class="LineLi">
  113. <div class="rightMain_bottom">
  114. <div class="rightMain_bottomIn">
  115. @*<h3> SMT车间生产加工数据</h3>*@
  116. <div class="biaoge biaoge_list" id="marqueelist1"
  117. style="width: 100%; ">
  118. <div class="biaoge_listIn CustDiv4">
  119. <ul class="ul_title">
  120. <li>销售车号</li>
  121. <li>物料编码</li>
  122. <li>物料名称</li>
  123. @*<li>工序代码</li>*@
  124. <li>工序名称</li>
  125. <li>报工人</li>
  126. <li>工序结束状态</li>
  127. <li>有效时间</li>
  128. <li>开工时间</li>
  129. <li>完工时间</li>
  130. <li>暂停开始时间</li>
  131. <li>暂停结束时间</li>
  132. <li>暂停类型</li>
  133. </ul>
  134. <div class="ul_list" id="marqueeCust1">
  135. <div class="ul_listIn ul_listInCust" id="marqueeCustCH1">
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <span class="border_bg_leftTop"></span>
  141. <span class="border_bg_rightTop"></span>
  142. <span class="border_bg_leftBottom"></span>
  143. <span class="border_bg_rightBottom"></span>
  144. </div>
  145. </div>
  146. @*</div>*@
  147. </li>
  148. </ul>
  149. </div>
  150. </div>
  151. @*</div>*@
  152. <div style="clear: both"></div>
  153. </div>
  154. <script>
  155. var DataF = 300;// 300;//单位秒 //刷新数据时间
  156. var _BarWidth = "25%";
  157. var _barBorderRadius_M = 2;
  158. $(function () {
  159. getTime();
  160. GetDataZong();
  161. //刷新数据
  162. timer = setInterval(function () {
  163. GetDataZong();
  164. }, DataF * 1000);
  165. });
  166. function getTime() {
  167. var days = new Array("日", "一", "二", "三", "四", "五", "六");
  168. var currentDT = new Date();
  169. var y, m, date, day, hs, ms, ss, theDateStr;
  170. y = currentDT.getFullYear(); //四位整数表示的年份
  171. m = currentDT.getMonth() < 10 ? '0' + (currentDT.getMonth() + 1) : (currentDT.getMonth() + 1); //月
  172. date = currentDT.getDate() < 10 ? '0' + currentDT.getDate() : currentDT.getDate(); //日
  173. day = currentDT.getDay(); //星期
  174. hs = currentDT.getHours() < 10 ? '0' + currentDT.getHours() : currentDT.getHours(); //时
  175. ms = currentDT.getMinutes() < 10 ? '0' + currentDT.getMinutes() : currentDT.getMinutes(); //分
  176. ss = currentDT.getSeconds() < 10 ? '0' + currentDT.getSeconds() : currentDT.getSeconds(); //秒
  177. theDateStr = y + "-" + m + "-" + date + " " + hs + ":" + ms + ":" + ss;
  178. //填充到组件中
  179. $("#TopNameTime").text(theDateStr);
  180. // setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次
  181. window.setTimeout(getTime, 1000);
  182. }
  183. function GetDataZong() {
  184. GetZhiXing_MO("marqueeCustCH1", "30");
  185. // SetIfGo("marqueeCust1", "marqueeCustCH1", "marqueelist1");//判断是否需要滚动
  186. }
  187. function SetIfGo(DivID, DivCHID,listID)
  188. {
  189. var ListDIV = $("#" + listID)[0].clientHeight;
  190. var H_marqueediv = $("#" + DivCHID)[0];
  191. //var H_marquee= H_marqueediv.clientHeight;
  192. var H_marqueeView = $("#" + DivID)[0].clientHeight;
  193. if ((ListDIV-40) > H_marqueeView) {
  194. if (!$("#" + DivID).hasClass("animationNone")) {
  195. $("#" + DivID).addClass("animationNone");
  196. }
  197. if (!$("#" + DivCHID).hasClass("animationNone")) {
  198. $("#" + DivCHID).addClass("animationNone");
  199. }
  200. }
  201. else {
  202. if ($("#" + DivID).hasClass("animationNone")) {
  203. $("#" + DivID).removeClass("animationNone");
  204. }
  205. if ($("#" + DivCHID).hasClass("animationNone")) {
  206. $("#" + DivCHID).removeClass("animationNone");
  207. }
  208. }
  209. }
  210. function GetZhiXing_MO(marqueeID, ItemNumber) {
  211. $.ajax({
  212. url: "/SRM/WatchPanel/GetZhiXing_MO?ItemNumber=" + ItemNumber + "&" + Math.random(),
  213. dataType: "json",
  214. async: false,
  215. success: function (data) {
  216. if (data != false && data != null && data.length > 0) {
  217. var html = "";
  218. //var jj = 0;
  219. //for (var j = 0; j < 6; j++) {
  220. for (var i = 0; i < data.length; i++) {
  221. // jj += 1;
  222. if (data[i].暂停状态 == "暂停中") {
  223. html += ' <ul class="ul_con zantingCla"> ';
  224. }
  225. else {
  226. html += ' <ul class="ul_con"> ';
  227. }
  228. html += ' <li >' + data[i].销售车号 +'</li> ';
  229. html += ' <li >' + data[i].物料编码 + '</li> <li >' + data[i].物料名称 + '</li>';
  230. html += ' <li >' + data[i].工序名称 + '</li>';
  231. html += ' <li >' + data[i].报工人 + '</li> <li >' + data[i].工序结束状态 + '</li> ';
  232. html += ' <li >' + data[i].有效时间 + '</li> <li >' + data[i].开工时间 + '</li> ';
  233. html += ' <li >' + data[i].完工时间 + '</li> <li >' + data[i].暂停开始时间 + '</li> ';
  234. html += ' <li >' + data[i].暂停结束时间 + '</li> <li >' + data[i].暂停原因 + '</li> </ul> ';
  235. }
  236. // }
  237. // +
  238. html += "</ul>";
  239. $(".ul_listInCust").css("animation-duration", data.length*1.3 + "s");
  240. $("#" + marqueeID).html(html);
  241. }
  242. else {
  243. $("#" + marqueeID).html("");
  244. }
  245. },
  246. error: function (aa) {
  247. }
  248. });
  249. }
  250. function GetZhiXing_RCVUnInWare() {
  251. $.ajax({
  252. url: "/SRM/WatchPanel/GetZhiXing_RCVUnInWare?XX=XX&" + Math.random(),
  253. dataType: "json",
  254. async: false,
  255. success: function (data) {
  256. if (data != false && data != null && data.length > 0) {
  257. var html = "";
  258. for (var i = 0; i < data.length; i++) {
  259. html += ' <ul class="ul_con"> <li >' + data[i].LOTNO + '</li> <li >' +
  260. data[i].送货单号 + '</li>';
  261. html += ' <li >' + data[i].采购订单号 + '</li> <li >' + data[i].物料编码 + '</li>';
  262. html += ' <li >' + data[i].物料名称 + '</li> <li >' + data[i].数量 + '</li> ';
  263. html += ' <li >' + data[i].检验人 + '</li> </ul> ';
  264. }
  265. html += "</ul>";
  266. $("#RCVUNIN" ).html(html);
  267. }
  268. else {
  269. $("#RCVUNIN" ).html("");
  270. }
  271. },
  272. error: function (aa) {
  273. }
  274. });
  275. }
  276. </script>
  277. </body>
  278. </html>