袁少华 преди 4 години
родител
ревизия
51730920af
променени са 2 файла, в които са добавени 17 реда и са изтрити 16 реда
  1. 16 15
      js/service/product.js
  2. 1 1
      pages/dashboard/produce.html

+ 16 - 15
js/service/product.js

@@ -66,24 +66,25 @@ var ServiceProduct = {
     },
     // 月成品出货统计,根据成品维度
     getMonthSend: function () {
-        // return {
-        //     "成品A": 20,
-        //     "成品B": 100,
-        //     "成品C": 80,
-        //     "成品D": 150,
-        //     "成品E": 200,
-        // };
-        return MethodGetService.methodGet("/fbsDispatchLists/fbsDispatchLists/getProjectDelivery");
+        return {
+            "成品A": 20,
+            "成品B": 100,
+            "成品C": 80,
+            "成品D": 150,
+            "成品E": 200,
+        };
+        // return MethodGetService.methodGet("/fbsDispatchLists/fbsDispatchLists/getProjectDelivery");
     },
     // 月项目发货统计,根据项目维度
     getMonthSendByProject: function () {
-        return {
-            "项目A": 20,
-            "项目B": 100,
-            "项目C": 80,
-            "项目D": 150,
-            "项目E": 200,
-        };
+        // return {
+        //     "项目A": 20,
+        //     "项目B": 100,
+        //     "项目C": 80,
+        //     "项目D": 150,
+        //     "项目E": 200,
+        // };
+        return MethodGetService.methodGet("/fbsDispatchLists/fbsDispatchLists/getProjectDelivery");
 
     },
     // 成品库存,物料维度

+ 1 - 1
pages/dashboard/produce.html

@@ -198,7 +198,7 @@
 
         ChartsService.initCommonPanel("charts_31", ServiceProduct.getProduceRate());
         ChartsService.initBarAndLine("charts_32", ServiceWorkhour.getStandAndRealByMaterial());
-        ChartsService.initBarWithShade("charts_33", ServiceProduct.getMonthSend());
+        ChartsService.initBarWithShade("charts_33", ServiceProduct.getMonthSendByProject());
     </script>
 
 </body>