|
@@ -206,7 +206,8 @@ var ServiceProduct = {
|
|
// return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getQualityType");
|
|
// return MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHours/getQualityType");
|
|
// var map=MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHoursDescribe/getMonthExceptionByCategory")
|
|
// var map=MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHoursDescribe/getMonthExceptionByCategory")
|
|
var list=MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHoursDescribe/getMonthExceptionByCategoryTwo")
|
|
var list=MethodGetService.methodGet("/fbsAbnormalWorkingHours/fbsAbnormalWorkingHoursDescribe/getMonthExceptionByCategoryTwo")
|
|
- if(list){
|
|
|
|
|
|
+
|
|
|
|
+ if(list&&list.length>0){
|
|
var remainingQuantity=3-(list.length%3);
|
|
var remainingQuantity=3-(list.length%3);
|
|
if(remainingQuantity!=3){
|
|
if(remainingQuantity!=3){
|
|
for(var i=0;i<remainingQuantity;i++){
|
|
for(var i=0;i<remainingQuantity;i++){
|
|
@@ -214,6 +215,13 @@ var ServiceProduct = {
|
|
list.push({label: bu,sum1:0,sum2:0})
|
|
list.push({label: bu,sum1:0,sum2:0})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ list=[
|
|
|
|
+ {label:"分类A",sum1: 0,sum2:100},
|
|
|
|
+ {label:"分类B",sum1: 0,sum2:100},
|
|
|
|
+ {label:"分类C",sum1: 0,sum2:100}
|
|
|
|
+
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
return list;
|
|
return list;
|
|
},
|
|
},
|
|
@@ -229,7 +237,8 @@ var ServiceProduct = {
|
|
// "分类G": 500
|
|
// "分类G": 500
|
|
// };
|
|
// };
|
|
var map =MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getQualifiedInQtyWeek");
|
|
var map =MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getQualifiedInQtyWeek");
|
|
- if(map){
|
|
|
|
|
|
+
|
|
|
|
+ if(map&&Object.keys(map).length>0){
|
|
var remainingQuantity=3-(Object.keys(map).length%3);
|
|
var remainingQuantity=3-(Object.keys(map).length%3);
|
|
if(remainingQuantity!=3){
|
|
if(remainingQuantity!=3){
|
|
for(var i=0;i<remainingQuantity;i++){
|
|
for(var i=0;i<remainingQuantity;i++){
|
|
@@ -238,6 +247,12 @@ var ServiceProduct = {
|
|
map[bu]="";
|
|
map[bu]="";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
|
|
+ map={
|
|
|
|
+ "分类A": 0,
|
|
|
|
+ "分类B": 0,
|
|
|
|
+ "分类C": 0
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return map;
|
|
return map;
|
|
},
|
|
},
|