modify
This commit is contained in:
@@ -536,7 +536,7 @@ function TRPCustDetail:procNetwork(cmd, succ, msg, paras)
|
||||
uiobjs.OrderRoot:appendList(result.data)
|
||||
end
|
||||
end
|
||||
elseif cmd == NetProto.cmds.update_customer then
|
||||
elseif cmd == NetProto.cmds.update_customer or cmd == NetProto.cmds.create_followUp_record then
|
||||
if self.currToggle == 1 then
|
||||
self:showDetail()
|
||||
uiobjs.Head:setValue(self.mdata)
|
||||
@@ -548,6 +548,14 @@ function TRPCustDetail:procNetwork(cmd, succ, msg, paras)
|
||||
if self.currToggle == 3 then
|
||||
self:showOrders()
|
||||
end
|
||||
elseif cmd == NetProto.cmds.get_customerById then
|
||||
if self.mdata.custId == paras.result.custId then
|
||||
self.mdata = paras.result
|
||||
if self.currToggle == 1 then
|
||||
self:showDetail()
|
||||
uiobjs.Head:setValue(self.mdata)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user