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

218 lines
7.9 KiB

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(100% - 0.5rem);">
  51. <div class="boxall" style="height: calc(100% - 0.1rem);">
  52. @*<div class="tit03">工单欠料信息</div>
  53. *@
  54. <div class="boxnav nav03">
  55. <div class="listhead listhead1 listhead5">
  56. <span class="span1">U9工单</span> <span class="span2">开工日期</span><span class="span2">母件料号</span><span class="span1">母件名称</span>
  57. <span class="span1">母件规格</span> <span class="span1">工单数量</span> <span class="span2">母件单位</span><span class="span1">子件料号</span><span class="span1">子件名称</span>
  58. <span class="span1">子件规格</span> <span class="span2">子件欠料数量</span>
  59. </div>
  60. <div class="listnav listnav1 scrollDiv ContentFont" id="WIPRCV">
  61. </div>
  62. </div>
  63. <div class="boxfoot"></div>
  64. </div>
  65. </li>
  66. </ul>
  67. </div>
  68. </div>
  69. <script type="text/javascript" src="~/Content/Cust017/js/jquery.js"></script>
  70. <script type="text/javascript" src="~/Content/Cust017/js/echarts.min.js"></script>
  71. <script src="~/Content/Cust017/js/jquery.liMarquee.js"></script>
  72. <script language="JavaScript" src="~/Content/Cust017/js/js.js"></script>
  73. <script type="text/javascript" src="~/Content/Cust017/js/jquery.countup.min.js"></script>
  74. <script type="text/javascript" src="~/Content/Cust017/js/jquery.waypoints.min.js"></script>
  75. <script type="text/javascript">
  76. $('.counter').countUp()
  77. GetWIPRCVInfo();
  78. $(function () {
  79. $('.scrollDiv').liMarquee({
  80. direction: 'up', //身上滚动
  81. runshort: false, //内容不足时不滚动
  82. scrollamount: 20 //速度
  83. })
  84. })
  85. function phoneChart() {
  86. var dNum = 0;
  87. var WMSWNum = 0;
  88. $.ajax({
  89. url: "/WMS/WatchPanel/GetOwe?XX=11&" + Math.random(),
  90. dataType: "json",
  91. async: false,
  92. success: function (data) {
  93. if (data != false && data != null && data.length > 0) {
  94. for (var i = 0; i < data.length; i++) {
  95. dNum += data[i].工单数量
  96. WMSWNum += data[i].子件欠料数量
  97. }
  98. $("#WIPRCV").html(html);
  99. }
  100. else {
  101. // alert("未获取信息:" + data);
  102. }
  103. }
  104. });
  105. //饼状图
  106. var PhoneNum = echarts.init(document.getElementById('PhoneNum'))
  107. option = {
  108. tooltip: {
  109. trigger: 'item',
  110. formatter: '{a} <br/>{b}: {c} ({d}%)'
  111. },
  112. legend: {
  113. orient: 'vertical',
  114. x: 'left',
  115. selectedMode: false, //取消图例上的点击事件
  116. data: ['工单数量', '子件欠料数量'],
  117. padding: [20, 0, 0, 0],
  118. textStyle: { color: '#fff' }
  119. },
  120. series: [
  121. {
  122. name: '数量',
  123. type: 'pie',
  124. radius: ['50%', '70%'],
  125. avoidLabelOverlap: false,
  126. animation: false,
  127. hoverAnimation: false,
  128. itemStyle: {
  129. labelLine: {
  130. show: true //隐藏标示线
  131. }
  132. },
  133. label: {
  134. show: false,
  135. normal: {
  136. show: true
  137. },
  138. emphasis: {
  139. show: true
  140. },
  141. legend: {
  142. itemStyle: {
  143. color: '#fff'
  144. }
  145. }
  146. },
  147. labelLine: {
  148. // 饼状图周围标注的线
  149. normal: {
  150. show: true
  151. }
  152. },
  153. data: [
  154. { value: dNum, name: '工单数量' },
  155. { value: WMSWNum, name: '子件欠料数量' },
  156. ]
  157. }
  158. ]
  159. }
  160. PhoneNum.setOption(option)
  161. }
  162. //工单欠料信息
  163. function GetWIPRCVInfo() {
  164. $.ajax({
  165. url: "/WMS/WatchPanel/GetOwe?XX=11&" + Math.random(),
  166. dataType: "json",
  167. async: false,
  168. success: function (data) {
  169. if (data != false && data != null && data.length > 0) {
  170. var html = "<ul>";
  171. for (var i = 0; i < data.length; i++) {
  172. html += ' <li> <span>' + data[i].U9工单 + '</span> <span class="span2">' + data[i].开工日期 + '</span> <span class="span2">' + data[i].母件料号 + '</span>';
  173. html += ' <span class="span1">' + data[i].母件名称 + '</span> <span class="span1">' + data[i].母件规格 + '</span> <span class="span1">' + data[i].工单数量 + '</span> <span class="span2">' + data[i].母件单位 + '</span>';
  174. html += ' <span class="span1">' + data[i].子件料号 + '</span> <span class="span1">' + data[i].子件名称 + '</span> <span class="span4">' + data[i].子件规格 + '</span> <span class="span2">' + data[i].子件欠料数量 + '</span>';
  175. }
  176. html += "</ul>";
  177. $("#WIPRCV").html(html);
  178. }
  179. else {
  180. // alert("未获取信息:" + data);
  181. }
  182. },
  183. error: function (aa) {
  184. alert("异常:" + aa.responseText);
  185. }
  186. });
  187. }
  188. </script>
  189. <script type="text/javascript">
  190. </script>
  191. </body>
  192. </html>