This commit is contained in:
2020-08-17 11:13:33 +08:00
parent 19e730574b
commit 21eb68aeab
93 changed files with 6713 additions and 143 deletions

View File

@@ -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