Procházet zdrojové kódy

暂时只能提交已报销支出

shish před 1 rokem
rodič
revize
bb0d6b6273

+ 3 - 0
app-ghs/controllers/ExpendController.php

@@ -222,6 +222,9 @@ class ExpendController extends BaseController
         if ($bx == -1) {
             util::fail('请选报销状态');
         }
+        if($bx == 0){
+            util::fail('暂时只能提交已报销支出');
+        }
         if ($type == -1) {
             util::fail('请选择类型');
         }

+ 1 - 1
app-mall/controllers/ItemController.php

@@ -122,7 +122,7 @@ class ItemController extends BaseController
                 util::fail('暂时无法访问');
             }
         }else{
-            if(in_array($mainId,[644,0])){
+            if(in_array($mainId,[0,1])){
                 util::fail('暂时无法访问');
             }
         }

+ 1 - 1
app-mall/controllers/OrderController.php

@@ -67,7 +67,7 @@ class OrderController extends BaseController
                 util::fail('暂时无法访问');
             }
         }else{
-            if(in_array($mainId,[644,0])){
+            if(in_array($mainId,[0,1])){
                 util::fail('暂时无法访问');
             }
         }