v1.0.50: 碎片处理6项修改 - 1)硬数据板块改名为「硬数据碎片新增与处理」;2)硬数据彻底移除「状态」字段(查看弹窗/数据表status列/列表接口全部删除,已转换以converted_id非空标识,preliminary旧页同步清理);3)硬数据操作列「继续补全」改「手动补全」+新增「AI补全」占位;4)软数据操作列「补全」改「手动补全」+新增「AI补全」占位;5)硬数据「废弃」改为从preliminary_data彻底硬删除;6)人员性别枚举收敛为男/女/未知(迁移归并其他/保密)
This commit is contained in:
@@ -19,10 +19,6 @@ $(function () {
|
||||
'<div class="card">' +
|
||||
' <div class="toolbar">' +
|
||||
' <input type="text" data-filter="keyword" placeholder="公司/姓名/电话/邮箱关键词">' +
|
||||
' <select data-filter="status"><option value="">全部状态</option>' +
|
||||
' <option value="待处理">待处理</option><option value="待分配">待分配</option>' +
|
||||
' <option value="处理中">处理中</option><option value="已转换">已转换</option>' +
|
||||
' <option value="已废弃">已废弃</option><option value="已拒收">已拒收</option></select>' +
|
||||
' <select data-filter="source_type"><option value="">全部类型</option>' +
|
||||
' <option value="company">公司</option><option value="person">人员</option>' +
|
||||
' <option value="product">产品</option><option value="need">需求</option><option value="mixed">混合</option></select>' +
|
||||
@@ -32,7 +28,7 @@ $(function () {
|
||||
' <button class="btn" id="btn-reset">重置</button>' +
|
||||
' </div>' +
|
||||
' <div class="table-wrap"><table class="grid">' +
|
||||
' <thead><tr><th>ID</th><th>类型</th><th>公司</th><th>姓名</th><th>电话</th><th>邮箱</th><th>意向品类</th><th>描述</th><th>状态</th><th>跟进人</th><th>录入时间</th></tr></thead>' +
|
||||
' <thead><tr><th>ID</th><th>类型</th><th>公司</th><th>姓名</th><th>电话</th><th>邮箱</th><th>跟进人</th><th>录入时间</th></tr></thead>' +
|
||||
' <tbody id="pre-tbody"></tbody>' +
|
||||
' </table></div>' +
|
||||
' <div class="pagination" id="pagination"></div>' +
|
||||
@@ -42,16 +38,9 @@ $(function () {
|
||||
|
||||
function loadStats() {
|
||||
httpGet('preliminary/stats.php').then(function (d) {
|
||||
var statusMap = d.status || {};
|
||||
var html = '';
|
||||
(d.statuses || []).forEach(function (s) {
|
||||
var cnt = statusMap[s] || 0;
|
||||
html += '<div class="stat-card c-' + ['blue', 'orange', 'teal', 'green', 'red', 'gray'][(d.statuses || []).indexOf(s) % 6] + '">' +
|
||||
'<div class="num">' + cnt + '</div><div class="label">' + escHtml(s) + '</div></div>';
|
||||
});
|
||||
$('#stat-cards').html(
|
||||
'<div class="stat-card c-blue"><div class="num">' + d.total + '</div><div class="label">碎片总数</div></div>' +
|
||||
'<div class="stat-card c-green"><div class="num">' + d.today + '</div><div class="label">今日新增</div></div>' + html
|
||||
'<div class="stat-card c-green"><div class="num">' + d.today + '</div><div class="label">今日新增</div></div>'
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -66,7 +55,6 @@ $(function () {
|
||||
var rows = data.list || [];
|
||||
var html = '';
|
||||
rows.forEach(function (r) {
|
||||
var statusCls = { '待处理': 'tag-orange', '待分配': 'tag', '处理中': 'tag', '已转换': 'tag-green', '已废弃': 'tag-gray', '已拒收': 'tag-red' }[r.status] || 'tag';
|
||||
html += '<tr>' +
|
||||
'<td>' + r.id + '</td>' +
|
||||
'<td>' + escHtml(r.source_type || '-') + '</td>' +
|
||||
@@ -74,14 +62,11 @@ $(function () {
|
||||
'<td>' + escHtml(r.person_name || '-') + '</td>' +
|
||||
'<td>' + escHtml(r.contact_phone || '-') + '</td>' +
|
||||
'<td>' + escHtml(r.contact_email || '-') + '</td>' +
|
||||
'<td>' + escHtml(r.target_product_category || '-') + '</td>' +
|
||||
'<td title="' + escHtml(r.description || '') + '">' + escHtml((r.description || '-').substring(0, 26)) + '</td>' +
|
||||
'<td><span class="tag ' + statusCls + '">' + escHtml(r.status) + '</span></td>' +
|
||||
'<td>' + escHtml(r.follow_person || '-') + '</td>' +
|
||||
'<td>' + fmtDate(r.created_at) + '</td></tr>';
|
||||
});
|
||||
if (!rows.length) {
|
||||
html = '<tr><td colspan="11" class="empty-tip" style="padding:40px 0;">暂无数据碎片</td></tr>';
|
||||
html = '<tr><td colspan="8" class="empty-tip" style="padding:40px 0;">暂无数据碎片</td></tr>';
|
||||
}
|
||||
$('#pre-tbody').html(html);
|
||||
renderPagination($('#pagination'), data, loadList);
|
||||
|
||||
Reference in New Issue
Block a user