This commit is contained in:
2025-03-27 19:45:35 +08:00
parent ab46d517a0
commit 04cb00948d
23 changed files with 343 additions and 65 deletions

View File

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'customer_name', title: __('Customer_name'), operate: 'LIKE'},
{field: 'name', title: __('Customer_name'), operate: 'LIKE'},
{field: 'age', title: __('Age')},
{field: 'phone', title: __('Phone'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'rel_wx', title: __('Rel_wx'), operate: 'LIKE'},
@@ -75,21 +75,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
return true;
}
},
{
name: 'setFollwupPlan',
text: __('设置回访计划'),
title: __('设置回访计划'),
classname: 'btn btn-xs btn-danger btn-dialog',
icon: 'fa fa-plus',
url: 'firmcustomerfollowuptimelist/add',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
},
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
},
// {
// name: 'selectSendTime',
// text: __('查看发送时间'),

View File

@@ -2,10 +2,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var Controller = {
index: function () {
let firmcustomer_id = Config.firmcustomer_id;
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'firmcustomerfollowuprecord/index' + location.search,
index_url: 'firmcustomerfollowuprecord/index?firmcustomer_id='+firmcustomer_id + location.search,
add_url: 'firmcustomerfollowuprecord/add',
edit_url: 'firmcustomerfollowuprecord/edit',
del_url: 'firmcustomerfollowuprecord/del',
@@ -56,6 +57,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
// return true;
// }
// },
{
name: 'setFollwupPlan',
text: __('设置回访计划'),
title: __('设置回访计划'),
classname: 'btn btn-xs btn-danger btn-dialog',
icon: 'fa fa-plus',
url: 'firmcustomerfollowuptimelist/add',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
},
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
},
{
name: 'planList',
text: __('计划列表'),

View File

@@ -2,10 +2,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var Controller = {
index: function () {
let record_id = Config.record_id;
let index_url = '';
if(location.search){
index_url = location.search+'&record_id='+record_id;
}else{
index_url = '?record_id='+record_id+location.search;
}
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'firmcustomerfollowuptimelist/index' + location.search,
index_url: 'firmcustomerfollowuptimelist/index' + index_url,
add_url: 'firmcustomerfollowuptimelist/add',
edit_url: 'firmcustomerfollowuptimelist/edit',
del_url: 'firmcustomerfollowuptimelist/del',
@@ -25,10 +32,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'day', title: __('Day')},
{field: 'followup_time', title: __('Followup_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'firmcustomerfollowuprecord.name', title: __('Firmcustomerfollowuprecord.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'id', title: __('Id'), operate:false},
{field: 'day', title: __('Day'), operate:false},
{field: 'followup_time', title: __('Followup_time'), operate:false, addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'firmcustomerfollowuprecord.name', title: __('Firmcustomerfollowuprecord.name'), operate: false, table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]