cqpCow 1 년 전
부모
커밋
9d42ad8e79
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  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){