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

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