|
@@ -46,7 +46,7 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 col-md-12">
|
|
|
- <span class="block-title">仓库人员信息</span>
|
|
|
+ <span class="block-title-important">仓库人员信息</span>
|
|
|
|
|
|
<span class="block-title-important">{{userSum}}</span>
|
|
|
</div>
|
|
@@ -68,7 +68,7 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 col-md-12">
|
|
|
- <span class="block-title">收料待检</span>
|
|
|
+ <span class="block-title-important">收料待检</span>
|
|
|
|
|
|
<span class="block-title-important">{{waitingcheckMaterialSum}}</span>
|
|
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
<!--安全库存-->
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
- <div class="col-lg-12 col-md-12 block-title">安全库存</div>
|
|
|
+ <div class="col-lg-12 col-md-12 block-title-important">安全库存</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="col-lg-2 col-md-2 center no-padding">产品编码</div>
|
|
@@ -179,7 +179,7 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 col-md-12">
|
|
|
- <span class="block-title">发货通知</span>
|
|
|
+ <span class="block-title-important">发货通知</span>
|
|
|
|
|
|
<span class="block-title-important">{{waitingSendProductSum}}</span>
|
|
|
</div>
|
|
@@ -225,7 +225,7 @@
|
|
|
<div class="row">
|
|
|
<div class="row">
|
|
|
<!-- <div class="col-lg-12 col-md-12 center block-title">月成品出货统计</div> -->
|
|
|
- <div class="col-lg-12 col-md-12 center block-title">项目月发货统计</div>
|
|
|
+ <div class="col-lg-12 col-md-12 center block-title-important">项目月发货统计</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="col-lg-12 col-md-12" style="height:440px" id="charts_11"></div>
|
|
@@ -273,7 +273,7 @@
|
|
|
</div> -->
|
|
|
<div class="row" style="height: 49%;">
|
|
|
<div class="row">
|
|
|
- <div class="col-lg-12 col-md-12 center block-title">成品库存</div>
|
|
|
+ <div class="col-lg-12 col-md-12 center block-title-important">成品库存</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="col-lg-12 col-md-2" style="height:500px" id="charts_22"></div>
|
|
@@ -287,14 +287,14 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 col-md-12">
|
|
|
- <span class="block-title">工单备料</span>
|
|
|
+ <span class="block-title-important">工单备料</span>
|
|
|
|
|
|
<span class="block-title-important">{{orderSheetMaterialNeedSum}}</span>
|
|
|
|
|
|
<span class="block-title-important">{{orderSheetMaterialPercent}}%</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row block-padding">
|
|
|
+ <div class="row block-padding" >
|
|
|
<div class="col-lg-2 col-md-2 center no-padding">工单号</div>
|
|
|
<div class="col-lg-2 col-md-2 center no-padding">产品编码</div>
|
|
|
<div class="col-lg-2 col-md-2 center no-padding">产品名称</div>
|
|
@@ -326,7 +326,7 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 col-md-12">
|
|
|
- <span class="block-title">工单缺料明细</span>
|
|
|
+ <span class="block-title-important">工单缺料明细</span>
|
|
|
|
|
|
<span class="block-title-important">{{orderSheetMaterialNotEnoughSum}}</span>
|
|
|
</div>
|
|
@@ -356,7 +356,7 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 ">
|
|
|
- <span class="block-title">工单齐套通知</span>
|
|
|
+ <span class="block-title-important">工单齐套通知</span>
|
|
|
|
|
|
<span class="block-title-important">{{orderSheetMaterialEnoughSum}}</span>
|
|
|
</div>
|
|
@@ -385,7 +385,7 @@
|
|
|
<div class="row block-padding">
|
|
|
|
|
|
<div class="col-lg-12 col-md-12 ">
|
|
|
- <span class="block-title">领料申请通知</span>
|
|
|
+ <span class="block-title-important">领料申请通知</span>
|
|
|
|
|
|
<span class="block-title-important">{{applyMaterialSum}}</span>
|
|
|
</div>
|
|
@@ -402,7 +402,7 @@
|
|
|
<div class="row">
|
|
|
<div class="col-lg-12 col-md-12" style="height: 23%;overflow:hidden;min-height:180px">
|
|
|
<div class="row" v-for="material in applyMaterialList">
|
|
|
- <div class="col-lg-2 col-md-2 center no-padding">{{material.orderSheetCode}}</div>
|
|
|
+ <div class="col-lg-2 col-md-2 center no-padding">{{material.ddate}}</div>
|
|
|
<div class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
|
|
|
<div class="col-lg-2 col-md-2 center no-padding">{{material.materialName}}</div>
|
|
|
<!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.specs}}</div> -->
|
|
@@ -439,70 +439,73 @@
|
|
|
<script src="/js/content/mycharts.js?_v=1"></script>
|
|
|
<script type="text/javascript">
|
|
|
// 参数说明:beginFun("图表ID","list形式数据","翻页时间(毫秒)","本页面唯一id(不可重复)")
|
|
|
- // setTimeout(beginFun("charts_11",monthSend,2000,"123123"),500);
|
|
|
- var interval = setInterval(getMonthSendData,10000);//项目月发货统计
|
|
|
- var interval1 = setInterval(getMonthSendData1,10000);//成品库存
|
|
|
+ const monthSend = ServiceProduct.getMonthSend();
|
|
|
+ const stockDate = ServiceProduct.getStockList();
|
|
|
+ setTimeout(beginFun("charts_11",monthSend,10000,"123123"),500);
|
|
|
+ setTimeout(beginFun("charts_22",stockDate,10000,"1231231"),500);
|
|
|
+ // var interval = setInterval(getMonthSendData,10000);//项目月发货统计
|
|
|
+ // var interval1 = setInterval(getMonthSendData1,10000);//成品库存
|
|
|
|
|
|
var initSize = 5;
|
|
|
var pageSize = 5;
|
|
|
var pageIndex = 0;
|
|
|
- const monthSend = ServiceProduct.getMonthSend();
|
|
|
- let monthSendList = [];
|
|
|
- for(let key in monthSend) {
|
|
|
- monthSendList.push([key, monthSend[key]]);
|
|
|
- }
|
|
|
-
|
|
|
- var pageSize1 = 5;
|
|
|
- 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 = 5;
|
|
|
- pageIndex = 0;
|
|
|
- }
|
|
|
- let lsit = monthSendList.slice(pageIndex, pageSize);
|
|
|
- pageIndex = pageSize;
|
|
|
- pageSize = pageSize + initSize;
|
|
|
- let map = {}
|
|
|
- for(let key in lsit) {
|
|
|
- map[lsit[key][0]] = lsit[key][1];
|
|
|
- }
|
|
|
-
|
|
|
- ChartsService.initCommonBar("charts_11",map);
|
|
|
+ // const monthSend = ServiceProduct.getMonthSend();
|
|
|
+ // let monthSendList = [];
|
|
|
+ // for(let key in monthSend) {
|
|
|
+ // monthSendList.push([key, monthSend[key]]);
|
|
|
+ // }
|
|
|
+
|
|
|
+ // var pageSize1 = 5;
|
|
|
+ // 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 = 5;
|
|
|
+ // pageIndex = 0;
|
|
|
+ // }
|
|
|
+ // let lsit = monthSendList.slice(pageIndex, pageSize);
|
|
|
+ // pageIndex = pageSize;
|
|
|
+ // 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;
|
|
|
- pageSize1 = pageSize1 + initSize;
|
|
|
- let map = {}
|
|
|
- for(let key in lsit1) {
|
|
|
- map[lsit1[key][0]] = lsit1[key][1];
|
|
|
- }
|
|
|
- ChartsService.initCommonBar("charts_22",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;
|
|
|
+ // pageSize1 = pageSize1 + initSize;
|
|
|
+ // let map = {}
|
|
|
+ // for(let key in lsit1) {
|
|
|
+ // map[lsit1[key][0]] = lsit1[key][1];
|
|
|
+ // }
|
|
|
+ // ChartsService.initCommonBar("charts_22",map);
|
|
|
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
|
@@ -699,12 +702,14 @@
|
|
|
if (item.needSum * 1 > item.stockSum * 1)
|
|
|
orderSheetMaterialStockSum++;
|
|
|
});
|
|
|
+
|
|
|
this.orderSheetMaterialPercent = ((orderSheetMaterialNeedSum -
|
|
|
orderSheetMaterialStockSum) /
|
|
|
orderSheetMaterialNeedSum * 100).toFixed("0");
|
|
|
+
|
|
|
this.cacheDataObject.orderSheetMaterialList = {
|
|
|
data: orderSheetMaterialList,
|
|
|
- pagesize: 9,
|
|
|
+ pagesize: 5,
|
|
|
pageindex: 0
|
|
|
}
|
|
|
this.orderSheetMaterialList = orderSheetMaterialList.slice(0, this.cacheDataObject
|
|
@@ -714,7 +719,7 @@
|
|
|
this.orderSheetMaterialNotEnoughSum = orderSheetMaterialNotEnoughList.length;
|
|
|
this.cacheDataObject.orderSheetMaterialNotEnoughList = {
|
|
|
data: orderSheetMaterialNotEnoughList,
|
|
|
- pagesize: 9,
|
|
|
+ pagesize: 5,
|
|
|
pageindex: 0
|
|
|
}
|
|
|
this.orderSheetMaterialNotEnoughList = orderSheetMaterialNotEnoughList.slice(0, this
|
|
@@ -724,7 +729,7 @@
|
|
|
this.orderSheetMaterialEnoughSum = orderSheetMaterialEnoughList.length;
|
|
|
this.cacheDataObject.orderSheetMaterialEnoughList = {
|
|
|
data: orderSheetMaterialEnoughList,
|
|
|
- pagesize: 9,
|
|
|
+ pagesize: 5,
|
|
|
pageindex: 0
|
|
|
}
|
|
|
this.orderSheetMaterialEnoughList = orderSheetMaterialEnoughList.slice(0, this
|
|
@@ -739,7 +744,7 @@
|
|
|
this.applyCompleteSumPercent = applyCompleteSumPercent + '%';
|
|
|
this.cacheDataObject.applyMaterialList = {
|
|
|
data: applyMaterialList,
|
|
|
- pagesize: 7,
|
|
|
+ pagesize: 5,
|
|
|
pageindex: 0
|
|
|
}
|
|
|
this.applyMaterialList = applyMaterialList.slice(0, this.cacheDataObject
|