edit-admin-clues

This commit is contained in:
lccsw
2022-01-12 10:12:15 +08:00
parent 46661cf1bc
commit 7ac34dcd57
3 changed files with 25 additions and 1 deletions
+13
View File
@@ -233,6 +233,19 @@ class Clues extends HD_Controller
} else {
$info_show['near_bizs'] = $this->biz_model->select(['city_id' => $re['city_id'], 'county_id' => $re['county_id'], 'status' => 1], 'id desc', 1, 3, 'id,biz_name');
}
//获取分销用户
$cf_user = '';
if($dataInfo['recommend_id']){
$this->load->model('app/liche/app_liche_users_model');
$user = $this->app_liche_users_model->get(['id'=>$dataInfo['recommend_id']],'id,nickname,up_uid');
$user['up_uid'] && $up_user = $this->app_liche_users_model->get(['id'=>$user['up_uid']],'id,nickname'); //上一级分销用户
if($up_user){
$cf_user = "{$up_user['nickname']}(一级) => {$user['nickname']}(二级)";
}else{
$cf_user = $user['nickname'];
}
}
$info_show['cf_user'] = $cf_user;
$this->data['info'] = $dataInfo;
$this->data['info_show'] = $info_show;
$this->data['_title'] = '线索详情';
+6
View File
@@ -107,6 +107,12 @@
</template>
</div>
</td>
<td class="table-td" v-if="infoShow.cf_user">
<div class="input-group">
<div class="input-group-addon">分销来源:</div>
{{infoShow.cf_user}}
</div>
</td>
</tr>
<tr>
<td>
+6 -1
View File
@@ -29,6 +29,7 @@ class Qyrobot{
$this->ci->load->model('area_model');
$this->ci->load->model('auto/auto_brand_model');
$this->ci->load->model('auto/auto_series_model');
$this->ci->load->model('auto/auto_attr_model');
$this->ci->load->model('app/liche/app_liche_orders_model');
$this->ci->load->model('app/liche/app_liche_orders_model');
@@ -66,7 +67,11 @@ class Qyrobot{
}
$brand_row = $this->ci->auto_brand_model->get(['id'=>$order_row['brand_id']],'name');
$series_row = $this->ci->auto_series_model->get(['id'=>$order_row['s_id']],'name');
$car_info = "{$brand_row['name']} {$series_row['name']}";
$attr_arr = [$order_row['v_id'], $order_row['cor_id']];
$attr = $this->ci->auto_attr_model->get_map_by_ids($attr_arr, 'id,title');
$v_name = isset($attr[$order_row['v_id']]) ? $attr[$order_row['v_id']][0]['title'] : '';
$cor_name = isset($attr[$order_row['cor_id']]) ? $attr[$order_row['cor_id']][0]['title'] : '';
$car_info = "{$brand_row['name']} {$series_row['name']} {$v_name} {$cor_name}";
$where = [
'type' => 1,