2020-07-08
This commit is contained in:
@@ -232,7 +232,8 @@ NetProto.cmds = {
|
||||
custtype_report = "custtype_report", -- 客户类型分布
|
||||
order_report = "order_report", -- 客户类型分布
|
||||
target_report = "target_report", -- 客户类型分布
|
||||
update_customer = "update_customer" -- 更新客户信息
|
||||
update_customer = "update_customer", -- 更新客户信息
|
||||
save_customer = "save_customer", -- 新建客户
|
||||
}
|
||||
---------------------------------------------------------------------------------------
|
||||
---------------------------------------------------------------------------------------
|
||||
@@ -381,7 +382,7 @@ NetProto.sendSocket = function(content, callback, timeOutSec)
|
||||
return
|
||||
end
|
||||
content.operator = NetProto.loginNo
|
||||
content.loginno = content.loginno or NetProto.loginNo
|
||||
content.loginNo = content.loginNo or NetProto.loginNo
|
||||
content.companyId = NetProto.comanyId
|
||||
content.callbackId = setCallback(callback, content, timeOutSec)
|
||||
local contentStr = json.encode(content)
|
||||
@@ -437,7 +438,7 @@ end
|
||||
NetProto.send.person_view_query = function(callback, timeOutSec)
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.person_view_query
|
||||
content.loginno = NetProto.loginNo
|
||||
content.loginNo = NetProto.loginNo
|
||||
content.groupId = NetProto.groupId
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
@@ -455,8 +456,8 @@ NetProto.send.query_cust_calllog = function(phoneNo, loginNo, current_page, call
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.query_cust_calllog
|
||||
content.groupId = NetProto.groupId
|
||||
content.loginno = loginNo or NetProto.loginNo
|
||||
content.phone = phoneNo
|
||||
content.loginNo = loginNo or NetProto.loginNo
|
||||
content.phoneNo = phoneNo
|
||||
content.current_page = current_page or 1
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
@@ -465,7 +466,7 @@ NetProto.send.sales_view_query = function(loginNo, callback, timeOutSec)
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.sales_view_query
|
||||
content.groupId = NetProto.groupId
|
||||
content.loginno = loginNo or NetProto.loginNo
|
||||
content.loginNo = loginNo or NetProto.loginNo
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
|
||||
@@ -474,7 +475,7 @@ NetProto.send.custtype_report = function(loginNo, callback, timeOutSec)
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.custtype_report
|
||||
content.groupId = NetProto.groupId
|
||||
content.loginno = loginNo or NetProto.loginNo
|
||||
content.loginNo = loginNo or NetProto.loginNo
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
|
||||
@@ -483,7 +484,7 @@ NetProto.send.order_report = function(loginNo, callback, timeOutSec)
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.order_report
|
||||
content.groupId = NetProto.groupId
|
||||
content.loginno = loginNo or NetProto.loginNo
|
||||
content.loginNo = loginNo or NetProto.loginNo
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
|
||||
@@ -492,7 +493,7 @@ NetProto.send.target_report = function(loginNo, callback, timeOutSec)
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.target_report
|
||||
content.groupId = NetProto.groupId
|
||||
content.loginno = loginNo or NetProto.loginNo
|
||||
content.loginNo = loginNo or NetProto.loginNo
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
|
||||
@@ -504,5 +505,14 @@ NetProto.send.update_customer = function(customer, callback, timeOutSec)
|
||||
content.customer = customer
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
|
||||
NetProto.send.save_customer = function(customer, callback, timeOutSec)
|
||||
local content = {}
|
||||
content.action = NetProto.cmds.save_customer
|
||||
content.loginNo = NetProto.loginNo
|
||||
content.groupId = NetProto.groupId
|
||||
content.customer = customer
|
||||
NetProto.sendSocket(content, callback, timeOutSec)
|
||||
end
|
||||
------------------------------------------------------
|
||||
return NetProto
|
||||
|
||||
Reference in New Issue
Block a user