2023-05-15 11:46:15 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<th:block th:include="include :: header('线索列表')" />
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
|
<div class="container-div">
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
|
|
<form id="formId">
|
|
|
|
|
|
<div class="select-list">
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<label>手机号:</label>
|
|
|
|
|
|
<input type="text" name="phone"/>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
2023-12-10 12:03:57 +08:00
|
|
|
|
客服: <select name="saleId" id="saleId">
|
|
|
|
|
|
<option text="请选择" value=""></option>
|
|
|
|
|
|
<option th:each="user:${users}" th:value="${user.userId}"
|
|
|
|
|
|
th:text="${user.userName}"></option>
|
|
|
|
|
|
</select>
|
2023-05-15 11:46:15 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
2023-12-10 12:03:57 +08:00
|
|
|
|
App来源:<select name="remark" th:with="type=${@dict.getType('app_source')}">
|
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
|
|
|
</select>
|
2023-05-15 11:46:15 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
2023-12-10 12:03:57 +08:00
|
|
|
|
状态:<select name="searchStatus" th:with="type=${@dict.getType('follow_status')}">
|
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="select-time">
|
|
|
|
|
|
<label>创建时间: </label>
|
|
|
|
|
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
|
|
|
|
|
<span>-</span>
|
|
|
|
|
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
|
2023-05-15 11:46:15 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:clew:add">
|
|
|
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:clew:edit">
|
|
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:clew:remove">
|
|
|
|
|
|
<i class="fa fa-remove"></i> 删除
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:clew:export">
|
|
|
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
|
<table id="bootstrap-table"></table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
|
var editFlag = [[${@permission.hasPermi('system:clew:edit')}]];
|
|
|
|
|
|
var removeFlag = [[${@permission.hasPermi('system:clew:remove')}]];
|
2023-08-29 17:48:49 +08:00
|
|
|
|
|
|
|
|
|
|
var isAddWx = [[${@dict.getType('is_add_wx')}]];
|
|
|
|
|
|
var isEffective = [[${@dict.getType('is_effective')}]];
|
|
|
|
|
|
var isPlan = [[${@dict.getType('is_plan')}]];
|
|
|
|
|
|
var isDeal = [[${@dict.getType('is_deal')}]];
|
|
|
|
|
|
var customerStatus = [[${@dict.getType('customer_status')}]];
|
|
|
|
|
|
|
2023-05-15 11:46:15 +08:00
|
|
|
|
var prefix = ctx + "system/clew";
|
|
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
|
var options = {
|
|
|
|
|
|
url: prefix + "/list",
|
|
|
|
|
|
createUrl: prefix + "/add",
|
|
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
|
|
removeUrl: prefix + "/remove",
|
|
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
|
|
modalName: "线索",
|
|
|
|
|
|
columns: [{
|
|
|
|
|
|
checkbox: true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'id',
|
|
|
|
|
|
title: '主键',
|
|
|
|
|
|
visible: false
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'phone',
|
|
|
|
|
|
title: '手机号'
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'customerName',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '姓名',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'wxName',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '微信昵称',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'wxAccount',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '微信号',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'debtType',
|
|
|
|
|
|
title: '债务类型'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'debtMoney',
|
|
|
|
|
|
title: '债务金额'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'remark',
|
|
|
|
|
|
title: 'App来源'
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
2023-11-11 10:42:12 +08:00
|
|
|
|
{
|
|
|
|
|
|
field: 'customerRemark',
|
|
|
|
|
|
title: '客户情况备注'
|
|
|
|
|
|
},
|
2023-05-15 11:46:15 +08:00
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'createTime',
|
|
|
|
|
|
title: '创建时间'
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'sourceType',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '推广来源',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'customerStatus',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '客户状态',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(customerStatus, value);
|
|
|
|
|
|
}
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'customerLevel',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '客户评级',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
2023-07-29 10:48:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
field: 'nextTime',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '下次跟进日期',
|
|
|
|
|
|
visible: false
|
2023-07-29 10:48:15 +08:00
|
|
|
|
},
|
2023-05-15 11:46:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
field: 'touchQrcode',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '是否长按识别二维码',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'contactNumber',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '跟进次数',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'isTouch',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '是否触达',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'isAddWx',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '是否加微',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(isAddWx, value);
|
|
|
|
|
|
}
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'isEffective',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '是否有效',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(isEffective, value);
|
|
|
|
|
|
}
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'isPlan',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '是否意向',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(isPlan, value);
|
|
|
|
|
|
}
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'isDeal',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '成交状态',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(isDeal, value);
|
|
|
|
|
|
}
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'provinceName',
|
|
|
|
|
|
title: '省份'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'cityName',
|
|
|
|
|
|
title: '城市'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'contactTime',
|
|
|
|
|
|
title: '方便接电话时间'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'otherPhone',
|
|
|
|
|
|
title: '其他联系方式'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-07-29 10:48:15 +08:00
|
|
|
|
field: 'company',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '广告主',
|
|
|
|
|
|
visible: false
|
2023-07-29 10:48:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2023-08-29 17:48:49 +08:00
|
|
|
|
field: 'saleName',
|
2023-07-29 10:48:15 +08:00
|
|
|
|
title: '销售'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'infoFlow',
|
2023-08-29 17:48:49 +08:00
|
|
|
|
title: '信息流',
|
|
|
|
|
|
visible: false
|
2023-05-15 11:46:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '操作',
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
var actions = [];
|
2023-08-29 17:48:49 +08:00
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="changeUser(\'' + row.id + '\')"><i class="fa fa-remove"></i>分配客服</a>');
|
2023-05-15 11:46:15 +08:00
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
|
return actions.join('');
|
|
|
|
|
|
}
|
|
|
|
|
|
}]
|
|
|
|
|
|
};
|
|
|
|
|
|
$.table.init(options);
|
|
|
|
|
|
});
|
2023-08-29 17:48:49 +08:00
|
|
|
|
|
|
|
|
|
|
/* 选择供应商 */
|
|
|
|
|
|
function changeUser(clewId) {
|
|
|
|
|
|
var url = prefix + '/changeUser/' + clewId;
|
|
|
|
|
|
$.modal.open("选择客服", url, '800', '300');
|
|
|
|
|
|
}
|
2023-05-15 11:46:15 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|