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

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