admin_orders_930

This commit is contained in:
dengbw
2021-09-30 10:53:39 +08:00
parent 08ea631ee1
commit 6fffcdfa35
17 changed files with 266 additions and 109 deletions
+2
View File
@@ -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);
+3 -1
View File
@@ -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');
+3 -1
View File
@@ -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');
+3 -1
View File
@@ -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');
+3 -1
View File
@@ -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');
@@ -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);
@@ -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);
+4 -2
View File
@@ -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);
+79 -18
View File
@@ -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;
}
}
+20 -10
View File
@@ -133,6 +133,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -197,33 +209,30 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="10%"><span>客户姓名</span></th>
<th width="10%"><span>客户电话</span></th>
<th width="14%"><span>客户</span></th>
<th width="27%"><span>车辆</span></th>
<th width="12%"><span>门店</span></th>
<th width="9%"><span>车辆平台价</span></th>
<th width="8%"><span>定金</span></th>
<th width="8%"><span>付款方式</span></th>
<th width="9%"><span>客户来源</span></th>
<th width="9%"><span>状态</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+20 -10
View File
@@ -133,6 +133,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -197,33 +209,30 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="10%"><span>客户姓名</span></th>
<th width="10%"><span>客户电话</span></th>
<th width="14%"><span>客户</span></th>
<th width="27%"><span>车辆</span></th>
<th width="12%"><span>门店</span></th>
<th width="9%"><span>车辆平台价</span></th>
<th width="8%"><span>定金</span></th>
<th width="8%"><span>付款方式</span></th>
<th width="9%"><span>客户来源</span></th>
<th width="9%"><span>状态</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+20 -10
View File
@@ -146,6 +146,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -210,33 +222,30 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="10%"><span>客户姓名</span></th>
<th width="10%"><span>客户电话</span></th>
<th width="14%"><span>客户</span></th>
<th width="27%"><span>车辆</span></th>
<th width="12%"><span>门店</span></th>
<th width="9%"><span>车辆平台价</span></th>
<th width="8%"><span>定金</span></th>
<th width="8%"><span>付款方式</span></th>
<th width="9%"><span>客户来源</span></th>
<th width="9%"><span>状态</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name']?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+21 -11
View File
@@ -132,6 +132,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -196,35 +208,32 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="10%"><span>客户姓名</span></th>
<th width="10%"><span>客户电话</span></th>
<th width="22%"><span>车辆</span></th>
<th width="14%"><span>客户</span></th>
<th width="24%"><span>车辆</span></th>
<th width="11%"><span>门店</span></th>
<th width="8%"><span>车辆平台价</span></th>
<th width="7%"><span>定金</span></th>
<th width="6%"><span>付款方式</span></th>
<th width="8%"><span>客户来源</span></th>
<th width="8%"><span>状态</span></th>
<th width="12%"><span>订单时间</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td><?= $v['c_time'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+20 -10
View File
@@ -146,6 +146,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -210,33 +222,30 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="10%"><span>客户姓名</span></th>
<th width="10%"><span>客户电话</span></th>
<th width="14%"><span>客户</span></th>
<th width="27%"><span>车辆</span></th>
<th width="12%"><span>门店</span></th>
<th width="9%"><span>车辆平台价</span></th>
<th width="8%"><span>定金</span></th>
<th width="8%"><span>付款方式</span></th>
<th width="9%"><span>客户来源</span></th>
<th width="9%"><span>状态</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+20 -10
View File
@@ -146,6 +146,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -210,29 +222,26 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="15%"><span>客户姓名</span></th>
<th width="12%"><span>客户电话</span></th>
<th width="15%"><span>客户</span></th>
<th width="15%"><span>分期产品</span></th>
<th width="10%"><span>贷款金额</span></th>
<th width="15%"><span>分期时间</span></th>
<th width="10%"><span>客户来源</span></th>
<th width="10%"><span>状态</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['title'] ?></td>
<td><?= $v['price_loan'] ?></td>
<td><?= $v['c_time'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+23 -13
View File
@@ -146,6 +146,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -210,37 +222,34 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="9%"><span>客户姓名</span></th>
<th width="9%"><span>客户电话</span></th>
<th width="14%"><span>客户</span></th>
<th width="22%"><span>车辆</span></th>
<th width="9%"><span>门店</span></th>
<th width="10%"><span>门店</span></th>
<th width="7%"><span>合同价</span></th>
<th width="7%"><span>定金</span></th>
<th width="5%"><span>付款</span></th>
<th width="8%"><span>合同状态</span></th>
<th width="7%"><span>销售员</span></th>
<th width="8%"><span>客户来源</span></th>
<th width="7%"><span>合同状态</span></th>
<th width="12%"><span>订单时间</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name'] ?></td>
<td><?= $v['status_name'] ?></td>
<td><?= $v['admin_name'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['status_name'] ?></td>
<td><?= $v['c_time'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['o_id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';
+21 -11
View File
@@ -125,6 +125,18 @@
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">客户来源:</label>
<div class="am-para-inline w100">
<select name="cf_title" id="cf_title">
<option value="">全部</option>
<?php foreach ($cfTitleAry as $key => $value) { ?>
<option value="<?= $value ?>"
<?= strlen($params['cf_title']) && $value == $params['cf_title'] ? 'selected' : '' ?>><?= $value ?></option>
<? } ?>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -189,35 +201,32 @@
<table class="am-table am-table-bordered">
<thead>
<tr>
<th width="10%"><span>客户姓名</span></th>
<th width="10%"><span>客户电话</span></th>
<th width="22%"><span>车辆</span></th>
<th width="14%"><span>客户</span></th>
<th width="24%"><span>车辆</span></th>
<th width="11%"><span>门店</span></th>
<th width="8%"><span>车辆平台价</span></th>
<th width="7%"><span>定金</span></th>
<th width="6%"><span>付款方式</span></th>
<th width="8%"><span>客户来源</span></th>
<th width="8%"><span>状态</span></th>
<th width="12%"><span>订单时间</span></th>
<th width=""><span>操作</span></th>
</tr>
</thead>
<tbody>
<?php if ($lists) {
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['name'] ?></td>
<td><?= $v['mobile'] ?></td>
<td><a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['id'] ?>">
<?= $v['name'] . '<br>' . $v['mobile'] ?></a>
</td>
<td><?= $v['car_name'] ?></td>
<td><?= $v['biz_name'] ?></td>
<td><?= $v['price'] ?></td>
<td><?= $v['deposit'] ?></td>
<td><?= $v['payway_name'] ?></td>
<td><?= $v['status_name'] ?></td>
<td><?= $v['cf_title'] ?></td>
<td><?= $v['c_time'] ?></td>
<td>
<a href="javascript:;" data-open="/receiver/orders/get?id=<?= $v['id'] ?>"
class="am-btn am-btn-primary am-btn-xs">详情</a>
</td>
</tr>
<?php }
} ?>
@@ -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 = '';