wugg 2 years ago
parent
commit
52ba155c22
1 changed files with 23 additions and 0 deletions
  1. 23 0
      app/admin/controller/Cat.php

+ 23 - 0
app/admin/controller/Cat.php

@@ -504,6 +504,29 @@ public function status(){
     if($status===""){
         return error_show(1002,"参数status不能为空");
     }
+    if($status==1){
+        if($stn['rate']===""){
+            return error_show(1003,"单品修改下限未设置");
+        }
+        if($stn['order_rate']===""){
+            return error_show(1003,"预算成本利率未设置");
+        }
+        if($stn['sale_rate']===""){
+            return error_show(1003,"分类成本售价利率未设置");
+        }
+        if($stn['lower_rate']===""){
+            return error_show(1003,"分类最低毛利率未设置");
+        }
+//        if($stn['money_rate']==""){
+//            return error_show(1003,"分类财务利率未设置");
+//        }
+//        if($stn['low_rate']==""){
+//            return error_show(1003,"分类最低毛利未设置");
+//        }
+        if($stn['fund_code']==""){
+            return error_show(1003,"分类核算码未设置");
+        }
+    }
     if ($stn['level']==3) {
         if($status==1){
             $can = made($stn['id']);