cqpCow 1 vuosi sitten
vanhempi
sitoutus
9d42ad8e79
1 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 7 7
      app/Service/CustomerService.php

+ 7 - 7
app/Service/CustomerService.php

@@ -498,14 +498,14 @@ class CustomerService extends Service
             $data['top_depart_id'] = $user['depart_map'][$data['depart_id']] ?? 0;
         }
         if($data['model_type'] == Customer::Model_type_one){
-            if(empty($data['customer_from'])) return [false,'客户来源不能为空'];
-            if(empty($data['customer_type'])) return [false,'客户类别不能为空'];
-            if(empty($data['consulting_product'])) return [false,'咨询产品不能为空'];
-            if(empty($data['progress_stage'])) return [false,'进展阶段不能为空'];
-            if(empty($data['employee_one'])) return [false,'销售SA不能为空'];
+//            if(empty($data['customer_from'])) return [false,'客户来源不能为空'];
+//            if(empty($data['customer_type'])) return [false,'客户类别不能为空'];
+//            if(empty($data['consulting_product'])) return [false,'咨询产品不能为空'];
+//            if(empty($data['progress_stage'])) return [false,'进展阶段不能为空'];
+//            if(empty($data['employee_one'])) return [false,'销售SA不能为空'];
         }else{
-            if(empty($data['car_type'])) return [false,'车型不能为空'];
-            if(empty($data['customer_contact'])) return [false,'客户联系方式不能为空'];
+//            if(empty($data['car_type'])) return [false,'车型不能为空'];
+//            if(empty($data['customer_contact'])) return [false,'客户联系方式不能为空'];
         }
 
         if($is_add){