admin_orders_929
This commit is contained in:
@@ -77,13 +77,8 @@ class Orders extends HD_Controller
|
||||
$this->load->library('OrdersList');
|
||||
$params['list_type'] = 'all';
|
||||
$result = $this->orderslist->lists($params['status_pid'], $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['qdjl_lists'] = $result['qdjl_lists'];
|
||||
$this->data = $result;
|
||||
$this->data['status_arr'] = $status_arr;
|
||||
$this->data['_title'] = '全部订单列表';
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
@@ -341,7 +336,7 @@ class Orders extends HD_Controller
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($params['status_pid'], $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:代办服务
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Agent extends HD_Controller{
|
||||
|
||||
private $status_pid = 4;
|
||||
@@ -17,13 +22,8 @@ class Agent extends HD_Controller{
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['status_arr'] = $result['status_arr'];
|
||||
$this->data['_title'] = $result['title'].'列表';
|
||||
return $this->show_view('receiver/order/agent/lists', true);
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
public function get(){
|
||||
@@ -55,7 +55,7 @@ class Agent extends HD_Controller{
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:开票相关
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Bill extends HD_Controller
|
||||
{
|
||||
private $status_pid = 3;
|
||||
@@ -19,12 +24,7 @@ class Bill extends HD_Controller
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['status_arr'] = $result['status_arr'];
|
||||
$this->data['_title'] = $result['title'].'列表';
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class Bill extends HD_Controller
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:车辆分配
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Ckcar extends HD_Controller
|
||||
{
|
||||
private $status_pid = 2;
|
||||
@@ -20,12 +25,7 @@ class Ckcar extends HD_Controller
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['status_arr'] = $result['status_arr'];
|
||||
$this->data['_title'] = $result['title'] . '列表';
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ class Ckcar extends HD_Controller
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:交付车辆
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Delivery extends HD_Controller
|
||||
{
|
||||
private $status_pid = 5;
|
||||
@@ -20,12 +25,7 @@ class Delivery extends HD_Controller
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['status_arr'] = $result['status_arr'];
|
||||
$this->data['_title'] = $result['title'].'列表';
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ class Delivery extends HD_Controller
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:分期办理
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Loan extends HD_Controller
|
||||
{
|
||||
private $status_pid = 1;
|
||||
@@ -20,12 +25,7 @@ class Loan extends HD_Controller
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['status_arr'] = $result['status_arr'];
|
||||
$this->data['_title'] = $result['title'] . '列表';
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ class Loan extends HD_Controller
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:合同签订
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Sign extends HD_Controller
|
||||
{
|
||||
private $status_pid = 0;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
@@ -19,13 +25,7 @@ class Sign extends HD_Controller
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data['pager'] = $result['pager'];
|
||||
$this->data['lists'] = $result['lists'];
|
||||
$this->data['params'] = $result['params'];
|
||||
$this->data['searchTpAry'] = $result['searchTpAry'];
|
||||
$this->data['status_arr'] = $result['status_arr'];
|
||||
$this->data['qdjl_lists'] = $result['qdjl_lists'];
|
||||
$this->data['_title'] = $result['title'] . '列表';
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ class Sign extends HD_Controller
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['title'];
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
|
||||
@@ -8,6 +8,7 @@ class OrdersList
|
||||
|
||||
private $ci;
|
||||
private $searchTpAry = array('mobile' => '客户手机号', 'name' => '客户姓名', 'sid' => '订单号');
|
||||
private $paywayAry = array(0 => '贷款', 1 => '全款');
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
@@ -23,12 +24,13 @@ class OrdersList
|
||||
public function lists($status_pid, $params = array())
|
||||
{
|
||||
$result = array();
|
||||
//渠道经理
|
||||
!$params['qdjl_id'] && $params['qdjl_id'] = '';
|
||||
//渠道经理
|
||||
$qdjl_lists = $this->ci->mdLichebUsers->select(array('group_id' => 4, 'status' => 1, 'biz_id<>' => '0'), 'id desc', 0, 0, 'id,uname as name');
|
||||
if (!strlen($status_pid)) {
|
||||
$result = $this->orders($params);
|
||||
$result['qdjl_lists'] = $qdjl_lists;
|
||||
$result['paywayAry'] = $this->paywayAry;
|
||||
return $result;
|
||||
}
|
||||
if ($status_pid == 0) {
|
||||
@@ -51,6 +53,7 @@ class OrdersList
|
||||
$result = $this->delivery($status_pid, $params);
|
||||
}
|
||||
$result['qdjl_lists'] = $qdjl_lists;
|
||||
$result['paywayAry'] = $this->paywayAry;
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -67,6 +70,9 @@ class OrdersList
|
||||
$size = $params['size'] = $params['size'] ? intval($params['size']) : 20;
|
||||
$status_arr = $this->ci->mdOrders->statusAry();
|
||||
$where = ["status>=" => 0];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -154,8 +160,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";
|
||||
$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);
|
||||
//门店
|
||||
$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));
|
||||
//品牌车型
|
||||
$brand_arr = array_unique(array_column($rows, 'brand_id'));
|
||||
$brands = $this->ci->auto_brand_model->get_map_by_ids($brand_arr, 'id,name');
|
||||
@@ -176,15 +186,18 @@ class OrdersList
|
||||
$val['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}";
|
||||
$val['price'] = number_format($val['price'], 2);
|
||||
$val['deposit'] = number_format($val['deposit'], 2);
|
||||
$val['payway_name'] = $val['payway'] ? '全款' : '贷款';
|
||||
$val['payway_name'] = $this->paywayAry[$val['payway']];
|
||||
$val['incor_name'] = isset($attr[$val['incor_id']]) ? $attr[$val['incor_id']][0]['title'] : '';
|
||||
$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']);
|
||||
$lists[] = $val;
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? '全部订单' : '全部订单列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/orders/lists', 'title' => '全部订单');
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/orders/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -204,6 +217,9 @@ class OrdersList
|
||||
$where = [
|
||||
"$t2.status>=" => 0,
|
||||
];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["{$t2}.payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -348,25 +364,26 @@ class OrdersList
|
||||
}
|
||||
foreach ($rows as $key => $val) {
|
||||
$admin = $map_admin[$val['admin_id']];
|
||||
$admin_name = $admin ? "{$map_biz[$admin['biz_id']]} {$admin['uname']}" : '';
|
||||
$brand_name = isset($brands[$val['brand_id']]) ? $brands[$val['brand_id']][0]['name'] : '';
|
||||
$series_name = isset($series[$val['s_id']]) ? $series[$val['s_id']][0]['name'] : '';
|
||||
$v_name = isset($attr[$val['v_id']]) ? $attr[$val['v_id']][0]['title'] : '';
|
||||
$cor_name = isset($attr[$val['cor_id']]) ? $attr[$val['cor_id']][0]['title'] : '';
|
||||
$val['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}";
|
||||
$val['payway_name'] = $val['payway'] ? '全款' : '贷款';
|
||||
$val['payway_name'] = $this->paywayAry[$val['payway']];
|
||||
$val['c_time'] = date('Y-m-d H:i:s', $val['c_time']);
|
||||
$val['incor_name'] = isset($attr[$val['incor_id']]) ? $attr[$val['incor_id']][0]['title'] : '';
|
||||
$val['status_name'] = $status_arr[$val['status']];
|
||||
$val['admin_name'] = $admin_name;
|
||||
$val['admin_name'] = $admin ? $admin['uname'] : '';
|
||||
$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']];
|
||||
$lists[] = $val;
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? $statusAry['name'] : $statusAry['name'] . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/sign/lists', 'title' => $statusAry['name']);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/sign/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -386,6 +403,9 @@ class OrdersList
|
||||
$where = [
|
||||
"$t2.status>=" => 0,
|
||||
];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["{$t2}.payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -495,8 +515,9 @@ class OrdersList
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? $statusAry['name'] : $statusAry['name'] . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/loan/lists', 'title' => $statusAry['name']);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/loan/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -516,6 +537,9 @@ class OrdersList
|
||||
$where = [
|
||||
"$t2.status>=" => 0,
|
||||
];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["{$t2}.payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -615,8 +639,11 @@ 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.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.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);
|
||||
$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));
|
||||
//品牌车型
|
||||
$brand_arr = array_unique(array_column($rows, 'brand_id'));
|
||||
$brands = $this->ci->auto_brand_model->get_map_by_ids($brand_arr, 'id,name');
|
||||
@@ -637,15 +664,17 @@ class OrdersList
|
||||
$val['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}";
|
||||
$val['price'] = number_format($val['price'], 2);
|
||||
$val['deposit'] = number_format($val['deposit'], 2);
|
||||
$val['payway_name'] = $val['payway'] ? '全款' : '贷款';
|
||||
$val['payway_name'] = $this->paywayAry[$val['payway']];
|
||||
$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']];
|
||||
$lists[] = $val;
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? $statusAry['name'] : $statusAry['name'] . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/ckcar/lists', 'title' => $statusAry['name']);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/ckcar/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -665,6 +694,9 @@ class OrdersList
|
||||
$where = [
|
||||
"$t2.status>=" => 0,
|
||||
];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["{$t2}.payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -764,8 +796,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.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.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);
|
||||
//门店
|
||||
$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));
|
||||
//品牌车型
|
||||
$brand_arr = array_unique(array_column($rows, 'brand_id'));
|
||||
$brands = $this->ci->auto_brand_model->get_map_by_ids($brand_arr, 'id,name');
|
||||
@@ -786,15 +822,17 @@ class OrdersList
|
||||
$val['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}";
|
||||
$val['price'] = number_format($val['price'], 2);
|
||||
$val['deposit'] = number_format($val['deposit'], 2);
|
||||
$val['payway_name'] = $val['payway'] ? '全款' : '贷款';
|
||||
$val['payway_name'] = $this->paywayAry[$val['payway']];
|
||||
$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']];
|
||||
$lists[] = $val;
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? $statusAry['name'] : $statusAry['name'] . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/bill/lists', 'title' => $statusAry['name']);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/bill/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -814,6 +852,9 @@ class OrdersList
|
||||
$where = [
|
||||
"$t2.status>=" => 0,
|
||||
];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["{$t2}.payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -913,8 +954,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.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.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);
|
||||
//门店
|
||||
$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));
|
||||
//品牌车型
|
||||
$brand_arr = array_unique(array_column($rows, 'brand_id'));
|
||||
$brands = $this->ci->auto_brand_model->get_map_by_ids($brand_arr, 'id,name');
|
||||
@@ -935,15 +980,17 @@ class OrdersList
|
||||
$val['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}";
|
||||
$val['price'] = number_format($val['price'], 2);
|
||||
$val['deposit'] = number_format($val['deposit'], 2);
|
||||
$val['payway_name'] = $val['payway'] ? '全款' : '贷款';
|
||||
$val['payway_name'] = $this->paywayAry[$val['payway']];
|
||||
$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']];
|
||||
$lists[] = $val;
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? $statusAry['name'] : $statusAry['name'] . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/agent/lists', 'title' => $statusAry['name']);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/agent/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -963,6 +1010,9 @@ class OrdersList
|
||||
$where = [
|
||||
"$t2.status>=" => 0,
|
||||
];
|
||||
if (strlen($params['payway'])) {
|
||||
$where["{$t2}.payway"] = $params['payway'];
|
||||
}
|
||||
if ($params['qdjl_id']) {//渠道经理
|
||||
$re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id']));
|
||||
if ($re_bu['biz_id']) {
|
||||
@@ -1062,8 +1112,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.s_id,$t2.v_id,$t2.cor_id,$t2.incor_id,$t2.price,$t2.deposit,$t2.payway,$t2.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);
|
||||
//门店
|
||||
$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));
|
||||
//品牌车型
|
||||
$brand_arr = array_unique(array_column($rows, 'brand_id'));
|
||||
$brands = $this->ci->auto_brand_model->get_map_by_ids($brand_arr, 'id,name');
|
||||
@@ -1084,15 +1138,17 @@ class OrdersList
|
||||
$val['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}";
|
||||
$val['price'] = number_format($val['price'], 2);
|
||||
$val['deposit'] = number_format($val['deposit'], 2);
|
||||
$val['payway_name'] = $val['payway'] ? '全款' : '贷款';
|
||||
$val['payway_name'] = $this->paywayAry[$val['payway']];
|
||||
$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']];
|
||||
$lists[] = $val;
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? $statusAry['name'] : $statusAry['name'] . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/delivery/lists', 'title' => $statusAry['name']);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/order/delivery/lists', '_title' => $_title);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -121,6 +121,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
@@ -188,10 +200,11 @@
|
||||
<th width="10%"><span>客户姓名</span></th>
|
||||
<th width="10%"><span>客户电话</span></th>
|
||||
<th width="27%"><span>车辆</span></th>
|
||||
<th width="10%"><span>车辆平台价</span></th>
|
||||
<th width="10%"><span>定金</span></th>
|
||||
<th width="10%"><span>付款方式</span></th>
|
||||
<th width="10%"><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=""><span>操作</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -202,6 +215,7 @@
|
||||
<td><?= $v['name'] ?></td>
|
||||
<td><?= $v['mobile'] ?></td>
|
||||
<td><?= $v['car_name'] ?></td>
|
||||
<td><?= $v['biz_name'] ?></td>
|
||||
<td><?= $v['price'] ?></td>
|
||||
<td><?= $v['deposit'] ?></td>
|
||||
<td><?= $v['payway_name'] ?></td>
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -121,6 +121,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
@@ -188,10 +200,11 @@
|
||||
<th width="10%"><span>客户姓名</span></th>
|
||||
<th width="10%"><span>客户电话</span></th>
|
||||
<th width="27%"><span>车辆</span></th>
|
||||
<th width="10%"><span>车辆平台价</span></th>
|
||||
<th width="10%"><span>定金</span></th>
|
||||
<th width="10%"><span>付款方式</span></th>
|
||||
<th width="10%"><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=""><span>操作</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -202,6 +215,7 @@
|
||||
<td><?= $v['name'] ?></td>
|
||||
<td><?= $v['mobile'] ?></td>
|
||||
<td><?= $v['car_name'] ?></td>
|
||||
<td><?= $v['biz_name'] ?></td>
|
||||
<td><?= $v['price'] ?></td>
|
||||
<td><?= $v['deposit'] ?></td>
|
||||
<td><?= $v['payway_name'] ?></td>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -134,6 +134,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
@@ -201,10 +213,11 @@
|
||||
<th width="10%"><span>客户姓名</span></th>
|
||||
<th width="10%"><span>客户电话</span></th>
|
||||
<th width="27%"><span>车辆</span></th>
|
||||
<th width="10%"><span>车辆平台价</span></th>
|
||||
<th width="10%"><span>定金</span></th>
|
||||
<th width="10%"><span>付款方式</span></th>
|
||||
<th width="10%"><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=""><span>操作</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -215,6 +228,7 @@
|
||||
<td><?= $v['name'] ?></td>
|
||||
<td><?= $v['mobile'] ?></td>
|
||||
<td><?= $v['car_name'] ?></td>
|
||||
<td><?= $v['biz_name'] ?></td>
|
||||
<td><?= $v['price'] ?></td>
|
||||
<td><?= $v['deposit'] ?></td>
|
||||
<td><?= $v['payway_name']?></td>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -134,6 +134,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
@@ -201,10 +213,11 @@
|
||||
<th width="10%"><span>客户姓名</span></th>
|
||||
<th width="10%"><span>客户电话</span></th>
|
||||
<th width="27%"><span>车辆</span></th>
|
||||
<th width="10%"><span>车辆平台价</span></th>
|
||||
<th width="10%"><span>定金</span></th>
|
||||
<th width="10%"><span>付款方式</span></th>
|
||||
<th width="10%"><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=""><span>操作</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -215,6 +228,7 @@
|
||||
<td><?= $v['name'] ?></td>
|
||||
<td><?= $v['mobile'] ?></td>
|
||||
<td><?= $v['car_name'] ?></td>
|
||||
<td><?= $v['biz_name'] ?></td>
|
||||
<td><?= $v['price'] ?></td>
|
||||
<td><?= $v['deposit'] ?></td>
|
||||
<td><?= $v['payway_name'] ?></td>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -134,6 +134,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -134,6 +134,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
@@ -201,11 +213,12 @@
|
||||
<th width="9%"><span>客户姓名</span></th>
|
||||
<th width="9%"><span>客户电话</span></th>
|
||||
<th width="22%"><span>车辆</span></th>
|
||||
<th width="8%"><span>合同价</span></th>
|
||||
<th width="8%"><span>定金</span></th>
|
||||
<th width="9%"><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="13%"><span>销售员</span></th>
|
||||
<th width="7%"><span>销售员</span></th>
|
||||
<th width="12%"><span>订单时间</span></th>
|
||||
<th width=""><span>操作</span></th>
|
||||
</tr>
|
||||
@@ -217,6 +230,7 @@
|
||||
<td><?= $v['name'] ?></td>
|
||||
<td><?= $v['mobile'] ?></td>
|
||||
<td><?= $v['car_name'] ?></td>
|
||||
<td><?= $v['biz_name'] ?></td>
|
||||
<td><?= $v['price'] ?></td>
|
||||
<td><?= $v['deposit'] ?></td>
|
||||
<td><?= $v['payway_name'] ?></td>
|
||||
@@ -298,9 +312,9 @@
|
||||
}
|
||||
var href = $.menu.parseUri(window.location.href);
|
||||
<? if ($params['list_type'] == 'all') { ?>
|
||||
href = href.replace("orders?", "order/sign/export?") + "<?='&list_type=' . $params['list_type']?>";
|
||||
href = href.replace("orders?", "order/sign/export?") + "<?='&list_type=' . $params['list_type']?>";
|
||||
<?}else{?>
|
||||
href = href.replace("sign?", "sign/export?");
|
||||
href = href.replace("sign?", "sign/export?");
|
||||
<?}?>
|
||||
window.location.href = href;
|
||||
},
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
@@ -113,6 +113,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="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= strlen($params['payway']) && $key == $params['payway'] ? '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>
|
||||
@@ -179,11 +191,13 @@
|
||||
<tr>
|
||||
<th width="10%"><span>客户姓名</span></th>
|
||||
<th width="10%"><span>客户电话</span></th>
|
||||
<th width="30%"><span>车辆</span></th>
|
||||
<th width="10%"><span>车辆平台价</span></th>
|
||||
<th width="10%"><span>定金</span></th>
|
||||
<th width="10%"><span>付款方式</span></th>
|
||||
<th width="10%"><span>状态</span></th>
|
||||
<th width="22%"><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="12%"><span>订单时间</span></th>
|
||||
<th width=""><span>操作</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -194,10 +208,12 @@
|
||||
<td><?= $v['name'] ?></td>
|
||||
<td><?= $v['mobile'] ?></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['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>
|
||||
|
||||
Reference in New Issue
Block a user