userslog list_users link to customer

This commit is contained in:
qianhy
2023-02-28 16:03:13 +08:00
parent ce150e2e78
commit 4ca0013968
3 changed files with 33 additions and 6 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ class Userslog extends HD_Controller
$uname = '';
$map_sale[$v['sales_id']] && $uname = $map_sale[$v['sales_id']];
$follows = $v['t_follows'] + $v['h_follows'] + $v['w_follows'];
$temp = ['uname' => $uname, 'follows' => $follows, 't_follows' => $v['t_follows']
$temp = ['id'=>$v['id'], 'uname' => $uname, 'follows' => $follows, 't_follows' => $v['t_follows']
, 'h_follows' => $v['h_follows'], 'w_follows' => $v['w_follows'], 't_day' => $v['t_day']];
$lists[] = $temp;
}
+8
View File
@@ -257,6 +257,14 @@ class Customer extends HD_Controller
$where["id"] = -1;
}
}
// 指定顾问的回访客户,通过 vsid + vdststus 时间
if ($vsid = $params['vsid']){
$vdststus = $params['vdststus'] ? intval($params['vdststus']) : 0;
$vdststus_parm = $vdststus ? " and lc_vd.status = {$vdststus}" : "";
$where["id in(select lc_vd.c_id from lc_receiver_customer_visit_data lc_vd join lc_receiver_customer_visit_sales lc_vs on lc_vd.biz_id = lc_vs.biz_id and lc_vd.sales_id = lc_vs.sales_id and lc_vd.t_day = lc_vs.t_day and lc_vs.id = {$vsid} {$vdststus_parm})"] = null;
}
return $where;
}
@@ -22,7 +22,7 @@
</table>
<div class="coms-table-wrap mt10">
<form id="vue-app" class=" form-search coms-table-hd clearfix no-border" onsubmit="return false"
action="app/licheb/userslog">
action="/app/licheb/userslog/lists_users">
<input type="hidden" name="tab" v-model="params.tab"/>
<input type="hidden" name="biz_id" v-model="params.biz_id"/>
<div class="am-form am-form-horizontal">
@@ -81,10 +81,29 @@
foreach ($lists as $v) { ?>
<tr>
<td><?= $v['uname'] ?></td>
<td><?= $v['follows'] ?></td>
<td><?= $v['h_follows'] ?></td>
<td><?= $v['t_follows'] ?></td>
<td><?= $v['w_follows'] ?></td>
<? if($v['follows'] > 0) {?>
<td><a href="#/receiver/customer?vsid=<?= $v['id'] ?>&vdststus=0"><?= $v['follows'] ?></a></td>
<?}else{?>
<td><?= $v['follows'] ?></td>
<?}?>
<? if($v['follows'] > 0) {?>
<td><a href="#/receiver/customer?vsid=<?= $v['id'] ?>&vdststus=2"><?= $v['h_follows'] ?></a></td>
<?}else{?>
<td><?= $v['h_follows'] ?></td>
<?}?>
<? if($v['follows'] > 0) {?>
<td><a href="#/receiver/customer?vsid=<?= $v['id'] ?>&vdststus=1"><?= $v['t_follows'] ?></a></td>
<?}else{?>
<td><?= $v['t_follows'] ?></td>
<?}?>
<? if($v['follows'] > 0) {?>
<td><a href="#/receiver/customer?vsid=<?= $v['id'] ?>&vdststus=3"><?= $v['w_follows'] ?></a></td>
<?}else{?>
<td><?= $v['w_follows'] ?></td>
<?}?>
<td><?= $v['t_day'] ?></td>
</tr>
<? }