diff --git a/admin/controllers/items/Cost.php b/admin/controllers/items/Cost.php index 0051884b..85f701d9 100644 --- a/admin/controllers/items/Cost.php +++ b/admin/controllers/items/Cost.php @@ -61,8 +61,14 @@ class Cost extends HD_Controller{ } # lc_receiver_orders_v2 - //销售员筛选 $where_orders = $where_orders_default = '1 = 1'; + //门店类型 + !$params['biz_type'] && $params['biz_type'] = ''; + if ($params['biz_type']) { + //$where["biz_id in (select id from lc_biz where type = " . $params['biz_type'] . ')'] = null; + $where_orders = $where_orders." and biz_id in (select id from lc_biz where type = {$params['biz_type']})"; + } + //销售员筛选 if ($params['admin_id']) { //$where["sale_id"] = $params['admin_id']; $where_orders = $where_orders.' and sale_id = '.$params['admin_id']; @@ -194,6 +200,8 @@ class Cost extends HD_Controller{ ]; } } + $show_info['bizTypeAry'] = $this->biz_model->type_ary();//门店类型 + $this->data['show_info'] = $show_info; $autoList[1] = $this->mdAutoBrand->select(array('status' => 1), 'id desc', 0, 0, 'id,name'); $this->data['lists'] = $lists; $this->data['pager'] = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count); @@ -554,7 +562,6 @@ class Cost extends HD_Controller{ "back_price" => "客户退点金额", // 退客户保险退点 "insurance_price_pure" => "保险收入合计", // 保险净收入 - 'fee_carno' => '挂牌收入', 'cb_fee_carno' => '挂牌成本', "fee_carno_price" => "挂牌收入合计", diff --git a/admin/views/items/cost/lists.php b/admin/views/items/cost/lists.php index 3e73ea58..271f85b4 100644 --- a/admin/views/items/cost/lists.php +++ b/admin/views/items/cost/lists.php @@ -67,6 +67,15 @@
+