admin_orders_929_2
This commit is contained in:
@@ -41,41 +41,45 @@ class Orders extends HD_Controller
|
||||
}
|
||||
$cate = $where = array();
|
||||
$t2 = 'lc_receiver_orders';
|
||||
if ($key == 0) {
|
||||
$t1 = 'lc_receiver_order_signs';
|
||||
$order_model = $this->order_signs_model;
|
||||
} else if ($key == 1) {
|
||||
$t1 = 'lc_receiver_order_loans';
|
||||
$order_model = $this->order_loans_model;
|
||||
} else if ($key == 2) {
|
||||
$t1 = 'lc_receiver_order_ckcars';
|
||||
$order_model = $this->order_ckcars_model;
|
||||
} else if ($key == 3) {
|
||||
$t1 = 'lc_receiver_order_bills';
|
||||
$order_model = $this->order_bills_model;
|
||||
} else if ($key == 4) {
|
||||
$t1 = 'lc_receiver_order_agents';
|
||||
$order_model = $this->order_agents_model;
|
||||
} else if ($key == 5) {
|
||||
$t1 = 'lc_receiver_order_deliverys';
|
||||
$order_model = $this->order_deliverys_model;
|
||||
} else {
|
||||
$t1 = 'lc_receiver_order_signs';
|
||||
$order_model = $this->order_signs_model;
|
||||
}
|
||||
$where_c = ["$t2.id>" => 0];
|
||||
$where_c["{$t2}.brand_id<>3"] = null;//狸车品牌不显示
|
||||
$count1 = $order_model->count_order($where_c, $t2);
|
||||
if ($value['list']) {
|
||||
foreach ($value['list'] as $key2 => $value2) {
|
||||
$where_c["$t1.status"] = $key2;
|
||||
$count2 = $order_model->count_order($where_c, $t2);
|
||||
$cate[] = array("id" => $key2, "name" => $value2, "count" => $count2);
|
||||
if ($key == 6) {
|
||||
$count1 = $this->orders_model->count(array("status" => 6, "brand_id<>3" => null));
|
||||
} else {
|
||||
if ($key == 0) {
|
||||
$t1 = 'lc_receiver_order_signs';
|
||||
$order_model = $this->order_signs_model;
|
||||
} else if ($key == 1) {
|
||||
$t1 = 'lc_receiver_order_loans';
|
||||
$order_model = $this->order_loans_model;
|
||||
} else if ($key == 2) {
|
||||
$t1 = 'lc_receiver_order_ckcars';
|
||||
$order_model = $this->order_ckcars_model;
|
||||
} else if ($key == 3) {
|
||||
$t1 = 'lc_receiver_order_bills';
|
||||
$order_model = $this->order_bills_model;
|
||||
} else if ($key == 4) {
|
||||
$t1 = 'lc_receiver_order_agents';
|
||||
$order_model = $this->order_agents_model;
|
||||
} else if ($key == 5) {
|
||||
$t1 = 'lc_receiver_order_deliverys';
|
||||
$order_model = $this->order_deliverys_model;
|
||||
} else {
|
||||
$t1 = 'lc_receiver_order_signs';
|
||||
$order_model = $this->order_signs_model;
|
||||
}
|
||||
$count1 = $order_model->count_order($where_c, $t2);
|
||||
if ($value['list']) {
|
||||
foreach ($value['list'] as $key2 => $value2) {
|
||||
$where_c["$t1.status"] = $key2;
|
||||
$count2 = $order_model->count_order($where_c, $t2);
|
||||
$cate[] = array("id" => $key2, "name" => $value2, "count" => $count2);
|
||||
}
|
||||
}
|
||||
}
|
||||
$status_arr[] = array("id" => $key, "name" => $value['name'], "cate" => $cate, "count" => $count1);
|
||||
}
|
||||
$params['count_all'] = $this->orders_model->count(array("id>" => 0, "brand_id<>3" => null));//全部
|
||||
$params['count_all'] = $this->orders_model->count(array("brand_id<>3" => null));//全部
|
||||
$this->load->library('OrdersList');
|
||||
$params['list_type'] = 'all';
|
||||
$result = $this->orderslist->lists($params['status_pid'], $params);
|
||||
@@ -141,7 +145,7 @@ class Orders extends HD_Controller
|
||||
$loan['lend_file'] = $loan['lend_file'] ? build_qiniu_image_url($loan['lend_file']) : '';
|
||||
$loan['lend_file_name'] = $loan['lend_file'] ? end(explode('/',$loan['lend_file'])) : '';
|
||||
|
||||
$loan['finance_rows'] = $this->sys_finance_model->select(['status' => 1],'',0,0,'id,title');
|
||||
$loan['finance_rows'] = $this->sys_finance_model->select(['status' => 1], '', 0, 0, 'id,title');
|
||||
$loan['finance_rows_nums'] = $this->sys_finance_model->get_nums();
|
||||
$loan['price_loan'] = $money_json['price_loan'] ? $money_json['price_loan'] : '';
|
||||
$loan['first_pay'] = 0;
|
||||
@@ -154,7 +158,7 @@ class Orders extends HD_Controller
|
||||
}
|
||||
}
|
||||
!$loan['num'] && $loan['num'] = 12;
|
||||
$loan['loan_time'] = $loan['loan_time']!='0000-00-00 00:00:00' ? date('Y-m-d',strtotime($loan['loan_time'])) : '';
|
||||
$loan['loan_time'] = $loan['loan_time'] != '0000-00-00 00:00:00' ? date('Y-m-d', strtotime($loan['loan_time'])) : '';
|
||||
|
||||
$row['loan_info'] = $loan;
|
||||
}
|
||||
@@ -353,20 +357,24 @@ class Orders extends HD_Controller
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
$temp['payway_name'] = $value['payway_name'];
|
||||
$temp['status_name'] = $value['status_name'];
|
||||
$temp['c_time'] = $value['c_time'];
|
||||
$data[] = $temp;
|
||||
}
|
||||
$indexs = [
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '车辆平台价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款方式',
|
||||
'status_name' => '状态',
|
||||
'c_time' => '订单时间',
|
||||
];
|
||||
array_unshift($data, $indexs);
|
||||
$this->load->library('excel');
|
||||
@@ -414,33 +422,33 @@ class Orders extends HD_Controller
|
||||
$this->data['file_url'] = build_qiniu_image_url($res['file']);
|
||||
}
|
||||
strlen($params['status']) && $update['status'] = $params['status'];
|
||||
if($params['status']==1){ //审核通过
|
||||
if ($params['status'] == 1) { //审核通过
|
||||
$finance_id = $info['finance_id'];
|
||||
$this->orders_model->update(['finance_id'=>$finance_id],['id'=>$row['o_id']]);
|
||||
}elseif($params['status']==2){ //审核通过
|
||||
if(!$row['notify_file']){
|
||||
$this->orders_model->update(['finance_id' => $finance_id], ['id' => $row['o_id']]);
|
||||
} elseif ($params['status'] == 2) { //审核通过
|
||||
if (!$row['notify_file']) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '请先上传按揭通知函!');
|
||||
}
|
||||
$finance_id = $info['finance_id'];
|
||||
$price_loan = $info['loan_info']['price_loan'];
|
||||
|
||||
$update['num'] = $info['loan_info']['num'];
|
||||
if(!$finance_id || !$price_loan || !$update['num']){
|
||||
if (!$finance_id || !$price_loan || !$update['num']) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '请填写完整信息!');
|
||||
}
|
||||
$order_row = $this->orders_model->get(['id'=>$row['o_id']],'money_json');
|
||||
$money_json = json_decode($order_row['money_json'],true);
|
||||
$order_row = $this->orders_model->get(['id' => $row['o_id']], 'money_json');
|
||||
$money_json = json_decode($order_row['money_json'], true);
|
||||
$money_json['price_loan'] = $price_loan;
|
||||
$this->orders_model->update(['finance_id'=>$finance_id,'money_json'=>json_encode($money_json,JSON_UNESCAPED_UNICODE)],['id'=>$row['o_id']]);
|
||||
}elseif($params['status']==3){ //完成按揭
|
||||
if(!$row['lend_file']){
|
||||
$this->orders_model->update(['finance_id' => $finance_id, 'money_json' => json_encode($money_json, JSON_UNESCAPED_UNICODE)], ['id' => $row['o_id']]);
|
||||
} elseif ($params['status'] == 3) { //完成按揭
|
||||
if (!$row['lend_file']) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '请先上传按揭放款函!');
|
||||
}
|
||||
$loan_time = $info['loan_info']['loan_time'];
|
||||
if(!$loan_time){
|
||||
if (!$loan_time) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '请选择放款时间!');
|
||||
}
|
||||
$update['loan_time'] = date('Y-m-d H:i:s',strtotime($loan_time));
|
||||
$update['loan_time'] = date('Y-m-d H:i:s', strtotime($loan_time));
|
||||
}
|
||||
$result = $this->order_loans_model->update($update, ['id' => $row['id']]);
|
||||
if ($result && $params['status'] == 3) { //设置完成按揭
|
||||
|
||||
@@ -60,6 +60,7 @@ class Agent extends HD_Controller{
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
$temp['payway_name'] = $value['payway_name'];
|
||||
@@ -70,6 +71,7 @@ class Agent extends HD_Controller{
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '车辆平台价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款方式',
|
||||
|
||||
@@ -66,6 +66,7 @@ class Bill extends HD_Controller
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
@@ -77,6 +78,7 @@ class Bill extends HD_Controller
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '车辆平台价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款方式',
|
||||
|
||||
@@ -68,6 +68,7 @@ class Ckcar extends HD_Controller
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
$temp['payway_name'] = $value['payway_name'];
|
||||
@@ -78,6 +79,7 @@ class Ckcar extends HD_Controller
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '车辆平台价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款方式',
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:交易完成
|
||||
* Created on: 2021/9/28 14:11
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Deal extends HD_Controller
|
||||
{
|
||||
|
||||
private $status_pid = 6;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->lists();
|
||||
}
|
||||
|
||||
public function lists()
|
||||
{
|
||||
$params = $this->input->get();
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$this->data = $result;
|
||||
return $this->show_view($result['view'], true);
|
||||
}
|
||||
|
||||
public function get()
|
||||
{
|
||||
}
|
||||
|
||||
//添加单条数据
|
||||
public function add()
|
||||
{
|
||||
}
|
||||
|
||||
//编辑单条数据
|
||||
public function edit()
|
||||
{
|
||||
}
|
||||
|
||||
//删除单条数据
|
||||
public function del()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//批量操作(默认修改状态)
|
||||
public function batch()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//导出数据列表
|
||||
public function export()
|
||||
{
|
||||
$params = $this->input->get();
|
||||
$params['page'] = 1;
|
||||
$params['size'] = 10000;
|
||||
$this->load->library('OrdersList');
|
||||
$result = $this->orderslist->lists($this->status_pid, $params);
|
||||
$fileName = $result['_title'];
|
||||
foreach ($result['lists'] as $key => $value) {
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
$temp['payway_name'] = $value['payway_name'];
|
||||
$temp['status_name'] = $value['status_name'];
|
||||
$temp['c_time'] = $value['c_time'];
|
||||
$data[] = $temp;
|
||||
}
|
||||
$indexs = [
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '车辆平台价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款方式',
|
||||
'status_name' => '状态',
|
||||
'c_time' => '订单时间',
|
||||
];
|
||||
array_unshift($data, $indexs);
|
||||
$this->load->library('excel');
|
||||
return $this->excel->out_csv($data, $indexs, $fileName . "_" . date('YmdHis'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -68,6 +68,7 @@ class Delivery extends HD_Controller
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
$temp['payway_name'] = $value['payway_name'];
|
||||
@@ -78,6 +79,7 @@ class Delivery extends HD_Controller
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '车辆平台价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款方式',
|
||||
|
||||
@@ -68,6 +68,7 @@ class Sign extends HD_Controller
|
||||
$temp['name'] = $value['name'];
|
||||
$temp['mobile'] = $value['mobile'];
|
||||
$temp['car_name'] = $value['car_name'];
|
||||
$temp['biz_name'] = $value['biz_name'];
|
||||
$temp['price'] = $value['price'];
|
||||
$temp['deposit'] = $value['deposit'];
|
||||
$temp['payway_name'] = $value['payway_name'];
|
||||
@@ -80,6 +81,7 @@ class Sign extends HD_Controller
|
||||
'name' => '客户姓名',
|
||||
'mobile' => '客户电话',
|
||||
'car_name' => '车辆',
|
||||
'biz_name' => '门店',
|
||||
'price' => '合同价',
|
||||
'deposit' => '定金',
|
||||
'payway_name' => '付款',
|
||||
|
||||
@@ -27,7 +27,10 @@ class OrdersList
|
||||
!$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)) {
|
||||
if (!strlen($status_pid) || $status_pid == 6) {
|
||||
if ($status_pid == 6) {
|
||||
$params['status'] = 6;
|
||||
}
|
||||
$result = $this->orders($params);
|
||||
$result['qdjl_lists'] = $qdjl_lists;
|
||||
$result['paywayAry'] = $this->paywayAry;
|
||||
@@ -69,7 +72,15 @@ class OrdersList
|
||||
$page = $params['page'] = $params['page'] ? intval($params['page']) : 1;
|
||||
$size = $params['size'] = $params['size'] ? intval($params['size']) : 20;
|
||||
$status_arr = $this->ci->mdOrders->statusAry();
|
||||
$where = ["status>=" => 0];
|
||||
if ($params['status']) {
|
||||
$where = ["status" => $params['status']];
|
||||
$_title = $status_arr[$params['status']]['name'];
|
||||
$view = 'receiver/order/deal/lists';
|
||||
} else {
|
||||
$where = ["status>=" => 0];
|
||||
$_title = '全部订单';
|
||||
$view = 'receiver/orders/lists';
|
||||
}
|
||||
if (strlen($params['payway'])) {
|
||||
$where["payway"] = $params['payway'];
|
||||
}
|
||||
@@ -195,9 +206,9 @@ class OrdersList
|
||||
}
|
||||
}
|
||||
$pager = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count);
|
||||
$_title = $size > 1000 ? '全部订单' : '全部订单列表';
|
||||
$_title = $size > 1000 ? $_title : $_title . '列表';
|
||||
return array('lists' => $lists, 'pager' => $pager, 'params' => $params, 'status_arr' => $status_arr
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => 'receiver/orders/lists', '_title' => $_title);
|
||||
, 'searchTpAry' => $this->searchTpAry, 'view' => $view, '_title' => $_title);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -344,8 +344,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -344,8 +344,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -357,8 +357,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -0,0 +1,526 @@
|
||||
<link rel="stylesheet" type="text/css" href="/static/css/font-awesome.min.css?v=1581252500">
|
||||
<? if ($params['list_type'] == 'all') { ?>
|
||||
<div class="bs-example bs-example-tabs" data-example-id="togglable-tabs" style="font-size:15px;">
|
||||
<div id="recom-stat"></div>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="<?= !strlen($params['status_pid']) ? 'active' : '' ?>">
|
||||
<a href="javascript:void (0);" data-open="/receiver/orders">
|
||||
全部
|
||||
<?= $params['count_all'] > 0 ? '<span style="background-color:#ff6600" class="am-badge am-round">' . $params['count_all'] . '</span>' : '' ?>
|
||||
</a>
|
||||
</li>
|
||||
<? foreach ($status_arr as $v) { ?>
|
||||
<li role="presentation"
|
||||
class="<? if (strlen($params['status_pid']) && $params['status_pid'] == $v['id']) { ?>active<? } ?>">
|
||||
<? if ($v['cate']) { ?>
|
||||
<a href="javascript:void (0);" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<?= $v['name'] ?>
|
||||
<?= $v['count'] > 0 ? '<span style="background-color:#ff6600" class="am-badge am-round">' . $v['count'] . '</span>' : '' ?>
|
||||
<?= $v['cate'] ? ' <span class="caret"></span>' : '' ?>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<? if ($v['cate']) { ?>
|
||||
<li class="<?= strlen($params['status_pid']) && !strlen($params['status']) && $params['status_pid'] == $v['id'] ? 'active' : '' ?>">
|
||||
<a href="javascript:void (0);"
|
||||
data-open="/receiver/orders?status_pid=<?= $v['id'] ?>">
|
||||
全部
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? foreach ($v['cate'] as $v2) { ?>
|
||||
<li class="<?= strlen($params['status']) && $params['status_pid'] == $v['id'] && $params['status'] == $v2['id'] ? 'active' : '' ?>">
|
||||
<a href="javascript:void (0);"
|
||||
data-open="/receiver/orders?status_pid=<?= $v['id'] ?>&status=<?= $v2['id'] ?>">
|
||||
<?= $v2['name'] ?>
|
||||
<?= $v2['count'] > 0 ? '<span style="background-color:#ff6600" class="am-badge am-round">' . $v2['count'] . '</span>' : '' ?>
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<? } else { ?>
|
||||
<a href="javascript:void (0);"
|
||||
data-open="/receiver/orders?status_pid=<?= $v['id'] ?>">
|
||||
<?= $v['name'] ?>
|
||||
<?= $v['count'] > 0 ? '<span style="background-color:#ff6600" class="am-badge am-round">' . $v['count'] . '</span>' : '' ?>
|
||||
</a>
|
||||
<? } ?>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<? } ?>
|
||||
<div class="coms-table-wrap mt10">
|
||||
<? if ($params['list_type'] == 'all') { ?>
|
||||
<form class="form-search coms-table-hd clearfix no-border" onsubmit="return false"
|
||||
action="/receiver/orders">
|
||||
<input type="hidden" name="status_pid" value="<?= $params['status_pid'] ?>">
|
||||
<? } else { ?>
|
||||
<form class="form-search coms-table-hd clearfix no-border" onsubmit="return false"
|
||||
action="/receiver/order/deal">
|
||||
<? } ?>
|
||||
<div class="am-form am-form-horizontal">
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">客户搜索:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="search_tp" id="search_tp">
|
||||
<?php foreach ($searchTpAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
<?= $key == $params['search_tp'] ? 'selected' : '' ?>><?= $value ?></option>
|
||||
<? } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w260">
|
||||
<input id="title" name="title" type="text" value="<?= $params['title'] ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<label class="am-para-label w100">订单时间:</label>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w300">
|
||||
<input id="id-create-time" name="c_time" type="text" value="<?= $params['c_time'] ?>"
|
||||
placeholder="订单时间范围" autocomplete="off"/>
|
||||
</div>
|
||||
<div class="am-para-inline" style="padding-top: 5px;">
|
||||
<a class="mr10 id-day-btn" href="javascript:void (0);" data-date="today">今天</a>
|
||||
<a class="mr10 id-day-btn" href="javascript:void (0);" data-date="yesterday">昨日</a>
|
||||
<a class="mr10 id-day-btn" href="javascript:void (0);" data-date="7day">最近7天</a>
|
||||
<a class="mr10 id-day-btn" href="javascript:void (0);" data-date="30day">最近30天</a>
|
||||
</div>
|
||||
</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>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
<option value="">选择品牌</option>
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrcorAry">{{v.title}}</option>
|
||||
</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" id="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>
|
||||
<div class="am-para-inline w120">
|
||||
<select title="城市" name="city_id_admin" v-model="params.city_id_admin">
|
||||
<option value="">选择城市</option>
|
||||
<option :value="v.id" v-for="(v,i) in admins.cityAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select title="行政区" name="county_id_admin" v-model="params.county_id_admin">
|
||||
<option value="">选择行政区</option>
|
||||
<option :value="v.id" v-for="(v,i) in admins.countyAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="biz_id_admin" v-model="params.biz_id_admin">
|
||||
<option value="">门店</option>
|
||||
<template v-for="(v,i) in admins.bizAry">
|
||||
<option :value="v.id">{{v.title}}</option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="admin_id" v-model="params.admin_id">
|
||||
<option value="">销售员</option>
|
||||
<template v-for="(v,i) in admins.list">
|
||||
<option :value="v.id">{{v.title}}</option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">渠道经理:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="qdjl_id" v-model="params.qdjl_id">
|
||||
<option value=''>请选择</option>
|
||||
<option :value="v.id" v-for="(v,i) in qdjl_lists">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
<button type="submit" class="am-btn am-btn-success am-btn-sm w100">搜索</button>
|
||||
</div>
|
||||
<div class="am-form-group fl ml10">
|
||||
<button type="button" class="am-btn am-btn-success am-btn-sm w100" @click="reset">重置</button>
|
||||
</div>
|
||||
<div class="am-form-group fl ml10">
|
||||
<button type="button" @click="export_out" class="am-btn am-btn-success am-btn-sm w100">导出
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="coms-table-bd">
|
||||
<div class="am-form-group fr mr10">
|
||||
<span>共<?= intval($pager['totle']) ?>个客户</span>
|
||||
</div>
|
||||
<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="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>
|
||||
<tbody>
|
||||
<?php if ($lists) {
|
||||
foreach ($lists as $v) { ?>
|
||||
<tr>
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="coms-table-ft clearfix">
|
||||
<div class="hander am-form">
|
||||
</div>
|
||||
<div class="coms-pagination fr mr20">
|
||||
<?php page_view($pager) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
require(['laydate', 'autocomplete'], function (laydate) {
|
||||
laydate.render({
|
||||
elem: '#id-create-time', range: '~'
|
||||
});
|
||||
$('.id-day-btn').click(function () {
|
||||
var type = $(this).data('date'), date = '', d_obj = new Date();
|
||||
switch (type) {
|
||||
case 'today':
|
||||
date = d_obj.Format('yyyy-MM-dd');
|
||||
date = date + ' ~ ' + date;
|
||||
break;
|
||||
case 'yesterday':
|
||||
date = (new Date(d_obj.getTime() - 86400000)).Format('yyyy-MM-dd');
|
||||
date = date + ' ~ ' + date;
|
||||
break;
|
||||
case '7day':
|
||||
date = (new Date(d_obj.getTime() - 86400000 * 7)).Format('yyyy-MM-dd') + ' ~ ' + d_obj.Format('yyyy-MM-dd');
|
||||
break;
|
||||
case '30day':
|
||||
date = (new Date(d_obj.getTime() - 86400000 * 30)).Format('yyyy-MM-dd') + ' ~ ' + d_obj.Format('yyyy-MM-dd');
|
||||
break;
|
||||
}
|
||||
$('#id-create-time').val(date);
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
vue_obj = new Vue({
|
||||
el: '.coms-table-wrap',
|
||||
data: {
|
||||
params: [],
|
||||
searchTpAry: [],
|
||||
brandAry: [],
|
||||
seryAry: [],
|
||||
attrvAry: [],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: [],
|
||||
qdjl_lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
var vm = this;
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.qdjl_lists = <?=json_encode($qdjl_lists)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
export_out: function () {
|
||||
var count = <?=$pager['totle']?>;
|
||||
if (count > 10000) {
|
||||
layer.msg('单次导出数据不能超过10000');
|
||||
return false;
|
||||
}
|
||||
var href = $.menu.parseUri(window.location.href);
|
||||
<? if ($params['list_type'] == 'all') { ?>
|
||||
href = href.replace("orders?", "order/deal/export?") + "<?='&list_type=' . $params['list_type']?>";
|
||||
<?}else{?>
|
||||
href = href.replace("deal?", "deal/export?");
|
||||
<?}?>
|
||||
window.location.href = href;
|
||||
},
|
||||
init_brands: function () {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
url: '/auto/brand/json_lists',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {status: 1},
|
||||
beforeSend: function () {
|
||||
},
|
||||
success: function (data) {
|
||||
if (1 == data.code) {
|
||||
vm.brandAry = data.data.list;
|
||||
}
|
||||
},
|
||||
complete: function () {
|
||||
}
|
||||
});
|
||||
},
|
||||
init_citys: function () {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reset: function () {
|
||||
var that = this;
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'params.brand_id': function (nv, ov) {
|
||||
var vm = this;
|
||||
vm.seryAry = {};
|
||||
if (nv > 0) {
|
||||
$.ajax({
|
||||
url: '/auto/series/json_lists',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {brand_id: nv},
|
||||
beforeSend: function () {
|
||||
},
|
||||
success: function (data) {
|
||||
if (1 == data.code) {
|
||||
var lists = data.data.list;
|
||||
var seryAry = {};
|
||||
for (var i in lists) {
|
||||
var row = lists[i];
|
||||
seryAry[row.id] = row.name;
|
||||
}
|
||||
vm.seryAry = lists;
|
||||
if (vm.params.s_id > 0 && undefined == seryAry[vm.params.s_id]) {
|
||||
vm.params.s_id = '';
|
||||
}
|
||||
}
|
||||
},
|
||||
complete: function () {
|
||||
loading = 0;
|
||||
layer.closeAll('loading');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
vm.params.s_id = '';
|
||||
}
|
||||
},
|
||||
'params.s_id': function (nv, ov) {
|
||||
var vm = this;
|
||||
if (nv > 0) {
|
||||
//车身颜色
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/auto/attr/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
s_id: nv,
|
||||
status: 1,
|
||||
type: 0
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.attrcorAry = response.data.list;
|
||||
}
|
||||
}
|
||||
});
|
||||
//型号
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/auto/attr/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
s_id: nv,
|
||||
status: 1,
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.attrvAry = response.data.list;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
vm.attrcorAry = [];
|
||||
vm.attrvAry = [];
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin': function (nv, ov) {
|
||||
var that = this;
|
||||
if (nv == '') {
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if (nv.substring(0, 4) != that.params.county_id_admin.substring(0, 4)) {
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key: 'county',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin': function (nv, ov) {
|
||||
var that = this;
|
||||
if (nv == '') {
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if (that.params.biz_id_admin > 0) {
|
||||
var biz_id = '';
|
||||
for (var i in that.admins.bizAry) {
|
||||
if (that.params.biz_id_admin == that.admins.bizAry[i].id) {
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin': function (nv, ov) {
|
||||
var that = this;
|
||||
if (nv == '') {
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if (that.params.admin_id > 0) {
|
||||
var admin_id = '';
|
||||
for (var i in that.admins.list) {
|
||||
if (that.params.admin_id == that.admins.list[i].id) {
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
<?php page_script($pager) ?>
|
||||
});
|
||||
</script>
|
||||
@@ -137,7 +137,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -357,8 +357,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -353,8 +353,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -360,8 +360,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -18,9 +18,12 @@
|
||||
<div class="am-form-group am-u-lg-6">
|
||||
<label class="am-para-label label-width"><span class="span-bold">挂牌是否代办:</span></label>
|
||||
<div class="am-para-input">
|
||||
<input type="checkbox" name="if_listed_db" value="1" v-if="info.agent.if_listed_db" checked
|
||||
class="mui-switch mui-switch-anim">
|
||||
<input type="checkbox" name="if_listed_db" value="1" v-else class="mui-switch mui-switch-anim">
|
||||
<label class="am-checkbox-inline">
|
||||
<input type="radio" name="if_listed_db" value="0" v-model="info.agent.if_listed_db"> 否
|
||||
</label>
|
||||
<label class="am-checkbox-inline">
|
||||
<input type="radio" name="if_listed_db" value="1" v-model="info.agent.if_listed_db"> 是
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,9 +41,12 @@
|
||||
<div class="am-form-group am-u-lg-6">
|
||||
<label class="am-para-label label-width"><span class="span-bold">保险是否代办:</span></label>
|
||||
<div class="am-para-input">
|
||||
<input type="checkbox" name="if_ins_db" value="1" v-if="info.agent.if_ins_db" checked
|
||||
class="mui-switch mui-switch-anim">
|
||||
<input type="checkbox" name="if_ins_db" value="1" v-else class="mui-switch mui-switch-anim">
|
||||
<label class="am-checkbox-inline">
|
||||
<input type="radio" name="if_ins_db" value="0" v-model="info.agent.if_ins_db"> 否
|
||||
</label>
|
||||
<label class="am-checkbox-inline">
|
||||
<input type="radio" name="if_ins_db" value="1" v-model="info.agent.if_ins_db"> 是
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">付款方式:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="payway">
|
||||
<select name="payway" id="payway">
|
||||
<option value="">全部</option>
|
||||
<?php foreach ($paywayAry as $key => $value) { ?>
|
||||
<option value="<?= $key ?>"
|
||||
@@ -334,8 +334,10 @@
|
||||
$("#search_tp").val('mobile');
|
||||
$("#title").val('');
|
||||
$("#id-create-time").val('');
|
||||
$("#payway").val('');
|
||||
that.params.brand_id = '';
|
||||
that.params.city_id_admin = '';
|
||||
that.params.qdjl_id = '';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -40,7 +40,7 @@ class Receiver_orders_model extends HD_Model
|
||||
'menu_list' => array(0 => '代办中'), 'menu_default' => 0);
|
||||
$status_ary[5] = array('name' => '交付车辆', 'show' => true, 'list' => array(0 => '待用户确认', 1 => '用户已确认', 2 => '销售已确认'),
|
||||
'menu_list' => array(0 => '待用户确认', 1 => '用户已确认', 2 => '销售已确认'), 'menu_default' => 0);
|
||||
$status_ary[6] = array('name' => '完成交付', 'show' => false, 'list' => array(), 'menu_list' => array());
|
||||
$status_ary[6] = array('name' => '交易完成', 'show' => true, 'list' => array(), 'menu_list' => array());
|
||||
$status_ary[7] = array('name' => '申请退款', 'show' => false, 'list' => array(), 'menu_list' => array());
|
||||
if (strlen($status)) {
|
||||
$return_status = $status_ary[$status];
|
||||
|
||||
Reference in New Issue
Block a user