纽威
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.

240 lines
9.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>纽威系统发料看板</title>
  6. <link rel="stylesheet" href="~/Content/Cust017/css/comon1.css" />
  7. <link rel="stylesheet" href="~/Content/Cust007/css/public.css" />
  8. <link rel="stylesheet" href="~/Content/Cust007/css/fq.css" />
  9. <style>
  10. .span1 {
  11. /*width: 130px !important;*/
  12. }
  13. .span2 {
  14. /*margin-bottom:2px;*/
  15. }
  16. .listhead5 span {
  17. /*font-family: 黑体;
  18. font-weight: 500 !important;*/
  19. font-size: 0.1rem !important;
  20. }
  21. .nav03 {
  22. height: calc(100%);
  23. }
  24. #WIPRCV ul li span {
  25. font-size: 0.1rem !important;
  26. word-break: break-word;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <!-- 头部模块 -->
  32. <div class="header">
  33. <div class="title">
  34. <span>纽威系统发料看板</span>
  35. </div>
  36. <div class="time">
  37. <span></span>
  38. </div>
  39. <div class="company">
  40. @*<img src="~/Content/img/Panellogo.png" border="0" class="logoclass" />*@
  41. </div>
  42. </div>
  43. <div class="header5">
  44. <div class="title">发料看板</div>
  45. </div>
  46. <!-- 主题模块 -->
  47. <div class="main">
  48. <div class="mainbox">
  49. <ul class="clearfix">
  50. <!--<li style="height: calc(40% - 0.5rem); margin-bottom: 0.1rem;">
  51. <div class="boxall" style="height: calc(100% - 0.1rem);">
  52. <div class="PhoneNum" id="PhoneNum" style="height: calc(100% - 5rem);"></div>-->
  53. @*<div class="brokenLine" id="brokenLine"></div>
  54. *@
  55. <!--<div class="boxfoot"></div>
  56. </div>
  57. </li>-->
  58. <li style="height: calc(95% - 0.45rem);">
  59. <div class="boxall" style="height: calc(100% - 0.1rem);">
  60. <div class="boxnav nav03">
  61. <div class="listhead listhead1 listhead5">
  62. <span class="span1">领料单号</span>
  63. <span class="span2">行号</span>
  64. <span class="span2">物料编码</span>
  65. <span class="span1">条码</span>
  66. <span class="span1">条码应领数量</span>
  67. <span class="span1">货位</span>
  68. <span class="span2">出货点位</span>
  69. @*<span class="span1">WMS任务编号</span>*@
  70. @*<span class="span1">子件项数</span>
  71. <span class="span1">完成项数</span>*@
  72. </div>
  73. <div class="listnav listnav1 scrollDiv ContentFont" id="WIPRCV">
  74. </div>
  75. </div>
  76. <div class="boxfoot"></div>
  77. </div>
  78. </li>
  79. </ul>
  80. </div>
  81. </div>
  82. <script type="text/javascript" src="~/Content/Cust017/js/jquery.js"></script>
  83. <script type="text/javascript" src="~/Content/Cust017/js/echarts.min.js"></script>
  84. <script src="~/Content/Cust017/js/jquery.liMarquee.js"></script>
  85. <script language="JavaScript" src="~/Content/Cust017/js/js.js"></script>
  86. <script type="text/javascript" src="~/Content/Cust017/js/jquery.countup.min.js"></script>
  87. <script type="text/javascript" src="~/Content/Cust017/js/jquery.waypoints.min.js"></script>
  88. <script type="text/javascript">
  89. $('.counter').countUp()
  90. GetWIPRCVInfo();
  91. //phoneChart();
  92. $(function () {
  93. $('.scrollDiv').liMarquee({
  94. direction: 'up', //身上滚动
  95. runshort: false, //内容不足时不滚动
  96. scrollamount: 20 //速度
  97. })
  98. })
  99. function phoneChart() {
  100. var moNum = 0;
  101. var WMSNum = 0;
  102. $.ajax({
  103. url: "/WMS/WatchPanel/GetMaterialPickChart?XX=11&" + Math.random(),
  104. dataType: "json",
  105. async: false,
  106. success: function (data) {
  107. if (data != false && data != null && data.length > 0) {
  108. for (var i = 0; i < data.length; i++) {
  109. moNum += data[i].领料完成工单
  110. WMSNum += data[i].未完成工单
  111. }
  112. $("#WIPRCV").html(html);
  113. }
  114. else {
  115. // alert("未获取信息:" + data);
  116. }
  117. }
  118. });
  119. //饼状图
  120. var PhoneNum = echarts.init(document.getElementById('PhoneNum'))
  121. option = {
  122. tooltip: {
  123. trigger: 'item',
  124. formatter: '{a} <br/>{b}: {c} ({d}%)'
  125. },
  126. legend: {
  127. orient: 'vertical',
  128. x: 'left',
  129. selectedMode: false, //取消图例上的点击事件
  130. data: ['领料完成工单', '未完成工单'],
  131. padding: [20, 0, 0, 0],
  132. textStyle: { color: '#fff' }
  133. },
  134. series: [
  135. {
  136. name: '项数',
  137. type: 'pie',
  138. radius: ['50%', '70%'],
  139. avoidLabelOverlap: false,
  140. animation: false,
  141. hoverAnimation: false,
  142. itemStyle: {
  143. labelLine: {
  144. show: true //隐藏标示线
  145. }
  146. },
  147. label: {
  148. show: false,
  149. normal: {
  150. show: true
  151. },
  152. emphasis: {
  153. show: true
  154. },
  155. legend: {
  156. itemStyle: {
  157. color: '#fff'
  158. }
  159. }
  160. },
  161. labelLine: {
  162. // 饼状图周围标注的线
  163. normal: {
  164. show: true
  165. }
  166. },
  167. data: [
  168. { value: WMSNum, name: '领料完成工单' },
  169. { value: moNum, name: '未完成工单' }
  170. ]
  171. }
  172. ]
  173. }
  174. PhoneNum.setOption(option)
  175. }
  176. //收料信息
  177. function GetWIPRCVInfo() {
  178. $.ajax({
  179. url: "/WMS/WatchPanel/GetMaterialPick?XX=11&" + Math.random(),
  180. dataType: "json",
  181. async: false,
  182. success: function (data) {
  183. if (data != false && data != null && data.length > 0) {
  184. //<span class="span1">计划开工日</span> <span class="span2">生产部门</span><span class="span2">工单号</span><span class="span1">物料</span>
  185. // <span class="span1">品名</span> <span class="span1">规格</span> <span class="span2">工单数量</span><span class="span1">单位</span>
  186. // <span class="span1">子件项数</span> <span class="span1">完成项数</span>
  187. var html = "<ul>";
  188. for (var i = 0; i < data.length; i++) {
  189. //html += ' <li> <span>' + data[i].ApplyCode + '</span> <span class="span2">' + data[i].Sequence;// + '</span> <span class="span2">' + data[i].SAPSequence + '</span>';
  190. //html += ' <span class="span1">' + data[i].InvCode + '</span> <span class="span1">' + data[i].LotNo + '</span> <span class="span1">' + data[i].Quantity + '</span>';
  191. //html += ' <span class="span1">' + data[i].StartLocation + '</span> <span class="span1">' + data[i].EndLocation + '</span>';//<span class="span4">' + data[i].TaskCode + '</span>';
  192. ////html += ' <span>' + data[i].完成项数 + '</span>';
  193. html += ' <li> <span>' + data[i].ApplyCode + '</span> <span class="span2">' + data[i].Sequence + '</span> <span class="span2">' + data[i].InvCode + '</span>';
  194. html += '<span class="span1">' + data[i].LotNo + '</span> <span class="span1">' + data[i].Quantity + '</span>';
  195. html += '<span class="span1">' + data[i].StartLocation + '</span> <span class="span1">' + data[i].EndLocation + '</span>';//<span class="span4">' + data[i].TaskCode + '</span>';
  196. }
  197. html += "</ul>";
  198. $("#WIPRCV").html(html);
  199. }
  200. else {
  201. // alert("未获取信息:" + data);
  202. }
  203. },
  204. error: function (aa) {
  205. alert("异常:" + aa.responseText);
  206. }
  207. });
  208. }
  209. </script>
  210. <script type="text/javascript">
  211. </script>
  212. </body>
  213. </html>