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
3b3f13ef
Commit
3b3f13ef
authored
May 28, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预售详情价格限制解除。图片显示
parent
4c7d506f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
46 deletions
+46
-46
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
+2
-2
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
...Platform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
+8
-16
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.xib
...tform/ViewController/商品详情/ProductDetailViewController.xib
+3
-3
GeliBusinessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.swift
...essPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.swift
+6
-0
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
...ontroller/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
+25
-25
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+2
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
3b3f13ef
No preview for this file type
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.xib
View file @
3b3f13ef
<?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=
"1609
6
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1609
7
"
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=
"16087"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
...
@@ -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=
"GuanLianKeHuCell"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"GuanLianKeHuCell"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"100"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"100"
/>
<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"
>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
View file @
3b3f13ef
...
@@ -97,25 +97,19 @@
...
@@ -97,25 +97,19 @@
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥260.00*12"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"X1B-vl-mvy"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥260.00*12"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"X1B-vl-mvy"
>
<rect
key=
"frame"
x=
"115"
y=
"87"
width=
"225"
height=
"15"
/>
<rect
key=
"frame"
x=
"115"
y=
"87"
width=
"61.5"
height=
"13.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"QaD-aA-NKf"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥51153.00"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Rio-TZ-iyo"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥51153.00"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Rio-TZ-iyo"
>
<rect
key=
"frame"
x=
"120"
y=
"83.5"
width=
"235"
height=
"18.5"
/>
<rect
key=
"frame"
x=
"291.5"
y=
"86"
width=
"63.5"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"TMJ-sw-oCU"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<nil
key=
"textColor"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥51153.00"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JyG-Tf-6Jd"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"¥51153.00"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JyG-Tf-6Jd"
>
<rect
key=
"frame"
x=
"291.5"
y=
"6
0
"
width=
"63.5"
height=
"18.5"
/>
<rect
key=
"frame"
x=
"291.5"
y=
"6
5.5
"
width=
"63.5"
height=
"18.5"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"11o-H0-KIf"
/>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"11o-H0-KIf"
/>
</constraints>
</constraints>
...
@@ -127,23 +121,21 @@
...
@@ -127,23 +121,21 @@
<constraints>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"HYf-UQ-mHg"
secondAttribute=
"trailing"
constant=
"17"
id=
"1et-A0-Mm7"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"HYf-UQ-mHg"
secondAttribute=
"trailing"
constant=
"17"
id=
"1et-A0-Mm7"
/>
<constraint
firstItem=
"4lb-rz-I6F"
firstAttribute=
"centerY"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"centerY"
id=
"6mE-8H-dPD"
/>
<constraint
firstItem=
"4lb-rz-I6F"
firstAttribute=
"centerY"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"centerY"
id=
"6mE-8H-dPD"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"Rio-TZ-iyo"
secondAttribute=
"trailing"
id=
"Bgy-0b-yb6"
/>
<constraint
firstItem=
"4lb-rz-I6F"
firstAttribute=
"centerX"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"centerX"
id=
"DtW-X9-NRk"
/>
<constraint
firstItem=
"4lb-rz-I6F"
firstAttribute=
"centerX"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"centerX"
id=
"DtW-X9-NRk"
/>
<constraint
firstItem=
"Rio-TZ-iyo"
firstAttribute=
"top"
secondItem=
"JyG-Tf-6Jd"
secondAttribute=
"bottom"
constant=
"5"
id=
"H2a-ha-CdE"
/>
<constraint
firstItem=
"X1B-vl-mvy"
firstAttribute=
"top"
secondItem=
"LBB-wB-bMd"
secondAttribute=
"bottom"
constant=
"5"
id=
"LHs-KQ-EQ3"
/>
<constraint
firstItem=
"Rio-TZ-iyo"
firstAttribute=
"bottom"
secondItem=
"X1B-vl-mvy"
secondAttribute=
"bottom"
id=
"JcG-ly-QUv"
/>
<constraint
firstItem=
"AWX-Qu-0ML"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"PkW-SQ-lMP"
/>
<constraint
firstItem=
"AWX-Qu-0ML"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"PkW-SQ-lMP"
/>
<constraint
firstItem=
"AWX-Qu-0ML"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"QkU-Fn-YVB"
/>
<constraint
firstItem=
"AWX-Qu-0ML"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"QkU-Fn-YVB"
/>
<constraint
firstItem=
"ftv-xQ-eXW"
firstAttribute=
"trailing"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"trailing"
constant=
"7.5"
id=
"R1R-mm-RvM"
/>
<constraint
firstItem=
"ftv-xQ-eXW"
firstAttribute=
"trailing"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"trailing"
constant=
"7.5"
id=
"R1R-mm-RvM"
/>
<constraint
firstItem=
"JyG-Tf-6Jd"
firstAttribute=
"trailing"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"trailingMargin"
id=
"SVb-FW-34b"
/>
<constraint
firstItem=
"JyG-Tf-6Jd"
firstAttribute=
"trailing"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"trailingMargin"
id=
"SVb-FW-34b"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"LBB-wB-bMd"
secondAttribute=
"trailing"
constant=
"15"
id=
"U69-j9-gAo"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"LBB-wB-bMd"
secondAttribute=
"trailing"
constant=
"15"
id=
"U69-j9-gAo"
/>
<constraint
firstItem=
"HYf-UQ-mHg"
firstAttribute=
"top"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"top"
id=
"UBt-NG-mg3"
/>
<constraint
firstItem=
"HYf-UQ-mHg"
firstAttribute=
"top"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"top"
id=
"UBt-NG-mg3"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"X1B-vl-mvy"
secondAttribute=
"trailing"
constant=
"15"
id=
"ZfW-BJ-Tbo"
/>
<constraint
firstItem=
"JyG-Tf-6Jd"
firstAttribute=
"centerY"
secondItem=
"LBB-wB-bMd"
secondAttribute=
"centerY"
id=
"VRZ-vw-R2N"
/>
<constraint
firstItem=
"X1B-vl-mvy"
firstAttribute=
"leading"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"trailing"
constant=
"10"
id=
"WdY-8o-EY3"
/>
<constraint
firstItem=
"Rio-TZ-iyo"
firstAttribute=
"centerY"
secondItem=
"X1B-vl-mvy"
secondAttribute=
"centerY"
id=
"cI2-3e-S0C"
/>
<constraint
firstItem=
"ftv-xQ-eXW"
firstAttribute=
"top"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"top"
constant=
"-7.5"
id=
"cI7-D0-svp"
/>
<constraint
firstItem=
"ftv-xQ-eXW"
firstAttribute=
"top"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"top"
constant=
"-7.5"
id=
"cI7-D0-svp"
/>
<constraint
firstItem=
"
X1B-vl-mvy"
firstAttribute=
"leading"
secondItem=
"LBB-wB-bMd"
secondAttribute=
"leading"
id=
"e85-Lu-Hze
"
/>
<constraint
firstItem=
"
Rio-TZ-iyo"
firstAttribute=
"trailing"
secondItem=
"JyG-Tf-6Jd"
secondAttribute=
"trailing"
id=
"gQN-11-nsF
"
/>
<constraint
firstItem=
"LBB-wB-bMd"
firstAttribute=
"top"
secondItem=
"HYf-UQ-mHg"
secondAttribute=
"bottom"
constant=
"15"
id=
"hvm-bz-LS0"
/>
<constraint
firstItem=
"LBB-wB-bMd"
firstAttribute=
"top"
secondItem=
"HYf-UQ-mHg"
secondAttribute=
"bottom"
constant=
"15"
id=
"hvm-bz-LS0"
/>
<constraint
firstItem=
"eKc-LO-OD0"
firstAttribute=
"centerX"
secondItem=
"ftv-xQ-eXW"
secondAttribute=
"centerX"
id=
"igK-BR-aYW"
/>
<constraint
firstItem=
"eKc-LO-OD0"
firstAttribute=
"centerX"
secondItem=
"ftv-xQ-eXW"
secondAttribute=
"centerX"
id=
"igK-BR-aYW"
/>
<constraint
firstItem=
"Rio-TZ-iyo"
firstAttribute=
"leading"
secondItem=
"AWX-Qu-0ML"
secondAttribute=
"trailing"
constant=
"15"
id=
"mNa-xR-0Gn"
/>
<constraint
firstItem=
"X1B-vl-mvy"
firstAttribute=
"top"
secondItem=
"LBB-wB-bMd"
secondAttribute=
"bottom"
constant=
"5"
id=
"oPf-g5-F2k"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"oAm-E1-HwQ"
secondAttribute=
"bottom"
id=
"p0n-TC-Jkb"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"oAm-E1-HwQ"
secondAttribute=
"bottom"
id=
"p0n-TC-Jkb"
/>
<constraint
firstItem=
"eKc-LO-OD0"
firstAttribute=
"centerY"
secondItem=
"ftv-xQ-eXW"
secondAttribute=
"centerY"
id=
"p3f-uk-i51"
/>
<constraint
firstItem=
"eKc-LO-OD0"
firstAttribute=
"centerY"
secondItem=
"ftv-xQ-eXW"
secondAttribute=
"centerY"
id=
"p3f-uk-i51"
/>
<constraint
firstItem=
"oAm-E1-HwQ"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"qMJ-nI-cSg"
/>
<constraint
firstItem=
"oAm-E1-HwQ"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"qMJ-nI-cSg"
/>
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.xib
View file @
3b3f13ef
<?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"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ProductDetailViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ProductDetailViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"lgBtnLbl"
destination=
"oKy-CJ-Gra"
id=
"S78-zK-4bF"
/>
<outlet
property=
"lgBtnLbl"
destination=
"oKy-CJ-Gra"
id=
"S78-zK-4bF"
/>
<outlet
property=
"listTbv"
destination=
"IHM-ED-ttx"
id=
"eEK-bu-GOf"
/>
<outlet
property=
"listTbv"
destination=
"IHM-ED-ttx"
id=
"eEK-bu-GOf"
/>
...
...
GeliBusinessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.swift
View file @
3b3f13ef
...
@@ -140,7 +140,13 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
...
@@ -140,7 +140,13 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
let
rowModel
=
self
.
dataArr
[
indexPath
.
row
]
let
rowModel
=
self
.
dataArr
[
indexPath
.
row
]
cell
.
senderLbl
.
text
=
rowModel
.
cus_name
cell
.
senderLbl
.
text
=
rowModel
.
cus_name
if
rowModel
.
user_name
==
nil
{
cell
.
arrowImg
.
isHidden
=
true
cell
.
receiverLbl
.
text
=
""
}
else
{
cell
.
arrowImg
.
isHidden
=
false
cell
.
receiverLbl
.
text
=
rowModel
.
user_name
cell
.
receiverLbl
.
text
=
rowModel
.
user_name
}
if
rowModel
.
cus_type
==
1
{
if
rowModel
.
cus_type
==
1
{
cell
.
personLbl
.
isHidden
=
false
cell
.
personLbl
.
isHidden
=
false
cell
.
companyLbl
.
isHidden
=
true
cell
.
companyLbl
.
isHidden
=
true
...
...
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
View file @
3b3f13ef
...
@@ -29,6 +29,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -29,6 +29,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
@IBOutlet
weak
var
detailLbl
:
UILabel
!
@IBOutlet
weak
var
detailLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
submitBtn
:
LGButton
!
@IBOutlet
weak
var
submitBtn
:
LGButton
!
var
imgUrlstr
=
""
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -50,7 +51,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -50,7 +51,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
dingJinTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
dj_amount
dingJinTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
dj_amount
weiKuanTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
wk_amount
weiKuanTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
wk_amount
countLbl
.
text
=
"¥"
+
(
dataModel
?
.
order_res
?
.
goods_amount
)
!
countLbl
.
text
=
"¥"
+
(
dataModel
?
.
order_res
?
.
goods_amount
)
!
icomImg
.
sd_setImage
(
with
:
URL
(
string
:
imgUrlstr
))
}
}
}
else
{
}
else
{
//MARK:--代客下单流程
//MARK:--代客下单流程
...
@@ -77,7 +78,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -77,7 +78,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
}
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
if
textField
.
tag
==
1001
{
if
textField
.
tag
==
1001
{
print
(
dingJinTF
.
text
)
//
print(dingJinTF.text)
let
dingj
=
dingJinTF
.
text
!
as
NSString
let
dingj
=
dingJinTF
.
text
!
as
NSString
if
isPurnNumber
(
str
:
dingJinTF
.
text
!
)
{
if
isPurnNumber
(
str
:
dingJinTF
.
text
!
)
{
if
dingj
.
floatValue
>
(
totalPrice
!
*
0.2
)
{
if
dingj
.
floatValue
>
(
totalPrice
!
*
0.2
)
{
...
@@ -86,29 +87,28 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -86,29 +87,28 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
}
else
{
}
else
{
dingJinTF
.
text
=
String
(
format
:
"%.2f"
,
dingj
.
floatValue
)
dingJinTF
.
text
=
String
(
format
:
"%.2f"
,
dingj
.
floatValue
)
}
}
let
lastDj
=
dingJinTF
.
text
!
as
NSString
//
let lastDj = dingJinTF.text! as NSString
let
weiku
=
totalPrice
!
-
lastDj
.
floatValue
//
let weiku = totalPrice! - lastDj.floatValue
weiKuanTF
.
text
=
String
(
format
:
"%.2f"
,
weiku
)
//
weiKuanTF.text = String(format: "%.2f",weiku)
}
else
{
}
else
{
HUD
.
flash
(
.
label
(
"请填写正确的定金数值"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请填写正确的定金数值"
),
delay
:
1.2
)
dingJinTF
.
text
=
""
dingJinTF
.
text
=
""
}
}
}
else
if
textField
.
tag
==
1002
{
}
else
if
textField
.
tag
==
1002
{
print
(
weiKuanTF
.
text
)
let
weiku
=
weiKuanTF
.
text
!
as
NSString
let
weiku
=
weiKuanTF
.
text
!
as
NSString
if
isPurnNumber
(
str
:
weiKuanTF
.
text
!
)
{
if
isPurnNumber
(
str
:
weiKuanTF
.
text
!
)
{
if
weiku
.
floatValue
>
totalPrice
!
{
//
if weiku.floatValue > totalPrice! {
HUD
.
flash
(
.
label
(
"尾款不得高于总价"
),
delay
:
1.2
)
//
HUD.flash(.label("尾款不得高于总价"),delay: 1.2)
weiKuanTF
.
text
=
String
(
format
:
"%.2f"
,
totalPrice
!
)
//
weiKuanTF.text = String(format: "%.2f", totalPrice!)
}
else
if
weiku
.
floatValue
<
(
totalPrice
!
*
0.8
){
//
}else if weiku.floatValue < (totalPrice! * 0.8){
HUD
.
flash
(
.
label
(
"尾款不得低于总价的80%"
),
delay
:
1.2
)
//
HUD.flash(.label("尾款不得低于总价的80%"),delay: 1.2)
weiKuanTF
.
text
=
String
(
format
:
"%.2f"
,
(
totalPrice
!
*
0.8
))
//
weiKuanTF.text = String(format: "%.2f", (totalPrice! * 0.8))
}
else
{
//
}else{
weiKuanTF
.
text
=
String
(
format
:
"%.2f"
,
weiku
.
floatValue
)
weiKuanTF
.
text
=
String
(
format
:
"%.2f"
,
weiku
.
floatValue
)
}
//
}
let
lastWeiku
=
weiKuanTF
.
text
!
as
NSString
//
let lastWeiku = weiKuanTF.text! as NSString
let
dingj
=
totalPrice
!
-
lastWeiku
.
floatValue
//
let dingj = totalPrice! - lastWeiku.floatValue
dingJinTF
.
text
=
String
(
format
:
"%.2f"
,
dingj
)
//
dingJinTF.text = String(format: "%.2f",dingj)
}
else
{
}
else
{
HUD
.
flash
(
.
label
(
"请填写正确的尾款数值"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请填写正确的尾款数值"
),
delay
:
1.2
)
weiKuanTF
.
text
=
""
weiKuanTF
.
text
=
""
...
@@ -120,15 +120,15 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -120,15 +120,15 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
@IBAction
func
submitACTION
(
_
sender
:
Any
)
{
@IBAction
func
submitACTION
(
_
sender
:
Any
)
{
print
(
"预售返回上一级且提交了数据"
)
print
(
"预售返回上一级且提交了数据"
)
let
weiku
=
weiKuanTF
.
text
!
as
NSString
// let weiku = weiKuanTF.text! as NSString
let
dingj
=
dingJinTF
.
text
!
as
NSString
// let dingj = dingJinTF.text! as NSString
// if (weiku.floatValue + dingj.floatValue)
// != totalPrice {
// let total = String(format: "%.2f", totalPrice!)
// HUD.flash(.label("填写的定金和尾款总价应为" + total),delay: 1.2)
// return;
// }
if
(
weiku
.
floatValue
+
dingj
.
floatValue
)
!=
totalPrice
{
let
total
=
String
(
format
:
"%.2f"
,
totalPrice
!
)
HUD
.
flash
(
.
label
(
"填写的定金和尾款总价应为"
+
total
),
delay
:
1.2
)
return
;
}
if
orderID
!=
0
{
if
orderID
!=
0
{
//MARK:--需要对输入是否为金额判断
//MARK:--需要对输入是否为金额判断
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
3b3f13ef
...
@@ -150,6 +150,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -150,6 +150,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
vc
.
delegate
=
self
vc
.
delegate
=
self
vc
.
dataModel
=
self
.
dataMdoel
vc
.
dataModel
=
self
.
dataMdoel
vc
.
orderID
=
self
.
orderId
vc
.
orderID
=
self
.
orderId
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!.
first
vc
.
imgUrlstr
=
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
let
goodsAmount
=
(
self
.
dataMdoel
?
.
order_res
?
.
goods_amount
!
)
!
as
NSString
let
goodsAmount
=
(
self
.
dataMdoel
?
.
order_res
?
.
goods_amount
!
)
!
as
NSString
vc
.
totalPrice
=
goodsAmount
.
floatValue
vc
.
totalPrice
=
goodsAmount
.
floatValue
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
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