金豪看板
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.

545 lines
17 KiB

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.js"></script>
  23. <script src="~/Content/js/echarts4.8/echarts-liquidfill.js"></script>
  24. <style>
  25. h3 {
  26. color: #FFFFFF;
  27. text-shadow: #05d1fc 0px 1px 3px, #05d1fc 1px 0px 3px,#05d1fc 0px -1px 3px, #05d1fc -1px 0px 3px;
  28. filter: glow(color=#00FFCC,strength=3);
  29. }
  30. .rightMain_top {
  31. width: 100%;
  32. padding-bottom: 0.1rem;
  33. }
  34. .animationNone {
  35. animation: none !important;
  36. }
  37. .CustDiv1 ul li:nth-child(1), .CustDiv1 div div ul li:nth-child(1) {
  38. width: 5% !important;
  39. }
  40. .CustDiv1 ul li:nth-child(2), .CustDiv1 div div ul li:nth-child(2) {
  41. /* width: 28% !important; */
  42. }
  43. .CustDiv1 ul li:nth-child(3), .CustDiv1 div div ul li:nth-child(3) {
  44. width: 11% !important;
  45. }
  46. .CustDiv1 ul li:nth-child(4), .CustDiv1 div div ul li:nth-child(4) {
  47. width: 11% !important;
  48. }
  49. .CustDiv1 ul li:nth-child(5), .CustDiv1 div div ul li:nth-child(5) {
  50. width: 19% !important;
  51. }
  52. .CustDiv1 ul li:nth-child(6), .CustDiv1 div div ul li:nth-child(6) {
  53. width: 11% !important;
  54. }
  55. .CustDiv4 ul li:nth-child(1), .CustDiv4 div div ul li:nth-child(1) {
  56. width: 5% !important;
  57. }
  58. .CustDiv4 ul li:nth-child(2), .CustDiv4 div div ul li:nth-child(2) {
  59. width: 18% !important;
  60. }
  61. .CustDiv4 ul li:nth-child(3), .CustDiv4 div div ul li:nth-child(3) {
  62. width: 26% !important;
  63. }
  64. .CustDiv4 ul li:nth-child(4), .CustDiv4 div div ul li:nth-child(4) {
  65. width: 11% !important;
  66. }
  67. .CustDiv4 ul li:nth-child(5), .CustDiv4 div div ul li:nth-child(5) {
  68. width: 11% !important;
  69. }
  70. .CustDiv4 ul li:nth-child(6), .CustDiv4 div div ul li:nth-child(6) {
  71. width: 18% !important;
  72. }
  73. .CustDiv4 ul li:nth-child(7), .CustDiv4 div div ul li:nth-child(7) {
  74. width: 11% !important;
  75. }
  76. .CustDiv2 ul li:nth-child(1), .CustDiv2 div div ul li:nth-child(1) {
  77. width: 22% !important;
  78. }
  79. .CustDiv2 ul li:nth-child(2), .CustDiv2 div div ul li:nth-child(2) {
  80. width: 15% !important;
  81. }
  82. .CustDiv2 ul li:nth-child(3), .CustDiv2 div div ul li:nth-child(3) {
  83. width: 15% !important;
  84. }
  85. .CustDiv2 ul li:nth-child(4), .CustDiv2 div div ul li:nth-child(4) {
  86. width: 15% !important;
  87. }
  88. .CustDiv2 ul li:nth-child(5), .CustDiv2 div div ul li:nth-child(5) {
  89. width: 15% !important;
  90. }
  91. .CustDiv2 ul li:nth-child(6), .CustDiv2 div div ul li:nth-child(6) {
  92. width: 8% !important;
  93. }
  94. .CustDiv2 ul li:nth-child(7), .CustDiv2 div div ul li:nth-child(7) {
  95. width: 10% !important;
  96. }
  97. .leftMain_top, .leftMain_bottom {
  98. height: calc(46.5%);
  99. }
  100. .leftMain_topIn, .leftMain_bottomIn, .leftMain_topIn ul:nth-child(1),
  101. .leftMain_bottomIn ul:nth-child(1), .rightMain_bottom, .rightMain_bottomIn {
  102. height: 100%;
  103. }
  104. img {
  105. height: 0.2rem;
  106. width: 0.5rem;
  107. padding-top: 0.05rem;
  108. }
  109. .bg {
  110. padding-top: 0.01rem;
  111. }
  112. .title {
  113. height: 8%;
  114. text-shadow: #01db78 0px 2px 3px, #01db78 1px 0px 3px, #05d1fc 0px -2px 3px, #05d1fc -1px 0px 3px;
  115. }
  116. .TopName {
  117. vertical-align: middle;
  118. text-align: center;
  119. font-size: 30px;
  120. font-weight: 700;
  121. color: white;
  122. }
  123. .TopNameTime {
  124. vertical-align: middle;
  125. text-align: right;
  126. font-size: 20px;
  127. font-weight: 700;
  128. color: white;
  129. }
  130. /*td {
  131. box-sizing:inherit;
  132. }*/
  133. .rightMain_bottomIn .biaoge_list ul li {
  134. overflow: hidden;
  135. padding-right: 0px;
  136. }
  137. #div1 {
  138. display: flex;
  139. }
  140. #div1-C1 {
  141. font-size: 18px;
  142. margin-left: 115px;
  143. margin-top: 50px;
  144. }
  145. #div1-C1 div {
  146. margin-top: 20px;
  147. color: white;
  148. text-align: center;
  149. width: 130px;
  150. }
  151. #div1-C2 {
  152. font-size: 18px;
  153. margin-left: 15px;
  154. margin-top: 50px;
  155. }
  156. #div1-C2 div {
  157. margin-top: 23px;
  158. width: 200px;
  159. height: 20px;
  160. background-color: #0000CD;
  161. text-align: center;
  162. }
  163. #div1-C3 {
  164. font-size: 18px;
  165. margin-left: 15px;
  166. margin-top: 50px;
  167. }
  168. #div1-C3 div {
  169. margin-top: 20px;
  170. color: white;
  171. /*border-left:solid 1px #AFEEEE;
  172. border-right:solid 1px #AFEEEE;
  173. border-radius:25px;*/
  174. text-align: center;
  175. width: 30px;
  176. }
  177. #div3 {
  178. display: flex;
  179. color: white;
  180. }
  181. #div3-C1 {
  182. width: 50%;
  183. }
  184. #div3-C2 {
  185. width: 50%;
  186. }
  187. #div3-C1-C1 {
  188. text-align: center;
  189. width: 100%;
  190. font-size: 25px;
  191. background-color: #6495ED;
  192. }
  193. #div3-C1-C2 {
  194. margin-top: 10px;
  195. display: flex;
  196. }
  197. #div3-C1-C2-div1 {
  198. width: 25px;
  199. margin-left: 20px;
  200. }
  201. #div3-C1-C2-div2 {
  202. width: 25px;
  203. margin-left: 20px;
  204. }
  205. #div3-C2-C1 {
  206. text-align: center;
  207. width: 97%;
  208. font-size: 25px;
  209. background-color: #6495ED;
  210. }
  211. #div3-C2-C2 {
  212. margin-top: 10px;
  213. display: flex;
  214. }
  215. #div3-C2-C2-div1 {
  216. width: 25px;
  217. }
  218. #div3-C2-C2-div2 {
  219. width: 20px;
  220. }
  221. #div3-C1-C2 span {
  222. margin-left: 20px;
  223. text-align: center;
  224. }
  225. #div3-C2-C2 span {
  226. margin-left: 20px;
  227. text-align: center;
  228. }
  229. #div1-C2 {
  230. color: white;
  231. text-align: center;
  232. }
  233. </style>
  234. <script type="text/javascript">
  235. document.documentElement.style.fontSize =
  236. (document.documentElement.clientWidth / 768) * 100 + 'px'
  237. </script>
  238. </head>
  239. <body>
  240. <div class="bg">
  241. <table class="title">
  242. <tr>
  243. <td style="width:20%">
  244. <div class="TopNamelogo" id="TopNamelogo">
  245. <img src="~/Content/img/zhenxiang.png" border="0" class="logoclass" />
  246. @*<img src="~/Content/img/wechat.jpg" border="0" class="logoclass" />*@
  247. </div>
  248. </td>
  249. <td style="width:60%">
  250. <div class="TopName" id="TopName">进度看板</div>
  251. </td>
  252. <td style="width:20%">
  253. <div class="TopNameTime" id="TopNameTime"></div>
  254. </td>
  255. </tr>
  256. </table>
  257. @*<div class="title">执行看板</div>*@
  258. <div class="leftMain_top" style="height:90%">
  259. <div class="leftMain_topIn">
  260. <ul>
  261. <li class="LineLi" style="width:100%">
  262. <div class="rightMain_bottom">
  263. <div class="rightMain_bottomIn">
  264. @*<h3> 插件车间生产加工数据</h3>*@
  265. <div class="biaoge biaoge_list" id="marqueelist2"
  266. style="width: 100%; ">
  267. <div class="biaoge_listIn CustDiv1">
  268. <ul class="ul_title">
  269. <li>序号</li>
  270. <li>生产编号</li>
  271. <li >产品名称</li>
  272. <li>用户单位</li>
  273. <li>客户交货期</li>
  274. <li>生产状态</li>
  275. <li>进度</li>
  276. </ul>
  277. <div class="ul_list" id="marqueeCust2">
  278. <div class="ul_listIn ul_listInCust" id="marqueeCustCH2">
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. <span class="border_bg_leftTop"></span>
  284. <span class="border_bg_rightTop"></span>
  285. <span class="border_bg_leftBottom"></span>
  286. <span class="border_bg_rightBottom"></span>
  287. </div>
  288. </div>
  289. </li>
  290. </ul>
  291. </div>
  292. </div>
  293. @*</div>*@
  294. <div style="clear: both"></div>
  295. </div>
  296. <script>
  297. var DataF = 30;// 300;//单位秒 //刷新数据时间
  298. var _BarWidth = "25%";
  299. var _barBorderRadius_M = 2;
  300. $(function () {
  301. getTime();
  302. GetDataZong();
  303. //刷新数据
  304. timer = setInterval(function () {
  305. GetDataZong();
  306. }, DataF * 1000);
  307. });
  308. function getTime() {
  309. var days = new Array("日", "一", "二", "三", "四", "五", "六");
  310. var currentDT = new Date();
  311. var y, m, date, day, hs, ms, ss, theDateStr;
  312. y = currentDT.getFullYear(); //四位整数表示的年份
  313. m = currentDT.getMonth() < 10 ? '0' + (currentDT.getMonth() + 1) : (currentDT.getMonth() + 1); //月
  314. date = currentDT.getDate() < 10 ? '0' + currentDT.getDate() : currentDT.getDate(); //日
  315. day = currentDT.getDay(); //星期
  316. hs = currentDT.getHours() < 10 ? '0' + currentDT.getHours() : currentDT.getHours(); //时
  317. ms = currentDT.getMinutes() < 10 ? '0' + currentDT.getMinutes() : currentDT.getMinutes(); //分
  318. ss = currentDT.getSeconds() < 10 ? '0' + currentDT.getSeconds() : currentDT.getSeconds(); //秒
  319. theDateStr = y + "-" + m + "-" + date + " " + hs + ":" + ms + ":" + ss;
  320. //填充到组件中
  321. $("#TopNameTime").text(theDateStr);
  322. // setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次
  323. window.setTimeout(getTime, 1000);
  324. }
  325. function GetDataZong() {
  326. //echart1_1();
  327. GetArea1();
  328. GetArea2('marqueeCustCH2', 1);
  329. //GetZhiXing_MO("marqueeCustCH1", "30");
  330. //GetZhiXing_MO("marqueeCustCH2", "60");
  331. //GetZhiXing_MO("marqueeCustCH3", "90");
  332. //GetZhiXing_RCVUnInWare();
  333. // SetIfGo("marqueeCust1", "marqueeCustCH1", "marqueelist1");//判断是否需要滚动
  334. // SetIfGo("marqueeCust2", "marqueeCustCH2", "marqueelist2");//判断是否需要滚动
  335. // SetIfGo("marqueeCust3", "marqueeCustCH3", "marqueelist3");//判断是否需要滚动
  336. //SetIfGo("RCVUNINView", "RCVUNIN", "marqueelist4");//判断是否需要滚动
  337. }
  338. function SetIfGo(DivID, DivCHID, listID) {
  339. var ListDIV = $("#" + listID)[0].clientHeight;
  340. var H_marqueediv = $("#" + DivCHID)[0];
  341. //var H_marquee= H_marqueediv.clientHeight;
  342. var H_marqueeView = $("#" + DivID)[0].clientHeight;
  343. if ((ListDIV - 40) > H_marqueeView) {
  344. if (!$("#" + DivID).hasClass("animationNone")) {
  345. $("#" + DivID).addClass("animationNone");
  346. }
  347. if (!$("#" + DivCHID).hasClass("animationNone")) {
  348. $("#" + DivCHID).addClass("animationNone");
  349. }
  350. }
  351. else {
  352. if ($("#" + DivID).hasClass("animationNone")) {
  353. $("#" + DivID).removeClass("animationNone");
  354. }
  355. if ($("#" + DivCHID).hasClass("animationNone")) {
  356. $("#" + DivCHID).removeClass("animationNone");
  357. }
  358. }
  359. }
  360. //区域一
  361. function GetArea1() {
  362. $.ajax({
  363. url: "/SRM/WatchPanel/GetAreal1",
  364. dataType: "json",
  365. async: false,
  366. success: function (data) {
  367. if (data != false && data != null) {
  368. //月度生产 月度发车 上月实际生产 月度实际发车 上月完成数量 上上月完成数量
  369. $("#mothPlan").html(data[0].月度生产);
  370. $("#motnSales").html(data[0].月度发车);
  371. $("#lastMothSales").html(data[0].上月度发车);
  372. $("#yearSales").html(data[0].年度发车);
  373. } else {
  374. $("#" + marqueeID).html("");
  375. }
  376. },
  377. error: function (aa) {
  378. }
  379. });
  380. }
  381. function GetArea2(marqueeID, ItemNumber) {
  382. $.ajax({
  383. url: "/SRM/WatchPanel/GetProductProgress?ItemNumber=" + ItemNumber + "&" + Math.random(),
  384. dataType: "json",
  385. async: false,
  386. success: function (data) {
  387. if (data != false && data != null) {
  388. var html = "";
  389. for (var i = 0; i < data.length; i++) {
  390. html += '<ul class="ul_con">';
  391. html += '<li>' + data[i].序号 + '</li>';
  392. html += '<li>' + data[i].销售车辆号 + '</li><li style="width: 9px; ">' + data[i].产品名称 + ' 2ssssssssssssssssssss222222222</li><li>' + data[i].用户单位 + '</li>';
  393. html += '<li>' + data[i].客户交货期 + '</li><li>' + data[i].生产状态 + '</li>';
  394. html += '<li>' + data[i].进度 + '</li></ul>';
  395. }
  396. $(".ul_listInCust").css("animation-duration", data.length * 1.3 + "s");
  397. $("#" + marqueeID).html(html);
  398. // Set background color of odd-indexed ul elements to black
  399. $("#" + marqueeID + " ul:nth-child(odd)").css("background-color", "rgba(0, 1, 0, 0.1)");
  400. } else {
  401. $("#" + marqueeID).html("");
  402. }
  403. },
  404. error: function (aa) {
  405. // Handle error
  406. }
  407. });
  408. }
  409. function GetZhiXing_RCVUnInWare() {
  410. $.ajax({
  411. url: "/SRM/WatchPanel/GetZhiXing_RCVUnInWare?XX=XX&" + Math.random(),
  412. dataType: "json",
  413. async: false,
  414. success: function (data) {
  415. if (data != false && data != null && data.length > 0) {
  416. var html = "";
  417. for (var i = 0; i < data.length; i++) {
  418. html += ' <ul class="ul_con"> <li >' + data[i].LOTNO + '</li> <li >' +
  419. data[i].送货单号 + '</li>';
  420. html += ' <li >' + data[i].采购订单号 + '</li> <li >' + data[i].物料编码 + '</li>';
  421. html += ' <li >' + data[i].物料名称 + '</li> <li >' + data[i].数量 + '</li> ';
  422. html += ' <li >' + data[i].检验人 + '</li> </ul> ';
  423. }
  424. html += "</ul>";
  425. $("#RCVUNIN").html(html);
  426. }
  427. else {
  428. $("#RCVUNIN").html("");
  429. }
  430. },
  431. error: function (aa) {
  432. }
  433. });
  434. }
  435. </script>
  436. </body>
  437. </html>