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
76024653
Commit
76024653
authored
Mar 10, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11112
parent
5f11aaf3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
229 additions
and
138 deletions
+229
-138
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+13
-4
GeliBusinessPlatform/View/AlertView/GeliAltetCodeView.swift
GeliBusinessPlatform/View/AlertView/GeliAltetCodeView.swift
+3
-2
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+4
-17
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+110
-52
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
...Platform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
+1
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+5
-3
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
...iewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
+14
-5
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController1.swift
...latform/ViewController/入库/PiCiXuanZeViewController1.swift
+30
-22
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+3
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+46
-32
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
76024653
No preview for this file type
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
76024653
...
@@ -203,7 +203,14 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
...
@@ -203,7 +203,14 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
deSelectArr
.
count
>
1
{
return
}
if
deSelectArr
.
count
==
1
{
if
indexPath
.
row
==
deSelectArr
.
first
{
return
}
}
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
&&
isOnlySelectKuWei
==
false
{
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
&&
isOnlySelectKuWei
==
false
{
selectNum
=
indexPath
.
row
selectNum
=
indexPath
.
row
selectTbv
.
reloadData
()
selectTbv
.
reloadData
()
...
@@ -296,10 +303,12 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
...
@@ -296,10 +303,12 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
}
}
}
if
deSelectArr
.
count
>
0
{
if
deSelectArr
.
count
>
0
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
if
deSelectArr
.
count
>
1
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
selectBtn
.
isSelected
=
true
}
deSelectArr
.
forEach
{
(
i
)
in
deSelectArr
.
forEach
{
(
i
)
in
if
i
==
indexPath
.
row
{
if
i
==
indexPath
.
row
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"#999999"
)
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"#999999"
)
...
...
GeliBusinessPlatform/View/AlertView/GeliAltetCodeView.swift
View file @
76024653
...
@@ -12,8 +12,9 @@ import Foundation
...
@@ -12,8 +12,9 @@ import Foundation
class
GeliAltetCodeView
:
UIView
{
class
GeliAltetCodeView
:
UIView
{
var
saveImgID
:
Int
?
=
nil
{
var
saveImgID
:
Int
?
=
nil
{
didSet
{
didSet
{
saveImg
=
createQRForString
(
qrString
:
"https://cms.gelifood.com/market/src/views/Order/codeDetail.html?order_id="
+
StringByInt
(
number
:
saveImgID
!
),
// saveImg = createQRForString(qrString: "https://cms.gelifood.com/market/src/views/Order/codeDetail.html?order_id=" + StringByInt(number: saveImgID!),qrImageName: "")
qrImageName
:
""
)
saveImg
=
createQRForString
(
qrString
:
"https://c.gelifood.com/market/src/views/Order/codeDetail.html?order_id="
+
StringByInt
(
number
:
saveImgID
!
),
qrImageName
:
""
)
iconImgV
.
image
=
saveImg
iconImgV
.
image
=
saveImg
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
View file @
76024653
...
@@ -168,13 +168,11 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -168,13 +168,11 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
var
goods_banner
:
Array
<
String
>
?
=
[
""
,
""
,
""
,
""
,
""
]
//商品副图,多张,最多5张,使用一维数组转json格式
var
goods_banner
:
Array
<
String
>
?
=
[
""
,
""
,
""
,
""
,
""
]
//商品副图,多张,最多5张,使用一维数组转json格式
func
uploadImg
(
imge
:
UIImage
,
isOriginal
:
Bool
,
tag
:
Int
){
func
uploadImg
(
imge
:
UIImage
,
isOriginal
:
Bool
,
tag
:
Int
){
let
upLoadImg
=
imge
as!
UIImage
let
upLoadImg
=
imge
HUD
.
show
(
.
progress
)
HUD
.
show
(
.
progress
)
saveFile
(
image
:
upLoadImg
,
[
"user_token"
:
UserToken
as
Any
,
"path"
:
"category"
as
Any
],
success
:
{
(
data
)
in
saveFile
(
image
:
upLoadImg
,
[
"user_token"
:
UserToken
as
Any
,
"path"
:
"category"
as
Any
],
success
:
{
(
data
)
in
let
dataM
=
data
as!
SaveFileModel
let
dataM
=
data
as!
SaveFileModel
if
dataM
.
code
==
1
{
if
dataM
.
code
==
1
{
print
(
"图片上传成功
\(
dataM
.
data
?
.
url
)
"
)
self
.
goods_banner
?
.
insert
((
dataM
.
data
?
.
url
!
)
!
,
at
:
tag
)
self
.
goods_banner
?
.
insert
((
dataM
.
data
?
.
url
!
)
!
,
at
:
tag
)
self
.
goods_banner
?
.
remove
(
at
:
tag
+
1
)
self
.
goods_banner
?
.
remove
(
at
:
tag
+
1
)
self
.
maxFiveImgsArr
.
removeAll
()
self
.
maxFiveImgsArr
.
removeAll
()
...
@@ -187,7 +185,6 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -187,7 +185,6 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
self
.
report_view
?
.
layoutIfNeeded
()
self
.
report_view
?
.
layoutIfNeeded
()
HUD
.
hide
()
HUD
.
hide
()
}
}
})
{
(
error
)
in
})
{
(
error
)
in
print
(
"图片上传失败
\(
error
)
"
)
print
(
"图片上传失败
\(
error
)
"
)
}
}
...
@@ -196,6 +193,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -196,6 +193,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
func
GYSGLViewControllerFinish
()
{
func
GYSGLViewControllerFinish
()
{
//此处无用
//此处无用
}
}
var
ven_id
=
-
1
var
ven_id
=
-
1
func
GYSListViewControllerGetGYS
(
sender
:
VendorListDataModel
)
{
func
GYSListViewControllerGetGYS
(
sender
:
VendorListDataModel
)
{
holderArr
.
insert
(
sender
.
ven_name
!
,
at
:
3
)
holderArr
.
insert
(
sender
.
ven_name
!
,
at
:
3
)
...
@@ -233,14 +231,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -233,14 +231,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
HUD
.
flash
(
.
label
(
"请选择入库类型"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请选择入库类型"
),
delay
:
1.2
)
return
return
}
}
// if holderArr[3] == "请选择供应商" {
// HUD.flash(.label("请选择供应商"), delay: 1.2)
// return
// }
// if holderArr[4] == "请选择商品类型" {
// HUD.flash(.label("请选择商品类型"), delay: 1.2)
// return
// }
if
rkSelectArr
.
count
==
0
{
if
rkSelectArr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择商品"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请选择商品"
),
delay
:
1.2
)
return
return
...
@@ -313,7 +304,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -313,7 +304,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
"i_type"
:
typeSelect
+
8
as
Any
,
"i_type"
:
typeSelect
+
8
as
Any
,
"apply_remark"
:
remark
as
Any
,
"apply_remark"
:
remark
as
Any
,
"po_id"
:
po_id
as
Any
,
"po_id"
:
po_id
as
Any
,
"ven_id"
:
ven_id
as
Any
,
//待处理
"ven_id"
:
ven_id
as
Any
,
"g_type"
:
selectTypeSelect
+
1
as
Any
,
"g_type"
:
selectTypeSelect
+
1
as
Any
,
"goods_info"
:
goods_info
as
Any
"goods_info"
:
goods_info
as
Any
]
]
...
@@ -327,8 +318,6 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -327,8 +318,6 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
}
}
else
{
}
else
{
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
var
goodsInfoArr
:
Array
<
Any
>
?
=
[]
for
i
in
0
..<
rkSelectArr
.
count
{
for
i
in
0
..<
rkSelectArr
.
count
{
let
model
=
rkSelectArr
[
i
]
let
model
=
rkSelectArr
[
i
]
...
@@ -382,9 +371,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -382,9 +371,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
})
{
(
error
)
in
})
{
(
error
)
in
}
}
}
}
}
}
var
gmNumber
:
Int
?
var
gmNumber
:
Int
?
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
76024653
...
@@ -26,23 +26,23 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -26,23 +26,23 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
func
Print_Gprinter_View_Print
(
data
:
Array
<
Dictionary
<
String
,
Any
>>
)
{
func
Print_Gprinter_View_Print
(
data
:
Array
<
Dictionary
<
String
,
Any
>>
)
{
print
(
"打印"
)
print
(
"打印"
)
// let dict = [
// "user_token":UserToken as Any,
// let dict = [
// "o_type":typeSelect! + 1 as Any,
// "user_token":UserToken as Any,
// "audit_remark":remark as Any,
// "o_type":typeSelect! + 1 as Any,
// "goods_info":dataChangeString(sender: goodsInfoArr) as Any
// "audit_remark":remark as Any,
// ]
// "goods_info":dataChangeString(sender: goodsInfoArr) as Any
// HUD.show(.progress)
// ]
// GoodsOutput(dict, success: { (data) in
// HUD.show(.progress)
// HUD.hide()
// GoodsOutput(dict, success: { (data) in
// HUD.flash(.labeledSubSuccess(subtitle: "出库成功"), delay: 1.2)
// HUD.hide()
// self.navigationController?.popViewController(animated: true)
// HUD.flash(.labeledSubSuccess(subtitle: "出库成功"), delay: 1.2)
// }) { (error) in
// self.navigationController?.popViewController(animated: true)
//
// }) { (error) in
// }
//
// }
}
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
@@ -66,8 +66,8 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -66,8 +66,8 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
if
holderArr
.
first
==
"请选择出库类型"
{
if
typeSelect
==
nil
{
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
return
return
}
}
if
remark
.
count
==
0
{
if
remark
.
count
==
0
{
...
@@ -78,53 +78,111 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -78,53 +78,111 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
HUD
.
flash
(
.
label
(
"请选择出库商品"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请选择出库商品"
),
delay
:
1.2
)
return
return
}
}
if
isGm
{
rkSelectArr
.
forEach
{
(
model
)
in
goodsInfoArr
.
removeAll
()
if
model
.
chuKuLiang
==
nil
{
for
i
in
0
..<
rkSelectArr
.
count
{
HUD
.
flash
(
.
label
(
"请填写出库数量"
),
delay
:
1.2
)
let
item
=
rkSelectArr
[
i
]
return
var
count
=
0
let
pici
=
piCiArr
!
[
i
]
if
pici
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择出库商品批次"
),
delay
:
1.2
)
return
}
for
data
in
pici
{
count
+=
data
.
chuHuoLiang
!
}
var
batchInfo
:
Array
<
Any
>
=
[]
piCiArr
!.
forEach
{
(
batchArr
)
in
batchArr
.
forEach
{
(
model
)
in
let
batch
=
[
"w_id"
:
model
.
w_id
as
Any
,
"p_id"
:
model
.
p_id
as
Any
,
"number"
:
model
.
chuHuoLiang
as
Any
,
"production_data"
:
model
.
production_data
as
Any
,
"shelf_life"
:
model
.
shelf_life
as
Any
,
"valid_date"
:
model
.
valid_date
as
Any
,
"batch_id"
:
model
.
batch_id
as
Any
,
"report_id"
:
model
.
report_id
as
Any
,
"ven_id"
:
model
.
ven_id
as
Any
]
batchInfo
.
append
(
batch
)
}
}
let
goods
=
[
"goods_id"
:
item
.
goods_id
as
Any
,
"goods_name"
:
item
.
goods_name
as
Any
,
"goods_spec"
:
item
.
spec_str
as
Any
,
"sku_id"
:
item
.
sku_id
as
Any
,
"number"
:
count
as
Any
,
"batch_info"
:
batchInfo
as
Any
,
]
goodsInfoArr
.
append
(
goods
)
}
}
}
var
goodsInfoArr
:
Array
<
Any
>
=
[]
let
dict
=
[
rkSelectArr
.
forEach
{
(
model
)
in
"user_token"
:
UserToken
as
Any
,
let
goods
=
[
"o_type"
:
typeSelect
!
+
1
as
Any
,
"goods_id"
:
model
.
goods_id
as
Any
,
"audit_remark"
:
remark
as
Any
,
"goods_name"
:
model
.
goods_name
as
Any
,
"goods_info"
:
dataChangeString
(
sender
:
goodsInfoArr
)
as
Any
"goods_spec"
:
model
.
spec_str
as
Any
,
"sku_id"
:
model
.
sku_id
as
Any
,
"number"
:
model
.
chuKuLiang
as
Any
,
]
]
goodsInfoArr
.
append
(
goods
)
}
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"o_type"
:
typeSelect
!
+
1
as
Any
,
"audit_remark"
:
remark
as
Any
,
"goods_info"
:
dataChangeString
(
sender
:
goodsInfoArr
)
as
Any
]
GoodsOutputApply
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"申请成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
HUD
.
show
(
.
progress
)
GoodsOutput
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"出库成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
else
{
rkSelectArr
.
forEach
{
(
model
)
in
if
model
.
chuKuLiang
==
nil
{
HUD
.
flash
(
.
label
(
"请填写出库数量"
),
delay
:
1.2
)
return
}
}
var
goodsInfoArr
:
Array
<
Any
>
=
[]
rkSelectArr
.
forEach
{
(
model
)
in
let
goods
=
[
"goods_id"
:
model
.
goods_id
as
Any
,
"goods_name"
:
model
.
goods_name
as
Any
,
"goods_spec"
:
model
.
spec_str
as
Any
,
"sku_id"
:
model
.
sku_id
as
Any
,
"number"
:
model
.
chuKuLiang
as
Any
,
]
goodsInfoArr
.
append
(
goods
)
}
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"o_type"
:
typeSelect
!
+
1
as
Any
,
"audit_remark"
:
remark
as
Any
,
"goods_info"
:
dataChangeString
(
sender
:
goodsInfoArr
)
as
Any
]
GoodsOutputApply
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"申请成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
}
}
}
}
}
var
remark
=
""
var
remark
=
""
func
sureGeliAlertTextViewAction
(
sender
:
String
)
{
func
sureGeliAlertTextViewAction
(
sender
:
String
)
{
remark
=
sender
remark
=
sender
holderArr
.
insert
(
remark
,
at
:
holderArr
.
count
-
1
)
holderArr
.
insert
(
remark
,
at
:
holderArr
.
count
-
1
)
holderArr
.
remove
(
at
:
holderArr
.
count
-
1
)
holderArr
.
remove
(
at
:
holderArr
.
count
-
1
)
listView
.
reloadData
()
listView
.
reloadData
()
}
}
func
CKNonGmCellInputCount
(
sender
:
String
,
cell
:
CKNonGmCell
)
{
func
CKNonGmCellInputCount
(
sender
:
String
,
cell
:
CKNonGmCell
)
{
//输入数据
//输入数据
let
num
=
sender
as
NSString
let
num
=
sender
as
NSString
...
@@ -141,7 +199,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
...
@@ -141,7 +199,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
var
goodsInfoArr
:
Array
<
Any
>
=
[]
var
goodsInfoArr
:
Array
<
Any
>
=
[]
@IBOutlet
weak
var
gm_view
:
UIView
!
@IBOutlet
weak
var
gm_view
:
UIView
!
@IBAction
func
ck_action
(
_
sender
:
UIButton
)
{
@IBAction
func
ck_action
(
_
sender
:
UIButton
)
{
if
isGm
{
if
isGm
{
if
typeSelect
==
nil
{
if
typeSelect
==
nil
{
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
View file @
76024653
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<action
selector=
"check_action:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"WR3-RW-mnT"
/>
<action
selector=
"check_action:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"WR3-RW-mnT"
/>
</connections>
</connections>
</button>
</button>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"red_arrow"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2p2-7L-Hi7"
>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"red_arrow"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2p2-7L-Hi7"
>
<rect
key=
"frame"
x=
"327"
y=
"98"
width=
"3"
height=
"7"
/>
<rect
key=
"frame"
x=
"327"
y=
"98"
width=
"3"
height=
"7"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"3"
id=
"Dwj-HF-JHh"
/>
<constraint
firstAttribute=
"width"
constant=
"3"
id=
"Dwj-HF-JHh"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
76024653
...
@@ -199,6 +199,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -199,6 +199,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
xiao_ji_lbl
.
text
=
"
\(
totalP
)
"
cell
.
xiao_ji_lbl
.
text
=
"
\(
totalP
)
"
if
orderType
==
1
{
if
orderType
==
1
{
cell
.
botton_height
.
constant
=
40
cell
.
dj_wk_top
.
constant
=
10
cell
.
dj_wk_top
.
constant
=
10
cell
.
dj_wk_height
.
constant
=
40
cell
.
dj_wk_height
.
constant
=
40
cell
.
dj_wk_view
.
isHidden
=
false
cell
.
dj_wk_view
.
isHidden
=
false
...
@@ -207,9 +208,8 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -207,9 +208,8 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
xiao_ji_lbl
.
isHidden
=
false
cell
.
xiao_ji_lbl
.
isHidden
=
false
cell
.
ding_jin_lbl
.
text
=
"定金:¥"
+
djTFstr
cell
.
ding_jin_lbl
.
text
=
"定金:¥"
+
djTFstr
cell
.
wei_kuan_lbl
.
text
=
"尾款:¥"
+
wkTFstr
cell
.
wei_kuan_lbl
.
text
=
"尾款:¥"
+
wkTFstr
}
else
{
}
else
{
// cell.totalPriceLbl.text = "¥\(priceStr.floatValue * countStr.floatValue)"
cell
.
botton_height
.
constant
=
10
cell
.
xiao_ji_lbl
.
isHidden
=
true
cell
.
xiao_ji_lbl
.
isHidden
=
true
cell
.
dj_wk_top
.
constant
=
0
cell
.
dj_wk_top
.
constant
=
0
cell
.
dj_wk_height
.
constant
=
0
cell
.
dj_wk_height
.
constant
=
0
...
@@ -699,9 +699,11 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -699,9 +699,11 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
if
indexPath
.
section
==
1
{
if
orderType
==
1
{
if
orderType
==
1
{
print
(
"abc"
)
return
340
return
340
}
}
return
300
print
(
"bcd"
)
return
260
}
}
if
indexPath
.
section
==
2
{
//新增预售
if
indexPath
.
section
==
2
{
//新增预售
if
orderType
==
1
{
if
orderType
==
1
{
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
View file @
76024653
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
...
@@ -23,7 +24,7 @@
...
@@ -23,7 +24,7 @@
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"J3Y-QF-SSQ"
customClass=
"LGButton"
customModule=
"LGButton"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"J3Y-QF-SSQ"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
@@ -55,13 +56,14 @@
...
@@ -55,13 +56,14 @@
</label>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<connections>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"615-RE-zVt"
/>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"615-RE-zVt"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"wfr-0B-yUN"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"wfr-0B-yUN"
/>
</connections>
</connections>
</tableView>
</tableView>
</subviews>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"7kx-vF-yfW"
secondAttribute=
"trailing"
id=
"9bU-q5-Mfs"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"7kx-vF-yfW"
secondAttribute=
"trailing"
id=
"9bU-q5-Mfs"
/>
...
@@ -76,10 +78,14 @@
...
@@ -76,10 +78,14 @@
<constraint
firstAttribute=
"trailing"
secondItem=
"J3Y-QF-SSQ"
secondAttribute=
"trailing"
id=
"fNo-WJ-CY3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"J3Y-QF-SSQ"
secondAttribute=
"trailing"
id=
"fNo-WJ-CY3"
/>
<constraint
firstItem=
"Tww-Di-Bao"
firstAttribute=
"bottom"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"bottom"
id=
"z6v-Ej-Xd1"
/>
<constraint
firstItem=
"Tww-Di-Bao"
firstAttribute=
"bottom"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"bottom"
id=
"z6v-Ej-Xd1"
/>
</constraints>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"121.875"
/>
</view>
</view>
</objects>
</objects>
<designables>
<designable
name=
"J3Y-QF-SSQ"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
@@ -90,5 +96,8 @@
...
@@ -90,5 +96,8 @@
<namedColor
name=
"白色背景色"
>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController1.swift
View file @
76024653
...
@@ -36,14 +36,14 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
...
@@ -36,14 +36,14 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
recordArr
.
append
(
data
)
recordArr
.
append
(
data
)
}
}
totalCount
=
0
//
totalCount = 0
for
item
in
recordArr
{
//
for item in recordArr{
if
item
.
chuHuoLiang
!=
nil
{
//
if item.chuHuoLiang != nil {
totalCount
+=
item
.
chuHuoLiang
!
//
totalCount += item.chuHuoLiang!
}
//
}
}
//
}
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
//
count_Lbl.text = StringByInt(number: totalCount)
}
}
...
@@ -60,15 +60,15 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
...
@@ -60,15 +60,15 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
recordArr
.
append
(
data
)
recordArr
.
append
(
data
)
}
}
print
(
recordArr
.
count
)
print
(
recordArr
.
count
)
totalCount
=
0
//
totalCount = 0
for
item
in
selectArr
{
//
for item in selectArr{
let
data
=
dataArray
[
item
]
//
let data = dataArray[item]
if
data
.
chuHuoLiang
!=
nil
{
//
if data.chuHuoLiang != nil {
print
(
data
.
chuHuoLiang
)
//
print(data.chuHuoLiang)
totalCount
+=
data
.
chuHuoLiang
!
//
totalCount += data.chuHuoLiang!
}
//
}
}
//
}
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
//
count_Lbl.text = StringByInt(number: totalCount)
listView
.
reloadData
()
listView
.
reloadData
()
}
}
...
@@ -103,15 +103,23 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
...
@@ -103,15 +103,23 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
return
return
}
}
}
}
var
temp
=
0
for
model
in
dataArray
{
for
model
in
dataArray
{
for
item
in
recordArr
{
for
item
in
recordArr
{
if
model
.
batch_id
==
item
.
batch_id
{
if
model
.
batch_id
==
item
.
batch_id
{
if
model
.
chuHuoLiang
!=
nil
{
if
model
.
chuHuoLiang
!=
nil
{
item
.
chuHuoLiang
=
model
.
chuHuoLiang
item
.
chuHuoLiang
=
model
.
chuHuoLiang
temp
+=
item
.
chuHuoLiang
!
}
}
}
}
}
}
}
}
if
temp
>
totalCount
{
HUD
.
flash
(
.
label
(
"超出下单数量"
),
delay
:
1.2
)
return
}
delegate
?
.
PiCiXuanZeViewControllerPiCiSelect
(
data
:
recordArr
,
p_id
:
tag
!
)
delegate
?
.
PiCiXuanZeViewControllerPiCiSelect
(
data
:
recordArr
,
p_id
:
tag
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
...
@@ -208,12 +216,12 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
...
@@ -208,12 +216,12 @@ class PiCiXuanZeViewController1: BaseViewController,UITableViewDelegate,UITableV
}
}
totalCount
=
0
//
totalCount = 0
if
recordArr
.
count
>
0
{
//
if recordArr.count > 0 {
for
item
in
recordArr
{
//
for item in recordArr{
totalCount
+=
item
.
chuHuoLiang
!
//
totalCount += item.chuHuoLiang!
}
//
}
}
//
}
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
count_Lbl
.
text
=
StringByInt
(
number
:
totalCount
)
}
}
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
76024653
...
@@ -240,6 +240,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -240,6 +240,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
break
break
case
1
:
//待付款
case
1
:
//待付款
btnStr
=
[
"取消订单"
]
btnStr
=
[
"取消订单"
]
if
rowModel
.
from
==
3
||
rowModel
.
from
==
5
{
btnStr
=
[
"取消订单"
,
"确认收款"
]
}
if
rowModel
.
shipping_status
==
1
&&
rowModel
.
pay_status
==
0
{
if
rowModel
.
shipping_status
==
1
&&
rowModel
.
pay_status
==
0
{
btnStr
=
[
"退货"
]
btnStr
=
[
"退货"
]
}
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
76024653
...
@@ -22,19 +22,23 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -22,19 +22,23 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
func
DaiKeXiaDanGouWuCell_select_pi_ci
(
cell
:
DaiKeXiaDanGouWuCell
)
{
func
DaiKeXiaDanGouWuCell_select_pi_ci
(
cell
:
DaiKeXiaDanGouWuCell
)
{
if
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
6
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
3
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
5
){
// if (self.dataMdoel?.order_res?.order_status == 6 && self.dataMdoel?.order_res?.from != 3 && self.dataMdoel?.order_res?.from != 5){
let
model
=
self
.
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
if
isYuShou
{
return
let
vc
=
PiCiXuanZeViewController1
()
vc
.
sku_id
=
Int
((
model
?
.
sku_id
)
!
)
vc
.
delegate
=
self
vc
.
tag
=
cell
.
tag
if
piCiArr
!.
count
>
0
{
let
arr
=
piCiArr
!
[
cell
.
tag
]
vc
.
recordArr
=
arr
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
let
model
=
self
.
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
let
vc
=
PiCiXuanZeViewController1
()
vc
.
sku_id
=
Int
((
model
?
.
sku_id
)
!
)
vc
.
delegate
=
self
vc
.
tag
=
cell
.
tag
if
piCiArr
!.
count
>
0
{
let
arr
=
piCiArr
!
[
cell
.
tag
]
vc
.
recordArr
=
arr
}
vc
.
totalCount
=
(
model
?
.
cart_number
)
!
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// }
}
}
var
sufficient_code
=
-
1
var
sufficient_code
=
-
1
...
@@ -520,26 +524,35 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -520,26 +524,35 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//MARK:--商品cell
//MARK:--商品cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DaiKeXiaDanGouWuCell"
)
as!
DaiKeXiaDanGouWuCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DaiKeXiaDanGouWuCell"
)
as!
DaiKeXiaDanGouWuCell
if
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
1
||
isYuShou
{
cell
.
non_add_icon
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
already_add_icon
.
isHidden
=
true
cell
.
status_text_lbl
.
isHidden
=
true
}
if
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
6
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
3
&&
self
.
dataMdoel
?
.
order_res
?
.
from
!=
5
)
{
// if (self.dataMdoel?.order_res?.order_status == 6 && self.dataMdoel?.order_res?.from != 3 && self.dataMdoel?.order_res?.from != 5)
{
let
arr
=
piCiArr
!
[
indexPath
.
row
]
let
arr
=
piCiArr
!
[
indexPath
.
row
]
if
arr
.
count
>
0
{
cell
.
non_add_icon
.
isHidden
=
true
if
arr
.
count
>
0
{
cell
.
text_line
.
isHidden
=
true
cell
.
non_add_icon
.
isHidden
=
true
cell
.
right_margin
.
constant
=
5
cell
.
text_line
.
isHidden
=
true
cell
.
text_line
.
isHidden
=
true
cell
.
right_margin
.
constant
=
5
cell
.
already_add_icon
.
isHidden
=
fals
e
cell
.
text_line
.
isHidden
=
tru
e
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"多选按钮字体颜色"
)
cell
.
already_add_icon
.
isHidden
=
false
}
else
{
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"多选按钮字体颜色"
)
cell
.
non_add_icon
.
isHidden
=
false
}
else
{
cell
.
already_add_icon
.
isHidden
=
tru
e
cell
.
non_add_icon
.
isHidden
=
fals
e
cell
.
text_line
.
isHidden
=
fals
e
cell
.
already_add_icon
.
isHidden
=
tru
e
cell
.
status_text_lbl
.
isHidden
=
false
cell
.
text_line
.
isHidden
=
false
cell
.
right_margin
.
constant
=
-
5
cell
.
status_text_lbl
.
isHidden
=
false
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"#F57575"
)
cell
.
right_margin
.
constant
=
-
5
}
cell
.
status_text_lbl
.
textColor
=
UIColor
(
named
:
"#F57575"
)
}
}
// }
cell
.
delegate
=
self
cell
.
delegate
=
self
cell
.
isDetail
=
true
cell
.
isDetail
=
true
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
...
@@ -1409,6 +1422,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1409,6 +1422,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
case
1
:
case
1
:
// str = "已确定" "待付款"
// str = "已确定" "待付款"
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"取消订单"
]
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"取消订单"
]
if
self
.
dataMdoel
?
.
order_res
?
.
from
==
3
||
self
.
dataMdoel
?
.
order_res
?
.
from
==
5
{
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"确认收款"
,
"取消订单"
]
}
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"退货"
]
titleArr
=
[
"打印"
,
"修改价格"
,
"付款码"
,
"退货"
]
}
}
...
@@ -2003,11 +2019,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -2003,11 +2019,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
delegate
?
.
refishingOrderDchange
()
self
.
delegate
?
.
refishingOrderDchange
()
self
.
loadData
()
self
.
loadData
()
})
{
(
error
)
in
})
{
(
error
)
in
}
}
}
}
}
}
}
}
}
}
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