From 31dfb94e1152f0523779ffcdd55ba85092e245e2 Mon Sep 17 00:00:00 2001 From: dengbw Date: Thu, 30 Sep 2021 10:53:39 +0800 Subject: [PATCH] admin_orders_930 --- admin/controllers/receiver/Orders.php | 2 + admin/controllers/receiver/order/Agent.php | 4 +- admin/controllers/receiver/order/Bill.php | 4 +- admin/controllers/receiver/order/Ckcar.php | 4 +- admin/controllers/receiver/order/Deal.php | 4 +- admin/controllers/receiver/order/Delivery.php | 2 + admin/controllers/receiver/order/Loan.php | 2 + admin/controllers/receiver/order/Sign.php | 6 +- admin/libraries/OrdersList.php | 97 +++++++++++++++---- admin/views/receiver/order/agent/lists.php | 30 ++++-- admin/views/receiver/order/bill/lists.php | 30 ++++-- admin/views/receiver/order/ckcar/lists.php | 30 ++++-- admin/views/receiver/order/deal/lists.php | 32 +++--- admin/views/receiver/order/delivery/lists.php | 30 ++++-- admin/views/receiver/order/loan/lists.php | 30 ++++-- admin/views/receiver/order/sign/lists.php | 36 ++++--- admin/views/receiver/orders/lists.php | 32 +++--- 17 files changed, 266 insertions(+), 109 deletions(-) diff --git a/admin/controllers/receiver/Orders.php b/admin/controllers/receiver/Orders.php index 0f06745b..59ab744d 100644 --- a/admin/controllers/receiver/Orders.php +++ b/admin/controllers/receiver/Orders.php @@ -362,6 +362,7 @@ class Orders extends HD_Controller $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; $temp['status_name'] = $value['status_name']; + $temp['cf_title'] = $value['cf_title']; $temp['c_time'] = $value['c_time']; $data[] = $temp; } @@ -374,6 +375,7 @@ class Orders extends HD_Controller 'deposit' => '定金', 'payway_name' => '付款方式', 'status_name' => '状态', + 'cf_title' => '客户来源', 'c_time' => '订单时间', ]; array_unshift($data, $indexs); diff --git a/admin/controllers/receiver/order/Agent.php b/admin/controllers/receiver/order/Agent.php index 348d93a8..58523ba1 100644 --- a/admin/controllers/receiver/order/Agent.php +++ b/admin/controllers/receiver/order/Agent.php @@ -64,6 +64,7 @@ class Agent extends HD_Controller{ $temp['price'] = $value['price']; $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; + $temp['cf_title'] = $value['cf_title']; $temp['status_name'] = $value['status_name']; $data[] = $temp; } @@ -75,7 +76,8 @@ class Agent extends HD_Controller{ 'price' => '车辆平台价', 'deposit' => '定金', 'payway_name' => '付款方式', - 'status_name' => '状态', + 'cf_title' => '客户来源', + 'status_name' => '状态' ]; array_unshift($data, $indexs); $this->load->library('excel'); diff --git a/admin/controllers/receiver/order/Bill.php b/admin/controllers/receiver/order/Bill.php index b0e85160..91ed0099 100644 --- a/admin/controllers/receiver/order/Bill.php +++ b/admin/controllers/receiver/order/Bill.php @@ -71,6 +71,7 @@ class Bill extends HD_Controller $temp['price'] = $value['price']; $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; + $temp['cf_title'] = $value['cf_title']; $temp['status_name'] = $value['status_name']; $data[] = $temp; } @@ -82,7 +83,8 @@ class Bill extends HD_Controller 'price' => '车辆平台价', 'deposit' => '定金', 'payway_name' => '付款方式', - 'status_name' => '状态', + 'cf_title' => '客户来源', + 'status_name' => '状态' ]; array_unshift($data, $indexs); $this->load->library('excel'); diff --git a/admin/controllers/receiver/order/Ckcar.php b/admin/controllers/receiver/order/Ckcar.php index bb58f552..2d44cf4d 100644 --- a/admin/controllers/receiver/order/Ckcar.php +++ b/admin/controllers/receiver/order/Ckcar.php @@ -72,6 +72,7 @@ class Ckcar extends HD_Controller $temp['price'] = $value['price']; $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; + $temp['cf_title'] = $value['cf_title']; $temp['status_name'] = $value['status_name']; $data[] = $temp; } @@ -83,7 +84,8 @@ class Ckcar extends HD_Controller 'price' => '车辆平台价', 'deposit' => '定金', 'payway_name' => '付款方式', - 'status_name' => '状态', + 'cf_title' => '客户来源', + 'status_name' => '状态' ]; array_unshift($data, $indexs); $this->load->library('excel'); diff --git a/admin/controllers/receiver/order/Deal.php b/admin/controllers/receiver/order/Deal.php index 9493de57..45bc1beb 100644 --- a/admin/controllers/receiver/order/Deal.php +++ b/admin/controllers/receiver/order/Deal.php @@ -73,6 +73,7 @@ class Deal extends HD_Controller $temp['price'] = $value['price']; $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; + $temp['cf_title'] = $value['cf_title']; $temp['status_name'] = $value['status_name']; $temp['c_time'] = $value['c_time']; $data[] = $temp; @@ -85,8 +86,9 @@ class Deal extends HD_Controller 'price' => '车辆平台价', 'deposit' => '定金', 'payway_name' => '付款方式', + 'cf_title' => '客户来源', 'status_name' => '状态', - 'c_time' => '订单时间', + 'c_time' => '订单时间' ]; array_unshift($data, $indexs); $this->load->library('excel'); diff --git a/admin/controllers/receiver/order/Delivery.php b/admin/controllers/receiver/order/Delivery.php index 781aa61b..4852ed92 100644 --- a/admin/controllers/receiver/order/Delivery.php +++ b/admin/controllers/receiver/order/Delivery.php @@ -72,6 +72,7 @@ class Delivery extends HD_Controller $temp['price'] = $value['price']; $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; + $temp['cf_title'] = $value['cf_title']; $temp['status_name'] = $value['status_name']; $data[] = $temp; } @@ -83,6 +84,7 @@ class Delivery extends HD_Controller 'price' => '车辆平台价', 'deposit' => '定金', 'payway_name' => '付款方式', + 'cf_title' => '客户来源', 'status_name' => '状态', ]; array_unshift($data, $indexs); diff --git a/admin/controllers/receiver/order/Loan.php b/admin/controllers/receiver/order/Loan.php index 07efc072..24024d5a 100644 --- a/admin/controllers/receiver/order/Loan.php +++ b/admin/controllers/receiver/order/Loan.php @@ -71,6 +71,7 @@ class Loan extends HD_Controller $temp['year'] = $value['year']; $temp['first_price'] = $value['first_price']; $temp['c_time'] = $value['c_time']; + $temp['cf_title'] = $value['cf_title']; $temp['status_name'] = $value['status_name']; $data[] = $temp; } @@ -81,6 +82,7 @@ class Loan extends HD_Controller 'year' => '年限', 'first_price' => '首付金额', 'c_time' => '分期时间', + 'cf_title' => '客户来源', 'status_name' => '状态' ]; array_unshift($data, $indexs); diff --git a/admin/controllers/receiver/order/Sign.php b/admin/controllers/receiver/order/Sign.php index 4df0f5a8..00180451 100644 --- a/admin/controllers/receiver/order/Sign.php +++ b/admin/controllers/receiver/order/Sign.php @@ -72,8 +72,9 @@ class Sign extends HD_Controller $temp['price'] = $value['price']; $temp['deposit'] = $value['deposit']; $temp['payway_name'] = $value['payway_name']; - $temp['status_name'] = $value['status_name']; $temp['admin_name'] = $value['admin_name']; + $temp['cf_title'] = $value['cf_title']; + $temp['status_name'] = $value['status_name']; $temp['c_time'] = $value['c_time']; $data[] = $temp; } @@ -85,8 +86,9 @@ class Sign extends HD_Controller 'price' => '合同价', 'deposit' => '定金', 'payway_name' => '付款', - 'status_name' => '合同状态', 'admin_name' => '销售员', + 'cf_title' => '客户来源', + 'status_name' => '合同状态', 'c_time' => '订单时间' ]; array_unshift($data, $indexs); diff --git a/admin/libraries/OrdersList.php b/admin/libraries/OrdersList.php index 98e9f1cf..452f2a1f 100644 --- a/admin/libraries/OrdersList.php +++ b/admin/libraries/OrdersList.php @@ -7,14 +7,16 @@ class OrdersList { private $ci; - private $searchTpAry = array('mobile' => '客户手机号', 'name' => '客户姓名', 'sid' => '订单号'); + private $searchTpAry = array('name' => '客户姓名', 'mobile' => '客户手机号', 'sid' => '订单号'); private $paywayAry = array(0 => '贷款', 1 => '全款'); + private $cfTitleAry = array('平台分配', '自有资源'); public function __construct() { $this->ci = &get_instance(); $this->ci->load->model('receiver/order/receiver_orders_model', 'mdOrders'); $this->ci->load->model('app/licheb/app_licheb_users_model', 'mdLichebUsers'); + $this->ci->load->model('receiver/receiver_customers_model', 'mdCustomers'); $this->ci->load->model("biz/biz_model"); $this->ci->load->model('auto/auto_series_model'); $this->ci->load->model('auto/auto_brand_model'); @@ -34,6 +36,7 @@ class OrdersList $result = $this->orders($params); $result['qdjl_lists'] = $qdjl_lists; $result['paywayAry'] = $this->paywayAry; + $result['cfTitleAry'] = $this->cfTitleAry; return $result; } if ($status_pid == 0) { @@ -57,6 +60,7 @@ class OrdersList } $result['qdjl_lists'] = $qdjl_lists; $result['paywayAry'] = $this->paywayAry; + $result['cfTitleAry'] = $this->cfTitleAry; return $result; } @@ -81,6 +85,9 @@ class OrdersList $_title = '全部订单'; $view = 'receiver/orders/lists'; } + if ($params['cf_title']) { + $where['rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["payway"] = $params['payway']; } @@ -171,8 +178,12 @@ class OrdersList $count = $this->ci->mdOrders->count($where); $lists = []; if ($count) { - $fileds = "id,name,mobile,brand_id,s_id,v_id,cor_id,incor_id,price,deposit,payway,status,c_time,biz_id"; - $rows = $this->ci->mdOrders->select($where, "id desc", $page, $size, $fileds); + $fileds = "id,rid,name,mobile,brand_id,s_id,v_id,cor_id,incor_id,price,deposit,payway,status,c_time,biz_id"; + $rows = $this->ci->mdOrders->select($where, "c_time desc", $page, $size, $fileds); + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); //门店 $str_biz_ids = implode(',', array_unique(array_column($rows, 'biz_id'))); !$str_biz_ids && $str_biz_ids = 0; @@ -202,6 +213,7 @@ class OrdersList $val['status_name'] = $status_arr[$val['status']]['name']; $val['biz_name'] = $bizs[$val['biz_id']]; $val['c_time'] = date('Y-m-d H:i:s', $val['c_time']); + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } @@ -228,6 +240,9 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['cf_title']) { + $where[$t2.'.rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["{$t2}.payway"] = $params['payway']; } @@ -331,8 +346,8 @@ class OrdersList $lists = []; if ($count) { $fileds = "$t1.id,$t1.o_id,$t1.status,"; - $fileds .= "$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time, {$t2}.admin_id"; - $rows = $this->ci->order_signs_model->select_order($where, "$t1.id desc", $page, $size, $fileds); + $fileds .= "$t2.rid,$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time, {$t2}.admin_id"; + $rows = $this->ci->order_signs_model->select_order($where, "$t2.c_time desc", $page, $size, $fileds); $brand_arr = $series_arr = $v_arr = $cor_arr = $incor_arr = array(); $admin_ids = array(); if ($rows) { @@ -345,6 +360,10 @@ class OrdersList $v['admin_id'] && !in_array($v['admin_id'], $admin_ids) && $admin_ids[] = $v['admin_id']; } } + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); //品牌车型 $brands = $this->ci->auto_brand_model->get_map_by_ids($brand_arr, 'id,name'); //车系车型 @@ -388,6 +407,7 @@ class OrdersList $val['price'] = $val['price'] > 1 ? number_format($val['price']) : number_format($val['price'], 2); $val['deposit'] = $val['deposit'] > 1 ? number_format($val['deposit']) : number_format($val['deposit'], 2); $val['biz_name'] = $map_biz[$admin['biz_id']]; + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } @@ -414,6 +434,9 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['cf_title']) { + $where[$t2.'.rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["{$t2}.payway"] = $params['payway']; } @@ -517,17 +540,22 @@ class OrdersList if ($count) { $this->ci->load->model('sys/sys_finance_model'); $fileds = "$t1.o_id,$t1.title,$t1.year,$t1.first_price,$t1.status,$t1.c_time,"; - $fileds .= "$t2.id,$t2.name,$t2.mobile,$t2.sid,$t2.finance_id,$t2.money_json"; - $rows = $this->ci->order_loans_model->select_order($where, "$t1.id desc", $page, $size, $fileds); - $finance_arr = array_column($rows,'finance_id'); - $finance_rows = $this->ci->sys_finance_model->get_map_by_ids($finance_arr,'id,title'); + $fileds .= "$t2.rid,$t2.id,$t2.name,$t2.mobile,$t2.sid,$t2.finance_id,$t2.money_json"; + $rows = $this->ci->order_loans_model->select_order($where, "$t2.c_time desc", $page, $size, $fileds); + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); + $finance_arr = array_column($rows, 'finance_id'); + $finance_rows = $this->ci->sys_finance_model->get_map_by_ids($finance_arr, 'id,title'); foreach ($rows as $key => $val) { - $money_json = json_decode($val['money_json'],true); + $money_json = json_decode($val['money_json'], true); $price_loan = $money_json['price_loan'] ? $money_json['price_loan'] : 0; $val['title'] = $finance_rows[$val['finance_id']] ? $finance_rows[$val['finance_id']][0]['title'] : ''; $val['price_loan'] = number_format($price_loan, 2); $val['c_time'] = date('Y-m-d H:i:s', $val['c_time']); $val['status_name'] = $status_arr[$val['status']]; + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } @@ -554,6 +582,9 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['cf_title']) { + $where[$t2.'.rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["{$t2}.payway"] = $params['payway']; } @@ -656,8 +687,13 @@ class OrdersList $lists = []; if ($count) { $fileds = "$t1.o_id,$t1.status,$t1.c_time,"; - $fileds .= "$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; - $rows = $this->ci->order_ckcars_model->select_order($where, "$t1.id desc", $page, $size, $fileds); + $fileds .= "$t2.rid,$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; + $rows = $this->ci->order_ckcars_model->select_order($where, "$t2.c_time desc", $page, $size, $fileds); + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); + //门店 $str_biz_ids = implode(',', array_unique(array_column($rows, 'biz_id'))); !$str_biz_ids && $str_biz_ids = 0; $bizs = $this->ci->biz_model->map('id', 'biz_name', array("id in({$str_biz_ids})" => null)); @@ -685,6 +721,7 @@ class OrdersList $val['incor_name'] = isset($attr[$val['incor_id']]) ? $attr[$val['incor_id']][0]['title'] : ''; $val['status_name'] = $status_arr[$val['status']]; $val['biz_name'] = $bizs[$val['biz_id']]; + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } @@ -711,6 +748,9 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['cf_title']) { + $where[$t2.'.rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["{$t2}.payway"] = $params['payway']; } @@ -813,8 +853,12 @@ class OrdersList $lists = []; if ($count) { $fileds = "$t1.o_id,$t1.status,$t1.c_time,"; - $fileds .= "$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; - $rows = $this->ci->order_bills_model->select_order($where, "$t1.id desc", $page, $size, $fileds); + $fileds .= "$t2.rid,$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; + $rows = $this->ci->order_bills_model->select_order($where, "$t2.c_time desc", $page, $size, $fileds); + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); //门店 $str_biz_ids = implode(',', array_unique(array_column($rows, 'biz_id'))); !$str_biz_ids && $str_biz_ids = 0; @@ -843,6 +887,7 @@ class OrdersList $val['incor_name'] = isset($attr[$val['incor_id']]) ? $attr[$val['incor_id']][0]['title'] : ''; $val['status_name'] = $status_arr[$val['status']]; $val['biz_name'] = $bizs[$val['biz_id']]; + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } @@ -869,6 +914,9 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['cf_title']) { + $where[$t2.'.rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["{$t2}.payway"] = $params['payway']; } @@ -971,8 +1019,12 @@ class OrdersList $lists = []; if ($count) { $fileds = "$t1.o_id,$t1.status,$t1.c_time,"; - $fileds .= "$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; - $rows = $this->ci->order_agents_model->select_order($where, "$t1.id desc", $page, $size, $fileds); + $fileds .= "$t2.rid,$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; + $rows = $this->ci->order_agents_model->select_order($where, "$t2.c_time desc", $page, $size, $fileds); + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); //门店 $str_biz_ids = implode(',', array_unique(array_column($rows, 'biz_id'))); !$str_biz_ids && $str_biz_ids = 0; @@ -1001,6 +1053,7 @@ class OrdersList $val['incor_name'] = isset($attr[$val['incor_id']]) ? $attr[$val['incor_id']][0]['title'] : ''; $val['status_name'] = $status_arr[$val['status']]; $val['biz_name'] = $bizs[$val['biz_id']]; + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } @@ -1027,6 +1080,9 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['cf_title']) { + $where[$t2.'.rid in (select id from lc_receiver_customers where cf_title = "' . $params['cf_title'] . '")'] = null; + } if (strlen($params['payway'])) { $where["{$t2}.payway"] = $params['payway']; } @@ -1129,8 +1185,12 @@ class OrdersList $lists = []; if ($count) { $fileds = "$t1.o_id,$t1.status,$t1.c_time,"; - $fileds .= "$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; - $rows = $this->ci->order_deliverys_model->select_order($where, "$t1.id desc", $page, $size, $fileds); + $fileds .= "$t2.rid,$t2.sid,$t2.name,$t2.mobile,$t2.brand_id,$t2.biz_id,$t2.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.c_time"; + $rows = $this->ci->order_deliverys_model->select_order($where, "$t2.c_time desc", $page, $size, $fileds); + //客户来源 + $str_rids = implode(',', array_unique(array_column($rows, 'rid'))); + !$str_rids && $str_rids = 0; + $customers = $this->ci->mdCustomers->map('id', 'cf_title', array("id in({$str_rids})" => null)); //门店 $str_biz_ids = implode(',', array_unique(array_column($rows, 'biz_id'))); !$str_biz_ids && $str_biz_ids = 0; @@ -1159,6 +1219,7 @@ class OrdersList $val['incor_name'] = isset($attr[$val['incor_id']]) ? $attr[$val['incor_id']][0]['title'] : ''; $val['status_name'] = $status_arr[$val['status']]; $val['biz_name'] = $bizs[$val['biz_id']]; + $val['cf_title'] = $customers[$val['rid']]; $lists[] = $val; } } diff --git a/admin/views/receiver/order/agent/lists.php b/admin/views/receiver/order/agent/lists.php index 712826be..21a09c5a 100644 --- a/admin/views/receiver/order/agent/lists.php +++ b/admin/views/receiver/order/agent/lists.php @@ -133,6 +133,18 @@ +
+ +
+ +
+
@@ -197,33 +209,30 @@ - - + + - - - + + - @@ -341,10 +350,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/order/bill/lists.php b/admin/views/receiver/order/bill/lists.php index 22c1fa60..3d8292d4 100644 --- a/admin/views/receiver/order/bill/lists.php +++ b/admin/views/receiver/order/bill/lists.php @@ -133,6 +133,18 @@ +
+ +
+ +
+
@@ -197,33 +209,30 @@
客户姓名客户电话客户 车辆 门店 车辆平台价 定金 付款方式客户来源 状态操作
+ ' . $v['mobile'] ?> + - 详情 -
- - + + - - - + + - @@ -341,10 +350,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/order/ckcar/lists.php b/admin/views/receiver/order/ckcar/lists.php index 2f4d0ce1..a3f40fa9 100644 --- a/admin/views/receiver/order/ckcar/lists.php +++ b/admin/views/receiver/order/ckcar/lists.php @@ -146,6 +146,18 @@ +
+ +
+ +
+
@@ -210,33 +222,30 @@
客户姓名客户电话客户 车辆 门店 车辆平台价 定金 付款方式客户来源 状态操作
+ ' . $v['mobile'] ?> + - 详情 -
- - + + - - - + + - @@ -354,10 +363,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/order/deal/lists.php b/admin/views/receiver/order/deal/lists.php index 9b9a1ca5..a2022324 100644 --- a/admin/views/receiver/order/deal/lists.php +++ b/admin/views/receiver/order/deal/lists.php @@ -132,6 +132,18 @@ +
+ +
+ +
+
@@ -196,35 +208,32 @@
客户姓名客户电话客户 车辆 门店 车辆平台价 定金 付款方式客户来源 状态操作
+ ' . $v['mobile'] ?> + - 详情 -
- - - + + + - - - + + - @@ -342,10 +351,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/order/delivery/lists.php b/admin/views/receiver/order/delivery/lists.php index 05913280..78bcd6de 100644 --- a/admin/views/receiver/order/delivery/lists.php +++ b/admin/views/receiver/order/delivery/lists.php @@ -146,6 +146,18 @@ +
+ +
+ +
+
@@ -210,33 +222,30 @@
客户姓名客户电话车辆客户车辆 门店 车辆平台价 定金 付款方式客户来源 状态 订单时间操作
+ ' . $v['mobile'] ?> + - 详情 -
- - + + - - - + + - @@ -354,10 +363,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/order/loan/lists.php b/admin/views/receiver/order/loan/lists.php index 8de59831..0cdf8ff5 100644 --- a/admin/views/receiver/order/loan/lists.php +++ b/admin/views/receiver/order/loan/lists.php @@ -146,6 +146,18 @@ +
+ +
+ +
+
@@ -210,29 +222,26 @@
客户姓名客户电话客户 车辆 门店 车辆平台价 定金 付款方式客户来源 状态操作
+ ' . $v['mobile'] ?> + - 详情 -
- - + + - - - + + - @@ -350,10 +359,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/order/sign/lists.php b/admin/views/receiver/order/sign/lists.php index c3c248c4..43d6dd22 100644 --- a/admin/views/receiver/order/sign/lists.php +++ b/admin/views/receiver/order/sign/lists.php @@ -146,6 +146,18 @@ +
+ +
+ +
+
@@ -210,37 +222,34 @@
客户姓名客户电话客户 分期产品 贷款金额 分期时间客户来源 状态操作
+ ' . $v['mobile'] ?> + - 详情 -
- - + - + - + + - - - + - + + - @@ -357,10 +366,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = ''; diff --git a/admin/views/receiver/orders/lists.php b/admin/views/receiver/orders/lists.php index e4e07917..d2791397 100644 --- a/admin/views/receiver/orders/lists.php +++ b/admin/views/receiver/orders/lists.php @@ -125,6 +125,18 @@ +
+ +
+ +
+
@@ -189,35 +201,32 @@
客户姓名客户电话客户 车辆门店门店 合同价 定金 付款合同状态 销售员客户来源合同状态 订单时间操作
+ ' . $v['mobile'] ?> + - 详情 -
- - - + + + - - - + + - @@ -331,10 +340,11 @@ }, reset: function () { var that = this; - $("#search_tp").val('mobile'); + $("#search_tp").val('name'); $("#title").val(''); $("#id-create-time").val(''); $("#payway").val(''); + $("#cf_title").val(''); that.params.brand_id = ''; that.params.city_id_admin = ''; that.params.qdjl_id = '';
客户姓名客户电话车辆客户车辆 门店 车辆平台价 定金 付款方式客户来源 状态 订单时间操作
+ ' . $v['mobile'] ?> + - 详情 -