Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
b3a26d71
Commit
b3a26d71
authored
Apr 19, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
萨达是打发斯蒂芬
parent
f3119db8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+26
-9
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b3a26d71
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
b3a26d71
...
@@ -106,6 +106,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -106,6 +106,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
"demo"
:
""
as
Any
,
"demo"
:
""
as
Any
,
"typeid"
:
pphCarTypesArr
[
pph_selectCarType
]
.
type
as
Any
,
"typeid"
:
pphCarTypesArr
[
pph_selectCarType
]
.
type
as
Any
,
"tailplate"
:
0
as
Any
,
"tailplate"
:
0
as
Any
,
"sale_plat"
:
pph_guanlianPingStr
as
Any
,
"order_sn"
:
pph_guanlianDingStr
as
Any
,
"addinfos"
:
infosData
as
Any
"addinfos"
:
infosData
as
Any
]
]
...
@@ -140,7 +142,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -140,7 +142,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
@IBOutlet
weak
var
pph_milelbl
:
UILabel
!
@IBOutlet
weak
var
pph_milelbl
:
UILabel
!
@IBOutlet
weak
var
pph_priceLbl
:
UILabel
!
@IBOutlet
weak
var
pph_priceLbl
:
UILabel
!
var
totalPrice
=
""
var
totalPrice
=
""
func
P_P_H_Adr_VC_Data
(
adrData
:
addPinPinOrder_adrInfo
,
isSend
:
Bool
,
idx
:
Int
)
{
func
P_P_H_Adr_VC_Data
(
adrData
:
addPinPinOrder_adrInfo
,
isSend
:
Bool
,
idx
:
Int
)
{
if
isSend
{
if
isSend
{
if
pph_send_arr
.
count
==
0
{
if
pph_send_arr
.
count
==
0
{
pph_send_arr
.
append
(
adrData
)
pph_send_arr
.
append
(
adrData
)
...
@@ -943,11 +945,26 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -943,11 +945,26 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
//MARK:--关联信息
//MARK:--关联信息
var
guanlianDingStr
:
String
?
=
""
var
guanlianDingStr
:
String
?
=
""
var
guanlianPingStr
:
String
?
=
""
var
guanlianPingStr
:
String
?
=
""
var
pph_guanlianDingStr
:
String
=
""
var
pph_guanlianPingStr
:
String
?
=
""
func
TitleAndTFBtnCellEndEdit
(
contentStr
:
String
,
cellTag
:
Int
)
{
func
TitleAndTFBtnCellEndEdit
(
contentStr
:
String
,
cellTag
:
Int
)
{
if
cellTag
==
0
{
switch
cellTag
{
case
0
:
guanlianDingStr
=
contentStr
guanlianDingStr
=
contentStr
}
else
if
cellTag
==
1
{
break
case
1
:
guanlianPingStr
=
contentStr
guanlianPingStr
=
contentStr
break
case
4
:
pph_guanlianPingStr
=
contentStr
break
case
5
:
pph_guanlianDingStr
=
contentStr
break
default
:
break
}
}
}
}
...
@@ -1095,6 +1112,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1095,6 +1112,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
getPPH_Price
()
getPPH_Price
()
}
}
}
}
var
pphCarTypesArr
:
Array
<
getVehicleTypeData_model
>
=
[]
var
pphCarTypesArr
:
Array
<
getVehicleTypeData_model
>
=
[]
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
...
@@ -1110,7 +1128,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1110,7 +1128,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if
adrDatas
.
count
==
0
{
if
adrDatas
.
count
==
0
{
HUD
.
flash
(
.
progress
)
HUD
.
flash
(
.
progress
)
cityList
([
"user_token"
:
UserToken
as
Any
,
"nonce_str"
:
nonce_str
as
Any
],
success
:
{
(
data
)
in
cityList
([
"user_token"
:
UserToken
as
Any
,
"nonce_str"
:
nonce_str
as
Any
],
success
:
{
(
data
)
in
let
model
=
data
as!
cityListModel
let
model
=
data
as!
cityListModel
if
model
.
data
==
nil
{
if
model
.
data
==
nil
{
HUD
.
flash
(
.
label
(
"暂无数据"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"暂无数据"
),
delay
:
1.2
)
...
@@ -1140,7 +1157,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1140,7 +1157,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
}
}
else
{
}
else
{
if
leftBtn
==
sender
{
//普通冷运
if
leftBtn
==
sender
{
//普通冷运
locBtn
.
isUserInteractionEnabled
=
false
locBtn
.
isUserInteractionEnabled
=
false
rightBtn
.
isSelected
=
false
rightBtn
.
isSelected
=
false
...
@@ -1148,7 +1164,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1148,7 +1164,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
p_p_view
.
isHidden
=
true
p_p_view
.
isHidden
=
true
pin_pin_huo
.
isSelected
=
false
pin_pin_huo
.
isSelected
=
false
hllView
.
isHidden
=
true
hllView
.
isHidden
=
true
}
else
{
//MARK: - 拼拼货
}
else
{
//MARK: - 拼拼货
isPPH
=
true
isPPH
=
true
rightBtn
.
isSelected
=
false
rightBtn
.
isSelected
=
false
...
@@ -1158,9 +1173,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1158,9 +1173,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
p_p_view
.
isHidden
=
false
p_p_view
.
isHidden
=
false
pphCarList
()
pphCarList
()
}
}
}
}
}
}
func
pphCarList
(){
func
pphCarList
(){
rightBtn
.
isSelected
=
false
rightBtn
.
isSelected
=
false
leftBtn
.
isSelected
=
false
leftBtn
.
isSelected
=
false
...
@@ -1184,8 +1199,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1184,8 +1199,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
make
.
height
.
equalTo
(
1
)
make
.
height
.
equalTo
(
1
)
make
.
left
.
right
.
bottom
.
equalTo
(
0
)
make
.
left
.
right
.
bottom
.
equalTo
(
0
)
}
}
}
}
fileprivate
func
getPPHCar
(){
fileprivate
func
getPPHCar
(){
getVehicleType
([
"user_token"
:
UserToken
as
Any
])
{
(
data
)
in
getVehicleType
([
"user_token"
:
UserToken
as
Any
])
{
(
data
)
in
let
model
=
data
as!
getVehicleType_model
let
model
=
data
as!
getVehicleType_model
...
@@ -1201,7 +1216,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1201,7 +1216,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if
self
.
pphCarTypesArr
.
count
==
0
{
if
self
.
pphCarTypesArr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"暂无车型可供选择"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"暂无车型可供选择"
),
delay
:
1.2
)
}
}
let
cell
=
self
.
pph_listView
.
cellForRow
(
at
:
IndexPath
(
row
:
0
,
section
:
0
))
as!
HLLTopCell
let
cell
=
self
.
pph_listView
.
cellForRow
(
at
:
IndexPath
(
row
:
0
,
section
:
0
))
as!
HLLTopCell
cell
.
idx
=
0
cell
.
idx
=
0
cell
.
scrollView
?
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
0
),
animated
:
false
)
cell
.
scrollView
?
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
0
),
animated
:
false
)
cell
.
tjLbl
.
text
=
"--"
cell
.
tjLbl
.
text
=
"--"
...
@@ -2538,7 +2553,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -2538,7 +2553,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if
indexPath
.
row
==
1
{
if
indexPath
.
row
==
1
{
cell
.
nameLbl
.
text
=
"关联订单号:"
cell
.
nameLbl
.
text
=
"关联订单号:"
}
}
cell
.
tag
=
indexPath
.
section
+
indexPath
.
row
cell
.
edit_btn
.
setTitleColor
(
UIColor
(
named
:
"green"
),
for
:
.
normal
)
cell
.
edit_btn
.
setTitleColor
(
UIColor
(
named
:
"green"
),
for
:
.
normal
)
cell
.
delegate
=
self
return
cell
return
cell
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment