| 
														
															@@ -436,6 +436,74 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <script src="/js/service/product.js?_v=1"></script> 
														 | 
														
														 | 
														
															     <script src="/js/service/product.js?_v=1"></script> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <script src="/js/content/mycharts.js?_v=1"></script> 
														 | 
														
														 | 
														
															     <script src="/js/content/mycharts.js?_v=1"></script> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <script type="text/javascript"> 
														 | 
														
														 | 
														
															     <script type="text/javascript"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var interval = setInterval(getMonthSendData,10000);//项目月发货统计 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var interval1 = setInterval(getMonthSendData1,10000);//成品库存 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var initSize = 8; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var pageSize = 8; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var pageIndex = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const monthSend = ServiceProduct.getMonthSend(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let monthSendList = []; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        for(let key in monthSend) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            monthSendList.push([key, monthSend[key]]); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var pageSize1 = 8; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var pageIndex1 = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const stockDate = ServiceProduct.getStockList(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let stockList = []; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        for(let key in stockDate) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            stockList.push([key, stockDate[key]]); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        function getMonthSendData(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if(monthSendList.length <= initSize){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                clearInterval(interval); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if(pageIndex > monthSendList.length){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                pageSize = 8; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                pageIndex = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let lsit = monthSendList.slice(pageIndex, pageSize); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            pageIndex = pageSize+1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            pageSize = pageSize + initSize; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let map = {} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            for(let key in lsit) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                map[lsit[key][0]] = lsit[key][1]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            ChartsService.initCommonBar("charts_11",map); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        function getMonthSendData1(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if(stockList.length <= initSize){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                clearInterval(interval1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if(pageIndex1 > stockList.length){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                pageSize1 = 8; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                pageIndex1 = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let lsit1 = stockList.slice(pageIndex1, pageSize1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            pageIndex1 = pageSize1+1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            pageSize1 = pageSize1 + initSize; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let map = {} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            for(let key in lsit1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                map[lsit1[key][0]] = lsit1[key][1]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            ChartsService.initCommonBar("charts_22",map); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         var vm = new Vue({ 
														 | 
														
														 | 
														
															         var vm = new Vue({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             el: '#div-main', 
														 | 
														
														 | 
														
															             el: '#div-main', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             data: { 
														 | 
														
														 | 
														
															             data: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -501,9 +569,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     // 关闭定时器 
														 | 
														
														 | 
														
															                     // 关闭定时器 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     clearInterval(this.timer_short); 
														 | 
														
														 | 
														
															                     clearInterval(this.timer_short); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     // 刷新报表 
														 | 
														
														 | 
														
															                     // 刷新报表 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    ChartsService.initCommonBar("charts_11", ServiceProduct.getMonthSend()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    // ChartsService.initCommonBar("charts_11", ServiceProduct.getMonthSend()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     // ChartsService.initLineWithShade("charts_12", ServiceProduct.getMonthSendByProject()); 
														 | 
														
														 | 
														
															                     // ChartsService.initLineWithShade("charts_12", ServiceProduct.getMonthSendByProject()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    ChartsService.initCommonBar("charts_22", ServiceProduct.getStockList()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    // ChartsService.initCommonBar("charts_22", ServiceProduct.getStockList()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.loadData(); 
														 | 
														
														 | 
														
															                     this.loadData(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     // 开启定时器 
														 | 
														
														 | 
														
															                     // 开启定时器 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     this.timer_short = setInterval(this.scrollData, 5000); 
														 | 
														
														 | 
														
															                     this.timer_short = setInterval(this.scrollData, 5000); 
														 |