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
b7a206bd
Commit
b7a206bd
authored
May 26, 2020
by
ljh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成订单详情修正
parent
f40fe975
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
216 additions
and
72 deletions
+216
-72
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
...essPlatform/Model/OrderManageModel/OrderDetailModel.swift
+6
-6
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+6
-6
GeliBusinessPlatform/View/Cell/PingLunCell.swift
GeliBusinessPlatform/View/Cell/PingLunCell.swift
+3
-1
GeliBusinessPlatform/View/Cell/PingLunCell.xib
GeliBusinessPlatform/View/Cell/PingLunCell.xib
+8
-6
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.swift
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.swift
+3
-1
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
+4
-3
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
...form/ViewController/个人中心/PersonCenterViewController.swift
+2
-0
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementListVC.swift
...latform/ViewController/仓库管理/WarehoseMangementListVC.swift
+2
-2
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+1
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+70
-25
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
.../ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
+2
-1
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+109
-21
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b7a206bd
No preview for this file type
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
View file @
b7a206bd
...
@@ -50,11 +50,11 @@ class OrderDetailResModel: Mappable {
...
@@ -50,11 +50,11 @@ class OrderDetailResModel: Mappable {
var
logistics_price
:
String
?
//物流费用
var
logistics_price
:
String
?
//物流费用
var
other_price
:
String
?
//其他费用
var
other_price
:
String
?
//其他费用
var
sum_amount
:
String
?
//订单合计价格
var
sum_amount
:
String
?
//订单合计价格
var
from
:
String
?
var
from
:
Int
?
var
lc_id
:
String
?
var
lc_id
:
Int
?
var
lwb_no
:
String
?
//运单号
var
lwb_no
:
String
?
//运单号
var
pay_type
:
String
?
var
pay_type
:
Int
?
var
pay_status
:
String
?
var
pay_status
:
Int
?
var
postscript
:
String
?
//买家留言
var
postscript
:
String
?
//买家留言
var
order_postscript
:
String
?
//订单备注
var
order_postscript
:
String
?
//订单备注
var
address
:
String
?
var
address
:
String
?
...
@@ -203,10 +203,10 @@ class OrderDetailGoodsModel: Mappable {
...
@@ -203,10 +203,10 @@ class OrderDetailGoodsModel: Mappable {
var
goods_attr
:
String
?
//商品规格
var
goods_attr
:
String
?
//商品规格
var
goods_unit
:
String
?
//商品单位
var
goods_unit
:
String
?
//商品单位
var
goods_price
:
String
?
//商品单价
var
goods_price
:
String
?
//商品单价
var
cart_number
:
String
?
//商品数量
var
cart_number
:
Int
?
//商品数量
var
goods_subtotal
:
String
?
//商品小计
var
goods_subtotal
:
String
?
//商品小计
var
goods_thumb
:
String
?
//商品缩略图
var
goods_thumb
:
String
?
//商品缩略图
var
warehouse_inventory
:
String
?
//商品库存
var
warehouse_inventory
:
Int
?
//商品库存
var
is_edit
:
Int
?
=
0
//订单商品是否有修改,1是0非--前端自主添加的字段
var
is_edit
:
Int
?
=
0
//订单商品是否有修改,1是0非--前端自主添加的字段
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
...
...
GeliBusinessPlatform/SceneDelegate.swift
View file @
b7a206bd
...
@@ -43,12 +43,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
...
@@ -43,12 +43,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
//MARK:--loginVC
//MARK:--loginVC
func
addLoginVc
(
isAgain
:
Bool
){
func
addLoginVc
(
isAgain
:
Bool
){
// let vc = LoginViewController()
let
vc
=
LoginViewController
()
// vc.delegate = self
vc
.
delegate
=
self
// let contentView = vc
//
let
vc
=
EPViewController
()
let
contentView
=
vc
let
contentView
=
vc
//
// let vc = EPViewController()
// let contentView = vc
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
isAgain
{
if
isAgain
{
...
@@ -95,7 +95,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
...
@@ -95,7 +95,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
tabBarController
.
selectedIndex
=
2
//
tabBarController.selectedIndex = 2
...
...
GeliBusinessPlatform/View/Cell/PingLunCell.swift
View file @
b7a206bd
...
@@ -10,6 +10,7 @@ import UIKit
...
@@ -10,6 +10,7 @@ import UIKit
class
PingLunCell
:
UITableViewCell
{
class
PingLunCell
:
UITableViewCell
{
@IBOutlet
weak
var
editIconImgV
:
UIImageView
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
...
@@ -18,6 +19,7 @@ class PingLunCell: UITableViewCell {
...
@@ -18,6 +19,7 @@ class PingLunCell: UITableViewCell {
// Initialization code
// Initialization code
}
}
@IBOutlet
weak
var
contentRight
:
NSLayoutConstraint
!
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/PingLunCell.xib
View file @
b7a206bd
<?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
5702
"
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
6097
"
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>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<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=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"PingLunCell"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"PingLunCell"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"49"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"49"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
...
@@ -31,10 +31,10 @@
...
@@ -31,10 +31,10 @@
</constraints>
</constraints>
</view>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"bianji"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ai0-qt-tes"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"bianji"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ai0-qt-tes"
>
<rect
key=
"frame"
x=
"3
26"
y=
"8"
width=
"34"
height=
"33
"
/>
<rect
key=
"frame"
x=
"3
43"
y=
"16.5"
width=
"17"
height=
"16.5
"
/>
</imageView>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
verticalHuggingPriority=
"251"
text=
"13"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"u0y-iz-OFK"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
verticalHuggingPriority=
"251"
text=
"13"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"u0y-iz-OFK"
>
<rect
key=
"frame"
x=
"57"
y=
"10"
width=
"2
54
"
height=
"28"
/>
<rect
key=
"frame"
x=
"57"
y=
"10"
width=
"2
73
"
height=
"28"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -52,12 +52,14 @@
...
@@ -52,12 +52,14 @@
<constraint
firstItem=
"uoz-6f-uUt"
firstAttribute=
"top"
secondItem=
"9hM-p4-cpX"
secondAttribute=
"bottom"
id=
"iDZ-J7-NXw"
/>
<constraint
firstItem=
"uoz-6f-uUt"
firstAttribute=
"top"
secondItem=
"9hM-p4-cpX"
secondAttribute=
"bottom"
id=
"iDZ-J7-NXw"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"uoz-6f-uUt"
secondAttribute=
"bottom"
id=
"n0B-iM-v7R"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"uoz-6f-uUt"
secondAttribute=
"bottom"
id=
"n0B-iM-v7R"
/>
<constraint
firstItem=
"9hM-p4-cpX"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"q2Q-IK-ynT"
/>
<constraint
firstItem=
"9hM-p4-cpX"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"q2Q-IK-ynT"
/>
<constraint
first
Item=
"ai0-qt-tes"
firstAttribute=
"leading"
secondItem=
"u0y-iz-OFK"
secondAttribute=
"trailing"
constant=
"1
5"
id=
"w97-SL-zh2"
/>
<constraint
first
Attribute=
"trailing"
secondItem=
"u0y-iz-OFK"
secondAttribute=
"trailing"
constant=
"4
5"
id=
"w97-SL-zh2"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<connections>
<outlet
property=
"contentLbl"
destination=
"u0y-iz-OFK"
id=
"UlA-85-uH9"
/>
<outlet
property=
"contentLbl"
destination=
"u0y-iz-OFK"
id=
"UlA-85-uH9"
/>
<outlet
property=
"contentRight"
destination=
"w97-SL-zh2"
id=
"zH7-gM-tRN"
/>
<outlet
property=
"editIconImgV"
destination=
"ai0-qt-tes"
id=
"Vig-37-dxb"
/>
<outlet
property=
"nameLbl"
destination=
"9hM-p4-cpX"
id=
"0Pr-Hd-ejy"
/>
<outlet
property=
"nameLbl"
destination=
"9hM-p4-cpX"
id=
"0Pr-Hd-ejy"
/>
</connections>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"127.56696428571428"
/>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"127.56696428571428"
/>
...
...
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.swift
View file @
b7a206bd
...
@@ -24,6 +24,8 @@ var delegate:TitleAndBtnCellDelegate?
...
@@ -24,6 +24,8 @@ var delegate:TitleAndBtnCellDelegate?
// Initialization code
// Initialization code
}
}
@IBOutlet
weak
var
contentRight
:
NSLayoutConstraint
!
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
delegate
?
.
btnClick
?(
content
:
contentLbl
.
text
!
,
cell
:
self
)
delegate
?
.
btnClick
?(
content
:
contentLbl
.
text
!
,
cell
:
self
)
}
}
...
...
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
View file @
b7a206bd
<?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
5702
"
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
6097
"
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>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<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=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndBtnCell"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndBtnCell"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"44"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
...
@@ -100,6 +100,7 @@
...
@@ -100,6 +100,7 @@
<outlet
property=
"arrowImg"
destination=
"Gf0-pG-ZDj"
id=
"uaE-Be-XYP"
/>
<outlet
property=
"arrowImg"
destination=
"Gf0-pG-ZDj"
id=
"uaE-Be-XYP"
/>
<outlet
property=
"btn"
destination=
"VXU-ef-rsF"
id=
"92Z-x4-AVW"
/>
<outlet
property=
"btn"
destination=
"VXU-ef-rsF"
id=
"92Z-x4-AVW"
/>
<outlet
property=
"contentLbl"
destination=
"7nL-vu-Tdl"
id=
"sEW-G5-GaR"
/>
<outlet
property=
"contentLbl"
destination=
"7nL-vu-Tdl"
id=
"sEW-G5-GaR"
/>
<outlet
property=
"contentRight"
destination=
"6yZ-7e-lVf"
id=
"4sv-ji-kLJ"
/>
<outlet
property=
"imgView"
destination=
"HSb-Uo-Ffy"
id=
"9RM-uK-s3I"
/>
<outlet
property=
"imgView"
destination=
"HSb-Uo-Ffy"
id=
"9RM-uK-s3I"
/>
<outlet
property=
"lineWidth"
destination=
"EUi-Y9-d4w"
id=
"0on-lp-cbT"
/>
<outlet
property=
"lineWidth"
destination=
"EUi-Y9-d4w"
id=
"0on-lp-cbT"
/>
<outlet
property=
"nameLbl"
destination=
"EfU-Eu-amU"
id=
"XOH-Zx-SHi"
/>
<outlet
property=
"nameLbl"
destination=
"EfU-Eu-amU"
id=
"XOH-Zx-SHi"
/>
...
...
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
View file @
b7a206bd
...
@@ -101,8 +101,10 @@ class PersonCenterViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -101,8 +101,10 @@ class PersonCenterViewController: BaseViewController,UITableViewDelegate,UITable
}
else
if
indexPath
.
row
==
2
{
}
else
if
indexPath
.
row
==
2
{
//权限设置-弹窗
//权限设置-弹窗
HUD
.
flash
(
.
label
(
"权限设置开发中"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"权限设置开发中"
),
delay
:
1.2
)
}
}
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
50*
glscale
return
50*
glscale
}
}
...
...
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementListVC.swift
View file @
b7a206bd
...
@@ -151,7 +151,7 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
...
@@ -151,7 +151,7 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
vc
.
titleStr
=
"新增仓库"
vc
.
titleStr
=
"新增仓库"
vc
.
delegate
=
self
vc
.
delegate
=
self
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
fals
e
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
tru
e
)
}
}
var
warehourseArr
:
Array
<
ShopWarehouseListDataModel
>
=
[]
//仓库数组
var
warehourseArr
:
Array
<
ShopWarehouseListDataModel
>
=
[]
//仓库数组
...
@@ -199,7 +199,7 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
...
@@ -199,7 +199,7 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
vc
.
editIdx
=
indexPath
.
row
vc
.
editIdx
=
indexPath
.
row
vc
.
delegate
=
self
vc
.
delegate
=
self
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
fals
e
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
tru
e
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
b7a206bd
...
@@ -433,6 +433,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -433,6 +433,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
func
changeGoodsIsShow
(
isTrue
:
Bool
,
byIndex
:
Int
)
{
func
changeGoodsIsShow
(
isTrue
:
Bool
,
byIndex
:
Int
)
{
//左按钮为false 右按钮为true
//左按钮为false 右按钮为true
let
rowModel
=
self
.
items
[
byIndex
]
let
rowModel
=
self
.
items
[
byIndex
]
//添加提示
if
rowModel
.
is_show
==
1
{
if
rowModel
.
is_show
==
1
{
if
isTrue
{
if
isTrue
{
print
(
"入库哦哦"
)
print
(
"入库哦哦"
)
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
b7a206bd
...
@@ -293,43 +293,61 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -293,43 +293,61 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
}
break
break
case
"入库"
:
case
"入库"
:
let
vc
=
RuKuViewController
()
vc
.
barTitle
=
"入库"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
break
case
"出库"
:
case
"出库"
:
let
vc
=
ChuKuViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
break
case
"上架"
:
case
"上架"
:
//提示是否上架
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
editField
([
"user_token"
:
UserToken
as
Any
,
"function_id"
:
"15"
,
"prval"
:
goods_id
as
Any
,
"value"
:
1
,],
success
:
{
(
data
)
in
let
dataM
=
data
as!
UpDataModel
if
dataM
.
code
==
1
{
HUD
.
flash
(
.
label
(
"提交成功"
),
delay
:
1.2
)
self
.
loadData
()
}
})
{
(
erro
)
in
}
break
break
case
"下架"
:
case
"下架"
:
//提示是否下架
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
editField
([
"user_token"
:
UserToken
as
Any
,
"function_id"
:
"15"
,
"prval"
:
goods_id
as
Any
,
"value"
:
0
,],
success
:
{
(
data
)
in
let
dataM
=
data
as!
UpDataModel
if
dataM
.
code
==
1
{
HUD
.
flash
(
.
label
(
"提交成功"
),
delay
:
1.2
)
self
.
loadData
()
}
})
{
(
erro
)
in
}
break
break
case
"删除"
:
case
"删除"
:
//提示是否删除
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
editField
([
"user_token"
:
UserToken
as
Any
,
"function_id"
:
"16"
,
"prval"
:
goods_id
as
Any
,
"value"
:
1
,],
success
:
{
(
data
)
in
let
dataM
=
data
as!
UpDataModel
if
dataM
.
code
==
1
{
HUD
.
flash
(
.
label
(
"删除成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
})
{
(
erro
)
in
}
break
break
default
:
default
:
break
break
}
}
}
}
func
loadData
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
//MARK:--获取新增商品的基本信息(品牌和分类等)
HUD
.
flash
(
.
progress
)
titleStrArr
?
.
insert
(
"编辑"
,
at
:
0
)
titleStrArr
?
.
append
(
"删除"
)
let
w
=
fullScreenWidth
/
4
// if titleStrArr!.count == 4 {
for
i
in
0
..<
titleStrArr
!.
count
{
let
btn
=
UIButton
(
frame
:
CGRect
(
x
:
CGFloat
(
i
)
*
w
,
y
:
1
,
width
:
w
,
height
:
49
))
btmBtnBGView
.
addSubview
(
btn
)
btn
.
setTitle
(
titleStrArr
!
[
i
],
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
named
:
"蓝色字体颜色"
),
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
btn
.
addTarget
(
self
,
action
:
#selector(
btmBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
}
// }
//是否为预售商品
isYuShouShangPin
=
false
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
SetTopFrameView
(
view
:
listTbv
,
btmView
:
btmBtnBGView
)
//MARK:--新增商品和编辑商品所需要的基本信息(无)就页面不正常显示
//MARK:--新增商品和编辑商品所需要的基本信息(无)就页面不正常显示
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
goodsDetail
([
"user_token"
:
UserToken
,
"goods_id"
:
goods_id
],
success
:
{
(
data
)
in
goodsDetail
([
"user_token"
:
UserToken
,
"goods_id"
:
goods_id
],
success
:
{
(
data
)
in
...
@@ -454,7 +472,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -454,7 +472,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
self
.
shiFouSH
=
true
self
.
shiFouSH
=
true
}
}
//预设预付定金时间段
//预设预付定金时间段
// print("abcl === ",model.data?.goods_res!.dj_time_start!)
// print("abcl === ",model.data?.goods_res!.dj_time_start!)
if
model
.
data
?
.
goods_res
!.
dj_time_start
!=
0
{
if
model
.
data
?
.
goods_res
!.
dj_time_start
!=
0
{
let
begin
=
dayByDouble
(
sender
:
(
model
.
data
?
.
goods_res
!.
dj_time_start
)
!
)
+
"-"
+
dayByDouble
(
sender
:
(
model
.
data
?
.
goods_res
!.
dj_time_end
)
!
)
let
begin
=
dayByDouble
(
sender
:
(
model
.
data
?
.
goods_res
!.
dj_time_start
)
!
)
+
"-"
+
dayByDouble
(
sender
:
(
model
.
data
?
.
goods_res
!.
dj_time_end
)
!
)
self
.
dj_time_start
=
(
model
.
data
?
.
goods_res
!.
dj_time_start
)
self
.
dj_time_start
=
(
model
.
data
?
.
goods_res
!.
dj_time_start
)
...
@@ -510,6 +528,33 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -510,6 +528,33 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
})
{
(
error
)
in
})
{
(
error
)
in
}
}
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
//MARK:--获取新增商品的基本信息(品牌和分类等)
HUD
.
flash
(
.
progress
)
titleStrArr
?
.
insert
(
"编辑"
,
at
:
0
)
titleStrArr
?
.
append
(
"删除"
)
let
w
=
fullScreenWidth
/
4
// if titleStrArr!.count == 4 {
for
i
in
0
..<
titleStrArr
!.
count
{
let
btn
=
UIButton
(
frame
:
CGRect
(
x
:
CGFloat
(
i
)
*
w
,
y
:
1
,
width
:
w
,
height
:
49
))
btmBtnBGView
.
addSubview
(
btn
)
btn
.
setTitle
(
titleStrArr
!
[
i
],
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
named
:
"蓝色字体颜色"
),
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
btn
.
addTarget
(
self
,
action
:
#selector(
btmBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
}
// }
//是否为预售商品
isYuShouShangPin
=
false
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
SetTopFrameView
(
view
:
listTbv
,
btmView
:
btmBtnBGView
)
loadData
()
self
.
listTbv
.
separatorStyle
=
.
none
self
.
listTbv
.
separatorStyle
=
.
none
self
.
listTbv
.
delegate
=
self
self
.
listTbv
.
delegate
=
self
...
...
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
View file @
b7a206bd
...
@@ -46,11 +46,12 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
...
@@ -46,11 +46,12 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
selectBtn
.
isHidden
=
true
cell
.
selectBtn
.
isHidden
=
true
cell
.
detailLbl2
.
isHidden
=
true
let
rowModel
=
order_goods
!
[
indexPath
.
row
]
let
rowModel
=
order_goods
!
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
rowModel
.
goods_name
cell
.
nameLbl
.
text
=
rowModel
.
goods_name
cell
.
detailLbl
.
text
=
rowModel
.
goods_attr
cell
.
detailLbl
.
text
=
rowModel
.
goods_attr
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
.
goods_price
!
)
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
.
goods_price
!
)
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
.
goods_thumb
)
!
))
cell
.
detailLbl2
.
text
=
"x"
+
StringByInt
(
number
:
rowModel
.
cart_number
!
)
return
cell
return
cell
}
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
b7a206bd
...
@@ -25,7 +25,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -25,7 +25,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
glSelectView
=
nil
glSelectView
=
nil
}
}
//MARK:--普通的是否可编辑
//MARK:--普通的是否可编辑
var
is
editBy
Data
:
Bool
=
true
var
is
CaneditLats
Data
:
Bool
=
true
var
orderId
:
Int
?
//订单编号
var
orderId
:
Int
?
//订单编号
var
isYuShou
:
Bool
=
true
//是否预售
var
isYuShou
:
Bool
=
true
//是否预售
...
@@ -106,6 +106,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -106,6 +106,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
bottomView
.
addSubview
(
btn
)
self
.
bottomView
.
addSubview
(
btn
)
}
}
}
}
if
self
.
dataMdoel
?
.
order_res
?
.
order_status
==
2
{
self
.
isCaneditLatsData
=
false
}
self
.
listView
.
reloadData
()
self
.
listView
.
reloadData
()
...
@@ -229,7 +233,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -229,7 +233,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
func
changeGoodsPriByData
(
sender
:
Array
<
OrderDetailGoodsModel
>
)
{
func
changeGoodsPriByData
(
sender
:
Array
<
OrderDetailGoodsModel
>
)
{
print
(
"修改价格(普通商品返回数据)
\(
sender
)
"
)
print
(
"修改价格(普通商品返回数据)
\(
sender
)
"
)
self
.
dataMdoel
?
.
order_goods
=
sender
self
.
dataMdoel
?
.
order_goods
=
sender
// listView.reloadData()
loadData
()
loadData
()
}
}
...
@@ -238,7 +241,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -238,7 +241,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
print
(
"修改价格(预售返回数据)--只更新datamodel,不请求网络
\(
sender
)
"
)
print
(
"修改价格(预售返回数据)--只更新datamodel,不请求网络
\(
sender
)
"
)
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_amount
=
sender
!.
dj_amount
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_amount
=
sender
!.
dj_amount
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_amount
=
sender
!.
wk_amount
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_amount
=
sender
!.
wk_amount
// listView.reloadData()
loadData
()
loadData
()
}
}
...
@@ -267,7 +270,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -267,7 +270,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//MARK: - cell delegate
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
!
isCaneditLatsData
{
return
}
if
indexPath
.
section
==
4
{
if
indexPath
.
section
==
4
{
if
indexPath
.
row
==
5
{
if
indexPath
.
row
==
5
{
print
(
"运单号"
)
print
(
"运单号"
)
...
@@ -321,19 +326,28 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -321,19 +326,28 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
switch
indexPath
.
section
{
switch
indexPath
.
section
{
case
0
:
case
0
:
cell
.
nameLbl
.
text
=
"关联客户"
cell
.
nameLbl
.
text
=
"关联客户"
if
self
.
dataMdoel
?
.
order_res
?
.
cus_id
!=
0
{
if
self
.
dataMdoel
?
.
order_res
?
.
cus_id
!=
0
{
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
cus_name
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
cus_name
}
else
{
}
else
{
//如果不刷新请求,那么就更新本地,建议还是刷新,暂不刷
//如果不刷新请求,那么就更新本地,建议还是刷新,暂不刷
cell
.
contentLbl
.
text
=
"请选择关联客户"
cell
.
contentLbl
.
text
=
"请选择关联客户"
if
!
isCaneditLatsData
{
cell
.
contentLbl
.
text
=
"-"
}
}
if
!
isCaneditLatsData
{
cell
.
arrowImg
.
isHidden
=
true
cell
.
contentRight
.
constant
=
15
}
else
{
cell
.
arrowImg
.
isHidden
=
false
cell
.
contentRight
.
constant
=
32
}
}
break
break
case
1
:
case
1
:
//MARK:--商品cell
//MARK:--商品cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
priceLbl
.
isHidden
=
false
cell
.
priceLbl
.
isHidden
=
false
cell
.
detailLbl2
.
isHidden
=
true
cell
.
selectBtn
.
isHidden
=
true
cell
.
selectBtn
.
isHidden
=
true
if
isYuShou
{
if
isYuShou
{
cell
.
yuShouImg
.
isHidden
=
false
cell
.
yuShouImg
.
isHidden
=
false
...
@@ -341,13 +355,14 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -341,13 +355,14 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
indexPath
.
row
==
1
{
if
indexPath
.
row
==
1
{
cell
.
lineView
.
isHidden
=
true
cell
.
lineView
.
isHidden
=
true
}
}
//MARK:--暂时不显示CELL图片
// cell.imageView.
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
cell
.
iconImg
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
))
cell
.
nameLbl
.
text
=
rowModel
?
.
goods_name
cell
.
nameLbl
.
text
=
rowModel
?
.
goods_name
cell
.
detailLbl
.
text
=
rowModel
?
.
goods_attr
cell
.
detailLbl
.
text
=
rowModel
?
.
goods_attr
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
?
.
goods_price
!
)
!
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
?
.
goods_price
!
)
!
cell
.
detailLbl2
.
text
=
"x"
+
StringByInt
(
number
:
(
rowModel
?
.
cart_number
!
)
!
)
return
cell
return
cell
case
2
:
case
2
:
...
@@ -361,8 +376,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -361,8 +376,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
switch
indexPath
.
row
{
switch
indexPath
.
row
{
case
0
:
case
0
:
print
(
"预售定金"
)
print
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_amount
)
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status
==
1
{
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status
==
1
{
cell
.
textTF
.
text
=
"(已付)"
+
"¥"
+
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_amount
)
!
cell
.
textTF
.
text
=
"(已付)"
+
"¥"
+
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_amount
)
!
...
@@ -449,7 +462,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -449,7 +462,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
self
.
dataMdoel
?
.
order_res
?
.
lwb_no
==
nil
{
if
self
.
dataMdoel
?
.
order_res
?
.
lwb_no
==
nil
{
cell
.
contentLbl
.
text
=
"-"
cell
.
contentLbl
.
text
=
"-"
}
else
if
cell
.
contentLbl
.
text
?
.
count
==
0
{
}
else
if
cell
.
contentLbl
.
text
?
.
count
==
0
{
cell
.
contentLbl
.
text
=
"请输入物流单号"
cell
.
contentLbl
.
text
=
"请输入物流单号"
if
!
isCaneditLatsData
{
//MARK:-不能进行修改了
cell
.
contentLbl
.
text
=
"-"
}
}
}
break
break
...
@@ -460,6 +478,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -460,6 +478,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
else
{
}
else
{
if
self
.
dataMdoel
?
.
order_res
?
.
order_postscript
?
.
count
==
0
{
if
self
.
dataMdoel
?
.
order_res
?
.
order_postscript
?
.
count
==
0
{
cell
.
contentLbl
.
text
=
"请输入订单备注"
cell
.
contentLbl
.
text
=
"请输入订单备注"
if
!
isCaneditLatsData
{
cell
.
contentLbl
.
text
=
"-"
}
}
}
}
}
...
@@ -467,6 +488,13 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -467,6 +488,13 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
default
:
default
:
break
break
}
}
if
!
isCaneditLatsData
{
cell
.
editIconImgV
.
isHidden
=
true
cell
.
contentRight
.
constant
=
15
}
else
{
cell
.
editIconImgV
.
isHidden
=
false
cell
.
contentRight
.
constant
=
45
}
return
cell
return
cell
}
}
if
indexPath
.
row
==
4
||
indexPath
.
row
==
6
||
indexPath
.
row
==
7
||
indexPath
.
row
==
(
6
+
isYushoucount
)
||
indexPath
.
row
==
(
7
+
isYushoucount
){
if
indexPath
.
row
==
4
||
indexPath
.
row
==
6
||
indexPath
.
row
==
7
||
indexPath
.
row
==
(
6
+
isYushoucount
)
||
indexPath
.
row
==
(
7
+
isYushoucount
){
...
@@ -477,6 +505,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -477,6 +505,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
cell
.
arrowImg
.
isHidden
=
false
cell
.
arrowImg
.
isHidden
=
false
cell
.
contentRight
.
constant
=
32
switch
indexPath
.
row
{
switch
indexPath
.
row
{
case
4
:
case
4
:
...
@@ -484,7 +513,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -484,7 +513,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
break
case
6
:
case
6
:
if
isYuShou
{
if
isYuShou
{
// dj_payWay = (self.dataMdoel?.order_res?.sale_res?.dj_pay_type!)!
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type_cn
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type_cn
}
else
{
}
else
{
...
@@ -504,7 +532,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -504,7 +532,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
break
case
8
:
case
8
:
if
isYuShou
{
if
isYuShou
{
// wk_payWay = (self.dataMdoel?.order_res?.sale_res?.wk_pay_type!)!
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type_cn
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type_cn
}
else
{
}
else
{
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
!
)
!
)
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
!
)
!
)
...
@@ -517,6 +544,34 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -517,6 +544,34 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
default
:
default
:
break
break
}
}
//追加pay_type
if
!
isCaneditLatsData
{
cell
.
arrowImg
.
isHidden
=
true
cell
.
contentRight
.
constant
=
15
}
else
{
cell
.
arrowImg
.
isHidden
=
false
cell
.
contentRight
.
constant
=
32
if
indexPath
.
row
==
9
{
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
==
11
||
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
==
12
{
cell
.
arrowImg
.
isHidden
=
true
cell
.
contentRight
.
constant
=
15
}
}
else
if
indexPath
.
row
==
7
{
if
isYuShou
{
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type
==
11
||
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type
==
12
{
cell
.
arrowImg
.
isHidden
=
true
cell
.
contentRight
.
constant
=
15
}
}
else
{
if
self
.
dataMdoel
?
.
order_res
?
.
pay_type
==
11
||
self
.
dataMdoel
?
.
order_res
?
.
pay_type
==
12
{
cell
.
arrowImg
.
isHidden
=
true
cell
.
contentRight
.
constant
=
15
}
}
}
}
return
cell
return
cell
}
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
...
@@ -584,6 +639,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -584,6 +639,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
var
lcModel
:
LogisticsCompanyModel
?
=
nil
var
lcModel
:
LogisticsCompanyModel
?
=
nil
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
if
!
isCaneditLatsData
{
//MARK:-不能进行修改了
return
;
}
switch
cell
.
nameLbl
.
text
{
switch
cell
.
nameLbl
.
text
{
case
"物流公司"
:
case
"物流公司"
:
...
@@ -644,6 +703,11 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -644,6 +703,11 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
break
case
"支付方式"
:
case
"支付方式"
:
if
self
.
dataMdoel
?
.
order_res
?
.
pay_type
==
11
||
self
.
dataMdoel
?
.
order_res
?
.
pay_type
==
12
{
return
}
if
glSelectView
==
nil
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
cell
.
tag
view
.
tag
=
cell
.
tag
...
@@ -662,6 +726,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -662,6 +726,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//无需处理:根据网络变更
//无需处理:根据网络变更
break
break
case
"定金支付方式"
:
case
"定金支付方式"
:
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type
==
11
||
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type
==
12
{
return
}
if
glSelectView
==
nil
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
cell
.
tag
view
.
tag
=
cell
.
tag
...
@@ -675,6 +743,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -675,6 +743,10 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
break
break
case
"尾款支付方式"
:
case
"尾款支付方式"
:
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
==
11
||
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
==
12
{
return
}
print
(
"尾款支付方式"
)
print
(
"尾款支付方式"
)
print
(
cell
.
tag
)
print
(
cell
.
tag
)
if
glSelectView
==
nil
{
if
glSelectView
==
nil
{
...
@@ -716,8 +788,11 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -716,8 +788,11 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status_cn
=
"已付款"
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status_cn
=
"已付款"
}
}
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type
=
pay_type
self
.
listView
.
reloadData
()
self
.
listView
.
reloadData
()
}
}
})
{
(
error
)
in
})
{
(
error
)
in
...
@@ -744,6 +819,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -744,6 +819,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_status_cn
=
"已付款"
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_status_cn
=
"已付款"
}
}
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
=
pay_type
self
.
listView
.
reloadData
()
self
.
listView
.
reloadData
()
...
@@ -774,7 +850,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -774,7 +850,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
=
"已付款"
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
=
"已付款"
}
}
self
.
dataMdoel
?
.
order_res
?
.
pay_type
=
pay_type
self
.
listView
.
reloadData
()
self
.
listView
.
reloadData
()
}
}
...
@@ -866,7 +942,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -866,7 +942,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
switch
section
{
switch
section
{
case
1
:
case
1
:
if
isYuShou
==
false
{
if
isYuShou
==
false
{
if
dataArr
.
count
>
2
{
if
(
self
.
dataMdoel
?
.
order_goods
?
.
count
)
!
>
2
{
return
33.5
return
33.5
}
else
{
}
else
{
return
0.01
return
0.01
...
@@ -914,20 +990,32 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -914,20 +990,32 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//MARK: - header delegate
//MARK: - header delegate
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
let
view
=
UIView
()
view
.
subviews
.
forEach
{
(
subV
)
in
subV
.
removeFromSuperview
()
}
switch
section
{
switch
section
{
case
1
:
case
1
:
let
view
=
TitleAndLblView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
let
view
1
=
TitleAndLblView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
view
.
nameLbl
.
text
=
"订单状态"
view
1
.
nameLbl
.
text
=
"订单状态"
//订单状态
//订单状态
view
.
contentLbl
.
text
=
orderStatusStrByInt
(
statusNumber
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
)
!
)
view1
.
contentLbl
.
text
=
orderStatusStrByInt
(
statusNumber
:
(
self
.
dataMdoel
?
.
order_res
?
.
order_status
)
!
)
view
.
addSubview
(
view1
)
return
view
return
view
case
3
:
case
3
:
let
view
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
let
view1
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
view
.
nameLbl
.
text
=
"收货信息"
view1
.
nameLbl
.
text
=
"收货信息"
view
.
addSubview
(
view1
)
if
self
.
dataMdoel
?
.
order_res
?
.
shipping_type
==
1
{
view1
.
isHidden
=
false
}
else
{
view1
.
isHidden
=
true
}
return
view
return
view
case
4
:
case
4
:
let
view
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
let
view1
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
view
.
nameLbl
.
text
=
"订单信息"
view1
.
nameLbl
.
text
=
"订单信息"
view
.
addSubview
(
view1
)
return
view
return
view
default
:
default
:
break
break
...
...
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