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
4f2b9d53
Commit
4f2b9d53
authored
May 15, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新增商品
parent
0afe6076
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
103 additions
and
28 deletions
+103
-28
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+3
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/WareHouseSpCell.swift
GeliBusinessPlatform/View/Cell/WareHouseSpCell.swift
+14
-6
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
+11
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/ChuKuViewController.swift
...rm/ViewController/库存商品(库存商品的出库)/ChuKuViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/ChuKuViewController.xib
...form/ViewController/库存商品(库存商品的出库)/ChuKuViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/KuCunShangPinCell.swift
...form/ViewController/库存商品(库存商品的出库)/KuCunShangPinCell.swift
+0
-0
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/KuCunShangPinCell.xib
...atform/ViewController/库存商品(库存商品的出库)/KuCunShangPinCell.xib
+0
-0
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/KuCunShangPinXQViewController.swift
...troller/库存商品(库存商品的出库)/KuCunShangPinXQViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/KuCunShangPinXQViewController.xib
...ontroller/库存商品(库存商品的出库)/KuCunShangPinXQViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/KuCunXiangQingCell.swift
...orm/ViewController/库存商品(库存商品的出库)/KuCunXiangQingCell.swift
+0
-0
GeliBusinessPlatform/ViewController/库存商品(库存商品的出库)/KuCunXiangQingCell.xib
...tform/ViewController/库存商品(库存商品的出库)/KuCunXiangQingCell.xib
+0
-0
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
...ontroller/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
...orm/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
+16
-4
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+56
-12
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
4f2b9d53
...
@@ -1500,7 +1500,7 @@
...
@@ -1500,7 +1500,7 @@
E02C88232456B23400925766
/* 物流跟踪 */
,
E02C88232456B23400925766
/* 物流跟踪 */
,
E02FD9F3245578D800E10E27
/* 地址管理 */
,
E02FD9F3245578D800E10E27
/* 地址管理 */
,
E02FD9EE2455704600E10E27
/* 出入库记录 */
,
E02FD9EE2455704600E10E27
/* 出入库记录 */
,
E0A2E82024553EC500D6DB34
/* 库存商品 */
,
E0A2E82024553EC500D6DB34
/* 库存商品
(库存商品的出库)
*/
,
E0A2E81724552E1900D6DB34
/* 新增、编辑品牌 */
,
E0A2E81724552E1900D6DB34
/* 新增、编辑品牌 */
,
E09F4C9F2452D13F00BE033D
/* 增值服务 */
,
E09F4C9F2452D13F00BE033D
/* 增值服务 */
,
E09F4C9A2452BEA000BE033D
/* 寄派方式 */
,
E09F4C9A2452BEA000BE033D
/* 寄派方式 */
,
...
@@ -1610,7 +1610,7 @@
...
@@ -1610,7 +1610,7 @@
path
=
"新增、编辑品牌"
;
path
=
"新增、编辑品牌"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
E0A2E82024553EC500D6DB34
/* 库存商品 */
=
{
E0A2E82024553EC500D6DB34
/* 库存商品
(库存商品的出库)
*/
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
E0A2E82524555B4400D6DB34
/* KuCunShangPinCell.swift */
,
E0A2E82524555B4400D6DB34
/* KuCunShangPinCell.swift */
,
...
@@ -1622,7 +1622,7 @@
...
@@ -1622,7 +1622,7 @@
E00E48C42457C99900F16545
/* KuCunShangPinXQViewController.swift */
,
E00E48C42457C99900F16545
/* KuCunShangPinXQViewController.swift */
,
E00E48C52457C99900F16545
/* KuCunShangPinXQViewController.xib */
,
E00E48C52457C99900F16545
/* KuCunShangPinXQViewController.xib */
,
);
);
path
=
"库存商品"
;
path
=
"库存商品
(库存商品的出库)
"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
E0A409C02463F2F400CFF109
/* 收支统计 */
=
{
E0A409C02463F2F400CFF109
/* 收支统计 */
=
{
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4f2b9d53
No preview for this file type
GeliBusinessPlatform/View/Cell/WareHouseSpCell.swift
View file @
4f2b9d53
...
@@ -7,28 +7,36 @@
...
@@ -7,28 +7,36 @@
//
//
import
UIKit
import
UIKit
@objc
protocol
WareHouseSpCellDelegate
{
protocol
WareHouseSpCellDelegate
{
@objc
optional
func
clickAction
(
sender
:
UIButton
)
func
clickAction
(
sender
:
UIButton
)
func
whTextChange
(
sender
:
String
,
cell
:
WareHouseSpCell
)
func
whSwitchChange
(
sender
:
UISwitch
)
}
}
class
WareHouseSpCell
:
UITableViewCell
{
class
WareHouseSpCell
:
UITableViewCell
{
var
delegate
:
WareHouseSpCellDelegate
?
var
delegate
:
WareHouseSpCellDelegate
?
@IBOutlet
weak
var
hiddenBtn
:
UIButton
!
@IBOutlet
weak
var
whSwitch
:
UISwitch
!
@IBOutlet
weak
var
whSwitch
:
UISwitch
!
@IBOutlet
weak
var
clickBtn
:
UIButton
!
@IBOutlet
weak
var
clickBtn
:
UIButton
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBAction
func
btnAction
(
_
sender
:
UIButton
)
{
@IBAction
func
btnAction
(
_
sender
:
UIButton
)
{
delegate
?
.
clickAction
?
(
sender
:
sender
)
delegate
?
.
clickAction
(
sender
:
sender
)
}
}
@IBOutlet
weak
var
btnImg
:
UIImageView
!
@IBOutlet
weak
var
btnImg
:
UIImageView
!
@IBOutlet
weak
var
detailTF
:
UITextField
!
@IBOutlet
weak
var
detailTF
:
UITextField
!
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
whSwitch
.
addTarget
(
self
,
action
:
#selector(
swValueChange(sender:)
)
,
for
:
.
valueChanged
)
whSwitch
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
whSwitch
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
detailTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
// Initialization code
// Initialization code
}
}
@objc
func
swValueChange
(
sender
:
UISwitch
){
delegate
?
.
whSwitchChange
(
sender
:
sender
)
}
@objc
func
textChange
(
sender
:
UITextField
){
delegate
?
.
whTextChange
(
sender
:
sender
.
text
!
,
cell
:
self
)
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
super
.
setSelected
(
selected
,
animated
:
animated
)
...
...
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
View file @
4f2b9d53
...
@@ -62,10 +62,17 @@
...
@@ -62,10 +62,17 @@
</constraints>
</constraints>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
</switch>
</switch>
<button
hidden=
"YES"
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Ya-ff-0NB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"43"
/>
<connections>
<action
selector=
"btnAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"0b7-xP-8hW"
/>
</connections>
</button>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"uEc-pe-iBV"
firstAttribute=
"leading"
secondItem=
"zsG-fB-Zeb"
secondAttribute=
"trailing"
constant=
"10"
id=
"DaV-Au-Fbz"
/>
<constraint
firstItem=
"uEc-pe-iBV"
firstAttribute=
"leading"
secondItem=
"zsG-fB-Zeb"
secondAttribute=
"trailing"
constant=
"10"
id=
"DaV-Au-Fbz"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"uEc-pe-iBV"
secondAttribute=
"bottom"
id=
"JR4-Gh-Lso"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"uEc-pe-iBV"
secondAttribute=
"bottom"
id=
"JR4-Gh-Lso"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"7Ya-ff-0NB"
secondAttribute=
"trailing"
id=
"LPq-wT-wK0"
/>
<constraint
firstItem=
"Nns-NP-fAD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"O4l-xC-hak"
/>
<constraint
firstItem=
"Nns-NP-fAD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"O4l-xC-hak"
/>
<constraint
firstItem=
"6Eb-eL-RFq"
firstAttribute=
"top"
secondItem=
"zsG-fB-Zeb"
secondAttribute=
"bottom"
id=
"Ptu-ui-fcg"
/>
<constraint
firstItem=
"6Eb-eL-RFq"
firstAttribute=
"top"
secondItem=
"zsG-fB-Zeb"
secondAttribute=
"bottom"
id=
"Ptu-ui-fcg"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"3PL-vr-q2W"
secondAttribute=
"trailing"
constant=
"15"
id=
"R0N-fj-Nf4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"3PL-vr-q2W"
secondAttribute=
"trailing"
constant=
"15"
id=
"R0N-fj-Nf4"
/>
...
@@ -77,10 +84,13 @@
...
@@ -77,10 +84,13 @@
<constraint
firstItem=
"Nns-NP-fAD"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"f18-iY-s23"
/>
<constraint
firstItem=
"Nns-NP-fAD"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"f18-iY-s23"
/>
<constraint
firstItem=
"3PL-vr-q2W"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"gzt-C3-0sQ"
/>
<constraint
firstItem=
"3PL-vr-q2W"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"gzt-C3-0sQ"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"6Eb-eL-RFq"
secondAttribute=
"bottom"
id=
"h6b-GE-I1H"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"6Eb-eL-RFq"
secondAttribute=
"bottom"
id=
"h6b-GE-I1H"
/>
<constraint
firstItem=
"7Ya-ff-0NB"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"i6c-K5-0nF"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Nns-NP-fAD"
secondAttribute=
"bottom"
id=
"jIE-bB-8ic"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Nns-NP-fAD"
secondAttribute=
"bottom"
id=
"jIE-bB-8ic"
/>
<constraint
firstItem=
"zsG-fB-Zeb"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"kT5-VR-Vqg"
/>
<constraint
firstItem=
"zsG-fB-Zeb"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"kT5-VR-Vqg"
/>
<constraint
firstItem=
"GUA-N4-Rgf"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"n0g-sO-UI3"
/>
<constraint
firstItem=
"GUA-N4-Rgf"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"n0g-sO-UI3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uEc-pe-iBV"
secondAttribute=
"trailing"
id=
"riL-Qy-yIc"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uEc-pe-iBV"
secondAttribute=
"trailing"
id=
"riL-Qy-yIc"
/>
<constraint
firstItem=
"7Ya-ff-0NB"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"uMQ-Vv-5ZN"
/>
<constraint
firstItem=
"6Eb-eL-RFq"
firstAttribute=
"top"
secondItem=
"7Ya-ff-0NB"
secondAttribute=
"bottom"
id=
"uoH-tq-oFM"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"GUA-N4-Rgf"
secondAttribute=
"trailing"
constant=
"15"
id=
"zP6-ZR-myY"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"GUA-N4-Rgf"
secondAttribute=
"trailing"
constant=
"15"
id=
"zP6-ZR-myY"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
...
@@ -89,6 +99,7 @@
...
@@ -89,6 +99,7 @@
<outlet
property=
"btnImg"
destination=
"3PL-vr-q2W"
id=
"YM6-J5-D8z"
/>
<outlet
property=
"btnImg"
destination=
"3PL-vr-q2W"
id=
"YM6-J5-D8z"
/>
<outlet
property=
"clickBtn"
destination=
"uEc-pe-iBV"
id=
"Ld9-MC-lkC"
/>
<outlet
property=
"clickBtn"
destination=
"uEc-pe-iBV"
id=
"Ld9-MC-lkC"
/>
<outlet
property=
"detailTF"
destination=
"zsG-fB-Zeb"
id=
"XEU-3n-EoN"
/>
<outlet
property=
"detailTF"
destination=
"zsG-fB-Zeb"
id=
"XEU-3n-EoN"
/>
<outlet
property=
"hiddenBtn"
destination=
"7Ya-ff-0NB"
id=
"Afu-I3-OZ4"
/>
<outlet
property=
"titleLbl"
destination=
"Nns-NP-fAD"
id=
"qIo-DJ-djf"
/>
<outlet
property=
"titleLbl"
destination=
"Nns-NP-fAD"
id=
"qIo-DJ-djf"
/>
<outlet
property=
"whSwitch"
destination=
"GUA-N4-Rgf"
id=
"IZK-Bu-rZg"
/>
<outlet
property=
"whSwitch"
destination=
"GUA-N4-Rgf"
id=
"IZK-Bu-rZg"
/>
</connections>
</connections>
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
4f2b9d53
...
@@ -82,7 +82,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -82,7 +82,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
//是否为预售商品
//是否为预售商品
isYuShouShangPin
=
tru
e
isYuShouShangPin
=
fals
e
navbar
.
title
=
"商品详情"
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
...
@@ -111,7 +111,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -111,7 +111,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
cell
.
nameLbl
.
text
=
spxxArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
spxxArr
[
indexPath
.
row
]
//商家名称
//商家名称
switch
cell
.
nameLbl
.
text
{
switch
cell
.
nameLbl
.
text
{
case
"商
家
名称"
:
case
"商
品
名称"
:
cell
.
textTF
.
text
=
itemName
cell
.
textTF
.
text
=
itemName
break
break
case
"起卖数量"
:
case
"起卖数量"
:
...
...
GeliBusinessPlatform/ViewController/库存商品/ChuKuViewController.swift
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/ChuKuViewController.swift
View file @
4f2b9d53
...
@@ -16,7 +16,7 @@ class ChuKuViewController: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -16,7 +16,7 @@ class ChuKuViewController: BaseViewController,UITableViewDelegate,UITableViewDat
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"出库"
navbar
.
title
=
"出库"
//库存商品的出库
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
lietView
.
snp
.
makeConstraints
{
(
make
)
in
lietView
.
snp
.
makeConstraints
{
(
make
)
in
...
...
GeliBusinessPlatform/ViewController/库存商品/ChuKuViewController.xib
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/ChuKuViewController.xib
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/库存商品/KuCunShangPinCell.swift
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/KuCunShangPinCell.swift
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/库存商品/KuCunShangPinCell.xib
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/KuCunShangPinCell.xib
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/库存商品/KuCunShangPinXQViewController.swift
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/KuCunShangPinXQViewController.swift
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/库存商品/KuCunShangPinXQViewController.xib
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/KuCunShangPinXQViewController.xib
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/库存商品/KuCunXiangQingCell.swift
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/KuCunXiangQingCell.swift
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/库存商品/KuCunXiangQingCell.xib
→
GeliBusinessPlatform/ViewController/库存商品
(库存商品的出库)
/KuCunXiangQingCell.xib
View file @
4f2b9d53
File moved
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
View file @
4f2b9d53
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
View file @
4f2b9d53
...
@@ -9,9 +9,15 @@
...
@@ -9,9 +9,15 @@
import
UIKit
import
UIKit
import
ViewAnimator
import
ViewAnimator
import
LGButton
import
LGButton
import
IQKeyboardManagerSwift
protocol
ChangeGoodsPriceVCDelegate
{
func
ChangeGoodsPriceVCKeyboardDone
(
str
:
String
)
}
class
ChangeGoodsPriceVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UITextFieldDelegate
{
class
ChangeGoodsPriceVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UITextFieldDelegate
{
var
orderID
:
Int
?
=
0
var
orderID
:
Int
?
=
0
var
delegate
:
ChangeGoodsPriceVCDelegate
?
var
dataArr
:
Array
<
OrderDetailGoodsModel
>
?
=
[]
var
dataArr
:
Array
<
OrderDetailGoodsModel
>
?
=
[]
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -36,7 +42,11 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -36,7 +42,11 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
}
}
}
}
func
textFieldShouldReturn
(
_
textField
:
UITextField
)
->
Bool
{
IQKeyboardManager
.
shared
.
resignFirstResponder
()
delegate
?
.
ChangeGoodsPriceVCKeyboardDone
(
str
:
textField
.
text
!
)
return
true
}
var
tableV
:
UITableView
!
var
tableV
:
UITableView
!
...
@@ -65,7 +75,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -65,7 +75,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ChangePriceNormalCell"
)
as!
ChangePriceNormalCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ChangePriceNormalCell"
)
as!
ChangePriceNormalCell
let
rowModel
=
dataArr
!
[
indexPath
.
row
]
//
let rowModel = dataArr![indexPath.row]
//图片暂不处理
//图片暂不处理
// cell.imageView?.kf.setImage(with: <#T##Resource?#>)
// cell.imageView?.kf.setImage(with: <#T##Resource?#>)
// cell.goodsNameLbl.text = rowModel.goods_name
// cell.goodsNameLbl.text = rowModel.goods_name
...
@@ -73,7 +83,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -73,7 +83,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
// cell.priceTf.text = rowModel.goods_price
// cell.priceTf.text = rowModel.goods_price
// cell.detailLbl.isHidden = true
// cell.detailLbl.isHidden = true
cell
.
priceTf
.
delegate
=
self
cell
.
priceTf
.
delegate
=
self
cell
.
priceTf
.
returnKeyType
=
.
done
return
cell
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
...
@@ -84,5 +94,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -84,5 +94,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
120*
glscale
return
120*
glscale
}
}
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
IQKeyboardManager
.
shared
.
resignFirstResponder
()
}
}
}
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
4f2b9d53
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
import
UIKit
import
UIKit
class
OrderDViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GuanLianKehuVCDelegate
,
OrderDViewFooterViewDelegate
,
TitleAndTFCellDelegate
,
CommendCellDelegate
,
GeliAlertViewDelegate
{
class
OrderDViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GuanLianKehuVCDelegate
,
OrderDViewFooterViewDelegate
,
TitleAndTFCellDelegate
,
CommendCellDelegate
,
GeliAlertViewDelegate
,
GLAlertSelectViewDelegate
{
var
orderId
:
Int
?
//订单编号
var
orderId
:
Int
?
//订单编号
var
isYuShou
:
Bool
=
false
//是否预售
var
isYuShou
:
Bool
=
false
//是否预售
...
@@ -19,8 +20,18 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -19,8 +20,18 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
yuShouTitleArr
=
[
"定金:"
,
"尾款:"
,
"商品合计:"
,
"物流费用:"
,
"其它费用:"
]
let
yuShouTitleArr
=
[
"定金:"
,
"尾款:"
,
"商品合计:"
,
"物流费用:"
,
"其它费用:"
]
let
nonYuShouTitleArr
=
[
"商品合计:"
,
"物流费用:"
,
"其它费用:"
]
let
nonYuShouTitleArr
=
[
"商品合计:"
,
"物流费用:"
,
"其它费用:"
]
let
YuShouPart3Arr
=
[
"订单编号"
,
"下单时间"
,
"订单来源"
,
"提货方式"
,
"
运单号"
,
"物流公司
"
,
"支付方式"
,
"支付状态"
,
"买家留言"
,
"订单备注"
]
let
YuShouPart3Arr
=
[
"订单编号"
,
"下单时间"
,
"订单来源"
,
"提货方式"
,
"
物流公司"
,
"运单号
"
,
"支付方式"
,
"支付状态"
,
"买家留言"
,
"订单备注"
]
let
nonYuShouPart3Arr
=
[
"收货人"
,
"联系电话"
,
"地址"
]
let
nonYuShouPart3Arr
=
[
"收货人"
,
"联系电话"
,
"地址"
]
var
glSelectView
:
GLAlertSelectView
?
let
zhiFuFangShiArr
=
[
"未支付"
,
"现金"
,
"转账(私)"
,
"转账(公)"
,
"转账(微信)"
,
"转账(支付宝)"
]
var
zhiFuSelect
:
Int
?
//选择支付方式
var
zhiFuStatus
=
[
"未付款"
,
"欠款"
,
"月结"
,
"已付款"
]
var
zhiFuStatusSelect
:
Int
?
//付款状态
@IBOutlet
weak
var
btmViewH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
btmViewH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
listView
:
UITableView
!
...
@@ -36,7 +47,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -36,7 +47,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
func
loadData
()
{
func
loadData
()
{
HUD
.
flash
(
.
progress
)
HUD
.
flash
(
.
progress
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
orderDetail
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
],
success
:
{
(
data
)
in
orderDetail
([
"user_token"
:
"RQdwz5QKpeg="
,
"order_id"
:
"11570"
],
success
:
{
(
data
)
in
HUD
.
hide
(
animated
:
true
)
HUD
.
hide
(
animated
:
true
)
let
dataM
=
data
as!
OrderDetailModel
let
dataM
=
data
as!
OrderDetailModel
self
.
dataMdoel
=
dataM
.
data
self
.
dataMdoel
=
dataM
.
data
...
@@ -337,7 +348,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -337,7 +348,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
tag
=
indexPath
.
row
cell
.
tag
=
indexPath
.
row
cell
.
titleLbl
.
text
=
YuShouPart3Arr
[
indexPath
.
row
]
cell
.
titleLbl
.
text
=
YuShouPart3Arr
[
indexPath
.
row
]
switch
indexPath
.
row
{
switch
indexPath
.
row
{
case
4
:
case
5
:
cell
.
placeLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
lwb_no
cell
.
placeLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
lwb_no
if
self
.
dataMdoel
?
.
order_res
?
.
lwb_no
==
nil
{
if
self
.
dataMdoel
?
.
order_res
?
.
lwb_no
==
nil
{
cell
.
placeLbl
.
text
=
"-"
cell
.
placeLbl
.
text
=
"-"
...
@@ -345,12 +356,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -345,12 +356,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
placeLbl
.
text
=
"请输入物流单号"
cell
.
placeLbl
.
text
=
"请输入物流单号"
}
}
break
case
5
:
cell
.
placeLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
lc_name
if
cell
.
placeLbl
.
text
?
.
count
==
0
{
cell
.
placeLbl
.
text
=
"请输入物流公司"
}
break
break
case
9
:
case
9
:
cell
.
placeLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
order_postscript
cell
.
placeLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
order_postscript
...
@@ -422,6 +427,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -422,6 +427,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
vc
=
ShowAlGoodsViewController
()
let
vc
=
ShowAlGoodsViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//MARK:--选择的关联客户返回数据
//MARK:--选择的关联客户返回数据
var
selectKeHuData
:
CusListAllDataModel
?
=
nil
var
selectKeHuData
:
CusListAllDataModel
?
=
nil
func
GuanLianKehuSelect
(
keHuData
:
CusListAllDataModel
)
{
func
GuanLianKehuSelect
(
keHuData
:
CusListAllDataModel
)
{
...
@@ -444,16 +450,54 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -444,16 +450,54 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
break
case
"支付方式"
:
case
"支付方式"
:
print
(
"abc"
)
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
cell
.
tag
view
.
titleLbl
.
text
=
"请选择支付方式"
view
.
delegate
=
self
view
.
dataArr
=
zhiFuFangShiArr
if
zhiFuSelect
!=
nil
{
view
.
selectNum
=
zhiFuSelect
!
}
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
break
break
case
"支付状态"
:
case
"支付状态"
:
print
(
"123"
)
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
cell
.
tag
view
.
titleLbl
.
text
=
"请选择支付状态"
view
.
delegate
=
self
view
.
dataArr
=
zhiFuStatus
if
zhiFuStatusSelect
!=
nil
{
view
.
selectNum
=
zhiFuStatusSelect
!
}
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
break
break
default
:
default
:
break
break
}
}
}
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
if
view
.
titleLbl
.
text
==
"请选择支付方式"
{
zhiFuSelect
=
selectNum
}
else
{
zhiFuStatusSelect
=
selectNum
}
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
scrollViewDidScroll
(
_
scrollView
:
UIScrollView
)
{
}
//MARK: - section delegate
//MARK: - section delegate
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
if
self
.
dataMdoel
==
nil
{
if
self
.
dataMdoel
==
nil
{
...
...
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