This commit is contained in:
2020-08-05 20:46:00 +08:00
parent 9a943f7598
commit ea021d6d73
74 changed files with 1263 additions and 1041 deletions

View File

@@ -32,7 +32,12 @@ function _cell.show(go, data)
uiobjs.boxCollider.size = Vector3(mData.width, 150, 0)
uiobjs.Background.spriteName = mData.Background
uiobjs.Checkmark.spriteName = mData.Checkmark
_cell.setReddotNum(0)
if mData.id == 1 then
local unreadNum = DBMessage.getUnreadNum(DBMessage.MsgType.Sys)
_cell.setReddotNum(unreadNum)
else
_cell.setReddotNum(0)
end
end
function _cell.setReddotNum(num)

View File

@@ -106,13 +106,11 @@ end
-- 网络请求的回调cmd指命succ成功失败msg消息paras服务器下行数据
function CSPMsg.procNetwork(cmd, succ, msg, paras)
--[[
if(succ == 1) then
if(cmd == "xxx") then
-- TODO:
end
if (succ == NetSuccess) then
if cmd == NetProto.cmds.readNotice then
CSPMsg.setList()
end
--]]
end
end
-- 处理ui上的事件例如点击等

View File

@@ -46,17 +46,7 @@ function TRPFollowList:initFilters()
d = {}
d.title = "跟进类型"
d.key = DBCust.FilterGroup.followUpTypeList
d.key2 = "followTypeUp"
d.list = DBCust.getFilter(DBCust.FilterGroup.followUpTypeList)
if d.list and #(d.list) > 0 then
-- table.insert(d.list, 1, {name = "全部", value = -1})
table.insert(self.filters, d)
end
d = {}
d.title = "跟进类型"
d.key = DBCust.FilterGroup.followUpTypeList
d.key2 = "followTypeUp"
d.key2 = "followUpType"
d.list = DBCust.getFilter(DBCust.FilterGroup.followUpTypeList)
if d.list and #(d.list) > 0 then
-- table.insert(d.list, 1, {name = "全部", value = -1})

View File

@@ -155,10 +155,14 @@ function TRPNewFollow:showBaseFields()
-- 工单模板
filedInfor = {}
filedInfor.attr = v
if self.isNewFollow then
filedInfor.showMode = _FieldMode.inputOnly
else
if v.id == "custName" then
filedInfor.showMode = _FieldMode.showOnly
else
if self.isNewFollow then
filedInfor.showMode = _FieldMode.inputOnly
else
filedInfor.showMode = _FieldMode.showOnly
end
end
if filedInfor.attr.attrType == DBCust.FieldType.multext then
filedInfor.onMultTextInputChg = self:wrapFunc(self.reposition)

View File

@@ -563,7 +563,7 @@ function TRPNewOrder:setEventDelegate()
order.ifProduct = templateInfor.ifProduct
if uiobjs.gridProjects.gameObject.activeInHierarchy then
if self.selectedProducts == nil or #(self.selectedProducts) <= 0 then
MyUtl.toastW("请添加")
MyUtl.toastW("请添加")
return
end
order.prodJson = self.selectedProducts

View File

@@ -157,9 +157,11 @@ function TRPOceanList:initCell(cell, data)
end
function TRPOceanList:onClickCell(cell, data)
showHotWheel()
NetProto.send.get_customerById(
data.id,
function(content)
hideHotWheel()
if content.success then
local cust = content.result
if cust then

View File

@@ -27,7 +27,7 @@ function TRPProductDetail:initFiledsAttr()
local attr
self.baseFiledsAttr = {}
attr = {}
attr.attrName = "品名称"
attr.attrName = "品名称"
attr.id = "name"
attr.attrType = DBCust.FieldType.text
attr.ifMust = 0
@@ -35,7 +35,7 @@ function TRPProductDetail:initFiledsAttr()
table.insert(self.baseFiledsAttr, attr)
attr = {}
attr.attrName = "品单价"
attr.attrName = "品单价"
attr.id = "price"
attr.attrType = DBCust.FieldType.text
attr.ifMust = 0
@@ -43,7 +43,7 @@ function TRPProductDetail:initFiledsAttr()
table.insert(self.baseFiledsAttr, attr)
attr = {}
attr.attrName = "品库存"
attr.attrName = "品库存"
attr.id = "num"
attr.attrType = DBCust.FieldType.text
attr.ifMust = 0
@@ -51,7 +51,7 @@ function TRPProductDetail:initFiledsAttr()
table.insert(self.baseFiledsAttr, attr)
attr = {}
attr.attrName = "品类型"
attr.attrName = "品类型"
attr.id = "prodTypeName"
attr.attrType = DBCust.FieldType.text
attr.ifMust = 0
@@ -59,7 +59,7 @@ function TRPProductDetail:initFiledsAttr()
table.insert(self.baseFiledsAttr, attr)
attr = {}
attr.attrName = "品描述"
attr.attrName = "品描述"
attr.id = "productDesc"
attr.attrType = DBCust.FieldType.multext
attr.ifMust = 0

View File

@@ -61,7 +61,11 @@ function TRPSelectProduct:appList(list)
end
function TRPSelectProduct:initCell(cell, data)
cell:init(data, nil)
cell:init(data, self:wrapFunc(self.onClickCell))
end
function TRPSelectProduct:onClickCell(cell, data)
getPanelAsy("PanelProductDetail", onLoadedPanelTT, data.data)
end
function TRPSelectProduct:onEndList(tail)