|
@@ -16,12 +16,13 @@ var ServiceWorkhour={
|
|
|
},
|
|
|
// 当天根据物料统计
|
|
|
getDayByMaterial:function(){
|
|
|
- return {
|
|
|
- "物料A":150,
|
|
|
- "物料B":250,
|
|
|
- "物料C":200,
|
|
|
- "物料D":400,
|
|
|
- };
|
|
|
+ // return {
|
|
|
+ // "物料A":150,
|
|
|
+ // "物料B":250,
|
|
|
+ // "物料C":200,
|
|
|
+ // "物料D":400,
|
|
|
+ // };
|
|
|
+ return MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getProductHoursMonthReport?type=1");
|
|
|
},
|
|
|
// 获取物料的标准工时和实际工时
|
|
|
getStandAndRealByMaterial:function(){
|
|
@@ -49,21 +50,31 @@ var ServiceWorkhour={
|
|
|
},
|
|
|
// 获取当日物料的标准工时和实际工时
|
|
|
getDayStandAndRealByMaterial:function(){
|
|
|
- const list = [];
|
|
|
- list.push({productName:"产品A",standHour:15,realHour:20});
|
|
|
- list.push({productName:"产品B",standHour:14,realHour:10});
|
|
|
- list.push({productName:"产品C",standHour:18,realHour:17});
|
|
|
- list.push({productName:"产品D",standHour:16,realHour:19});
|
|
|
- list.push({productName:"产品E",standHour:13,realHour:12});
|
|
|
- list.push({productName:"产品F",standHour:12,realHour:12});
|
|
|
- list.push({productName:"产品G",standHour:17,realHour:20});
|
|
|
+ // const list = [];
|
|
|
+ // list.push({productName:"产品A",standHour:15,realHour:20});
|
|
|
+ // list.push({productName:"产品B",standHour:14,realHour:10});
|
|
|
+ // list.push({productName:"产品C",standHour:18,realHour:17});
|
|
|
+ // list.push({productName:"产品D",standHour:16,realHour:19});
|
|
|
+ // list.push({productName:"产品E",standHour:13,realHour:12});
|
|
|
+ // list.push({productName:"产品F",standHour:12,realHour:12});
|
|
|
+ // list.push({productName:"产品G",standHour:17,realHour:20});
|
|
|
+
|
|
|
+ // $.each(list, function(index,item){
|
|
|
+ // item.label = item.productName;
|
|
|
+ // item.label1 = "标准工时";
|
|
|
+ // item.sum1 = item.standHour;
|
|
|
+ // item.label2 = "实际工时";
|
|
|
+ // item.sum2 = item.realHour;
|
|
|
+ // });
|
|
|
+ var list=[];
|
|
|
+ list=MethodGetService.methodGet("/fbsWorkshopDispatchList/fbsWorkshopDispatchList/getWorkingHoursContrast");
|
|
|
|
|
|
$.each(list, function(index,item){
|
|
|
- item.label = item.productName;
|
|
|
+ item.label = item.product;
|
|
|
item.label1 = "标准工时";
|
|
|
- item.sum1 = item.standHour;
|
|
|
+ item.sum1 = item.standardWorkingHours;
|
|
|
item.label2 = "实际工时";
|
|
|
- item.sum2 = item.realHour;
|
|
|
+ item.sum2 = item.manHoursCompleted;
|
|
|
});
|
|
|
|
|
|
return list;
|