add file open

This commit is contained in:
2020-08-07 22:40:04 +08:00
parent c1e3f992aa
commit f9bedd2c62
115 changed files with 9835 additions and 1096 deletions

View File

@@ -1,4 +1,9 @@
---@type IDBasePanel
---@class _ParamTRPNewFollow
---@field cust
---@field followData
---@field bookingData
---@type IDBasePanel
local TRBasePanel = require("ui.panel.TRBasePanel")
---@class TRPNewFollow:TRBasePanel 邮件列表
local TRPNewFollow = class("TRPNewFollow", TRBasePanel)
@@ -111,14 +116,17 @@ end
-- 设置数据
---@param paras _ParamTRPNewFollow
function TRPNewFollow:setData(paras)
if paras.recordingTime then
self.mdata = paras
self.cust = paras.cust
self.mdata = paras.followData
self.bookingData = paras.bookingData
if self.mdata and self.mdata.recordingTime then
self.isNewFollow = false
else
self.mdata = {}
self.mdata.custId = paras.custId
self.mdata.taskId = paras.taskId
self.mdata.custName = paras.custName
self.mdata.custId = self.cust.custId
self.mdata.taskId = self.cust.taskId
self.mdata.custName = self.cust.custName
self.mdata.opportunity = "0"
self.mdata.followUpType = "0"
@@ -244,12 +252,19 @@ function TRPNewFollow:setEventDelegate()
return
end
self.mdata = uiobjs.DetailFromRoot:getValue(self.mdata, true)
if self.bookingData then
self.mdata.bookingId = self.bookingData.bookingId
end
showHotWheel()
NetProto.send.create_followUp_record(
self.mdata,
function(content)
hideHotWheel()
if content.success then
if self.bookingData then
-- 刷新预约的状态
self.bookingData.bookingDone = "1"
end
MyUtl.toastS("保存成功")
hideTopPanel(self.csSelf)
end
@@ -267,12 +282,14 @@ function TRPNewFollow:setEventDelegate()
hideHotWheel()
if content.success then
local cust = content.result
---@type _ParamTRPCustDetail
local param = {}
param.cust = cust
param.bookingData = self.mdata
param.needShowMore = false
if cust then
getPanelAsy(
"PanelCustDetailSimple",
onLoadedPanelTT,
{cust = cust, isShowButtonGet = false}
)
getPanelAsy("PanelCustDetail", onLoadedPanelTF, param)
end
end
end