ios
This commit is contained in:
@@ -73,7 +73,7 @@ function TRPNewOrder:initFiledsAttr()
|
||||
|
||||
attr = {}
|
||||
attr.attrName = "客户号码"
|
||||
attr.id = "phoneNo"
|
||||
attr.id = "_phoneNo"
|
||||
attr.attrType = DBCust.FieldType.text
|
||||
attr.ifMust = 1
|
||||
attr.donotJoinKey = true
|
||||
@@ -129,6 +129,7 @@ function TRPNewOrder:setData(paras)
|
||||
if paras and paras.orderId and paras.orderId > 0 then
|
||||
self.isNewOrder = false
|
||||
self.mdata = paras
|
||||
self.mdata._phoneNo = MyUtl.hidePhone(self.mdata.phoneNo)
|
||||
|
||||
if type(self.mdata.attrJson) == "string" then
|
||||
self.mdata.attrJson = json.decode(self.mdata.attrJson)
|
||||
@@ -324,15 +325,19 @@ function TRPNewOrder:setElementMode(el)
|
||||
local boxcollider = el:GetComponent("BoxCollider")
|
||||
local ButtonReset = getCC(el.transform, "ButtonReset", "MyInputReset")
|
||||
|
||||
if ButtonReset then
|
||||
ButtonReset.disabled = (not self.isNewOrder)
|
||||
end
|
||||
|
||||
if el.jsonKey == "taskId" or el.jsonKey == "phoneNo" then
|
||||
boxcollider.enabled = false
|
||||
if ButtonReset then
|
||||
ButtonReset.disabled = true
|
||||
end
|
||||
else
|
||||
boxcollider.enabled = true
|
||||
end
|
||||
|
||||
if ButtonReset then
|
||||
ButtonReset.disabled = (not self.isNewOrder)
|
||||
end
|
||||
if input then
|
||||
if isPopList or isPopCheckbox then
|
||||
input.enabled = false
|
||||
@@ -509,9 +514,14 @@ function TRPNewOrder:setEventDelegate()
|
||||
return
|
||||
end
|
||||
local order = uiobjs.DetailFromRoot:getValue(true)
|
||||
if self.cust then
|
||||
order.phoneNo = self.cust.phoneNo
|
||||
end
|
||||
order.custId = self.cust.custId
|
||||
local attrJson = uiobjs.ExtendFormRoot:getValue(true)
|
||||
order.attrJson = attrJson
|
||||
if uiobjs.ExtendFormRoot.gameObject.activeInHierarchy then
|
||||
local attrJson = uiobjs.ExtendFormRoot:getValue(true)
|
||||
order.attrJson = attrJson
|
||||
end
|
||||
if uiobjs.StepFormRoot.gameObject.activeInHierarchy then
|
||||
order = uiobjs.StepFormRoot:getValue(order, true)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user