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.

828 lines
35 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <!DOCTYPE html>
  2. <html style="height:100%">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>执行看板</title>
  8. <link rel="stylesheet" href="~/Content/Cust069/css/index.css">
  9. <link rel="stylesheet" href="~/Content/Cust069/fonts/icomoon.css">
  10. <script src="~/Content/Cust069/js/jquery.min.js"></script>
  11. <script src="~/Content/js/echarts/echarts5.3.3.min.js"></script>
  12. <script src="~/Content/Cust069/js/index.js"></script>
  13. <script src="~/Content/Cust069/js/china.js"></script>
  14. <script src="~/Content/Cust069/js/mymap.js"></script>
  15. <style>
  16. .mainbox {
  17. width:100%;
  18. }
  19. .logoclass {
  20. height: 3rem;
  21. padding-top: 0.5rem;
  22. float:right;
  23. }
  24. /*body {
  25. background-image:url(../../../../../Content/Cust003/images/bg2.jpg);
  26. }*/
  27. /*logo标题*/
  28. .TopNamelogo {
  29. vertical-align: middle;
  30. text-align: left;
  31. font-size: 24px;
  32. font-weight: 700;
  33. color: white;
  34. }
  35. /*.TopNamelogo img{
  36. background-image
  37. }*/
  38. .animationNone {
  39. animation: none !important;
  40. }
  41. .TopName {
  42. vertical-align: middle;
  43. text-align: center;
  44. font-size: 30px;
  45. font-weight: 700;
  46. color: white;
  47. }
  48. .TopNameTime {
  49. vertical-align: middle;
  50. text-align: center;
  51. font-size: 20px;
  52. font-weight: 700;
  53. margin-right:0rem;
  54. color: white;
  55. }
  56. .header {
  57. height:5rem;
  58. position:absolute;
  59. padding-top:1rem;
  60. /*padding-left: 3rem;*/
  61. width:100%;
  62. }
  63. .header tbody, .header tr {
  64. width:100%;
  65. }
  66. .monitor .head {
  67. background: rgb(0 76 103);
  68. }
  69. .CustDiv1 div span:nth-child(1),.CustDiv1 div div span:nth-child(1) {
  70. width: 40% !important;
  71. }
  72. .CustDiv1 div span:nth-child(2),.CustDiv1 div div span:nth-child(2) {
  73. width: 20% !important;
  74. }
  75. .CustDiv1 div span:nth-child(3),.CustDiv1 div div span:nth-child(3) {
  76. width: 20% !important;
  77. }
  78. .CustDiv1 div span:nth-child(4),.CustDiv1 div div span:nth-child(4) {
  79. width: 20% !important;
  80. }
  81. .CustDiv2 div span:nth-child(1),.CustDiv2 div div span:nth-child(1) {
  82. width: 15% !important;
  83. }
  84. .CustDiv2 div span:nth-child(2),.CustDiv2 div div span:nth-child(2) {
  85. width: 15% !important;
  86. }
  87. .CustDiv2 div span:nth-child(3),.CustDiv2 div div span:nth-child(3) {
  88. width: 15% !important;
  89. }
  90. .CustDiv2 div span:nth-child(4),.CustDiv2 div div span:nth-child(4) {
  91. width: 15% !important;
  92. }
  93. .CustDiv2 div span:nth-child(5),.CustDiv2 div div span:nth-child(5) {
  94. width: 15% !important;
  95. }
  96. .CustDiv2 div span:nth-child(6),.CustDiv2 div div span:nth-child(6) {
  97. width: 25% !important;
  98. }
  99. .CustDiv3 div span:nth-child(1),.CustDiv3 div div span:nth-child(1) {
  100. width: 20% !important;
  101. }
  102. .CustDiv3 div span:nth-child(2),.CustDiv3 div div span:nth-child(2) {
  103. width: 25% !important;
  104. }
  105. .CustDiv3 div span:nth-child(3),.CustDiv3 div div span:nth-child(3) {
  106. width: 25% !important;
  107. }
  108. .CustDiv3 div span:nth-child(4),.CustDiv3 div div span:nth-child(4) {
  109. width: 30% !important;
  110. }
  111. .CustDiv4 div span:nth-child(1),.CustDiv4 div div span:nth-child(1) {
  112. width: 30% !important;
  113. }
  114. .CustDiv4 div span:nth-child(2),.CustDiv4 div div span:nth-child(2) {
  115. width: 20% !important;
  116. }
  117. .CustDiv4 div span:nth-child(3),.CustDiv4 div div span:nth-child(3) {
  118. width: 20% !important;
  119. }
  120. .CustDiv4 div span:nth-child(4),.CustDiv4 div div span:nth-child(4) {
  121. width: 30% !important;
  122. }
  123. .CustDiv5 div span:nth-child(1),.CustDiv5 div div span:nth-child(1) {
  124. width: 20% !important;
  125. }
  126. .CustDiv5 div span:nth-child(2),.CustDiv5 div div span:nth-child(2) {
  127. width: 20% !important;
  128. }
  129. .CustDiv5 div span:nth-child(3),.CustDiv5 div div span:nth-child(3) {
  130. width: 20% !important;
  131. }
  132. .CustDiv5 div span:nth-child(4),.CustDiv5 div div span:nth-child(4) {
  133. width: 15% !important;
  134. }
  135. .CustDiv5 div span:nth-child(5),.CustDiv5 div div span:nth-child(5) {
  136. width: 25% !important;
  137. }
  138. .InfoNum {
  139. color:white;
  140. margin-left:70%;
  141. font-size:12px;
  142. }
  143. #WWJGNum {
  144. color:white;
  145. margin-left:65%;
  146. font-size:12px;
  147. }
  148. /*.yellow {
  149. color: yellow !important;
  150. }*/
  151. /*.red {
  152. color: red !important;
  153. }*/
  154. /*.green {
  155. color: green !important;
  156. }*/
  157. /*.white{
  158. color:white !important;
  159. }*/
  160. </style>
  161. </head>
  162. <body style="height:100%">
  163. <table class="header">
  164. <tr>
  165. <td style="width:12%">
  166. <div class="TopNamelogo" id="TopNamelogo">
  167. <img src="~/Content/img/AoMei.png" border="0" class="logoclass" style="margin-top:1.5rem" />
  168. </div>
  169. </td>
  170. <td style="width:18%">
  171. @*<div class="TopNamelogo" id="TopNamelogo">苏州奥美</div>*@
  172. </td>
  173. <td style="width:40%">
  174. <div class="TopName" id="TopName">执行看板</div>
  175. <div class="TopNameTime" id="TopNameTime"></div>
  176. </td>
  177. <td >
  178. </td>
  179. </tr>
  180. </table>
  181. <div class="viewport" style="height:calc(85% )">
  182. <div class="mainbox">
  183. <div style="width:100%;height:3%;margin-bottom:1rem;text-align:center;font-size:1rem">
  184. <table class="Tableinfo" style="color:white;width:100%;height:100%">
  185. <tr>
  186. <td>
  187. <span>原料库存:</span>
  188. <label id="YL"></label>
  189. </td>
  190. <td>
  191. <span>成品库存:</span>
  192. <label id="CP"></label>
  193. </td>
  194. <td>
  195. <span>保护膜仓:</span>
  196. <label id="BHM"></label>
  197. </td>
  198. <td>
  199. <span>造粒料仓:</span>
  200. <label id="ZLL"></label>
  201. </td>
  202. <td>
  203. <span>分切库存:</span>
  204. <label id="FQ"></label>
  205. </td>
  206. <td>
  207. <span>副产品库存:</span>
  208. <label id="FCP"></label>
  209. </td>
  210. </tr>
  211. </table>
  212. </div>
  213. <ul class="clearfix">
  214. <li>
  215. <div style="height: calc(50% - 0.1rem);width: calc(30% - 0.1rem); float: left ">
  216. <div class="column">
  217. <!--监控-->
  218. <div class="monitor panel">
  219. <div class="inner">
  220. <div class="tabs">
  221. <a href="javascript:;" data-index="0" class="active"><span class="icon-cube"></span>成品发货一览</a>
  222. <label id="CPFHNum" class="InfoNum"></label>
  223. </div>
  224. <div class="content CustDiv1" style="display: block;" id="marqueelist1">
  225. <div class="head">
  226. <span class="col">发货单号</span>
  227. <span class="col">状态</span>
  228. <span class="col">滞留天数</span>
  229. <span class="col">管理员</span>
  230. @*<span class="col">计划完工日期</span>
  231. <span class="col">生产进度</span>*@
  232. </div>
  233. <div class="marquee-view" id="marqueeCust1">
  234. <div class="marquee" id="marqueeCustCH1">
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. <div style="height: calc(50% - 0.1rem);width: calc(39% - 0.1rem); float: left;padding-left:0.75rem ">
  243. <div class="column">
  244. <!--监控-->
  245. <div class="monitor panel" >
  246. <div class="inner">
  247. <div class="tabs">
  248. <a href="javascript:;" data-index="0" class="active"><span class="icon-cube"></span>采购未到货一览</a>
  249. <label id="CGWDHNum" class="InfoNum"></label>
  250. </div>
  251. <div class="content CustDiv2" style="display: block;" id="marqueelist2">
  252. <div class="head">
  253. <span class="col">到货单</span>
  254. <span class="col">存货名称</span>
  255. <span class="col">规格型号</span>
  256. <span class="col">应到数量</span>
  257. <span class="col">未入库数量</span>
  258. <span class="col">供应商</span>
  259. </div>
  260. <div class="marquee-view" id="marqueeCust2">
  261. <div class="marquee" id="marqueeCustCH2">
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. <div style="height: calc(50% - 0.1rem);width: calc(30% - 0.1rem); float: right ">
  270. <div class="column">
  271. <!--监控-->
  272. <div class="monitor panel">
  273. <div class="inner">
  274. <div class="tabs">
  275. <a href="javascript:;" data-index="0" class="active"><span class="icon-cube"></span>成品未入库</a>
  276. <label id="CPWRKNum" class="InfoNum"></label>
  277. </div>
  278. <div class="content CustDiv3" style="display: block;" id="marqueelist3">
  279. <div class="head">
  280. <span class="col">产线</span>
  281. <span class="col">存货编码</span>
  282. <span class="col">数量</span>
  283. <span class="col">滞留天数</span>
  284. @*<span class="col">计划完工日期</span>
  285. <span class="col">生产进度</span>*@
  286. </div>
  287. <div class="marquee-view" id="marqueeCust3">
  288. <div class="marquee" id="marqueeCustCH3">
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. <div style="height: calc(50% - 0.1rem);width: calc(30% - 0.1rem); float: left ">
  297. <div class="column">
  298. <!--监控-->
  299. <div class="monitor panel">
  300. <div class="inner">
  301. <div class="tabs">
  302. <a href="javascript:;" data-index="0" class="active"><span class="icon-cube"></span>委外加工状态一览</a>
  303. <label id="WWJGNum" ></label>
  304. </div>
  305. <div class="content CustDiv4" style="display: block;" id="marqueelist4">
  306. <div class="head">
  307. <span class="col">委外订单号</span>
  308. <span class="col">状态</span>
  309. <span class="col">出库单号</span>
  310. <span class="col">发单时间</span>
  311. @*<span class="col">计划完工日期</span>
  312. <span class="col">生产进度</span>*@
  313. </div>
  314. <div class="marquee-view" id="marqueeCust4">
  315. <div class="marquee" id="marqueeCustCH4">
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. <div style="height: calc(50% - 0.1rem);width: calc(39% - 0.1rem); float: left;padding-left:0.75rem ">
  324. <div class="column">
  325. <!--监控-->
  326. <div class="monitor panel">
  327. <div class="inner">
  328. <div class="tabs">
  329. <a href="javascript:;" data-index="0" class="active"><span class="icon-cube"></span>委外未到货一览</a>
  330. <label id="WWWDHNum" class="InfoNum"></label>
  331. </div>
  332. <div class="content CustDiv2" style="display: block;" id="marqueelist5">
  333. <div class="head">
  334. <span class="col">到货单</span>
  335. <span class="col">物料编码</span>
  336. <span class="col">规格型号</span>
  337. <span class="col">应到数量</span>
  338. <span class="col">未入库数量</span>
  339. <span class="col">供应商</span>
  340. </div>
  341. <div class="marquee-view" id="marqueeCust5">
  342. <div class="marquee" id="marqueeCustCH5">
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. <div style="height: calc(50% - 0.1rem);width: calc(30% - 0.1rem); float: right ">
  351. <div class="column">
  352. <!--监控-->
  353. <div class="monitor panel">
  354. <div class="inner">
  355. <div class="tabs">
  356. <a href="javascript:;" data-index="0" class="active"><span class="icon-cube"></span>今日调拨</a>
  357. <label id="DBNum" class="InfoNum"></label>
  358. </div>
  359. <div class="content CustDiv5" style="display: block;" id="marqueelist6">
  360. <div class="head">
  361. <span class="col">存货编码</span>
  362. <span class="col">存货名称</span>
  363. <span class="col">数量</span>
  364. <span class="col">产线</span>
  365. <span class="col">调拨时间</span>
  366. </div>
  367. <div class="marquee-view" id="marqueeCust6">
  368. <div class="marquee" id="marqueeCustCH6">
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. </div>
  376. </li>
  377. </ul>
  378. </div>
  379. </div>
  380. <script>
  381. var DataF = 3000000;//单位秒 //刷新数据时间
  382. var _BarWidth = "25%";
  383. var _barBorderRadius_M = 2;
  384. $(function () {
  385. getTime();
  386. GetDataZong();
  387. //刷新数据
  388. timer = setInterval(function () {
  389. //GetDataZong();
  390. }, DataF * 1000);
  391. });
  392. function getTime() {
  393. var days = new Array("日", "一", "二", "三", "四", "五", "六");
  394. var currentDT = new Date();
  395. var y, m, date, day, hs, ms, ss, theDateStr;
  396. y = currentDT.getFullYear(); //四位整数表示的年份
  397. m = currentDT.getMonth() < 10 ? '0' + (currentDT.getMonth() + 1) : (currentDT.getMonth() + 1); //月
  398. date = currentDT.getDate() < 10 ? '0' + currentDT.getDate() : currentDT.getDate(); //日
  399. day = currentDT.getDay(); //星期
  400. hs = currentDT.getHours() < 10 ? '0' + currentDT.getHours() : currentDT.getHours(); //时
  401. ms = currentDT.getMinutes() < 10 ? '0' + currentDT.getMinutes() : currentDT.getMinutes(); //分
  402. ss = currentDT.getSeconds() < 10 ? '0' + currentDT.getSeconds() : currentDT.getSeconds(); //秒
  403. theDateStr = y + "-" + m + "-" + date + " " + hs + ":" + ms + ":" + ss;
  404. //填充到组件中
  405. $("#TopNameTime").text(theDateStr);
  406. // setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次
  407. window.setTimeout(getTime, 1000);
  408. }
  409. function GetDataZong() {
  410. Get_KCInfo();
  411. Get_Table1("marqueeCustCH1", "30");
  412. Get_Table2("marqueeCustCH2", "60");
  413. Get_Table3("marqueeCustCH3", "90");
  414. Get_Table4("marqueeCustCH4", "90");
  415. Get_Table5("marqueeCustCH5", "90");
  416. Get_Table6("marqueeCustCH6", "90");
  417. SetIfGo("marqueeCust1", "marqueeCustCH1", "marqueelist1");//判断是否需要滚动
  418. SetIfGo("marqueeCust2", "marqueeCustCH2", "marqueelist2");//判断是否需要滚动
  419. SetIfGo("marqueeCust3", "marqueeCustCH3", "marqueelist3");//判断是否需要滚动
  420. SetIfGo("marqueeCust4", "marqueeCustCH4", "marqueelist4");//判断是否需要滚动
  421. SetIfGo("marqueeCust5", "marqueeCustCH5", "marqueelist5");//判断是否需要滚动
  422. SetIfGo("marqueeCust6", "marqueeCustCH6", "marqueelist6");//判断是否需要滚动
  423. Get_InfoNum();
  424. }
  425. function SetIfGo(DivID, DivCHID, listID) {
  426. debugger;
  427. var ListDIV = $("#" + listID)[0].clientHeight;
  428. var H_marqueediv = $("#" + DivCHID)[0];
  429. var H_marquee= H_marqueediv.clientHeight;
  430. // var H_marqueeView = $("#" + DivID)[0].clientHeight;
  431. if ((ListDIV - 40) > H_marquee) {
  432. //if (!$("#" + DivID).hasClass("animationNone")) {
  433. // $("#" + DivID).addClass("animationNone");
  434. //}
  435. if (!$("#" + DivCHID).hasClass("animationNone")) {
  436. $("#" + DivCHID).addClass("animationNone");
  437. }
  438. }
  439. else {
  440. //if ($("#" + DivID).hasClass("animationNone")) {
  441. // $("#" + DivID).removeClass("animationNone");
  442. //}
  443. if ($("#" + DivCHID).hasClass("animationNone")) {
  444. $("#" + DivCHID).removeClass("animationNone");
  445. }
  446. }
  447. }
  448. //function SetIfGo(DivID, DivCHID)
  449. //{
  450. // debugger;
  451. // var H_marqueediv = $("#" + DivCHID)[0];
  452. // var H_marquee= H_marqueediv.clientHeight;
  453. // var H_marqueeView = $("#" + DivID)[0].clientHeight;
  454. // if (H_marquee < H_marqueeView) {
  455. // if ($("#" + DivID).hasClass("marquee-view")) {
  456. // $("#" + DivID).removeClass("marquee-view");
  457. // }
  458. // if ($("#" + DivCHID).hasClass("marquee")) {
  459. // $("#" + DivCHID).removeClass("marquee");
  460. // }
  461. // }
  462. // else {
  463. // if (!$("#" + DivID).hasClass("marquee-view")) {
  464. // $("#" + DivID).addClass("marquee-view");
  465. // }
  466. // if (!$("#" + DivCHID).hasClass("marquee")) {
  467. // $("#" + DivCHID).removeClass("marquee");
  468. // }
  469. // }
  470. //}
  471. function Get_KCInfo() {
  472. $.ajax({
  473. url: "/SRM/WatchPanel/Get_KCInfo" + "?" + Math.random(),
  474. dataType: "json",
  475. async: false,
  476. success: function (data) {
  477. $("#YL").text(Number(data[0].YCL)+" T");
  478. $("#CP").text(Number(data[0].CP) + " T");
  479. $("#BHM").text(Number(data[0].BHM) + " R");
  480. $("#ZLL").text(Number(data[0].ZLL) + " T");
  481. $("#FQ").text(Number(data[0].FQ) + " T");
  482. $("#FCP").text(Number(data[0].FCP) + " T");
  483. },
  484. error: function (aa) {
  485. }
  486. });
  487. }
  488. function Get_InfoNum() {
  489. $.ajax({
  490. url: "/SRM/WatchPanel/Get_InfoNum" + "?" + Math.random(),
  491. dataType: "json",
  492. async: false,
  493. success: function (data) {
  494. $("#CPFHNum").text(data[0].CPFH);
  495. $("#CGWDHNum").text(data[0].CGWDH);
  496. $("#CPWRKNum").text(data[0].CPWRK);
  497. $("#WWJGNum").text(data[0].WWJG);
  498. $("#DBNum").text(data[0].DB);
  499. $("#WWWDHNum").text(data[0].WWWDH);
  500. },
  501. error: function (aa) {
  502. }
  503. });
  504. }
  505. //function Get_Table1(marqueeID, ItemNumber) {
  506. // $.ajax({
  507. // url: "/SRM/WatchPanel/Get_Table1" + "?" + Math.random(),
  508. // dataType: "json",
  509. // async: false,
  510. // success: function (data) {
  511. // if (data != false && data != null && data.length > 0) {
  512. // var html = "";
  513. // var statusClass = "";
  514. // if (data[0].Status == 'yellow') {
  515. // statusClass = "yellow";
  516. // } else if (data[0].Status == 'red') {
  517. // statusClass = "red";
  518. // } else if (data[0].Status == 'green') {
  519. // statusClass = "green";
  520. // }
  521. // else {
  522. // statusClass = "white";
  523. // }
  524. // html += ' <div class="row ' + statusClass + '"> ';
  525. // html += ' <span class="col">' + data[0].发货单号 + '</span> <span class="col">' + data[0].状态 + '</span>';
  526. // html += ' <span class="col" >' + data[0].滞留天数 + '</span> <span class="col">' + data[0].管理员 + '</span> </div> ';
  527. // }
  528. // html += "</ul>";
  529. // $("#marqueeCustCH1").css("animation-duration", data.length * 1.3 + "s");
  530. // $("#" + marqueeID).html(html);
  531. // },
  532. // error: function (aa) {
  533. // }
  534. // });
  535. //}
  536. function Get_Table1(marqueeID, ItemNumber) {
  537. $.ajax({
  538. url: "/SRM/WatchPanel/Get_Table1" + "?" + Math.random(),
  539. dataType: "json",
  540. async: false,
  541. success: function (data) {
  542. if (data != false && data != null && data.length > 0) {
  543. var html = "";
  544. for (var i = 0; i < data.length; i++) {
  545. var statusClass = "";
  546. if (data[i].Status == 'yellow') {
  547. statusClass = "yellow";
  548. } else if (data[i].Status == 'red') {
  549. statusClass = "red";
  550. } else if (data[i].Status == 'green') {
  551. statusClass = "green";
  552. }
  553. else {
  554. statusClass = "white";
  555. }
  556. html += ' <div class="row ' + statusClass + '"> ';
  557. html += ' <span class="col">' + data[i].发货单号 + '</span> <span class="col">' + data[i].状态 + '</span>';
  558. html += ' <span class="col" >' + data[i].滞留天数 + '</span> <span class="col">' + data[i].管理员 + '</span> </div> ';
  559. }
  560. html += "</ul>";
  561. $("#marqueeCustCH1").css("animation-duration", data.length * 1.3 + "s");
  562. $("#" + marqueeID).html(html);
  563. } else {
  564. $("#" + marqueeID).html("");
  565. }
  566. },
  567. error: function (aa) {
  568. }
  569. });
  570. }
  571. function Get_Table2(marqueeID, ItemNumber) {
  572. $.ajax({
  573. url: "/SRM/WatchPanel/Get_Table2" + "?" + Math.random(),
  574. dataType: "json",
  575. async: false,
  576. success: function (data) {
  577. if (data != false && data != null && data.length > 0) {
  578. var html = "";
  579. for (var i = 0; i < data.length; i++) {
  580. html += ' <div class="row" > ';
  581. html += ' <span class="col">' + data[i].到货单 + '</span> <span class="col">' + data[i].存货名称 + '</span>';
  582. html += ' <span class="col" >' + data[i].规格型号 + '</span> <span class="col">' + data[i].应到数量 + '</span> ';
  583. html += ' <span class="col" >' + data[i].未入库数量 + '</span> <span class="col">' + data[i].供应商 + '</span> </div> ';
  584. }
  585. html += "</ul>";
  586. $("#marqueeCustCH2").css("animation-duration", data.length * 1.3 + "s");
  587. $("#" + marqueeID).html(html);
  588. } else {
  589. $("#" + marqueeID).html("");
  590. }
  591. },
  592. error: function (aa) {
  593. }
  594. });
  595. }
  596. function Get_Table3(marqueeID, ItemNumber) {
  597. $.ajax({
  598. url: "/SRM/WatchPanel/Get_Table3" + "?" + Math.random(),
  599. dataType: "json",
  600. async: false,
  601. success: function (data) {
  602. if (data != false && data != null && data.length > 0) {
  603. var html = "";
  604. for (var i = 0; i < data.length; i++) {
  605. var statusClass = "";
  606. if (data[i].Status === 'yellow') {
  607. statusClass = "yellow";
  608. } else if (data[i].Status === 'red') {
  609. statusClass = "red";
  610. } else if (data[i].Status === 'green') {
  611. statusClass = "green";
  612. }
  613. html += ' <div class="row ' + statusClass + '"> ';
  614. html += ' <span class="col">' + data[i].产线 + '</span> <span class="col">' + data[i].存货编码 + '</span>';
  615. html += ' <span class="col" >' + data[i].数量 + '</span> <span class="col">' + data[i].滞留时间 + '</span> </div> ';
  616. }
  617. html += "</ul>";
  618. $("#marqueeCustCH3").css("animation-duration", data.length * 1.3 + "s");
  619. $("#" + marqueeID).html(html);
  620. } else {
  621. $("#" + marqueeID).html("");
  622. }
  623. },
  624. error: function (aa) {
  625. }
  626. });
  627. }
  628. function Get_Table4(marqueeID, ItemNumber) {
  629. $.ajax({
  630. url: "/SRM/WatchPanel/Get_Table4" + "?" + Math.random(),
  631. dataType: "json",
  632. async: false,
  633. success: function (data) {
  634. if (data != false && data != null && data.length > 0) {
  635. var html = "";
  636. for (var i = 0; i < data.length; i++) {
  637. var statusClass = "";
  638. if (data[i].Status === 'yellow') {
  639. statusClass = "yellow";
  640. } else if (data[i].Status === 'red') {
  641. statusClass = "red";
  642. } else if (data[i].Status === 'green') {
  643. statusClass = "green";
  644. }
  645. html += ' <div class="row ' + statusClass + '"> ';
  646. html += ' <span class="col">' + data[i].委外订单号 + '</span> <span class="col">' + data[i].状态 + '</span>';
  647. html += ' <span class="col" >' + data[i].出库单号 + '</span> <span class="col">' + data[i].发单时间 + '</span> </div> ';
  648. }
  649. html += "</ul>";
  650. $("#marqueeCustCH4").css("animation-duration", data.length * 1.3 + "s");
  651. $("#" + marqueeID).html(html);
  652. } else {
  653. $("#" + marqueeID).html("");
  654. }
  655. },
  656. error: function (aa) {
  657. }
  658. });
  659. }
  660. function Get_Table5(marqueeID, ItemNumber) {
  661. $.ajax({
  662. url: "/SRM/WatchPanel/Get_Table5" + "?" + Math.random(),
  663. dataType: "json",
  664. async: false,
  665. success: function (data) {
  666. if (data != false && data != null && data.length > 0) {
  667. var html = "";
  668. for (var i = 0; i < data.length; i++) {
  669. html += ' <div class="row"> ';
  670. html += ' <span class="col">' + data[i].到货单 + '</span> <span class="col">' + data[i].物料编码 + '</span>';
  671. html += ' <span class="col">' + data[i].规格型号 + '</span> <span class="col">' + data[i].应到数量 + '</span>';
  672. html += ' <span class="col" >' + data[i].未入库数量 + '</span> <span class="col">' + data[i].供应商 + '</span> </div> ';
  673. }
  674. html += "</ul>";
  675. $("#marqueeCustCH5").css("animation-duration", data.length * 1.3 + "s");
  676. $("#" + marqueeID).html(html);
  677. } else {
  678. $("#" + marqueeID).html("");
  679. }
  680. },
  681. error: function (aa) {
  682. }
  683. });
  684. }
  685. function Get_Table6(marqueeID, ItemNumber) {
  686. $.ajax({
  687. url: "/SRM/WatchPanel/Get_Table6" + "?" + Math.random(),
  688. dataType: "json",
  689. async: false,
  690. success: function (data) {
  691. if (data != false && data != null && data.length > 0) {
  692. var html = "";
  693. for (var i = 0; i < data.length; i++) {
  694. html += ' <div class="row"> ';
  695. html += ' <span class="col">' + data[i].存货编码 + '</span> <span class="col">' + data[i].存货名称 + '</span>';
  696. html += ' <span class="col" >' + data[i].数量 + '</span> <span class="col">' + data[i].产线 + '</span> ';
  697. html += ' <span class="col" >' + data[i].调拨时间 + '</span> </div> ';
  698. }
  699. html += "</ul>";
  700. $("#marqueeCustCH6").css("animation-duration", data.length * 1.3 + "s");
  701. $("#" + marqueeID).html(html);
  702. } else {
  703. $("#" + marqueeID).html("");
  704. }
  705. },
  706. error: function (aa) {
  707. }
  708. });
  709. }
  710. </script>
  711. </body>
  712. </html>