提交 e52f6691 编写于 作者: L luojing

crm,前端添加未转化线索的搜索与展现

上级 18a5f300
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
{ {
"name": "下属负责的线索" "name": "下属负责的线索"
}, },
{
"name": "未转化的线索"
},
{ {
"name": "已转化的线索" "name": "已转化的线索"
}, },
......
...@@ -210,6 +210,9 @@ MWF.xApplication.CRM.Actions.RestActions = new Class({ ...@@ -210,6 +210,9 @@ MWF.xApplication.CRM.Actions.RestActions = new Class({
ListTransfer: function(page, size, filterData, success,failure, async){ ListTransfer: function(page, size, filterData, success,failure, async){
this.action.invoke({"name": "ListTransfer","parameter": {"page": page , "size" : size }, "data": filterData, "async": async, "success": success, "failure": failure}); this.action.invoke({"name": "ListTransfer","parameter": {"page": page , "size" : size }, "data": filterData, "async": async, "success": success, "failure": failure});
}, },
ListNoTransfer: function(page, size, filterData, success,failure, async){
this.action.invoke({"name": "ListNoTransfer","parameter": {"page": page , "size" : size }, "data": filterData, "async": async, "success": success, "failure": failure});
},
ListAllMy: function(page, size, filterData, success,failure, async){ ListAllMy: function(page, size, filterData, success,failure, async){
this.action.invoke({"name": "ListAllMy","parameter": {"page": page , "size" : size }, "data": filterData, "async": async, "success": success, "failure": failure}); this.action.invoke({"name": "ListAllMy","parameter": {"page": page , "size" : size }, "data": filterData, "async": async, "success": success, "failure": failure});
}, },
......
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
"ListNestedSubPerson":{"uri":"/jaxrs/leads/listsub/page/{page}/size/{size}","method":"PUT"}, "ListNestedSubPerson":{"uri":"/jaxrs/leads/listsub/page/{page}/size/{size}","method":"PUT"},
"ListMyDuty":{"uri":"/jaxrs/leads/listmyduty/page/{page}/size/{size}","method":"PUT"}, "ListMyDuty":{"uri":"/jaxrs/leads/listmyduty/page/{page}/size/{size}","method":"PUT"},
"ListTransfer":{"uri":"/jaxrs/leads/listmyhastransform/page/{page}/size/{size}","method":"PUT"}, "ListTransfer":{"uri":"/jaxrs/leads/listmyhastransform/page/{page}/size/{size}","method":"PUT"},
"ListNoTransfer":{"uri":"/jaxrs/leads/listmynotransform/page/{page}/size/{size}","method":"PUT"},
"ListAllMy":{"uri":"/jaxrs/leads/listallmy/page/{page}/size/{size}","method":"PUT"}, "ListAllMy":{"uri":"/jaxrs/leads/listallmy/page/{page}/size/{size}","method":"PUT"},
"deleteClue":{"uri":"/jaxrs/leads/{leadsid}","method":"DELETE"}, "deleteClue":{"uri":"/jaxrs/leads/{leadsid}","method":"DELETE"},
......
...@@ -300,8 +300,14 @@ MWF.xApplication.CRM.Clue.View = new Class({ ...@@ -300,8 +300,14 @@ MWF.xApplication.CRM.Clue.View = new Class({
if (callback)callback(json); if (callback)callback(json);
}.bind(this)); }.bind(this));
} }
if(searchType=="未转化的线索"){
this.actions.ListNoTransfer(page, count, filter, function (json) {
if (callback)callback(json);
}.bind(this));
}
if(searchType=="已转化的线索"){ if(searchType=="已转化的线索"){
this.actions.ListTransfer(page, count, filter, function (json) { this.actions.ListTransfer(page, count, filter, function (json) {
debugger
if (callback)callback(json); if (callback)callback(json);
}.bind(this)); }.bind(this));
} }
......
...@@ -520,7 +520,7 @@ MWF.xApplication.CRM.LP = { ...@@ -520,7 +520,7 @@ MWF.xApplication.CRM.LP = {
"field1":{ "field1":{
"field":"name", "field":"name",
"title":"线索名称", "title":"线索名称",
"width":165, "width":200,
"fixed":"left", "fixed":"left",
"resize": true, "resize": true,
"align": 'left', "align": 'left',
...@@ -530,13 +530,13 @@ MWF.xApplication.CRM.LP = { ...@@ -530,13 +530,13 @@ MWF.xApplication.CRM.LP = {
"field2":{ "field2":{
"field":"source", "field":"source",
"title":"来源", "title":"来源",
"width":165, "width":130,
"align": 'left' "align": 'left'
}, },
"field3":{ "field3":{
"field":"telephone", "field":"telephone",
"title":"电话", "title":"电话",
"minWidth":165, "minWidth":130,
"resize":true, "resize":true,
"align": 'left', "align": 'left',
"sort":true "sort":true
...@@ -552,29 +552,38 @@ MWF.xApplication.CRM.LP = { ...@@ -552,29 +552,38 @@ MWF.xApplication.CRM.LP = {
"field5":{ "field5":{
"field":"owneruser", "field":"owneruser",
"title":"负责人", "title":"负责人",
"minWidth":120, "minWidth":160,
"resize":true, "resize":true,
"align": 'left', "align": 'left',
"sort":true "sort":true
}, },
"field55":{
"field":"istransform",
"title":"是否已转化",
"width":160,
"resize": true,
"align": 'left',
"sort":true,
"formatter" :function (v, data, index) {if(v=="1"){return "已转化"}else{return "未转化"};}
},
"field6":{ "field6":{
"field":"cellphone", "field":"cellphone",
"title":"手机", "title":"手机",
"width":165, "width":200,
"resize":true, "resize":true,
"align": 'left' "align": 'left'
}, },
"field7":{ "field7":{
"field":"industry", "field":"industry",
"title":"客户类型", "title":"客户类型",
"width":120, "width":200,
"align": 'left', "align": 'left',
"resize":true "resize":true
}, },
"field8":{ "field8":{
"field":"level", "field":"level",
"title":"客户级别", "title":"客户级别",
"width":120, "width":200,
"resize":true, "resize":true,
"align": 'left' "align": 'left'
}, },
...@@ -582,12 +591,12 @@ MWF.xApplication.CRM.LP = { ...@@ -582,12 +591,12 @@ MWF.xApplication.CRM.LP = {
"field":"address", "field":"address",
"title":"地址", "title":"地址",
"align": 'left', "align": 'left',
"width":165 "width":200
}, },
"field10":{ "field10":{
"field":"nexttime", "field":"nexttime",
"title":"下次联系时间", "title":"下次联系时间",
"width":160, "width":200,
"align": 'left', "align": 'left',
"sort":true "sort":true
}, },
...@@ -595,7 +604,7 @@ MWF.xApplication.CRM.LP = { ...@@ -595,7 +604,7 @@ MWF.xApplication.CRM.LP = {
"field":"remark", "field":"remark",
"title":"备注", "title":"备注",
"align": 'left', "align": 'left',
"width":165 "width":200
} }
/*"field10":{ /*"field10":{
"field":"opts", "field":"opts",
...@@ -625,6 +634,7 @@ MWF.xApplication.CRM.LP = { ...@@ -625,6 +634,7 @@ MWF.xApplication.CRM.LP = {
"items":[ "items":[
{"title":"我负责的线索"}, {"title":"我负责的线索"},
{"title":"下属的线索"}, {"title":"下属的线索"},
{"title":"未转化的线索"},
{"title":"已转化的线索"}, {"title":"已转化的线索"},
{"title":"全部线索"} {"title":"全部线索"}
], ],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册