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.

830 lines
35 KiB

12 months ago
12 months ago
9 months ago
12 months ago
9 months ago
12 months ago
9 months ago
12 months ago
9 months ago
12 months ago
9 months ago
12 months ago
7 months ago
12 months ago
9 months ago
12 months ago
7 months ago
12 months ago
9 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
9 months ago
12 months ago
12 months ago
12 months ago
10 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
9 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
8 months ago
12 months ago
9 months ago
12 months ago
8 months ago
9 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
11 months ago
12 months ago
12 months ago
11 months ago
12 months ago
9 months ago
12 months ago
8 months ago
10 months ago
8 months ago
12 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: 22% !important;
  83. }
  84. .CustDiv2 div span:nth-child(2),.CustDiv2 div div span:nth-child(2) {
  85. width: 28% !important;
  86. }
  87. .CustDiv2 div span:nth-child(3),.CustDiv2 div div span:nth-child(3) {
  88. width: 20% !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: 18% !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: 10% !important;
  125. }
  126. .CustDiv5 div span:nth-child(2),.CustDiv5 div div span:nth-child(2) {
  127. width: 35% !important;
  128. }
  129. .CustDiv5 div span:nth-child(3),.CustDiv5 div div span:nth-child(3) {
  130. width: 35% !important;
  131. }
  132. .CustDiv5 div span:nth-child(4),.CustDiv5 div div span:nth-child(4) {
  133. width: 10% !important;
  134. }
  135. .CustDiv5 div span:nth-child(5),.CustDiv5 div div span:nth-child(5) {
  136. width: 10% !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="ZLL"></label>
  193. </td>
  194. <td>
  195. <span>保护膜仓:</span>
  196. <label id="BHM"></label>
  197. </td>
  198. <td>
  199. <span>成品库存:</span>
  200. <label id="CP"></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. @*<span class="col">调拨时间</span>*@
  367. </div>
  368. <div class="marquee-view" id="marqueeCust6">
  369. <div class="marquee" id="marqueeCustCH6">
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. </li>
  378. </ul>
  379. </div>
  380. </div>
  381. <script>
  382. var DataF = 3000000;//单位秒 //刷新数据时间
  383. var _BarWidth = "25%";
  384. var _barBorderRadius_M = 2;
  385. $(function () {
  386. getTime();
  387. GetDataZong();
  388. //刷新数据
  389. timer = setInterval(function () {
  390. //GetDataZong();
  391. }, DataF * 1000);
  392. });
  393. function getTime() {
  394. var days = new Array("日", "一", "二", "三", "四", "五", "六");
  395. var currentDT = new Date();
  396. var y, m, date, day, hs, ms, ss, theDateStr;
  397. y = currentDT.getFullYear(); //四位整数表示的年份
  398. m = currentDT.getMonth() < 10 ? '0' + (currentDT.getMonth() + 1) : (currentDT.getMonth() + 1); //月
  399. date = currentDT.getDate() < 10 ? '0' + currentDT.getDate() : currentDT.getDate(); //日
  400. day = currentDT.getDay(); //星期
  401. hs = currentDT.getHours() < 10 ? '0' + currentDT.getHours() : currentDT.getHours(); //时
  402. ms = currentDT.getMinutes() < 10 ? '0' + currentDT.getMinutes() : currentDT.getMinutes(); //分
  403. ss = currentDT.getSeconds() < 10 ? '0' + currentDT.getSeconds() : currentDT.getSeconds(); //秒
  404. theDateStr = y + "-" + m + "-" + date + " " + hs + ":" + ms + ":" + ss;
  405. //填充到组件中
  406. $("#TopNameTime").text(theDateStr);
  407. // setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次
  408. window.setTimeout(getTime, 1000);
  409. }
  410. function GetDataZong() {
  411. Get_KCInfo();
  412. Get_Table1("marqueeCustCH1", "30");
  413. Get_Table2("marqueeCustCH2", "60");
  414. Get_Table3("marqueeCustCH3", "90");
  415. Get_Table4("marqueeCustCH4", "90");
  416. Get_Table5("marqueeCustCH5", "90");
  417. Get_Table6("marqueeCustCH6", "90");
  418. SetIfGo("marqueeCust1", "marqueeCustCH1", "marqueelist1");//判断是否需要滚动
  419. SetIfGo("marqueeCust2", "marqueeCustCH2", "marqueelist2");//判断是否需要滚动
  420. SetIfGo("marqueeCust3", "marqueeCustCH3", "marqueelist3");//判断是否需要滚动
  421. SetIfGo("marqueeCust4", "marqueeCustCH4", "marqueelist4");//判断是否需要滚动
  422. SetIfGo("marqueeCust5", "marqueeCustCH5", "marqueelist5");//判断是否需要滚动
  423. SetIfGo("marqueeCust6", "marqueeCustCH6", "marqueelist6");//判断是否需要滚动
  424. Get_InfoNum();
  425. }
  426. function SetIfGo(DivID, DivCHID, listID) {
  427. debugger;
  428. var ListDIV = $("#" + listID)[0].clientHeight;
  429. var H_marqueediv = $("#" + DivCHID)[0];
  430. var H_marquee= H_marqueediv.clientHeight;
  431. // var H_marqueeView = $("#" + DivID)[0].clientHeight;
  432. if ((ListDIV - 40) > H_marquee) {
  433. //if (!$("#" + DivID).hasClass("animationNone")) {
  434. // $("#" + DivID).addClass("animationNone");
  435. //}
  436. if (!$("#" + DivCHID).hasClass("animationNone")) {
  437. $("#" + DivCHID).addClass("animationNone");
  438. }
  439. }
  440. else {
  441. //if ($("#" + DivID).hasClass("animationNone")) {
  442. // $("#" + DivID).removeClass("animationNone");
  443. //}
  444. if ($("#" + DivCHID).hasClass("animationNone")) {
  445. $("#" + DivCHID).removeClass("animationNone");
  446. }
  447. }
  448. }
  449. //function SetIfGo(DivID, DivCHID)
  450. //{
  451. // debugger;
  452. // var H_marqueediv = $("#" + DivCHID)[0];
  453. // var H_marquee= H_marqueediv.clientHeight;
  454. // var H_marqueeView = $("#" + DivID)[0].clientHeight;
  455. // if (H_marquee < H_marqueeView) {
  456. // if ($("#" + DivID).hasClass("marquee-view")) {
  457. // $("#" + DivID).removeClass("marquee-view");
  458. // }
  459. // if ($("#" + DivCHID).hasClass("marquee")) {
  460. // $("#" + DivCHID).removeClass("marquee");
  461. // }
  462. // }
  463. // else {
  464. // if (!$("#" + DivID).hasClass("marquee-view")) {
  465. // $("#" + DivID).addClass("marquee-view");
  466. // }
  467. // if (!$("#" + DivCHID).hasClass("marquee")) {
  468. // $("#" + DivCHID).removeClass("marquee");
  469. // }
  470. // }
  471. //}
  472. function Get_KCInfo() {
  473. $.ajax({
  474. url: "/SRM/WatchPanel/Get_KCInfo" + "?" + Math.random(),
  475. dataType: "json",
  476. async: false,
  477. success: function (data) {
  478. $("#YL").text(Number(data[0].YCL)+" T");
  479. $("#CP").text(Number(data[0].CP) + " T");
  480. $("#BHM").text(Number(data[0].BHM) + " R");
  481. $("#ZLL").text(Number(data[0].ZLL) + " T");
  482. $("#FQ").text(Number(data[0].FQ) + " T");
  483. $("#FCP").text(Number(data[0].FCP) + " T");
  484. },
  485. error: function (aa) {
  486. }
  487. });
  488. }
  489. function Get_InfoNum() {
  490. $.ajax({
  491. url: "/SRM/WatchPanel/Get_InfoNum" + "?" + Math.random(),
  492. dataType: "json",
  493. async: false,
  494. success: function (data) {
  495. $("#CPFHNum").text(data[0].CPFH);
  496. $("#CGWDHNum").text(data[0].CGWDH);
  497. $("#CPWRKNum").text(data[0].CPWRK);
  498. $("#WWJGNum").text(data[0].WWJG);
  499. $("#DBNum").text(data[0].DB);
  500. $("#WWWDHNum").text(data[0].WWWDH);
  501. },
  502. error: function (aa) {
  503. }
  504. });
  505. }
  506. //function Get_Table1(marqueeID, ItemNumber) {
  507. // $.ajax({
  508. // url: "/SRM/WatchPanel/Get_Table1" + "?" + Math.random(),
  509. // dataType: "json",
  510. // async: false,
  511. // success: function (data) {
  512. // if (data != false && data != null && data.length > 0) {
  513. // var html = "";
  514. // var statusClass = "";
  515. // if (data[0].Status == 'yellow') {
  516. // statusClass = "yellow";
  517. // } else if (data[0].Status == 'red') {
  518. // statusClass = "red";
  519. // } else if (data[0].Status == 'green') {
  520. // statusClass = "green";
  521. // }
  522. // else {
  523. // statusClass = "white";
  524. // }
  525. // html += ' <div class="row ' + statusClass + '"> ';
  526. // html += ' <span class="col">' + data[0].发货单号 + '</span> <span class="col">' + data[0].状态 + '</span>';
  527. // html += ' <span class="col" >' + data[0].滞留天数 + '</span> <span class="col">' + data[0].管理员 + '</span> </div> ';
  528. // }
  529. // html += "</ul>";
  530. // $("#marqueeCustCH1").css("animation-duration", data.length * 1.3 + "s");
  531. // $("#" + marqueeID).html(html);
  532. // },
  533. // error: function (aa) {
  534. // }
  535. // });
  536. //}
  537. function Get_Table1(marqueeID, ItemNumber) {
  538. $.ajax({
  539. url: "/SRM/WatchPanel/Get_Table1" + "?" + Math.random(),
  540. dataType: "json",
  541. async: false,
  542. success: function (data) {
  543. if (data != false && data != null && data.length > 0) {
  544. var html = "";
  545. for (var i = 0; i < data.length; i++) {
  546. var statusClass = "";
  547. if (data[i].Status == 'yellow') {
  548. statusClass = "yellow";
  549. } else if (data[i].Status == 'red') {
  550. statusClass = "red";
  551. } else if (data[i].Status == 'green') {
  552. statusClass = "green";
  553. }
  554. else {
  555. statusClass = "white";
  556. }
  557. html += ' <div class="row ' + statusClass + '"> ';
  558. html += ' <span class="col">' + data[i].发货单号 + '</span> <span class="col">' + data[i].状态 + '</span>';
  559. html += ' <span class="col" >' + data[i].滞留天数 + '</span> <span class="col">' + data[i].管理员 + '</span> </div> ';
  560. }
  561. html += "</ul>";
  562. $("#marqueeCustCH1").css("animation-duration", data.length * 1.3 + "s");
  563. $("#" + marqueeID).html(html);
  564. } else {
  565. $("#" + marqueeID).html("");
  566. }
  567. },
  568. error: function (aa) {
  569. }
  570. });
  571. }
  572. function Get_Table2(marqueeID, ItemNumber) {
  573. $.ajax({
  574. url: "/SRM/WatchPanel/Get_Table2" + "?" + Math.random(),
  575. dataType: "json",
  576. async: false,
  577. success: function (data) {
  578. if (data != false && data != null && data.length > 0) {
  579. var html = "";
  580. for (var i = 0; i < data.length; i++) {
  581. html += ' <div class="row" > ';
  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> ';
  584. html += ' <span class="col" >' + data[i].未入库数量 + '</span> <span class="col">' + data[i].供应商 + '</span> </div> ';
  585. }
  586. html += "</ul>";
  587. $("#marqueeCustCH2").css("animation-duration", data.length * 1.3 + "s");
  588. $("#" + marqueeID).html(html);
  589. } else {
  590. $("#" + marqueeID).html("");
  591. }
  592. },
  593. error: function (aa) {
  594. }
  595. });
  596. }
  597. function Get_Table3(marqueeID, ItemNumber) {
  598. $.ajax({
  599. url: "/SRM/WatchPanel/Get_Table3" + "?" + Math.random(),
  600. dataType: "json",
  601. async: false,
  602. success: function (data) {
  603. if (data != false && data != null && data.length > 0) {
  604. var html = "";
  605. for (var i = 0; i < data.length; i++) {
  606. var statusClass = "";
  607. if (data[i].Status === 'yellow') {
  608. statusClass = "yellow";
  609. } else if (data[i].Status === 'red') {
  610. statusClass = "red";
  611. } else if (data[i].Status === 'green') {
  612. statusClass = "green";
  613. }
  614. html += ' <div class="row ' + statusClass + '"> ';
  615. html += ' <span class="col">' + data[i].产线 + '</span> <span class="col">' + data[i].存货名称 + '</span>';
  616. html += ' <span class="col" >' + data[i].数量 + '</span> <span class="col">' + data[i].滞留时间 + '</span> </div> ';
  617. }
  618. html += "</ul>";
  619. $("#marqueeCustCH3").css("animation-duration", data.length * 1.3 + "s");
  620. $("#" + marqueeID).html(html);
  621. } else {
  622. $("#" + marqueeID).html("");
  623. }
  624. },
  625. error: function (aa) {
  626. }
  627. });
  628. }
  629. function Get_Table4(marqueeID, ItemNumber) {
  630. $.ajax({
  631. url: "/SRM/WatchPanel/Get_Table4" + "?" + Math.random(),
  632. dataType: "json",
  633. async: false,
  634. success: function (data) {
  635. if (data != false && data != null && data.length > 0) {
  636. var html = "";
  637. for (var i = 0; i < data.length; i++) {
  638. var statusClass = "";
  639. if (data[i].Status === 'yellow') {
  640. statusClass = "yellow";
  641. } else if (data[i].Status === 'red') {
  642. statusClass = "red";
  643. } else if (data[i].Status === 'green') {
  644. statusClass = "green";
  645. }
  646. html += ' <div class="row ' + statusClass + '"> ';
  647. html += ' <span class="col">' + data[i].委外订单号 + '</span> <span class="col">' + data[i].状态 + '</span>';
  648. html += ' <span class="col" >' + data[i].出库单号 + '</span> <span class="col">' + data[i].发单时间 + '</span> </div> ';
  649. }
  650. html += "</ul>";
  651. $("#marqueeCustCH4").css("animation-duration", data.length * 1.3 + "s");
  652. $("#" + marqueeID).html(html);
  653. } else {
  654. $("#" + marqueeID).html("");
  655. }
  656. },
  657. error: function (aa) {
  658. }
  659. });
  660. }
  661. function Get_Table5(marqueeID, ItemNumber) {
  662. $.ajax({
  663. url: "/SRM/WatchPanel/Get_Table5" + "?" + Math.random(),
  664. dataType: "json",
  665. async: false,
  666. success: function (data) {
  667. if (data != false && data != null && data.length > 0) {
  668. var html = "";
  669. for (var i = 0; i < data.length; i++) {
  670. html += ' <div class="row"> ';
  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>';
  673. html += ' <span class="col" >' + data[i].未入库数量 + '</span> <span class="col">' + data[i].供应商 + '</span> </div> ';
  674. }
  675. html += "</ul>";
  676. $("#marqueeCustCH5").css("animation-duration", data.length * 1.3 + "s");
  677. $("#" + marqueeID).html(html);
  678. } else {
  679. $("#" + marqueeID).html("");
  680. }
  681. },
  682. error: function (aa) {
  683. }
  684. });
  685. }
  686. function Get_Table6(marqueeID, ItemNumber) {
  687. $.ajax({
  688. url: "/SRM/WatchPanel/Get_Table6" + "?" + Math.random(),
  689. dataType: "json",
  690. async: false,
  691. success: function (data) {
  692. if (data != false && data != null && data.length > 0) {
  693. var html = "";
  694. for (var i = 0; i < data.length; i++) {
  695. html += ' <div class="row"> ';
  696. html += ' <span class="col">' + data[i].调拨仓 + '</span> <span class="col">' + data[i].存货编码 + '</span>';
  697. html += ' <span class="col" >' + data[i].存货名称 + '</span> <span class="col">' + data[i].数量 + '</span> ';
  698. html += ' <span class="col" >' + data[i].目标仓 + '</span> </div> ';
  699. }
  700. html += "</ul>";
  701. $("#marqueeCustCH6").css("animation-duration", data.length * 1.3 + "s");
  702. $("#" + marqueeID).html(html);
  703. } else {
  704. $("#" + marqueeID).html("");
  705. }
  706. },
  707. error: function (aa) {
  708. }
  709. });
  710. }
  711. </script>
  712. </body>
  713. </html>