|
@@ -31,6 +31,7 @@ class CustomerService extends Service
|
|
|
|
|
|
$model = Customer::where('id',$data['id'])->first();
|
|
|
$model->title = $data['title'];
|
|
|
+ $model->code = $data['code'] ?? "";
|
|
|
$model->model_type = $data['model_type'];
|
|
|
$model->customer_intention = $data['customer_intention'] ?? 0;
|
|
|
$model->customer_from = $data['customer_from'] ?? 0;
|
|
@@ -160,6 +161,7 @@ class CustomerService extends Service
|
|
|
|
|
|
$model = new Customer();
|
|
|
$model->title = $data['title'];
|
|
|
+ $model->code = $data['code'] ?? "";
|
|
|
$model->model_type = $data['model_type'];
|
|
|
$model->customer_intention = $data['customer_intention'] ?? 0;
|
|
|
$model->customer_from = $data['customer_from'] ?? 0;
|
|
@@ -445,7 +447,7 @@ class CustomerService extends Service
|
|
|
public function customerList($data,$user){
|
|
|
$model = Customer::Clear($user,$data);
|
|
|
$model = $model->where('del_time',0)
|
|
|
- ->select('title','id','model_type','customer_intention','customer_from','customer_type','car_type','consulting_product','intention_product','progress_stage','address1','address2','crt_id','crt_time','mark','importance','company','company_short_name','depart_id','state_type','customer_state','customer_grade','pond_state','top_depart_id')
|
|
|
+ ->select('title','id','model_type','customer_intention','customer_from','customer_type','car_type','consulting_product','intention_product','progress_stage','address1','address2','crt_id','crt_time','mark','importance','company','company_short_name','depart_id','state_type','customer_state','customer_grade','pond_state','top_depart_id','code')
|
|
|
->orderby('id', 'desc');
|
|
|
|
|
|
if(! empty($data['pond_state'])) {
|