|
@@ -198,6 +198,64 @@
|
|
|
<script src="/js/service/produce-task.js?_v=1"></script>
|
|
|
<script src="/js/content/mycharts.js?_v=1"></script>
|
|
|
<script type="text/javascript">
|
|
|
+
|
|
|
+ //当日标准工时与实际工时对比
|
|
|
+ const monthGoodList = ServiceProduct.getDayGood();
|
|
|
+ setTimeout(beA,500);
|
|
|
+ var initSize = 5;
|
|
|
+ var pageSizeMonthGood = 5;
|
|
|
+ var pageIndexMonthGood = 0;
|
|
|
+ function beA(){
|
|
|
+ var lsitMonth = monthGoodList.slice(pageIndexMonthGood,pageSizeMonthGood);
|
|
|
+ pageIndexMonthGood = pageSizeMonthGood;
|
|
|
+ pageSizeMonthGood = pageSizeMonthGood + initSize;
|
|
|
+ ChartsService.initBarWithTwoNumberRate("charts_12", lsitMonth,
|
|
|
+ ChartsService.getGridSpanSmall());
|
|
|
+ if(monthGoodList.length <= pageIndexMonthGood){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ setInterval(beginScrollA,10000);
|
|
|
+ }
|
|
|
+ function beginScrollA(){
|
|
|
+ var lsitMonth = monthGoodList.slice(pageIndexMonthGood,pageSizeMonthGood);
|
|
|
+ pageIndexMonthGood = pageSizeMonthGood;
|
|
|
+ pageSizeMonthGood = pageSizeMonthGood + initSize;
|
|
|
+ if(monthGoodList.length <= pageIndexMonthGood){
|
|
|
+ pageIndexMonthGood = 0;
|
|
|
+ pageSizeMonthGood = initSize;
|
|
|
+ }
|
|
|
+ ChartsService.initBarWithTwoNumberRate("charts_12", lsitMonth,
|
|
|
+ ChartsService.getGridSpanSmall());
|
|
|
+ }
|
|
|
+
|
|
|
+ //当日良率
|
|
|
+ const dayStandAndRealList = ServiceWorkhour.getDayStandAndRealByMaterial();
|
|
|
+ setTimeout(beB,600);
|
|
|
+ var pageSizeB = 5;
|
|
|
+ var pageIndexB = 0;
|
|
|
+ function beB(){
|
|
|
+ var lsitDay = dayStandAndRealList.slice(pageIndexB,pageSizeB);
|
|
|
+ pageIndexB = pageSizeB;
|
|
|
+ pageSizeB = pageSizeB + initSize;
|
|
|
+ ChartsService.initBarAndLine("charts_11", lsitDay,
|
|
|
+ ChartsService.getGridSpanSmall());
|
|
|
+ if(dayStandAndRealList.length <= pageIndexB){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ setInterval(beginScrollA,10000);
|
|
|
+ }
|
|
|
+ function beginScrollA(){
|
|
|
+ var lsitDay = dayStandAndRealList.slice(pageIndexB,pageSizeB);
|
|
|
+ pageIndexB = pageSizeB;
|
|
|
+ pageSizeB = pageSizeB + initSize;
|
|
|
+ if(dayStandAndRealList.length <= pageIndexB){
|
|
|
+ pageIndexB = 0;
|
|
|
+ pageSizeB = initSize;
|
|
|
+ }
|
|
|
+ ChartsService.initBarAndLine("charts_11", lsitDay, ChartsService.getGridSpanSmall());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
var vm = new Vue({
|
|
|
el: '#div-main',
|
|
|
data: {
|
|
@@ -216,9 +274,9 @@
|
|
|
// 关闭定时器
|
|
|
clearInterval(this.timer_short);
|
|
|
// 刷新报表
|
|
|
- ChartsService.initBarAndLine("charts_11", ServiceWorkhour
|
|
|
- .getDayStandAndRealByMaterial(), ChartsService.getGridSpanSmall());
|
|
|
- ChartsService.initBarWithTwoNumberRate("charts_12", ServiceProduct.getDayGood(), ChartsService.getGridSpanSmall());
|
|
|
+ // ChartsService.initBarAndLine("charts_11", ServiceWorkhour
|
|
|
+ // .getDayStandAndRealByMaterial(), ChartsService.getGridSpanSmall());
|
|
|
+ // ChartsService.initBarWithTwoNumberRate("charts_12", ServiceProduct.getDayGood(), ChartsService.getGridSpanSmall());
|
|
|
ChartsService.initBarWithShade("charts_13", ServiceProduct.getDayExceptionByCategory(), ChartsService.getGridSpanSmall());
|
|
|
|
|
|
ChartsService.initCommonPanel("charts_21", ServiceProduct.getDayProduceRate());
|