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
f0e9a186
Commit
f0e9a186
authored
Jul 29, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运单详情完成对接
parent
50f58458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
3 deletions
+58
-3
GeliBusinessPlatform/ViewController/代客下单(货运)/运单详情/YunDanXiangQingViewController.swift
...troller/代客下单(货运)/运单详情/YunDanXiangQingViewController.swift
+58
-3
No files found.
GeliBusinessPlatform/ViewController/代客下单(货运)/运单详情/YunDanXiangQingViewController.swift
View file @
f0e9a186
...
...
@@ -10,6 +10,8 @@ import UIKit
class
YunDanXiangQingViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
var
orderID
:
String
?
var
dataModel
:
logisticsOrderDetailsDataModel
?
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
btmView
:
UIView
!
...
...
@@ -50,9 +52,26 @@ class YunDanXiangQingViewController: BaseViewController,UITableViewDelegate,UITa
}
}
loadData
()
}
func
loadData
(){
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
HUD
.
flash
(
.
progress
)
listView
.
isHidden
=
true
logisticsOrderDetails
([
"user_token"
:
UserToken
as
Any
,
"id"
:
"238"
as
Any
],
success
:
{
(
data
)
in
HUD
.
hide
()
let
model
=
data
as!
logisticsOrderDetailsModel
self
.
dataModel
=
model
.
data
self
.
listView
.
isHidden
=
false
self
.
listView
.
reloadData
()
})
{
(
error
)
in
}
}
@objc
func
btnClick
(
sender
:
UIButton
){
print
(
sender
.
tag
)
let
vc
=
WuLiuGenZongViewController
()
...
...
@@ -89,12 +108,19 @@ class YunDanXiangQingViewController: BaseViewController,UITableViewDelegate,UITa
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
10
}
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
if
dataModel
==
nil
{
return
0
}
return
2
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
dataModel
==
nil
{
return
0
}
if
section
==
0
{
return
7
}
...
...
@@ -120,19 +146,37 @@ class YunDanXiangQingViewController: BaseViewController,UITableViewDelegate,UITa
switch
indexPath
.
row
{
case
0
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"JiBenXinXiCell"
)
as!
JiBenXinXiCell
cell
.
orderStatusLbl
.
text
=
dataModel
?
.
delivery_status_cn
cell
.
payStatusLbl
.
text
=
dataModel
?
.
pay_status_cn
return
cell
case
1
,
2
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XiaDanCGDiZhiCell"
)
as!
XiaDanCGDiZhiCell
cell
.
statusLbl
.
text
=
"寄"
cell
.
namelbl
.
text
=
dataModel
?
.
s_consignee
cell
.
phoneLbl
.
text
=
dataModel
?
.
s_mobile
cell
.
adrLbl
.
text
=
dataModel
?
.
s_address
if
indexPath
.
row
==
2
{
cell
.
statusLbl
.
backgroundColor
=
UIColor
(
named
:
"企业、预售字体"
)
cell
.
statusLbl
.
text
=
"收"
cell
.
namelbl
.
text
=
dataModel
?
.
r_consignee
cell
.
phoneLbl
.
text
=
dataModel
?
.
r_mobile
cell
.
adrLbl
.
text
=
dataModel
?
.
r_address
}
return
cell
default
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
p2Arr
[
indexPath
.
row
]
cell
.
textTF
.
text
=
p2Arr
[
indexPath
.
row
]
var
arrStr
:[
String
]
=
[]
arrStr
.
append
(
""
)
arrStr
.
append
(
""
)
arrStr
.
append
(
""
)
arrStr
.
append
((
dataModel
?
.
sale_plat
)
!
)
arrStr
.
append
((
dataModel
?
.
order_sn
)
!
)
arrStr
.
append
(
String
(
format
:
"%.2f"
,
(
dataModel
?
.
freight_pre
)
!
))
arrStr
.
append
((
dataModel
?
.
fc_flag_cn
)
!
)
cell
.
textTF
.
text
=
arrStr
[
indexPath
.
row
]
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
line
.
isHidden
=
true
return
cell
...
...
@@ -140,7 +184,18 @@ class YunDanXiangQingViewController: BaseViewController,UITableViewDelegate,UITa
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
p3Arr
[
indexPath
.
row
]
cell
.
textTF
.
text
=
p3Arr
[
indexPath
.
row
]
var
arrStr
:[
String
]
=
[]
arrStr
.
append
((
dataModel
?
.
express_item_name
)
!
)
arrStr
.
append
(
String
(
format
:
"%.2f"
,
(
dataModel
?
.
weight
)
!
))
arrStr
.
append
(
StringByInt
(
number
:
(
dataModel
?
.
express_item_qty
)
!
))
arrStr
.
append
(
String
(
format
:
"%.2f"
,
(
dataModel
?
.
volume
)
!
))
arrStr
.
append
((
dataModel
?
.
tempture_num
)
!
)
arrStr
.
append
((
dataModel
?
.
home_delivery_on_cn
)
!
)
arrStr
.
append
((
dataModel
?
.
site_delivery_cn
)
!
)
arrStr
.
append
(
String
(
format
:
"%.2f"
,
(
dataModel
?
.
guarantee_value
)
!
))
arrStr
.
append
((
dataModel
?
.
remark
)
!
)
cell
.
textTF
.
text
=
arrStr
[
indexPath
.
row
]
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
line
.
isHidden
=
true
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