diff --git a/admin/controllers/biz/store/Store.php b/admin/controllers/biz/store/Store.php index 246deadd..f5958e06 100755 --- a/admin/controllers/biz/store/Store.php +++ b/admin/controllers/biz/store/Store.php @@ -8,26 +8,31 @@ defined('BASEPATH') OR exit('No direct script access allowed'); require_once COMMPATH . 'third_party/pinyin/PinYin.php'; -class Store extends HD_Controller{ +class Store extends HD_Controller +{ private $roles = array('普通', '超级管理'); - public function __construct(){ + public function __construct() + { parent::__construct(); $this->load->helper('image_helper'); $this->load->model("biz/biz_model"); $this->load->model("biz/biz_tagdata_model"); + $this->load->model('app/licheb/app_licheb_users_model', 'mdLichebUsers'); $this->load->model("biz/biz_brand_model", 'bizBrand'); $this->load->model('area_model'); //$this->load->model("user/user_model"); } - public function index(){ + public function index() + { return $this->lists(); } - public function lists(){ - + public function lists() + { + $params = $this->input->get(); $page = $this->input->get('page'); $status = $this->input->get('status'); @@ -42,11 +47,11 @@ class Store extends HD_Controller{ $status_arr = array('del' => -1, 'off' => 0, 'on' => 1); $this->data['provinces'] = $this->area_model->select(array(), '', 0, 0, 'distinct(province_id), province_name'); - if($province_id){ + if ($province_id) { //获取系统配置的城市 $map_city = $this->city_ary(); $rows_city = array(); - foreach($map_city as $k => $v){ + foreach ($map_city as $k => $v) { $rows_city[] = array( 'city_id' => $k, 'city_name' => $v @@ -54,10 +59,10 @@ class Store extends HD_Controller{ } $this->data['citys'] = $rows_city; } - if($city_id){ + if ($city_id) { $this->data['countys'] = $this->area_model->select(array('city_id' => $city_id)); } - if(isset($status_arr[$status])){ + if (isset($status_arr[$status])) { $this->data['status'] = $status; $where['status'] = $status_arr[$status]; } else { @@ -73,14 +78,28 @@ class Store extends HD_Controller{ $province_id && $where['province_id'] = $province_id; $city_id && $where['city_id'] = $city_id; $county_id && $where['county_id'] = $county_id; + !$params['qdjl_id'] && $params['qdjl_id'] = ''; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["id in({$re_bu['biz_id']})"] = null; + } else { + $where['id'] = -1; + } + } + if ($params['c_time']) { + $c_time = explode(' ~ ', $params['c_time']); + $c_time[0] && $where["c_time >="] = strtotime($c_time[0] . ' 00:00:00'); + $c_time[1] && $where["c_time <="] = strtotime($c_time[1] . ' 23:59:59'); + } $biz_lists = $this->biz_model->select($where, 'id desc', $page, $pagesize); $count = $this->biz_model->count($where); $bizlists = []; - foreach($biz_lists as $v){ + foreach ($biz_lists as $v) { $brand = $this->bizBrand->get(array('id' => $v['brand_id']), 'brand_name'); $v['brand_name'] = $brand['brand_name']; - + $v['c_time'] = date('Y-m-d H:i:s', $v['c_time']); $bizlists[] = $v; } @@ -94,11 +113,13 @@ class Store extends HD_Controller{ //获取品牌 $lists = $this->bizBrand->select(array('status' => 1), '', '', '', 'brand_name,id'); $data = array(); - if($lists){ - foreach($lists as $value){ + if ($lists) { + foreach ($lists as $value) { $data[] = array('name' => $value['brand_name'], 'id' => $value['id']); } } + $this->data['qdjl_lists'] = $this->mdLichebUsers->select(array('group_id' => 4, 'status' => 1, 'biz_id<>' => '0'), 'id desc', 0, 0, 'id,uname as name'); + $this->data['params'] = $params; $this->data['brand_list'] = $data; $this->data['companyAry'] = $map_company; $this->data['lists'] = $bizlists; @@ -107,22 +128,23 @@ class Store extends HD_Controller{ $this->show_view('biz/store/lists', true); } - public function get(){ + public function get() + { $id = intval($this->input->get('id')); $this->data['provinces'] = $this->area_model->select(array(), '', 0, 0, 'distinct(province_id), province_name'); //获取品牌 $lists = $this->bizBrand->select(array('status' => 1), '', '', '', 'brand_name,id'); $data = array(); - if($lists){ - foreach($lists as $value){ + if ($lists) { + foreach ($lists as $value) { $data[] = array('name' => $value['brand_name'], 'id' => $value['id']); } } $this->data['brand_list'] = $data; - if($id){ + if ($id) { $biz = $this->biz_model->get(array('id' => $id, 'status>-1' => null)); - if(!$biz || empty($biz)){ + if (!$biz || empty($biz)) { return $this->show_json(SYS_CODE_FAIL, '店铺不存在!'); } @@ -134,11 +156,11 @@ class Store extends HD_Controller{ $this->data['areas'] = $areas; $biz['avatar'] = build_qiniu_image_url($biz['headimg'], 200, 200); //获取品牌名称 - if($biz && $this->data['brand_list']){ + if ($biz && $this->data['brand_list']) { $brand_id = $biz['brand_id']; $brand_name = ''; - foreach($this->data['brand_list'] as $item){ - if($brand_id == $item['id']){ + foreach ($this->data['brand_list'] as $item) { + if ($brand_id == $item['id']) { $brand_name = $item['name']; break; } @@ -147,13 +169,13 @@ class Store extends HD_Controller{ } //标签 $biz_tags = $this->biz_tagdata_model->select(array('biz_id' => $id, 'type' => 2)); - if($biz_tags){ - foreach($biz_tags as $v){ + if ($biz_tags) { + foreach ($biz_tags as $v) { $biz['biz_tag_more'][] = $v['tag_id']; } } - if($biz['jsondata']){ + if ($biz['jsondata']) { $jsondata = json_decode($biz['jsondata'], true); $biz['auto_brands'] = $jsondata ? $jsondata['auto_brands'] : array(); } else { @@ -164,7 +186,7 @@ class Store extends HD_Controller{ } else { $map_city = $this->city_ary(); $rows_city = array(); - foreach($map_city as $k => $v){ + foreach ($map_city as $k => $v) { $rows_city[] = array( 'city_id' => $k, 'city_name' => $v @@ -193,11 +215,12 @@ class Store extends HD_Controller{ $this->show_view('biz/store/edit', true); } - public function add(){ + public function add() + { $biz['status'] = 1; $biz['biz_name'] = $this->input->post('biz_name', true); - if(!$biz['biz_name']){ + if (!$biz['biz_name']) { return $this->show_json(SYS_CODE_FAIL, '商家名称不能为空'); } //中文转拼音 @@ -206,7 +229,7 @@ class Store extends HD_Controller{ $biz['firstchar'] = strtoupper($py); $biz['brand_id'] = intval($this->input->post('brand_id', true)); - if(!$biz['brand_id']){ + if (!$biz['brand_id']) { return $this->show_json(SYS_CODE_FAIL, '请选择品牌'); } @@ -221,7 +244,7 @@ class Store extends HD_Controller{ $biz['company_id'] = intval($this->input->post('company_id', true)); $auto_brands = $this->input->post('auto_brands'); - if($auto_brands){ + if ($auto_brands) { $jsondata = array('auto_brands' => $auto_brands); $biz['jsondata'] = json_encode($jsondata, JSON_UNESCAPED_UNICODE); } @@ -230,18 +253,18 @@ class Store extends HD_Controller{ $biz['headimg'] = $this->input->post('headimg'); //商家标签 $tag_more = $this->input->post('tag_more'); - if(!$tag_more || !is_array($tag_more)){ + if (!$tag_more || !is_array($tag_more)) { $tag_more = array(); } $biz['c_time'] = time(); $id = $this->biz_model->add($biz); - if(!$id){ + if (!$id) { return $this->show_json(SYS_CODE_FAIL, '添加失败'); } - foreach($tag_more as $key => $value){ - if($value){ + foreach ($tag_more as $key => $value) { + if ($value) { $biz_tags[$value] = array( 'type' => 2, 'biz_id' => $id, @@ -249,20 +272,21 @@ class Store extends HD_Controller{ ); } } - if(count($biz_tags)){ + if (count($biz_tags)) { $this->biz_tagdata_model->add_batch($biz_tags); } return $this->show_json(SYS_CODE_SUCCESS, '操作成功'); } - public function edit(){ - if(!$this->if_ajax){ + public function edit() + { + if (!$this->if_ajax) { return $this->show_json(SYS_CODE_FAIL, '提交出错!'); } $id = intval($this->input->post('id')); $biz['biz_name'] = $this->input->post('biz_name', true); - if(!$biz['biz_name']){ + if (!$biz['biz_name']) { return $this->show_json(SYS_CODE_FAIL, '商家名称不能为空'); } //中文转拼音 @@ -271,7 +295,7 @@ class Store extends HD_Controller{ $biz['firstchar'] = strtoupper($py); $biz['brand_id'] = intval($this->input->post('brand_id', true)); - if(!$biz['brand_id']){ + if (!$biz['brand_id']) { return $this->show_json(SYS_CODE_FAIL, '请选择品牌'); } @@ -292,7 +316,7 @@ class Store extends HD_Controller{ $auto_brands = $this->input->post('auto_brands'); $old = $this->biz_model->get(array('id' => $id)); $jsondata = json_decode($old['jsondata'], true); - if($auto_brands){ + if ($auto_brands) { $jsondata['auto_brands'] = $auto_brands; } else { unset($jsondata['auto_brands']); @@ -301,17 +325,17 @@ class Store extends HD_Controller{ //商家标签 $tag_more = $this->input->post('tag_more'); - if(!$tag_more || !is_array($tag_more)){ + if (!$tag_more || !is_array($tag_more)) { $tag_more = array(); } $res = $this->biz_model->update($biz, array('id' => $id)); - if(!$res){ + if (!$res) { return $this->show_json(SYS_CODE_FAIL, '添加失败'); } - foreach($tag_more as $key => $value){ - if($value){ + foreach ($tag_more as $key => $value) { + if ($value) { $biz_tags[$value] = array( 'type' => 2, 'biz_id' => $id, @@ -320,16 +344,17 @@ class Store extends HD_Controller{ } } $res = $this->biz_tagdata_model->delete(array('biz_id' => $id, 'type in(2,3)' => null)); - if(count($biz_tags) && $res){ + if (count($biz_tags) && $res) { $this->biz_tagdata_model->add_batch($biz_tags); } return $this->show_json(SYS_CODE_SUCCESS, '操作成功'); } - public function del(){ + public function del() + { $id = $this->input->post('id'); - if(!$id){ + if (!$id) { $this->show_json(SYS_CODE_FAIL, '删除出错'); } $stauts = $this->input->post('status'); @@ -339,20 +364,21 @@ class Store extends HD_Controller{ return $this->show_json(SYS_CODE_SUCCESS, '操作成功'); } - public function batch(){ + public function batch() + { $field = $this->input->post('field'); - if($field === 'ifcheck'){ + if ($field === 'ifcheck') { $status = intval($this->input->post('value')); $ids = $this->input->post('id'); $ids = explode(',', $ids); - if(!$ids || count($ids) < 1){ + if (!$ids || count($ids) < 1) { $this->show_json(0, '请选择要操作的选项'); } $where = array('id in(' . implode(',', $ids) . ')' => null); } else { $id = intval($this->input->post('id')); $status = intval($this->input->post('value')); - if(!$id){ + if (!$id) { $this->show_json(0, '参数错误'); } $where['id'] = $id; @@ -362,11 +388,13 @@ class Store extends HD_Controller{ return $this->show_json(SYS_CODE_SUCCESS, '保存成功'); } - public function export(){ + public function export() + { } - public function lists_bd($where = [], $order = '', $page = 0, $size = 20){ + public function lists_bd($where = [], $order = '', $page = 0, $size = 20) + { $page = $this->input->get('page') ? $this->input->get('page') : '1'; $id = $this->input->get('id'); $biz_name = $this->biz_model->get(['id' => $id], 'biz_name')['biz_name']; @@ -374,7 +402,7 @@ class Store extends HD_Controller{ $count = $this->bd_biz->count(['biz_id' => $id]); $bd_ids = $this->bd_biz->select(['biz_id' => $id], $order, $page, $size, 'bd_id'); $bd_ids = array_column($bd_ids, 'bd_id'); - foreach($bd_ids as $key => $value){ + foreach ($bd_ids as $key => $value) { $bd = $this->bd->get(['id' => $value], 'uid,title,c_time'); $data[$key]['c_time'] = date('Y-m-d H:i:s', $bd['c_time']); $data[$key]['title'] = $bd['title']; @@ -392,31 +420,32 @@ class Store extends HD_Controller{ * Created by: dengbw * @return bool */ - public function lists_admin(){ + public function lists_admin() + { $this->load->model('user/user_biz_model', 'mdUserBiz'); $this->load->model('user/user_model', 'mdUser'); $params = $this->input->get(); $params['page'] = $params['page'] ? intval($params['page']) : 1; $params['size'] = $params['size'] ? intval($params['size']) : 20; $biz_id = intval($params['biz_id']); - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '非法参数!'); } $biz = $this->biz_model->get(array('id' => $biz_id)); - if(!$biz || empty($biz)){ + if (!$biz || empty($biz)) { return $this->show_json(SYS_CODE_FAIL, '商家不存在!'); } $biz_name = $biz['biz_name']; $where['biz_id'] = $biz_id; - if($params['mobile']){ + if ($params['mobile']) { $user = $this->mdUser->get(array('mobile' => $params['mobile'], 'status' => 1)); $where['uid'] = $user ? $user['uid'] : '0'; } $count = $this->mdUserBiz->count($where); $lists = array(); - if($count){ + if ($count) { $lists = $this->mdUserBiz->select($where, "id desc", $params['page'], $params['size']); - foreach($lists as $key => &$value){ + foreach ($lists as $key => &$value) { $user = $this->mdUser->get(array('uid' => $value['uid'])); $value['uname'] = $user['uname']; $value['mobile'] = $user['mobile']; @@ -435,14 +464,15 @@ class Store extends HD_Controller{ * Created by: dengbw * @return bool */ - public function get_admin(){ + public function get_admin() + { $id = $this->input->get('id'); $biz_id = $this->input->get('biz_id'); $this->load->model('user/user_biz_model', 'mdUserBiz'); $this->load->model('user/user_model', 'mdUser'); $info = array(); $id && $info = $this->mdUserBiz->get(array('id' => $id)); - if($info){ + if ($info) { $biz_id = $info['biz_id']; $user = $this->mdUser->get(array('uid' => $info['uid'])); $info['mobile'] = $user['mobile']; @@ -452,7 +482,7 @@ class Store extends HD_Controller{ $info['type'] = 1; $info['role'] = 0; } - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '门店不存在!'); } $info['plugins'] = json_decode($info['plugins'], true); @@ -472,7 +502,8 @@ class Store extends HD_Controller{ * Created by: dengbw * @return bool */ - public function add_admin(){ + public function add_admin() + { $info = $this->input->post('info'); $biz_id = intval($info['biz_id']); // $type = intval($info['type']); @@ -480,25 +511,25 @@ class Store extends HD_Controller{ $uname = trim($info['uname']); $role = intval($info['role']); $plugins = $info['plugins']; - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '门店不存在'); } - if(!$mobile || !$uname){ + if (!$mobile || !$uname) { return $this->show_json(SYS_CODE_FAIL, '手机号或者名称不能为空'); } - if(!mobile_valid($mobile)){ + if (!mobile_valid($mobile)) { return $this->show_json(SYS_CODE_FAIL, '手机号格式不正确'); } $this->load->model('user/user_biz_model', 'mdUserBiz'); $this->load->model('user/user_model', 'mdUser'); //获取用户信息 list($status, $user, $msg) = $this->get_hduser($mobile, $uname); - if(!$status){ + if (!$status) { return $this->show_json(SYS_CODE_FAIL, $msg); } $uid = $user['uid']; $isbiz = $this->mdUserBiz->get(array('uid' => $uid, 'biz_id >' => 0)); - if($isbiz){ + if ($isbiz) { return $this->show_json(0, "该用户已是门店管理员了"); } $biz = $this->biz_model->get(array('id' => $biz_id)); @@ -510,7 +541,7 @@ class Store extends HD_Controller{ $data['role'] = $role; $plugins && $data['plugins'] = json_encode($plugins, JSON_UNESCAPED_UNICODE); $id = $this->mdUserBiz->add($data); - if(!$id){ + if (!$id) { return $this->show_json(0, "提交失败"); } $this->data = $data; @@ -523,7 +554,8 @@ class Store extends HD_Controller{ * Created by: dengbw * @return bool */ - public function edit_admin(){ + public function edit_admin() + { $info = $this->input->post('info'); $id = $info['id']; $biz_id = $info['biz_id']; @@ -532,28 +564,28 @@ class Store extends HD_Controller{ $mobile = trim($info['mobile']); $uname = trim($info['uname']); $plugins = $info['plugins']; - if(!$id){ + if (!$id) { return $this->show_json(SYS_CODE_FAIL, '参数错误'); } - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '门店不存在'); } - if(!$mobile || !$uname){ + if (!$mobile || !$uname) { return $this->show_json(SYS_CODE_FAIL, '手机号或者名称不能为空'); } - if(!mobile_valid($mobile)){ + if (!mobile_valid($mobile)) { return $this->show_json(SYS_CODE_FAIL, '手机号格式不正确'); } //获取用户信息 list($status, $user, $msg) = $this->get_hduser($mobile, $uname); - if(!$status){ + if (!$status) { return $this->show_json(SYS_CODE_FAIL, $msg); } $uid = $user['uid']; $this->load->model('user/user_biz_model', 'mdUserBiz'); $this->load->model('user/user_model', 'mdUser'); $isbiz = $this->mdUserBiz->get(array('uid' => $uid, 'biz_id >' => 0, 'id <>' => $id)); - if($isbiz){ + if ($isbiz) { return $this->show_json(0, "该用户已是门店管理员了"); } $biz = $this->biz_model->get(array('id' => $biz_id)); @@ -573,9 +605,10 @@ class Store extends HD_Controller{ * Created on: 2020/4/7 10:28 * Created by: dengbw */ - public function del_admin(){ + public function del_admin() + { $id = $this->input->post('id'); - if(!$id){ + if (!$id) { $this->show_json(SYS_CODE_FAIL, '非法参数'); } $this->load->model('user/user_biz_model', 'mdUserBiz'); @@ -586,7 +619,7 @@ class Store extends HD_Controller{ $upd = array('r_ubid' => 0); $where = array('r_ubid' => $id); $ret = $this->receiver_orders_model->update($upd, $where); - if(!$ret){ + if (!$ret) { return $this->show_json(SYS_CODE_FAIL, '操作失败'); } @@ -598,7 +631,8 @@ class Store extends HD_Controller{ /** * 管理员列表 */ - public function lists_manager(){ + public function lists_manager() + { $this->data['biz_id'] = $biz_id = intval($this->input->get('biz_id', true)); $this->data['mobile'] = $mobile = $this->input->get('mobile', true); $status = $this->input->get('status'); @@ -617,7 +651,7 @@ class Store extends HD_Controller{ $biz_name = $biz['biz_name']; $where = array('biz_id' => $biz_id); - if($mobile){ + if ($mobile) { $where1 = array('mobile' => $mobile, 'status' => 1); $user = $this->$user_model->get($where1); $where['uid'] = $user ? $user['uid'] : '0'; @@ -626,9 +660,9 @@ class Store extends HD_Controller{ 'a' != $status && $where['status'] = $status; $count = $this->$ub_model->count($where); $lists = array(); - if($count){ + if ($count) { $lists = $this->$ub_model->select($where, 'id DESC', $page, $size); - foreach($lists as &$item){ + foreach ($lists as &$item) { $user = $this->$user_model->get(array('uid' => $item['uid'])); $item['uname'] = $user['uname']; $item['mobile'] = $user['mobile']; @@ -644,7 +678,8 @@ class Store extends HD_Controller{ $this->show_view('biz/store/lists_manager', true); } - public function get_manager(){ + public function get_manager() + { $id = $this->input->get('id'); $biz_id = $this->input->get('biz_id'); $user_model = "user_model"; @@ -654,7 +689,7 @@ class Store extends HD_Controller{ $info = array(); $id && $info = $this->$ub_model->get(array('id' => $id)); - if($info){ + if ($info) { $biz_id = $info['biz_id']; $user = $this->$user_model->get(array('uid' => $info['uid'])); $info['mobile'] = $user['mobile']; @@ -663,7 +698,7 @@ class Store extends HD_Controller{ $info['biz_id'] = $biz_id; } - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '商家不存在!'); } @@ -676,31 +711,32 @@ class Store extends HD_Controller{ $this->show_view('biz/store/edit_manager'); } - public function add_manager(){ + public function add_manager() + { $biz_id = $this->input->post('biz_id'); $mobile = trim($this->input->post('mobile')); $uname = trim($this->input->post('uname')); - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '店铺不存在'); } - if(!$mobile || !$uname){ + if (!$mobile || !$uname) { return $this->show_json(SYS_CODE_FAIL, '手机号或者名称不能为空'); } - if(!mobile_valid($mobile)){ + if (!mobile_valid($mobile)) { return $this->show_json(SYS_CODE_FAIL, '手机号格式不正确'); } //获取用户信息 list($status, $user, $msg) = $this->get_hduser($mobile, $uname); - if(!$status){ + if (!$status) { return $this->show_json(SYS_CODE_FAIL, $msg); } $uid = $user['uid']; $this->load->model('user/user_brand_model'); $isbrand = $this->user_brand_model->get(array('uid' => $uid)); - if($isbrand){ + if ($isbrand) { return $this->show_json(SYS_CODE_FAIL, "该用户已是品牌管理员了"); } @@ -708,7 +744,7 @@ class Store extends HD_Controller{ $this->load->model('user/user_biz_model'); //是否已经存在该店铺下 $old = $this->$ub_model->get(array('uid' => $uid, 'biz_id' => $biz_id)); - if($old){ + if ($old) { return $this->show_json(SYS_CODE_FAIL, "用户已经绑定该商户"); } //该用户已经正常绑定的信息 @@ -731,7 +767,7 @@ class Store extends HD_Controller{ $this->load->model('app/zsb/app_zsb_user_model'); $this->load->model('user/user_model', 'user_model'); $res = $this->app_zsb_user_model->get(array('mobile' => $mobile)); - if(!$res){ + if (!$res) { $this->app_zsb_user_model->add(array('mobile' => $mobile, 'uname' => $uname, 'c_time' => time())); $this->user_model->add(array('uname' => $uname, 'mobile' => $mobile, 'c_time' => time())); } @@ -740,28 +776,29 @@ class Store extends HD_Controller{ } - public function edit_manager(){ + public function edit_manager() + { $id = $this->input->post('id'); $biz_id = $this->input->post('biz_id'); $mobile = trim($this->input->post('mobile')); $uname = trim($this->input->post('uname')); - if(!$id){ + if (!$id) { return $this->show_json(SYS_CODE_FAIL, '参数错误'); } - if(!$biz_id){ + if (!$biz_id) { return $this->show_json(SYS_CODE_FAIL, '店铺不存在'); } - if(!$mobile || !$uname){ + if (!$mobile || !$uname) { return $this->show_json(SYS_CODE_FAIL, '手机号或者名称不能为空'); } - if(!mobile_valid($mobile)){ + if (!mobile_valid($mobile)) { return $this->show_json(SYS_CODE_FAIL, '手机号格式不正确'); } //获取用户信息 list($status, $user, $msg) = $this->get_hduser($mobile, $uname); - if(!$status){ + if (!$status) { return $this->show_json(SYS_CODE_FAIL, $msg); } @@ -769,7 +806,7 @@ class Store extends HD_Controller{ $this->load->model('user/user_brand_model'); $isbrand = $this->user_brand_model->get(array('uid' => $uid)); - if($isbrand){ + if ($isbrand) { return $this->show_json(SYS_CODE_FAIL, "该用户已是品牌管理员了"); } $this->load->model('app/zsb/app_zsb_user_model'); @@ -777,14 +814,14 @@ class Store extends HD_Controller{ $this->load->model('user/user_biz_model'); $ubiz = $this->$ub_model->get(array('id' => $id)); //uid不变,不做修改 - if($ubiz['uid'] == $uid){ + if ($ubiz['uid'] == $uid) { //座上宾修改 $this->app_zsb_user_model->update(array('uname' => $uname), array('mobile' => $mobile)); return $this->show_json(SYS_CODE_SUCCESS, '提交成功'); } //是否已经存在该店铺下 $old = $this->$ub_model->get(array('uid' => $uid, 'biz_id' => $biz_id)); - if($old){ + if ($old) { return $this->show_json(SYS_CODE_FAIL, "用户已经绑定该商户"); } //店铺名称 @@ -796,15 +833,16 @@ class Store extends HD_Controller{ //生成商家关联数据 //座上宾 $res = $this->app_zsb_user_model->get(array('mobile' => $mobile)); - if(!$res){ + if (!$res) { $this->app_zsb_user_model->add(array('mobile' => $mobile, 'uname' => $uname, 'c_time' => time())); } return $this->show_json(SYS_CODE_SUCCESS, '提交成功'); } - public function del_manager(){ + public function del_manager() + { $id = $this->input->post('id'); - if(!$id){ + if (!$id) { $this->show_json(SYS_CODE_FAIL, '操作出错'); } $this->load->model('user/user_biz_model'); @@ -816,7 +854,8 @@ class Store extends HD_Controller{ * 获取店铺可选列表 * @return bool */ - function json_lists(){ + function json_lists() + { $province_id = $this->input->post('province_id'); $city_id = $this->input->post('city_id'); $county_id = $this->input->post('county_id'); @@ -825,7 +864,7 @@ class Store extends HD_Controller{ $size = $this->input->post('size'); $where = array(); - if(strlen($status) > 0){ + if (strlen($status) > 0) { $where['status'] = $status; } else { $whre['status > -1'] = null; @@ -837,12 +876,12 @@ class Store extends HD_Controller{ $total = $this->biz_model->count($where); $lists = array(); - if($total){ + if ($total) { $orderby = 'id desc'; $select = 'id, biz_name'; $rows = $this->biz_model->select($where, $orderby, $page, $size, $select); - foreach($rows as $v){ + foreach ($rows as $v) { $lists[] = array( 'id' => $v['id'], 'title' => $v['biz_name'], @@ -858,7 +897,8 @@ class Store extends HD_Controller{ * 获取店铺信息 * @return bool */ - function json_get(){ + function json_get() + { $id = $this->input->post('id'); $row = $this->biz_model->get(array('id' => $id)); @@ -879,12 +919,13 @@ class Store extends HD_Controller{ * @param $uname * @return array (status, data, msg) */ - private function get_hduser($mobile, $uname){ + private function get_hduser($mobile, $uname) + { $status = 1; $msg = ''; $data = array(); - if(!$mobile || !$uname){ + if (!$mobile || !$uname) { $status = 0; $msg = "手机号或者名称不能为空"; goto end; @@ -896,10 +937,10 @@ class Store extends HD_Controller{ $info = $this->user_model->get($where); //新增 - if(!$info){ + if (!$info) { $data = array('mobile' => $mobile, 'uname' => $uname, 'c_time' => time(), 'cf_title' => '管理员', 'cf_platform' => '后台添加'); $uid = $this->user_model->add($data); - if(!$uid){ + if (!$uid) { $status = 0; $msg = "用户添加失败"; } else { @@ -909,7 +950,7 @@ class Store extends HD_Controller{ } //状态异常 - if(1 != $info['status']){ + if (1 != $info['status']) { $status = 0; $msg = "用户存在,但状态异常"; goto end; diff --git a/admin/controllers/receiver/Orders.php b/admin/controllers/receiver/Orders.php index 27b72ad8..7ca26eff 100644 --- a/admin/controllers/receiver/Orders.php +++ b/admin/controllers/receiver/Orders.php @@ -3,7 +3,6 @@ defined('BASEPATH') OR exit('No direct script access allowed'); class Orders extends HD_Controller { - private $searchTpAry = array('mobile' => '客户手机号', 'name' => '客户姓名', 'sid' => '订单号'); public function __construct() { @@ -81,7 +80,8 @@ class Orders extends HD_Controller $this->data['pager'] = $result['pager']; $this->data['lists'] = $result['lists']; $this->data['params'] = $result['params']; - $this->data['searchTpAry'] = $this->searchTpAry; + $this->data['searchTpAry'] = $result['searchTpAry']; + $this->data['qdjl_lists'] = $result['qdjl_lists']; $this->data['status_arr'] = $status_arr; $this->data['_title'] = '全部订单列表'; return $this->show_view($result['view'], true); @@ -110,8 +110,8 @@ class Orders extends HD_Controller $row['item_id'] = intval($row['item_id']); $row['cardid'] = $row['info_json']['cardid'] ? $row['info_json']['cardid'] : $row['info_json']['c_cardid']; $row['address'] = $row['info_json']['c_address'] ? $row['info_json']['c_address'] : ''; - $row['trustee_name'] = $row['info_json']['trustee_name'] ? $row['info_json']['trustee_name'] : ''; - $row['trustee_idcard'] = $row['info_json']['trustee_idcard'] ? $row['info_json']['trustee_idcard'] : ''; + $row['entrust_name'] = $row['info_json']['entrust_name'] ? $row['info_json']['entrust_name'] : ''; + $row['entrust_idcard'] = $row['info_json']['entrust_idcard'] ? $row['info_json']['entrust_idcard'] : ''; $row['credit'] = $row['info_json']['c_credit'] ? $row['info_json']['c_credit'] : ''; $row['business_licence'] = $row['info_json']['business_licence'] ? array('value' => $row['info_json']['business_licence'] , 'src' => build_qiniu_image_url($row['info_json']['business_licence'])) : array('value' => '', 'src' => ''); @@ -287,7 +287,7 @@ class Orders extends HD_Controller $row = $this->orders_model->get(['id' => $id]); $info_json = json_decode($row['info_json'], true); $info_json['business_licence'] = $business_licence; - $upd = array('info_json' => json_encode($info_json,JSON_UNESCAPED_UNICODE)); + $upd = array('info_json' => json_encode($info_json, JSON_UNESCAPED_UNICODE)); $result = $this->orders_model->update($upd, ['id' => $id]); if ($result) { return $this->show_json(SYS_CODE_SUCCESS, '保存成功'); @@ -498,10 +498,11 @@ class Orders extends HD_Controller if (!$bill['file'] || !$bill['money']) { return $this->show_json(SYS_CODE_FAIL, '未上传开票文件或未填写到账金额!'); } - if (!$bill['cardidA']) { - return $this->show_json(SYS_CODE_FAIL, '未上传用户身份证!'); + $info_json = json_decode($row['info_json'], true); + if (!$bill['cardidA'] && !$info_json['business_licence']) { + return $this->show_json(SYS_CODE_FAIL, '未上传用户身份证或营业执照!'); } - $result = $this->order_bills_model->update(['status' => 1], ['o_id' => $oid]); + $this->order_bills_model->update(['status' => 1], ['o_id' => $oid]); $this->orders_model->update(['status' => 4], ['id' => $bill['o_id']]); if (!$this->order_agents_model->get(['o_id' => $oid])) { $this->order_agents_model->add(['o_id' => $oid, 'c_time' => time]); diff --git a/admin/controllers/receiver/order/Sign.php b/admin/controllers/receiver/order/Sign.php index 824dbd5b..b1c7b4f7 100644 --- a/admin/controllers/receiver/order/Sign.php +++ b/admin/controllers/receiver/order/Sign.php @@ -24,6 +24,7 @@ class Sign extends HD_Controller $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'] . '列表'; return $this->show_view($result['view'], true); } diff --git a/admin/libraries/OrdersList.php b/admin/libraries/OrdersList.php index 47636dee..3b906c31 100644 --- a/admin/libraries/OrdersList.php +++ b/admin/libraries/OrdersList.php @@ -13,7 +13,7 @@ class OrdersList { $this->ci = &get_instance(); $this->ci->load->model('receiver/order/receiver_orders_model', 'mdOrders'); - $this->ci->load->model('app/licheb/app_licheb_users_model', 'licheb_users_model'); + $this->ci->load->model('app/licheb/app_licheb_users_model', 'mdLichebUsers'); $this->ci->load->model("biz/biz_model"); $this->ci->load->model('auto/auto_series_model'); $this->ci->load->model('auto/auto_brand_model'); @@ -22,30 +22,36 @@ 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)) { - return $this->orders($params); + $result = $this->orders($params); + $result['qdjl_lists'] = $qdjl_lists; + return $result; } if ($status_pid == 0) { $this->ci->load->model('receiver/order/receiver_order_signs_model', 'order_signs_model'); - return $this->sign($status_pid, $params); + $result = $this->sign($status_pid, $params); } else if ($status_pid == 1) { $this->ci->load->model('receiver/order/receiver_order_loans_model', 'order_loans_model'); - return $this->loan($status_pid, $params); + $result = $this->loan($status_pid, $params); } else if ($status_pid == 2) { $this->ci->load->model('receiver/order/receiver_order_ckcars_model', 'order_ckcars_model'); - return $this->ckcar($status_pid, $params); + $result = $this->ckcar($status_pid, $params); } else if ($status_pid == 3) { $this->ci->load->model('receiver/order/receiver_order_bills_model', 'order_bills_model'); - return $this->bill($status_pid, $params); + $result = $this->bill($status_pid, $params); } else if ($status_pid == 4) { $this->ci->load->model('receiver/order/receiver_order_agents_model', 'order_agents_model'); - return $this->agent($status_pid, $params); + $result = $this->agent($status_pid, $params); } else if ($status_pid == 5) { $this->ci->load->model('receiver/order/receiver_order_deliverys_model', 'order_deliverys_model'); - return $this->delivery($status_pid, $params); - } else { - return array(); + $result = $this->delivery($status_pid, $params); } + $result['qdjl_lists'] = $qdjl_lists; + return $result; } /** @@ -61,6 +67,14 @@ class OrdersList $size = $params['size'] = $params['size'] ? intval($params['size']) : 20; $status_arr = $this->ci->mdOrders->statusAry(); $where = ["status>=" => 0]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } if ($params['title']) { $where["{$params['search_tp']} like '%{$params['title']}%'"] = null; } @@ -124,7 +138,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; @@ -190,6 +204,14 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } $statusAry = $this->ci->mdOrders->statusAry($status_pid); if ($params['list_type'] == 'all') { $status_arr = $statusAry['list']; @@ -264,7 +286,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; @@ -310,7 +332,7 @@ class OrdersList $str_ids = implode(',', $admin_ids); $where = array("id in({$str_ids})" => null); $select = 'id, uname, biz_id'; - $rows_admin = $this->ci->licheb_users_model->select($where, 'id desc', 0, 0, $select); + $rows_admin = $this->ci->mdLichebUsers->select($where, 'id desc', 0, 0, $select); if ($rows_admin) { $biz_ids = array(); foreach ($rows_admin as $v) { @@ -364,6 +386,14 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } $statusAry = $this->ci->mdOrders->statusAry($status_pid); if ($params['list_type'] == 'all') { $status_arr = $statusAry['list']; @@ -438,7 +468,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; @@ -486,6 +516,14 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } $statusAry = $this->ci->mdOrders->statusAry($status_pid); if ($params['list_type'] == 'all') { $status_arr = $statusAry['list']; @@ -560,7 +598,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; @@ -622,12 +660,19 @@ class OrdersList { $page = $params['page'] = $params['page'] ? intval($params['page']) : 1; $size = $params['size'] = $params['size'] ? intval($params['size']) : 20; - $t1 = 'lc_receiver_order_bills'; $t2 = 'lc_receiver_orders'; $where = [ "$t2.status>=" => 0, ]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } $statusAry = $this->ci->mdOrders->statusAry($status_pid); if ($params['list_type'] == 'all') { $status_arr = $statusAry['list']; @@ -702,7 +747,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; @@ -769,6 +814,14 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } $statusAry = $this->ci->mdOrders->statusAry($status_pid); if ($params['list_type'] == 'all') { $status_arr = $statusAry['list']; @@ -843,7 +896,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; @@ -910,6 +963,14 @@ class OrdersList $where = [ "$t2.status>=" => 0, ]; + if ($params['qdjl_id']) {//渠道经理 + $re_bu = $this->ci->mdLichebUsers->get(array('id' => $params['qdjl_id'])); + if ($re_bu['biz_id']) { + $where["biz_id in({$re_bu['biz_id']})"] = null; + } else { + $where['biz_id'] = -1; + } + } $statusAry = $this->ci->mdOrders->statusAry($status_pid); if ($params['list_type'] == 'all') { $status_arr = $statusAry['list']; @@ -984,7 +1045,7 @@ class OrdersList //获取目标销售员列表 if ($where_lcb) { $where_lcb['status>-1'] = null; - $rows_lcb = $this->ci->licheb_users_model->select($where_lcb, 'id desc', 0, 0, 'id'); + $rows_lcb = $this->ci->mdLichebUsers->select($where_lcb, 'id desc', 0, 0, 'id'); if ($rows_lcb) { $str_ids = implode(',', array_column($rows_lcb, 'id')); $where["admin_id in({$str_ids})"] = null; diff --git a/admin/views/biz/store/lists.php b/admin/views/biz/store/lists.php index 9c00524b..46ccf7ab 100755 --- a/admin/views/biz/store/lists.php +++ b/admin/views/biz/store/lists.php @@ -8,7 +8,7 @@ - +
- -
| 商家名称 | 品牌 | 状态 | +创建时间 | @@ -110,9 +138,10 @@= $v['biz_name'] ?> | = $v['brand_name'] ?> | = $statuscn[$v['status']] ?> | += $v['c_time'] ?> | |
|---|---|---|---|---|---|---|---|---|
| + |
修改
-
+
+
+
+
+
+
+
@@ -252,12 +262,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
diff --git a/admin/views/receiver/order/bill/lists.php b/admin/views/receiver/order/bill/lists.php
index c28749bd..908959f0 100644
--- a/admin/views/receiver/order/bill/lists.php
+++ b/admin/views/receiver/order/bill/lists.php
@@ -121,7 +121,8 @@
+
+
+
+
+
+
+
@@ -252,12 +262,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
diff --git a/admin/views/receiver/order/ckcar/lists.php b/admin/views/receiver/order/ckcar/lists.php
index 560fe9aa..f6ee1ff5 100644
--- a/admin/views/receiver/order/ckcar/lists.php
+++ b/admin/views/receiver/order/ckcar/lists.php
@@ -134,7 +134,8 @@
+
+
+
+
+
+
+
@@ -265,12 +275,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
diff --git a/admin/views/receiver/order/delivery/lists.php b/admin/views/receiver/order/delivery/lists.php
index 353a811a..2e0112c6 100644
--- a/admin/views/receiver/order/delivery/lists.php
+++ b/admin/views/receiver/order/delivery/lists.php
@@ -134,7 +134,8 @@
+
+
+
+
+
+
+
@@ -265,12 +275,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
diff --git a/admin/views/receiver/order/loan/lists.php b/admin/views/receiver/order/loan/lists.php
index 153e7575..d5c6665c 100644
--- a/admin/views/receiver/order/loan/lists.php
+++ b/admin/views/receiver/order/loan/lists.php
@@ -134,7 +134,8 @@
+
+
+
+
+
+
+
@@ -265,12 +275,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
diff --git a/admin/views/receiver/order/sign/lists.php b/admin/views/receiver/order/sign/lists.php
index b0db1555..2c5e9c78 100644
--- a/admin/views/receiver/order/sign/lists.php
+++ b/admin/views/receiver/order/sign/lists.php
@@ -134,7 +134,8 @@
+
+
+
+
+
+
+
@@ -268,12 +278,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
diff --git a/admin/views/receiver/orders/get.php b/admin/views/receiver/orders/get.php
index 6f00c993..0192c047 100644
--- a/admin/views/receiver/orders/get.php
+++ b/admin/views/receiver/orders/get.php
@@ -65,13 +65,13 @@
-
-
+
-
+
diff --git a/admin/views/receiver/orders/lists.php b/admin/views/receiver/orders/lists.php
index bde431d6..466d1800 100644
--- a/admin/views/receiver/orders/lists.php
+++ b/admin/views/receiver/orders/lists.php
@@ -113,7 +113,8 @@
+
+
+
+
+
+
+
@@ -244,12 +254,14 @@
attrvAry: [],
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
- lists: []
+ 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();
},
| |||||||