|
@@ -101,21 +101,22 @@
|
|
|
|
|
|
table.render({
|
|
|
elem: '#customer_datagrid'
|
|
|
- , url: '/api/check_list.json'
|
|
|
+ , url: '/customer/review/'
|
|
|
, cols: [[
|
|
|
{field: 'name', title: '姓名', width: 110}
|
|
|
, {field: 'tel', title: '电话', width: 120}
|
|
|
, {field: 'address', title: '地址', width: 200}
|
|
|
- , {field: 'project', title: '项目', width: 150}
|
|
|
+ , {field: 'project_text', title: '项目', width: 150}
|
|
|
, {field: 'village', title: '小区', width: 150}
|
|
|
- , {field: 'follow_user', title: '跟踪人', width: 110}
|
|
|
- , {field: 'report_content', title: '报告内容', width: 200}
|
|
|
- , {field: 'isSupport', title: '支援或放弃', width: 110}
|
|
|
- , {field: 'isAbandon', title: '是否放弃', width: 100}
|
|
|
- , {field: 'check_status', title: '审核状态', width: 110}
|
|
|
- , {field: 'check_user', title: '审核人员', width: 110}
|
|
|
- , {field: 'check_written', title: '审核批示', width: 100}
|
|
|
- , {field: 'check_time', title: '审核时间', width: 180}
|
|
|
+ , {field: 'description', title: '回访情况', width: 200}
|
|
|
+ , {field: 'instruction', title: '申请支援或放弃', width: 110}
|
|
|
+ , {field: 'is_giveup_text', title: '是否放弃', width: 100}
|
|
|
+ , {field: 'check_status_text', title: '审核状态', width: 110}
|
|
|
+ , {field: 'create_user_text', title: '审核人', width: 110}
|
|
|
+ , {field: 'check_comment', title: '审核批示', width: 100}
|
|
|
+ , {field: 'check_time_f', title: '审核时间', width: 180}
|
|
|
+ , {field: 'track_user_text', title: '跟踪人', width: 110}
|
|
|
+ , {field: 'next_time_f', title: '下次回访时间', width: 180}
|
|
|
, {width: 80, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
|
|
|
]]
|
|
|
, page: true
|
|
@@ -125,6 +126,10 @@
|
|
|
table.on('tool(customer-operate)', function (obj) {
|
|
|
var data = obj.data;
|
|
|
if (obj.event === 'customer_check') {
|
|
|
+ if(data.check_status !== 0){
|
|
|
+ layer.msg("当前记录已审核", {icon: 2});
|
|
|
+ return
|
|
|
+ }
|
|
|
table.editdata = data;
|
|
|
layer.open({
|
|
|
type: 2,
|
|
@@ -133,8 +138,11 @@
|
|
|
btn: ['保存', '取消'],
|
|
|
yes: function (index, dom) {
|
|
|
layui.onSubmitChild = function (res) {
|
|
|
+ if(res.code === 0){
|
|
|
+ layer.msg("审核成功!", {icon: 1})
|
|
|
+ }
|
|
|
layer.close(index);
|
|
|
- table.reload('agent_datagrid', {});
|
|
|
+ table.reload('customer_datagrid', {});
|
|
|
};
|
|
|
layui.submitChild();
|
|
|
},
|