|
@@ -83,13 +83,9 @@
|
|
|
>分配</a>
|
|
|
</div>
|
|
|
<div class="layui-btn-group">
|
|
|
- <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="sign_repeat"
|
|
|
+ <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="sign_repeat"
|
|
|
>标记撞单</a>
|
|
|
</div>
|
|
|
- <div class="layui-btn-group">
|
|
|
- <a class="layui-btn layui-btn-default layui-btn-xs" lay-event="repeat_report"
|
|
|
- >撞单跟踪记录</a>
|
|
|
- </div>
|
|
|
</script>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -116,33 +112,20 @@
|
|
|
, {field: 'gender_text', title: "性别", width: 70}
|
|
|
, {field: 'tel', title: '电话', width: 120}
|
|
|
, {field: 'project_text', title: '项目', width: 200}
|
|
|
- , {field: 'create_time', title: '报备时间', width: 150}
|
|
|
- , {field: 'create_user_text', title: '报备人', width: 100}
|
|
|
- , {field: 'hitBill_customer', title: '撞单客户', width: 100}
|
|
|
- , {field: 'hitBill_project_text', title: '撞单项目', width: 100}
|
|
|
- , {field: 'stalk_user', title: '撞单跟踪人', width: 100}
|
|
|
- , {field: 'stalk_process', title: '撞单进度', width: 100}
|
|
|
- , {field: 'last_stalk', title: '最后跟踪', width: 200}
|
|
|
- , {width: 240, align: 'center', fixed: 'right', toolbar: '#report_check-operate-bar'}
|
|
|
+ , {field: 'create_time_f', title: '报备时间', width: 160}
|
|
|
+ , {field: 'create_user_text', title: '报备人', width: 120}
|
|
|
+ , {field: 'hit_customer', title: '撞单客户', width: 100}
|
|
|
+ , {field: 'hit_project', title: '撞单项目', width: 100}
|
|
|
+ , {field: 'hit_track_user', title: '撞单跟踪人', width: 100}
|
|
|
+ , {field: 'hit_store', title: '撞单门店', width: 100}
|
|
|
+ , {field: 'hit_process', title: '撞单进度', width: 100}
|
|
|
+ , {field: 'hit_last_stalk', title: '最后跟踪时间', width: 150}
|
|
|
+ , {width: 150, align: 'center', fixed: 'right', toolbar: '#report_check-operate-bar'}
|
|
|
]]
|
|
|
, page: true
|
|
|
, height: 'full-108'
|
|
|
});
|
|
|
|
|
|
- // admin.req({
|
|
|
- // url: '/report_check/dict/',
|
|
|
- // done: function (res) {
|
|
|
- // var data = res.data.source;
|
|
|
- // var source_node = $('#id_source');
|
|
|
- // for (var i in data) {
|
|
|
- // var pid = data[i].id;
|
|
|
- // var name = data[i].name;
|
|
|
- // source_node.append("<option value='" + pid + "'>" + name + "</option>");
|
|
|
- // }
|
|
|
- // form.render('select');
|
|
|
- // }
|
|
|
- // });
|
|
|
-
|
|
|
//监听工具条
|
|
|
table.on('tool(report_check-operate)', function (obj) {
|
|
|
var data = obj.data;
|
|
@@ -163,14 +146,24 @@
|
|
|
btn2: function (index, layero) {
|
|
|
layer.close(index);//关闭当前按钮
|
|
|
},
|
|
|
- content: 'divide.html?id=' + data.id
|
|
|
+ content: 'divide.html?id=' + data.id + '&hit_customer=' + data.hit_customer
|
|
|
});
|
|
|
}
|
|
|
else if (obj.event === 'sign_repeat') {
|
|
|
-
|
|
|
- }
|
|
|
- else if (obj.event === 'repeat_report') {
|
|
|
-
|
|
|
+ layer.confirm('确定要标记为撞单客户吗?', function (index) {
|
|
|
+ layer.close(index);
|
|
|
+ layui.admin.req({
|
|
|
+ notice: true
|
|
|
+ , url: '/customer/report_customer/' + data.id + '/sign_hit/'
|
|
|
+ , type: 'post'
|
|
|
+ , done: function (res) {
|
|
|
+ if (res.code === 0) {
|
|
|
+ layer.msg("标记成功!", {icon: 1})
|
|
|
+ }
|
|
|
+ table.reload('report_check_datagrid', {});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -189,7 +182,7 @@
|
|
|
if (checkStatus.data.length === 0) {
|
|
|
layer.msg('请至少选择一条记录');
|
|
|
return
|
|
|
- };
|
|
|
+ }
|
|
|
let divide_id = checkStatus.data.map(item => {
|
|
|
return item.id
|
|
|
}).join(",");
|