Browse Source

制造看板

chenc 4 years ago
parent
commit
586582d2f9
2 changed files with 23 additions and 20 deletions
  1. 10 9
      js/service/product.js
  2. 13 11
      js/service/workhour.js

+ 10 - 9
js/service/product.js

@@ -165,15 +165,16 @@ var ServiceProduct = {
     },
     // 周成品入库数量,根据分类
     getWeekInByCategory: function () {
-        return {
-            "分类A": 500,
-            "分类B": 600,
-            "分类C": 800,
-            "分类D": 700,
-            "分类E": 600,
-            "分类F": 400,
-            "分类G": 500
-        };
+        // return {
+        //     "分类A": 500,
+        //     "分类B": 600,
+        //     "分类C": 800,
+        //     "分类D": 700,
+        //     "分类E": 600,
+        //     "分类F": 400,
+        //     "分类G": 500
+        // };
+        return MethodGetService.methodGet("/fbsMomOrder/fbsMomOrderdetail/getQualifiedInQtyWeek");
     },
     // 生产效率
     getProduceRate: function () {

+ 13 - 11
js/service/workhour.js

@@ -25,21 +25,23 @@ var ServiceWorkhour={
     },
     // 获取物料的标准工时和实际工时
     getStandAndRealByMaterial: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});
+        var 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});
+
+        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;