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
f671323e
Commit
f671323e
authored
Feb 03, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击查看大图
parent
2f5b1dcc
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
220 additions
and
106 deletions
+220
-106
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
...essPlatform/Model/OrderManageModel/OrderDetailModel.swift
+32
-0
GeliBusinessPlatform/Other/JXPhotoBrowser/JXPhotoBrowser.swift
...usinessPlatform/Other/JXPhotoBrowser/JXPhotoBrowser.swift
+7
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+1
-1
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
...wController/分销订单管理/RetailManageDetailViewController.swift
+24
-1
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
...rm/ViewController/分销订单管理/RetailManageViewController.swift
+4
-2
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+1
-4
GeliBusinessPlatform/ViewController/商家信息/ShopInfoViewController.swift
...Platform/ViewController/商家信息/ShopInfoViewController.swift
+3
-12
GeliBusinessPlatform/ViewController/溯源/S_Y_Detail_Vc.swift
GeliBusinessPlatform/ViewController/溯源/S_Y_Detail_Vc.swift
+5
-0
GeliBusinessPlatform/ViewController/溯源/S_Y_View.swift
GeliBusinessPlatform/ViewController/溯源/S_Y_View.swift
+29
-3
GeliBusinessPlatform/ViewController/溯源/S_Y_View.xib
GeliBusinessPlatform/ViewController/溯源/S_Y_View.xib
+8
-1
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+2
-1
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.xib
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.xib
+8
-8
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+96
-73
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
f671323e
No preview for this file type
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
View file @
f671323e
...
...
@@ -273,6 +273,36 @@ class OrderDetailSaleResModel: Mappable {
wk_pay_type_cn
<-
map
[
"wk_pay_type_cn"
]
}
}
class
OrderDetailGoodsSourceModel
:
Mappable
{
var
ven_id
:
Int
?
//供应商的ven_id
var
batch_id
:
Int
?
//产品批次号
var
add_time
:
String
?
//入库时间
var
production_data
:
String
?
//生产日期
var
valid_date
:
String
?
//有效日期
var
report_id
:
Int
?
//检测报告id
var
ven_name
:
String
?
//供应商名称
var
report_picture
:
String
?
//检测报告
var
product_origin
:
String
?
//产品产地
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
ven_id
<-
map
[
"ven_id"
]
batch_id
<-
map
[
"batch_id"
]
add_time
<-
map
[
"add_time"
]
production_data
<-
map
[
"production_data"
]
valid_date
<-
map
[
"valid_date"
]
report_id
<-
map
[
"report_id"
]
ven_name
<-
map
[
"ven_name"
]
report_picture
<-
map
[
"report_picture"
]
product_origin
<-
map
[
"product_origin"
]
}
}
class
OrderDetailGoodsModel
:
Mappable
{
...
...
@@ -289,11 +319,13 @@ class OrderDetailGoodsModel: Mappable {
var
is_edit
:
Int
?
=
0
//订单商品是否有修改,1是0非--前端自主添加的字段
var
commission_val
:
String
?
//这个商品的总佣金
var
remark
:
String
?
//商品备注
var
goods_source
:
OrderDetailGoodsSourceModel
?
//溯源信息
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
commission_val
<-
map
[
"commission_val"
]
goods_source
<-
map
[
"goods_source"
]
og_id
<-
map
[
"og_id"
]
goods_id
<-
map
[
"goods_id"
]
goods_name
<-
map
[
"goods_name"
]
...
...
GeliBusinessPlatform/Other/JXPhotoBrowser/JXPhotoBrowser.swift
View file @
f671323e
...
...
@@ -137,6 +137,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
pageIndicator
?
.
reloadData
(
numberOfItems
:
numberOfItems
(),
pageIndex
:
pageIndex
)
}
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
20
,
y
:
0
,
width
:
100
,
height
:
100
))
open
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -156,6 +157,11 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
self
.
didChangedPageIndex
(
index
)
}
lbl
.
text
=
"返回"
lbl
.
textColor
=
UIColor
.
white
view
.
addSubview
(
lbl
)
view
.
setNeedsLayout
()
view
.
layoutIfNeeded
()
}
...
...
@@ -279,6 +285,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
deinit
{
JXPhotoBrowserLog
.
low
(
"deinit -
\(
self
.
classForCoder
)
"
)
lbl
.
removeFromSuperview
()
navigationController
?
.
delegate
=
previousNavigationControllerDelegate
}
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
f671323e
...
...
@@ -388,7 +388,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
if
isGm
{
let
arr
=
piCiArr
!
[
indexPath
.
row
]
if
arr
.
count
>
0
{
return
CGFloat
(
140
+
arr
.
count
*
30
+
35
)
return
CGFloat
(
140
+
arr
.
count
*
30
+
40
)
}
else
{
return
140
}
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
View file @
f671323e
...
...
@@ -9,10 +9,29 @@
import
UIKit
class
RetailManageDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
DaiKeXiaDanGouWuCellDelegate
,
S_Y_View_Delegate
{
func
S_Y_View_Check_Detail
()
{
func
S_Y_View_Check_Detail
(
view
:
S_Y_View
)
{
print
(
"查看溯源"
)
if
view
.
data
==
nil
{
return
}
let
browser
=
JXPhotoBrowser
()
browser
.
numberOfItems
=
{
1
}
browser
.
pageIndex
=
0
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
(
view
.
data
?
.
report_picture
)
!
)
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
})
}
browser
.
show
()
}
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
{
//此处无用
}
...
...
@@ -26,6 +45,10 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
print
(
"check S_Y"
)
let
vc
=
S_Y_View
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
if
(
dataMdoel
?
.
order_goods
!.
count
)
!
>
0
{
let
target
=
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
vc
.
data
=
target
?
.
goods_source
}
self
.
view
.
addSubview
(
vc
)
}
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
View file @
f671323e
...
...
@@ -148,13 +148,15 @@ class RetailManageViewController: BaseViewController,UITableViewDelegate,UITable
if
self
.
title
==
"代销订单"
{
let
vc
=
RetailManageDetailViewController
()
let
goodArrModel
=
self
.
dataArr
[
indexPath
.
section
]
vc
.
orderId
=
goodArrModel
.
order_id
// vc.orderId = goodArrModel.order_id
vc
.
orderId
=
12637
vc
.
dbt_shop_id
=
goodArrModel
.
shop_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
let
vc
=
RetailManageDetailViewController
()
let
goodArrModel
=
self
.
dataArr
[
indexPath
.
section
]
vc
.
orderId
=
goodArrModel
.
order_id
// vc.orderId = goodArrModel.order_id
vc
.
orderId
=
12637
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
f671323e
...
...
@@ -38,10 +38,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
cell
.
imgs
[
context
.
index
])
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
20
,
y
:
0
,
width
:
100
,
height
:
100
))
lbl
.
text
=
"返回"
lbl
.
textColor
=
UIColor
.
white
browserCell
?
.
scrollView
.
addSubview
(
lbl
)
browserCell
?
.
setNeedsLayout
()
})
}
...
...
GeliBusinessPlatform/ViewController/商家信息/ShopInfoViewController.swift
View file @
f671323e
...
...
@@ -80,10 +80,7 @@ class ShopInfoViewController: BaseViewController {
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
20
,
y
:
0
,
width
:
100
,
height
:
100
))
lbl
.
text
=
"返回"
lbl
.
textColor
=
UIColor
.
white
browserCell
?
.
scrollView
.
addSubview
(
lbl
)
browserCell
?
.
setNeedsLayout
()
})
}
...
...
@@ -95,10 +92,7 @@ class ShopInfoViewController: BaseViewController {
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
20
,
y
:
0
,
width
:
100
,
height
:
100
))
lbl
.
text
=
"返回"
lbl
.
textColor
=
UIColor
.
white
browserCell
?
.
scrollView
.
addSubview
(
lbl
)
browserCell
?
.
setNeedsLayout
()
})
}
...
...
@@ -109,10 +103,7 @@ class ShopInfoViewController: BaseViewController {
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
20
,
y
:
0
,
width
:
100
,
height
:
100
))
lbl
.
text
=
"返回"
lbl
.
textColor
=
UIColor
.
white
browserCell
?
.
scrollView
.
addSubview
(
lbl
)
browserCell
?
.
setNeedsLayout
()
})
}
...
...
GeliBusinessPlatform/ViewController/溯源/S_Y_Detail_Vc.swift
View file @
f671323e
...
...
@@ -37,6 +37,11 @@ class S_Y_Detail_Vc: BaseViewController ,UITableViewDataSource,UITableViewDelega
}
return
114
}
var
data
:
OrderDetailGoodsSourceModel
?{
didSet
{
}
}
var
two_titles
=
[
""
,
""
,
""
,
""
,
""
,
""
,
""
,
"供货单位名称"
]
let
titles
=
[
""
,
"商品名称"
,
"商品规格"
,
"产品产地"
,
"商品条码"
,
"生产日期"
,
"保质期"
,
""
,
""
,
""
,
""
]
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
GeliBusinessPlatform/ViewController/溯源/S_Y_View.swift
View file @
f671323e
...
...
@@ -8,11 +8,24 @@
import
UIKit
protocol
S_Y_View_Delegate
{
func
S_Y_View_Check_Detail
()
func
S_Y_View_Check_Detail
(
view
:
S_Y_View
)
}
class
S_Y_View
:
UIView
{
var
contentView
:
UIView
!
var
delegate
:
S_Y_View_Delegate
?
var
data
:
OrderDetailGoodsSourceModel
?
{
didSet
{
if
data
!=
nil
{
bao_zhi_qi_lbl
.
text
=
data
?
.
valid_date
sheng_chan_ri_qi_lbl
.
text
=
data
?
.
production_data
chan_di_lbl
.
text
=
data
?
.
product_origin
ru_ku_time_lbl
.
text
=
data
?
.
add_time
pi_ci_number_lbl
.
text
=
StringByInt
(
number
:(
data
?
.
batch_id
)
!
)
gys_name_lbl
.
text
=
data
?
.
ven_name
check_img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
((
data
?
.
report_picture
)
!
)
!
))
}
}
}
@IBOutlet
weak
var
bao_zhi_qi_lbl
:
UILabel
!
@IBOutlet
weak
var
sheng_chan_ri_qi_lbl
:
UILabel
!
@IBOutlet
weak
var
chan_di_lbl
:
UILabel
!
...
...
@@ -20,9 +33,10 @@ class S_Y_View: UIView {
@IBOutlet
weak
var
pi_ci_number_lbl
:
UILabel
!
@IBOutlet
weak
var
gys_name_lbl
:
UILabel
!
@IBAction
func
check_detail
(
_
sender
:
UIButton
)
{
delegate
?
.
S_Y_View_Check_Detail
()
delegate
?
.
S_Y_View_Check_Detail
(
view
:
self
)
}
@IBOutlet
weak
var
check_detail_btn
:
UIButton
!
@IBOutlet
weak
var
check_img
:
UIImageView
!
@IBAction
func
close_action
(
_
sender
:
UIButton
)
{
self
.
removeFromSuperview
()
}
...
...
@@ -34,6 +48,12 @@ class S_Y_View: UIView {
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
bao_zhi_qi_lbl
.
text
=
"-"
sheng_chan_ri_qi_lbl
.
text
=
"-"
chan_di_lbl
.
text
=
"-"
ru_ku_time_lbl
.
text
=
"-"
pi_ci_number_lbl
.
text
=
"-"
gys_name_lbl
.
text
=
"-"
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
...
...
@@ -43,6 +63,12 @@ class S_Y_View: UIView {
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
bao_zhi_qi_lbl
.
text
=
"-"
sheng_chan_ri_qi_lbl
.
text
=
"-"
chan_di_lbl
.
text
=
"-"
ru_ku_time_lbl
.
text
=
"-"
pi_ci_number_lbl
.
text
=
"-"
gys_name_lbl
.
text
=
"-"
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
...
...
GeliBusinessPlatform/ViewController/溯源/S_Y_View.xib
View file @
f671323e
...
...
@@ -14,7 +14,7 @@
<connections>
<outlet
property=
"bao_zhi_qi_lbl"
destination=
"oK3-v4-fM5"
id=
"XCf-Xz-eP1"
/>
<outlet
property=
"chan_di_lbl"
destination=
"YhV-Hc-qgt"
id=
"RIa-9z-Oz7"
/>
<outlet
property=
"check_
detail_btn"
destination=
"6Md-jt-BE3"
id=
"6LK-SL-s2G
"
/>
<outlet
property=
"check_
img"
destination=
"g7c-Hg-37A"
id=
"efP-H9-mCQ
"
/>
<outlet
property=
"gys_name_lbl"
destination=
"S0r-Yy-7uV"
id=
"eYU-j8-rPV"
/>
<outlet
property=
"pi_ci_number_lbl"
destination=
"Nhb-9N-Ghw"
id=
"zYt-JF-NqD"
/>
<outlet
property=
"ru_ku_time_lbl"
destination=
"2hu-oz-DAD"
id=
"M4i-sj-7Ip"
/>
...
...
@@ -147,6 +147,9 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"g7c-Hg-37A"
>
<rect
key=
"frame"
x=
"114"
y=
"256.5"
width=
"106"
height=
"74.5"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6Md-jt-BE3"
>
<rect
key=
"frame"
x=
"114"
y=
"256.5"
width=
"106"
height=
"74.5"
/>
<constraints>
...
...
@@ -160,7 +163,9 @@
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"g7c-Hg-37A"
firstAttribute=
"centerX"
secondItem=
"6Md-jt-BE3"
secondAttribute=
"centerX"
id=
"24H-sE-EF2"
/>
<constraint
firstItem=
"PZb-IT-gNN"
firstAttribute=
"top"
secondItem=
"PCS-cE-KjY"
secondAttribute=
"bottom"
constant=
"15"
id=
"4D6-EQ-70K"
/>
<constraint
firstItem=
"g7c-Hg-37A"
firstAttribute=
"centerY"
secondItem=
"6Md-jt-BE3"
secondAttribute=
"centerY"
id=
"4a0-2Q-Wm3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"oK3-v4-fM5"
secondAttribute=
"trailing"
constant=
"15"
id=
"5ql-c1-d6s"
/>
<constraint
firstItem=
"PCS-cE-KjY"
firstAttribute=
"top"
secondItem=
"dGh-Dd-DM6"
secondAttribute=
"bottom"
constant=
"15"
id=
"7Vo-HF-vox"
/>
<constraint
firstItem=
"6Md-jt-BE3"
firstAttribute=
"centerX"
secondItem=
"91i-Pc-519"
secondAttribute=
"centerX"
id=
"9U4-ou-Q3Y"
/>
...
...
@@ -168,6 +173,7 @@
<constraint
firstItem=
"gOe-TM-QuF"
firstAttribute=
"top"
secondItem=
"V04-rj-IfP"
secondAttribute=
"bottom"
constant=
"15"
id=
"C9C-Ir-lRb"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Fpi-Qx-vzu"
secondAttribute=
"trailing"
constant=
"15"
id=
"EgP-32-mAm"
/>
<constraint
firstItem=
"oK3-v4-fM5"
firstAttribute=
"top"
secondItem=
"vGw-L2-745"
secondAttribute=
"bottom"
constant=
"15"
id=
"FLh-tt-xgW"
/>
<constraint
firstItem=
"g7c-Hg-37A"
firstAttribute=
"height"
secondItem=
"6Md-jt-BE3"
secondAttribute=
"height"
id=
"GNH-PL-jsP"
/>
<constraint
firstItem=
"21E-nO-je8"
firstAttribute=
"leading"
secondItem=
"91i-Pc-519"
secondAttribute=
"leading"
id=
"HkZ-zw-Tst"
/>
<constraint
firstItem=
"dGh-Dd-DM6"
firstAttribute=
"top"
secondItem=
"gOe-TM-QuF"
secondAttribute=
"bottom"
constant=
"15"
id=
"JDv-3E-8aE"
/>
<constraint
firstItem=
"Nhb-9N-Ghw"
firstAttribute=
"top"
secondItem=
"S0r-Yy-7uV"
secondAttribute=
"bottom"
constant=
"15"
id=
"K1L-Fy-sxo"
/>
...
...
@@ -177,6 +183,7 @@
<constraint
firstItem=
"KoV-8K-ohF"
firstAttribute=
"leading"
secondItem=
"91i-Pc-519"
secondAttribute=
"leading"
constant=
"15"
id=
"SKe-Do-SSS"
/>
<constraint
firstItem=
"S0r-Yy-7uV"
firstAttribute=
"top"
secondItem=
"21E-nO-je8"
secondAttribute=
"bottom"
constant=
"15"
id=
"Uac-jq-Ioj"
/>
<constraint
firstItem=
"Fpi-Qx-vzu"
firstAttribute=
"top"
secondItem=
"91i-Pc-519"
secondAttribute=
"top"
constant=
"15"
id=
"V0K-QY-yvT"
/>
<constraint
firstItem=
"g7c-Hg-37A"
firstAttribute=
"width"
secondItem=
"6Md-jt-BE3"
secondAttribute=
"width"
id=
"V4b-Vz-6dD"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"PI4-cK-Eme"
secondAttribute=
"trailing"
id=
"WZM-NR-zS0"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vGw-L2-745"
secondAttribute=
"trailing"
constant=
"15"
id=
"YM6-hE-vF8"
/>
<constraint
firstItem=
"PZb-IT-gNN"
firstAttribute=
"leading"
secondItem=
"91i-Pc-519"
secondAttribute=
"leading"
constant=
"15"
id=
"YzV-KN-5dq"
/>
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
f671323e
...
...
@@ -701,7 +701,8 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
let
rowModel
=
self
.
dataArr
[
indexPath
.
row
]
let
vc
=
OrderDViewController
()
vc
.
delegate
=
self
vc
.
orderId
=
rowModel
.
order_id
!
vc
.
orderId
=
12637
// vc.orderId = rowModel.order_id!
vc
.
lmIdx
=
orderStatus
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.xib
View file @
f671323e
...
...
@@ -28,16 +28,16 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Kh6-Hv-73X"
>
<rect
key=
"frame"
x=
"2
60
"
y=
"14"
width=
"33"
height=
"16"
/>
<rect
key=
"frame"
x=
"2
72
"
y=
"14"
width=
"33"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"
多选按钮
字体颜色"
/>
<color
key=
"textColor"
name=
"
蓝色
字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinru"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mzP-Q2-sl2"
>
<rect
key=
"frame"
x=
"
298"
y=
"18.5"
width=
"7
"
height=
"7"
/>
<rect
key=
"frame"
x=
"
305"
y=
"18.5"
width=
"0.0
"
height=
"7"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"7"
id=
"FSH-Hc-tdw"
/>
<constraint
firstAttribute=
"width"
constant=
"7"
id=
"yZh-Lv-ehr"
/>
<constraint
firstAttribute=
"width"
id=
"yZh-Lv-ehr"
/>
</constraints>
</imageView>
</subviews>
...
...
@@ -46,7 +46,7 @@
<constraint
firstItem=
"xEs-UK-3s6"
firstAttribute=
"leading"
secondItem=
"fBF-NP-iMf"
secondAttribute=
"trailing"
constant=
"5"
id=
"D6K-zk-JBP"
/>
<constraint
firstItem=
"fBF-NP-iMf"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"FpE-1G-mMn"
/>
<constraint
firstItem=
"mzP-Q2-sl2"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"J4C-zD-iCt"
/>
<constraint
firstItem=
"mzP-Q2-sl2"
firstAttribute=
"leading"
secondItem=
"Kh6-Hv-73X"
secondAttribute=
"trailing"
constant=
"5"
id=
"XE7-sQ-ZSj"
/>
<constraint
firstItem=
"mzP-Q2-sl2"
firstAttribute=
"leading"
secondItem=
"Kh6-Hv-73X"
secondAttribute=
"trailing"
id=
"XE7-sQ-ZSj"
/>
<constraint
firstItem=
"Kh6-Hv-73X"
firstAttribute=
"centerY"
secondItem=
"mzP-Q2-sl2"
secondAttribute=
"centerY"
id=
"dn7-vm-wJh"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"mzP-Q2-sl2"
secondAttribute=
"trailing"
constant=
"15"
id=
"i0h-HK-f57"
/>
<constraint
firstItem=
"fBF-NP-iMf"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"zuD-Li-8Vr"
/>
...
...
@@ -66,11 +66,11 @@
<resources>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
<image
name=
"kehu"
width=
"17"
height=
"18.5"
/>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
f671323e
...
...
@@ -12,14 +12,27 @@ protocol OrderDViewControllerDelegate {
func
refishingOrderDchange
()
}
class
OrderDViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GuanLianKehuVCDelegate
,
OrderDViewFooterViewDelegate
,
TitleAndTFCellDelegate
,
GeliAlertViewDelegate
,
GLAlertSelectViewDelegate
,
XiuGaiYuShouJiaViewControllerDelegate
,
ChangeGoodsPriceVCDelegate
,
GeliAlertTextFiledDelegate
,
GeliAlertTextViewDelegate
,
UpBillDataTableViewCellDelegate
,
DaiKeXiaDanGouWuCellDelegate
,
S_Y_View_Delegate
{
func
S_Y_View_Check_Detail
()
{
func
S_Y_View_Check_Detail
(
view
:
S_Y_View
)
{
print
(
"查看溯源"
)
let
vc
=
S_Y_Detail_Vc
()
vc
.
user_type
=
1
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
let
browser
=
JXPhotoBrowser
()
browser
.
numberOfItems
=
{
1
}
browser
.
pageIndex
=
0
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
(
view
.
data
?
.
report_picture
)
!
)
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[],
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
})
}
browser
.
show
()
}
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
{
//此处无用
}
...
...
@@ -33,11 +46,15 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
print
(
"check S_Y"
)
let
vc
=
S_Y_View
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
if
(
dataMdoel
?
.
order_goods
!.
count
)
!
>
0
{
let
target
=
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
vc
.
data
=
target
?
.
goods_source
}
self
.
view
.
addSubview
(
vc
)
}
var
lmIdx
=
100
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
if
selectnum
!=
10086
{
...
...
@@ -66,10 +83,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
var
yuShouTitleArr
=
[
"定金:"
,
"尾款:"
,
"商品合计:"
,
"物流费用:"
,
"其它费用:"
]
var
nonYuShouTitleArr
=
[
"商品合计:"
,
"物流费用:"
,
"其它费用:"
]
//旧的
// let YuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","支付方式","支付状态","买家留言","订单备注"]
// let isYuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","定金支付方式","定金支付状态","尾款支付方式","尾款支付状态","买家留言","订单备注"]
// let YuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","支付方式","支付状态","买家留言","订单备注"]
// let isYuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","定金支付方式","定金支付状态","尾款支付方式","尾款支付状态","买家留言","订单备注"]
//新的
let
YuShouPart3Arr
=
[
"订单编号"
,
"下单时间"
,
"订单来源"
,
"关联凭证"
,
"提货方式"
,
"支付方式"
,
"支付状态"
,
"买家留言"
,
"订单备注"
]
let
isYuShouPart3Arr
=
[
"订单编号"
,
"下单时间"
,
"订单来源"
,
"关联凭证"
,
"提货方式"
,
"定金支付方式"
,
"定金支付状态"
,
"尾款支付方式"
,
"尾款支付状态"
,
"买家留言"
,
"订单备注"
]
...
...
@@ -143,7 +160,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
btn
.
setTitle
(
title
,
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
self.bottomBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
self
.
bottomView
.
addSubview
(
btn
)
self
.
bottomView
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
self
.
bottomBgView
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
...
...
@@ -156,9 +173,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
make
.
width
.
equalTo
(
1
)
make
.
height
.
equalTo
(
self
.
bottomView
.
bounds
.
size
.
height
-
24
)
}
}
}
if
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
2
||
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
5
{
...
...
@@ -180,7 +197,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
if
self
.
dataMdoel
?
.
order_res
?
.
invoice_link
!=
nil
{
self
.
inputInfoTFString
=
(
self
.
dataMdoel
?
.
order_res
?
.
invoice_link
)
!
}
//是否是分销订单
if
self
.
dataMdoel
?
.
order_res
?
.
order_type
==
5
{
...
...
@@ -191,7 +208,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
yuShouTitleArr
.
append
(
"分销员"
)
nonYuShouTitleArr
.
append
(
"分销员"
)
}
}
self
.
listView
.
reloadData
()
...
...
@@ -218,7 +235,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
listView
.
register
(
UINib
(
nibName
:
"GLKHCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"GLKHCell"
)
listView
.
register
(
UINib
(
nibName
:
"UpBillDataTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"UpBillDataTableViewCell"
)
}
...
...
@@ -240,7 +257,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
loadData
()
}
//MARK:--编辑运单号回调数据
func
sureGeliAlertTextFiledAction
(
sender
:
String
)
{
...
...
@@ -345,7 +362,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
failture
:
{
(
error
)
in
}
break
case
"通知用户"
:
HUD
.
show
(
.
progress
)
...
...
@@ -376,7 +393,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
editInvoiceImg
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
StringByInt
(
number
:
self
.
orderId
!
)
as
Any
,
"invoice_link"
:
inputString
as
Any
])
{
(
data
)
in
self
.
inputInfoTFString
=
inputString
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"修改成功"
),
delay
:
1.2
)
self
.
listView
.
reloadData
()
}
failture
:
{
(
err
)
in
self
.
listView
.
reloadData
()
...
...
@@ -387,7 +404,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
var
UpBillDataUploadImgiconUrl
=
""
func
UpBillDataUploadImg
(
imge
:
UIImage
){
let
upLoadImg
=
imge
HUD
.
show
(
.
progress
)
...
...
@@ -408,15 +425,15 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
return
}
if
indexPath
.
section
==
0
{
let
vc
=
GuanLianKehuVC
()
vc
.
delegate
=
self
vc
.
order_id
=
self
.
orderId
if
self
.
dataMdoel
?
.
order_res
?
.
cus_id
!=
0
{
vc
.
cus_id
=
self
.
dataMdoel
?
.
order_res
?
.
cus_id
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//
if indexPath.section == 0 {
//
let vc = GuanLianKehuVC()
//
vc.delegate = self
//
vc.order_id = self.orderId
//
if self.dataMdoel?.order_res?.cus_id != 0 {
//
vc.cus_id = self.dataMdoel?.order_res?.cus_id
//
}
//
self.navigationController?.pushViewController(vc, animated: true)
//
}
//订单信息操作
if
indexPath
.
section
==
5
{
...
...
@@ -440,16 +457,18 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GLKHCell"
)
as!
GLKHCell
cell
.
nameLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
user_name
if
self
.
dataMdoel
?
.
order_res
?
.
cus_id
!=
0
{
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
cus_name
}
else
{
//如果不刷新请求,那么就更新本地,建议还是刷新,暂不刷
cell
.
contentLbl
.
text
=
"请选择关联客户"
if
!
isCaneditLatsData
{
cell
.
contentLbl
.
text
=
"-"
}
}
if
self
.
dataMdoel
?
.
order_res
?
.
order_status
!=
nil
&&
self
.
dataMdoel
?
.
order_res
?
.
order_status_d
!=
nil
&&
self
.
dataMdoel
?
.
order_res
!.
goods_before_pay
!=
nil
{
cell
.
contentLbl
.
text
=
orderStatusStrByInt
(
statusNumber
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
)
!
,
status_d
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status_d
)
!
,
isBfPay
:(
self
.
dataMdoel
?
.
order_res
!.
goods_before_pay
)
!
,
LmIdx
:
lmIdx
)
}
// if self.dataMdoel?.order_res?.cus_id != 0 {
// cell.contentLbl.text = self.dataMdoel?.order_res?.cus_name
// }else{
// //如果不刷新请求,那么就更新本地,建议还是刷新,暂不刷
// cell.contentLbl.text = "请选择关联客户"
// if !isCaneditLatsData {
// cell.contentLbl.text = "-"
// }
// }
return
cell
case
1
:
...
...
@@ -493,11 +512,11 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
line
.
isHidden
=
false
if
isYuShou
{
cell
.
nameLbl
.
text
=
yuShouTitleArr
[
indexPath
.
row
]
cell
.
textTF
.
text
=
yuShouTitleArr
[
indexPath
.
row
]
cell
.
delegate
=
self
//MARK:--预售商品,定金,尾款,合计,物流费用,其他费用 cell
...
...
@@ -544,7 +563,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
else
{
//MARK:--普通商品合计,物流费用,其他费用 cell
cell
.
nameLbl
.
text
=
nonYuShouTitleArr
[
indexPath
.
row
]
switch
indexPath
.
row
{
case
0
:
cell
.
textTF
.
text
=
"¥"
+
(
self
.
dataMdoel
?
.
order_res
?
.
goods_amount
)
!
...
...
@@ -608,7 +627,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
updataBtn
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
UpBillDataUploadImgiconUrl
),
for
:
.
normal
,
completed
:
nil
)
}
cell
.
selectSegmentV
.
selectedSegmentIndex
=
segmentIndex
return
cell
case
5
:
//MARK:--订单信息cell
...
...
@@ -654,7 +673,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
return
cell
}
if
indexPath
.
row
==
5
||
indexPath
.
row
==
6
||
indexPath
.
row
==
(
5
+
isYushoucount
)
||
indexPath
.
row
==
(
6
+
isYushoucount
){
if
isYuShou
{
cell
.
nameLbl
.
text
=
isYuShouPart3Arr
[
indexPath
.
row
]
}
else
{
...
...
@@ -738,7 +757,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
line
.
isHidden
=
false
if
isYuShou
{
cell
.
nameLbl
.
text
=
isYuShouPart3Arr
[
indexPath
.
row
]
...
...
@@ -787,14 +806,14 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
var
check_all
=
false
//MARK:--查看全部商品
func
OrderDViewFooterViewBtnClick
(
img
:
OrderDViewFooterView
)
{
print
(
"查看全部商品"
)
check_all
=
!
check_all
self
.
listView
.
reloadData
()
// let vc = ShowAlGoodsViewController()
// vc.order_goods = self.dataMdoel?.order_goods
// self.navigationController?.pushViewController(vc, animated: true)
// let vc = ShowAlGoodsViewController()
// vc.order_goods = self.dataMdoel?.order_goods
// self.navigationController?.pushViewController(vc, animated: true)
}
//MARK:--选择的关联客户返回数据
...
...
@@ -1157,6 +1176,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
switch
section
{
case
0
:
return
1
case
1
:
if
isYuShou
==
false
{
if
(
self
.
dataMdoel
?
.
order_goods
?
.
count
)
!
>
2
{
...
...
@@ -1195,21 +1216,22 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//MARK: - header delegate
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
view
.
subviews
.
forEach
{
(
subV
)
in
subV
.
removeFromSuperview
()
}
switch
section
{
case
1
:
let
view1
=
TitleAndLblView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
view1
.
nameLbl
.
text
=
"订单状态"
//订单状态
if
self
.
dataMdoel
?
.
order_res
?
.
order_status
!=
nil
&&
self
.
dataMdoel
?
.
order_res
?
.
order_status_d
!=
nil
&&
self
.
dataMdoel
?
.
order_res
!.
goods_before_pay
!=
nil
{
view1
.
contentLbl
.
text
=
orderStatusStrByInt
(
statusNumber
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
)
!
,
status_d
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status_d
)
!
,
isBfPay
:(
self
.
dataMdoel
?
.
order_res
!.
goods_before_pay
)
!
,
LmIdx
:
lmIdx
)
view
.
addSubview
(
view1
)
}
return
view
// let view1 = TitleAndLblView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
// view1.nameLbl.text = "订单状态"
// //订单状态
// if self.dataMdoel?.order_res?.order_status != nil && self.dataMdoel?.order_res?.order_status_d != nil && self.dataMdoel?.order_res!.goods_before_pay != nil {
// view1.contentLbl.text = orderStatusStrByInt(statusNumber: (self.dataMdoel?.order_res?.order_status)!, status_d: (self.dataMdoel?.order_res?.order_status_d)!, isBfPay:(self.dataMdoel?.order_res!.goods_before_pay)! , LmIdx: lmIdx)
// view.addSubview(view1)
// }
return
UIView
()
case
3
:
let
view1
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
view1
.
nameLbl
.
text
=
"收货信息"
...
...
@@ -1232,7 +1254,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
view
.
addSubview
(
view1
)
return
view
default
:
break
}
...
...
@@ -1240,8 +1262,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
switch
section
{
case
0
:
return
1
case
1
:
return
49
return
0.001
case
2
:
return
1
case
3
:
...
...
@@ -1275,7 +1298,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"退货"
]
}
break
case
6
:
// str = "待发货"
...
...
@@ -1313,7 +1336,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
titleArr
=
[
"打印"
,
"付款码"
,
"取消订单"
]
}
}
if
self
.
dataMdoel
?
.
order_res
?
.
apply_cancel
==
1
{
titleArr
=
[
"打印"
,
"同意取消订单"
,
"拒绝取消订单"
]
}
...
...
@@ -1348,7 +1371,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
titleArr
.
insert
(
"付款码"
,
at
:
0
)
}
break
case
11
:
titleArr
=
[
"打印"
,
"查看订单"
]
...
...
@@ -1411,7 +1434,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
break
case
"打印"
:
// orderId = 12599
// orderId = 12599
printOrder
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
])
{
[
self
]
(
data
)
in
let
d
=
data
as!
printOrder_model
let
vc
=
PrintListMgVc
()
...
...
@@ -1422,7 +1445,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
failture
:
{
(
err
)
in
}
break
case
"确认订单"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
...
...
@@ -1563,15 +1586,15 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
view
.
window
?
.
addSubview
(
alertView
)
break
case
"确认收货"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
"是否确认收货?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确认"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
1020
self
.
view
.
window
?
.
addSubview
(
alertView
)
break
case
"退款退货"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
"是否确认收货?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确认"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
1020
self
.
view
.
window
?
.
addSubview
(
alertView
)
break
case
"退款退货"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
...
...
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