袁少华 4 years ago
parent
commit
6e1a2683d9
2 changed files with 9 additions and 8 deletions
  1. 5 6
      js/getService.js
  2. 4 2
      js/service/material.js

+ 5 - 6
js/getService.js

@@ -3,12 +3,11 @@ var getService={
         var ret = null;
         var functionUrl = url;
         ServiceOperation.send(ServiceOperation.MethodGet, ServiceOperation.getFullUrl(functionUrl),"", false, function(data){
-            // if(!data.success){
-            //     DialogOperation.alertDialog(data.message); 
-            // }else{
-            //     ret = data.result;
-            // }
-            ret = data
+            if(!data.success){
+                DialogOperation.alertDialog(data.message); 
+            }else{
+                ret = data.result;
+            }
         }, false, false);
         return ret;
     },

+ 4 - 2
js/service/material.js

@@ -74,8 +74,7 @@ var ServiceMaterial={
 
     // 待检材料
     getWatingCheckList:function(){
-
-        // return getService.methodPost("/fbsPuArrivalvouch/fbsPuArrivalvouch/getWatingCheckList");
+        // return getService.methodGet("/fbsPuArrivalvouch/fbsPuArrivalvouch/getWatingCheckList");
 
         const materialList = [];
         materialList.push({
@@ -130,6 +129,9 @@ var ServiceMaterial={
     },
     // 已检数量
     getCheckSum:function(){
+
+        // return getService.methodPost("/fbsPuArrivalvouch/fbsPuArrivalvouch/getCheckSum");
+
         return 10;
     },
     // 安全库存