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
cc69d710
Commit
cc69d710
authored
May 25, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代客下单完成
parent
768f0820
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
168 additions
and
49 deletions
+168
-49
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/DKXDAdrCell.swift
GeliBusinessPlatform/View/Cell/DKXDAdrCell.swift
+1
-0
GeliBusinessPlatform/View/Cell/DKXDAdrCell.xib
GeliBusinessPlatform/View/Cell/DKXDAdrCell.xib
+7
-6
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
+32
-7
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+30
-12
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+84
-10
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
...Platform/ViewController/供应商管理/GYSListViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
...inessPlatform/ViewController/地图/SJMapViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
+5
-5
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.swift
...form/ViewController/客户管理/BingDingKeHuViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
...Platform/ViewController/客户管理/KeHuListViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
...form/ViewController/应付账款/YingFuZKListViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
...usinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
cc69d710
No preview for this file type
GeliBusinessPlatform/View/Cell/DKXDAdrCell.swift
View file @
cc69d710
...
@@ -10,6 +10,7 @@ import UIKit
...
@@ -10,6 +10,7 @@ import UIKit
class
DKXDAdrCell
:
UITableViewCell
{
class
DKXDAdrCell
:
UITableViewCell
{
@IBOutlet
weak
var
contentLblRightOffset
:
NSLayoutConstraint
!
@IBOutlet
weak
var
adrLbl
:
UILabel
!
@IBOutlet
weak
var
adrLbl
:
UILabel
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
...
...
GeliBusinessPlatform/View/Cell/DKXDAdrCell.xib
View file @
cc69d710
<?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"
/>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<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=
"收"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"QvD-ve-9Fp"
>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"QvD-ve-9Fp"
>
<rect
key=
"frame"
x=
"325"
y=
"14"
width=
"18"
height=
"18"
/>
<rect
key=
"frame"
x=
"325"
y=
"14"
width=
"18"
height=
"18"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"K4r-yw-iY5"
/>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"K4r-yw-iY5"
/>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<constraint
firstAttribute=
"width"
constant=
"7"
id=
"rEc-Do-HBZ"
/>
<constraint
firstAttribute=
"width"
constant=
"7"
id=
"rEc-Do-HBZ"
/>
</constraints>
</constraints>
</imageView>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"寄"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"r5M-d4-Eze"
>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"寄"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"r5M-d4-Eze"
>
<rect
key=
"frame"
x=
"297"
y=
"14"
width=
"18"
height=
"18"
/>
<rect
key=
"frame"
x=
"297"
y=
"14"
width=
"18"
height=
"18"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"0h9-G0-bSR"
/>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"0h9-G0-bSR"
/>
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"内容"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dVC-Xx-6Hy"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"内容"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dVC-Xx-6Hy"
>
<rect
key=
"frame"
x=
"
260
"
y=
"15"
width=
"27"
height=
"16"
/>
<rect
key=
"frame"
x=
"
315
"
y=
"15"
width=
"27"
height=
"16"
/>
<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"
/>
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</view>
</view>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"r5M-d4-Eze"
firstAttribute=
"leading"
secondItem=
"dVC-Xx-6Hy"
secondAttribute=
"trailing"
constant=
"
10
"
id=
"22v-tZ-ib5"
/>
<constraint
firstItem=
"r5M-d4-Eze"
firstAttribute=
"leading"
secondItem=
"dVC-Xx-6Hy"
secondAttribute=
"trailing"
constant=
"
-45
"
id=
"22v-tZ-ib5"
/>
<constraint
firstItem=
"5kw-XG-gZD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"9VS-AY-U3V"
/>
<constraint
firstItem=
"5kw-XG-gZD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"9VS-AY-U3V"
/>
<constraint
firstItem=
"dVC-Xx-6Hy"
firstAttribute=
"centerY"
secondItem=
"5kw-XG-gZD"
secondAttribute=
"centerY"
id=
"D7X-Vs-1Cy"
/>
<constraint
firstItem=
"dVC-Xx-6Hy"
firstAttribute=
"centerY"
secondItem=
"5kw-XG-gZD"
secondAttribute=
"centerY"
id=
"D7X-Vs-1Cy"
/>
<constraint
firstItem=
"VnT-fQ-1Wc"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Edw-XO-oDA"
/>
<constraint
firstItem=
"VnT-fQ-1Wc"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Edw-XO-oDA"
/>
...
@@ -114,6 +114,7 @@
...
@@ -114,6 +114,7 @@
<connections>
<connections>
<outlet
property=
"adrLbl"
destination=
"hiB-wE-OIe"
id=
"FK3-AL-t6u"
/>
<outlet
property=
"adrLbl"
destination=
"hiB-wE-OIe"
id=
"FK3-AL-t6u"
/>
<outlet
property=
"contentLbl"
destination=
"dVC-Xx-6Hy"
id=
"gtL-Pj-o6B"
/>
<outlet
property=
"contentLbl"
destination=
"dVC-Xx-6Hy"
id=
"gtL-Pj-o6B"
/>
<outlet
property=
"contentLblRightOffset"
destination=
"22v-tZ-ib5"
id=
"GHU-md-LZu"
/>
<outlet
property=
"nameLbl"
destination=
"5kw-XG-gZD"
id=
"UV4-nX-ceM"
/>
<outlet
property=
"nameLbl"
destination=
"5kw-XG-gZD"
id=
"UV4-nX-ceM"
/>
<outlet
property=
"status1"
destination=
"QvD-ve-9Fp"
id=
"vJC-ZC-Cxd"
/>
<outlet
property=
"status1"
destination=
"QvD-ve-9Fp"
id=
"vJC-ZC-Cxd"
/>
<outlet
property=
"status2"
destination=
"r5M-d4-Eze"
id=
"yE5-x7-b6e"
/>
<outlet
property=
"status2"
destination=
"r5M-d4-Eze"
id=
"yE5-x7-b6e"
/>
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
View file @
cc69d710
...
@@ -9,12 +9,14 @@
...
@@ -9,12 +9,14 @@
import
UIKit
import
UIKit
@objc
protocol
XuanZeShangPinCellDelegate
{
@objc
protocol
XuanZeShangPinCellDelegate
{
@objc
optional
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
@objc
optional
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
@objc
optional
func
XuanZeShangPinCellTextChange
(
index
:
IndexPath
)
@objc
optional
func
XuanZeShangPinCellTextChange
(
index
:
IndexPath
,
sender
:
XuanZeShangPinCell
)
}
}
class
XuanZeShangPinCell
:
UITableViewCell
{
class
XuanZeShangPinCell
:
UITableViewCell
{
var
imgUrlPath
:
String
?
var
imgUrlPath
:
String
?
var
sku_id
:
Int
?
var
sku_id
:
Int
?
var
model
:
GetGoodsInfoDataModel
?
var
model
:
GetGoodsInfoDataModel
?
var
maxNum
:
Int
?
=
0
@IBOutlet
weak
var
iconImg
:
UIImageView
!
@IBOutlet
weak
var
iconImg
:
UIImageView
!
@IBOutlet
weak
var
priceLbl
:
UILabel
!
@IBOutlet
weak
var
priceLbl
:
UILabel
!
@IBOutlet
weak
var
yuShouImg
:
UIImageView
!
@IBOutlet
weak
var
yuShouImg
:
UIImageView
!
...
@@ -27,9 +29,19 @@ class XuanZeShangPinCell: UITableViewCell {
...
@@ -27,9 +29,19 @@ class XuanZeShangPinCell: UITableViewCell {
@IBAction
func
addOrDelAction
(
_
sender
:
UIButton
)
{
@IBAction
func
addOrDelAction
(
_
sender
:
UIButton
)
{
let
str
=
countTF
.
text
as!
NSString
let
str
=
countTF
.
text
as!
NSString
if
sender
.
tag
==
0
{
//加
if
sender
.
tag
==
0
{
//加
if
maxNum
!
>
0
{
if
(
str
.
integerValue
+
1
)
>
maxNum
!
{
let
maxStr
=
StringByInt
(
number
:
maxNum
!
)
HUD
.
flash
(
.
label
(
"不可超过最大数量"
+
maxStr
),
delay
:
1.2
)
countTF
.
text
=
StringByInt
(
number
:
maxNum
!
)
}
else
{
countTF
.
text
=
"
\(
str
.
integerValue
+
1
)
"
}
}
else
{
countTF
.
text
=
"
\(
str
.
integerValue
+
1
)
"
countTF
.
text
=
"
\(
str
.
integerValue
+
1
)
"
}
}
else
{
}
else
{
if
str
.
integerValue
>
0
{
if
str
.
integerValue
>
1
{
countTF
.
text
=
"
\(
str
.
integerValue
-
1
)
"
countTF
.
text
=
"
\(
str
.
integerValue
-
1
)
"
}
}
}
}
...
@@ -50,10 +62,23 @@ class XuanZeShangPinCell: UITableViewCell {
...
@@ -50,10 +62,23 @@ class XuanZeShangPinCell: UITableViewCell {
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
priceTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
priceTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
countTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
countTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
// Initialization code
// Initialization code
}
}
@objc
func
textChange
(
sender
:
UITextField
){
@objc
func
textChange
(
sender
:
UITextField
){
delegate
?
.
XuanZeShangPinCellTextChange
?(
index
:
idx
!
)
let
num
=
sender
.
text
as!
NSString
let
maxStr
=
StringByInt
(
number
:
maxNum
!
)
if
sender
==
countTF
{
if
num
.
integerValue
>
maxNum
!
{
HUD
.
flash
(
.
label
(
"不可超过最大数量"
+
maxStr
),
delay
:
1.2
)
countTF
.
text
=
maxStr
}
}
delegate
?
.
XuanZeShangPinCellTextChange
?(
index
:
idx
!
,
sender
:
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/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
cc69d710
...
@@ -89,17 +89,17 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -89,17 +89,17 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
"goods_info"
:
goods_info
as
Any
,
"goods_info"
:
goods_info
as
Any
,
"order_info"
:
order_info
as
Any
]
as
[
String
:
Any
]
"order_info"
:
order_info
as
Any
]
as
[
String
:
Any
]
print
(
order
)
print
(
order
)
// HUD.flash(.progress)
// HUD.flash(.progress)
// addOrder(order, success: { (data) in
// addOrder(order, success: { (data) in
// let dataM = data as! UpDataModel
// let dataM = data as! UpDataModel
// if dataM.code == 1 {
// if dataM.code == 1 {
// HUD.flash(.label("提交成功"), delay: 1.2)
// HUD.flash(.label("提交成功"), delay: 1.2)
// }else{
// }else{
// HUD.hide()
// HUD.hide()
// }
// }
// }) { (error) in
// }) { (error) in
//
//
// }
// }
}
}
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
...
@@ -230,7 +230,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -230,7 +230,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
textTF
.
returnKeyType
=
.
done
cell
.
textTF
.
returnKeyType
=
.
done
cell
.
textTF
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色字体颜色"
)?
.
cgColor
cell
.
textTF
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色字体颜色"
)?
.
cgColor
cell
.
textTF
.
placeholder
=
"请输入费用"
cell
.
textTF
.
placeholder
=
"请输入费用"
cell
.
textTF
.
keyboardType
=
.
numbersAndPunctuation
cell
.
textTF
.
keyboardType
=
.
decimalPad
cell
.
textTF
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
textTF
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
if
indexPath
.
row
==
5
{
if
indexPath
.
row
==
5
{
cell
.
textTF
.
placeholder
=
"请输入运费"
cell
.
textTF
.
placeholder
=
"请输入运费"
...
@@ -291,6 +291,13 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -291,6 +291,13 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
view
.
selectNum
=
dj_payStatus
view
.
selectNum
=
dj_payStatus
view
.
tempNum
=
view
.
selectNum
view
.
tempNum
=
view
.
selectNum
view
.
titleLbl
.
text
=
"请选择
\(
p2Arr
[
indexPath
.
row
]
)
"
view
.
titleLbl
.
text
=
"请选择
\(
p2Arr
[
indexPath
.
row
]
)
"
if
orderType
==
1
{
if
dj_payWay
==
0
{
view
.
deSelectArr
=
[
1
,
2
,
3
]
}
else
{
view
.
deSelectArr
=
[
0
,
1
,
2
]
}
}
view
.
dataArr
=
zfTypeArr
view
.
dataArr
=
zfTypeArr
}
}
self
.
view
.
addSubview
(
view
)
self
.
view
.
addSubview
(
view
)
...
@@ -300,6 +307,10 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -300,6 +307,10 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
case
3
:
case
3
:
if
indexPath
.
row
==
3
||
indexPath
.
row
>
4
{
if
indexPath
.
row
==
3
||
indexPath
.
row
>
4
{
if
indexPath
.
row
==
3
{
if
indexPath
.
row
==
3
{
if
cusModel
==
nil
{
HUD
.
flash
(
.
label
(
"请先关联客户"
),
delay
:
1.2
)
return
}
let
vc
=
DZGLViewController
()
let
vc
=
DZGLViewController
()
vc
.
cus_id
=
cusModel
?
.
cus_id
vc
.
cus_id
=
cusModel
?
.
cus_id
vc
.
isSelectMotion
=
true
vc
.
isSelectMotion
=
true
...
@@ -331,6 +342,13 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -331,6 +342,13 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
view
.
selectNum
=
zhiFuStatus
view
.
selectNum
=
zhiFuStatus
view
.
tempNum
=
view
.
selectNum
view
.
tempNum
=
view
.
selectNum
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
indexPath
.
row
]
)
"
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
indexPath
.
row
]
)
"
if
orderType
==
1
{
if
zhiFuWay
==
0
{
view
.
deSelectArr
=
[
1
,
2
,
3
]
}
else
{
view
.
deSelectArr
=
[
0
,
1
,
2
]
}
}
view
.
dataArr
=
zfTypeArr
view
.
dataArr
=
zfTypeArr
break
break
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
cc69d710
...
@@ -23,6 +23,14 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -23,6 +23,14 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
//XuanZeShangPinCell
//XuanZeShangPinCell
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
print
(
"submit"
)
print
(
"submit"
)
for
item
in
inputData
{
if
item
.
priceTF
.
text
!.
count
==
0
{
HUD
.
flash
(
.
label
(
"请输入商品单价"
),
delay
:
1.2
)
return
}
}
if
barTitle
==
"修改价格"
{
if
barTitle
==
"修改价格"
{
delegate
?
.
XuanZeShangPinViewControllerEdit
(
inputData
:
inputData
)
delegate
?
.
XuanZeShangPinViewControllerEdit
(
inputData
:
inputData
)
}
else
{
}
else
{
...
@@ -47,6 +55,8 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -47,6 +55,8 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
var
selectArr
:
Array
<
GetGoodsInfoDataModel
>
=
[]
var
selectArr
:
Array
<
GetGoodsInfoDataModel
>
=
[]
var
selectIdxArr
:
Array
<
IndexPath
>
=
[]
var
selectIdxArr
:
Array
<
IndexPath
>
=
[]
var
inputData
:
Array
<
XuanZeShangPinCell
>
=
[]
var
inputData
:
Array
<
XuanZeShangPinCell
>
=
[]
var
isSearch
:
Bool
=
false
var
seacrchArr
:
Array
<
GetGoodsInfoDataModel
>
=
[]
//搜索数据
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
barTitle
navbar
.
title
=
barTitle
...
@@ -90,8 +100,8 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -90,8 +100,8 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
make
.
height
.
equalTo
(
30
)
make
.
height
.
equalTo
(
30
)
}
}
searchV
=
searchBr
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入
品牌名称/商品编码
"
searchBr
.
placeholderStr
=
"请输入
商品名称
"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
...
@@ -99,12 +109,44 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -99,12 +109,44 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
}
}
func
clearSearchAction
()
{
func
clearSearchAction
()
{
print
(
"清楚搜索文字"
)
print
(
"清楚搜索文字"
)
isSearch
=
false
listView
.
reloadData
()
}
}
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
print
(
"点击搜索进行--"
)
isSearch
=
true
getSearch
(
sender
:
searchBar
.
text
!
)
listView
.
reloadData
()
searchBar
.
resignFirstResponder
()
searchBar
.
resignFirstResponder
()
}
func
getSearch
(
sender
:
String
)
{
seacrchArr
.
removeAll
()
datas
.
forEach
{
(
md
)
in
if
md
.
goods_name
!.
contains
(
sender
)
{
seacrchArr
.
append
(
md
)
}
}
}
}
//MARK: - textfield编辑结束
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
let
idx
=
IndexPath
(
row
:
textField
.
tag
,
section
:
0
)
let
cell
=
listView
.
cellForRow
(
at
:
idx
)
as!
XuanZeShangPinCell
let
num
=
textField
.
text
as!
NSString
if
textField
==
cell
.
countTF
{
if
num
.
integerValue
<
1
{
HUD
.
flash
(
.
label
(
"数量不得低于1"
),
delay
:
1.2
)
cell
.
countTF
.
text
=
"1"
}
}
if
textField
==
cell
.
priceTF
{
if
num
.
floatValue
<=
0
{
HUD
.
flash
(
.
label
(
"请输入商品单价"
),
delay
:
1.2
)
}
}
}
func
textFieldShouldReturn
(
_
textField
:
UITextField
)
->
Bool
{
func
textFieldShouldReturn
(
_
textField
:
UITextField
)
->
Bool
{
textField
.
resignFirstResponder
()
textField
.
resignFirstResponder
()
if
barTitle
==
"修改价格"
{
if
barTitle
==
"修改价格"
{
...
@@ -207,7 +249,16 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -207,7 +249,16 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
cell
.
priceTF
.
text
=
model
.
price
!
cell
.
priceTF
.
text
=
model
.
price
!
if
isYuShou
{
//预售
if
isYuShou
{
//预售
if
idx
==
indexPath
{
cell
.
maxNum
=
model
.
adsale_inventory
var
isSelectByData
=
false
selectArr
.
forEach
{
(
md
)
in
if
md
.
sku_id
==
model
.
sku_id
{
isSelectByData
=
true
}
}
if
isSelectByData
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
selectBtn
.
isSelected
=
true
cell
.
btmView
.
isHidden
=
false
cell
.
btmView
.
isHidden
=
false
cell
.
btmViewHeight
.
constant
=
89
cell
.
btmViewHeight
.
constant
=
89
...
@@ -217,27 +268,36 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -217,27 +268,36 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
cell
.
btmViewHeight
.
constant
=
0
cell
.
btmViewHeight
.
constant
=
0
}
}
}
else
{
//非预售
}
else
{
//非预售
cell
.
maxNum
=
model
.
inventory
cell
.
selectBtn
.
isSelected
=
false
cell
.
selectBtn
.
isSelected
=
false
cell
.
btmView
.
isHidden
=
true
cell
.
btmView
.
isHidden
=
true
cell
.
btmViewHeight
.
constant
=
0
cell
.
btmViewHeight
.
constant
=
0
for
idx
in
selectIdxArr
{
if
idx
==
indexPath
{
var
isSelectByData
=
false
selectArr
.
forEach
{
(
md
)
in
if
md
.
sku_id
==
model
.
sku_id
{
isSelectByData
=
true
}
}
if
isSelectByData
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
selectBtn
.
isSelected
=
true
cell
.
btmView
.
isHidden
=
false
cell
.
btmView
.
isHidden
=
false
cell
.
btmViewHeight
.
constant
=
89
cell
.
btmViewHeight
.
constant
=
89
}
}
}
}
}
}
}
return
cell
return
cell
}
}
func
XuanZeShangPinCellTextChange
(
index
:
IndexPath
)
{
func
XuanZeShangPinCellTextChange
(
index
:
IndexPath
,
sender
:
XuanZeShangPinCell
)
{
let
cell
=
listView
.
cellForRow
(
at
:
index
)
as!
XuanZeShangPinCell
for
i
in
0
..<
inputData
.
count
{
for
i
in
0
..<
inputData
.
count
{
let
item
=
inputData
[
i
]
let
item
=
inputData
[
i
]
if
cell
.
sku_id
==
item
.
sku_id
{
if
sender
.
sku_id
==
item
.
sku_id
{
inputData
.
insert
(
cell
,
at
:
i
)
inputData
.
insert
(
sender
,
at
:
i
)
inputData
.
remove
(
at
:
i
+
1
)
inputData
.
remove
(
at
:
i
+
1
)
}
}
}
}
...
@@ -266,11 +326,21 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -266,11 +326,21 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
{
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
{
let
cell
=
listView
.
cellForRow
(
at
:
index
)
as!
XuanZeShangPinCell
let
cell
=
listView
.
cellForRow
(
at
:
index
)
as!
XuanZeShangPinCell
if
isYuShou
{
//预售
if
isYuShou
{
//预售
let
model
=
datas
[
index
.
row
]
if
model
.
adsale_inventory
==
0
{
HUD
.
flash
(
.
label
(
"库存为0,无法下单"
),
delay
:
1.2
)
return
}
idx
=
index
idx
=
index
inputData
.
removeAll
()
inputData
.
removeAll
()
inputData
.
append
(
cell
)
inputData
.
append
(
cell
)
}
else
{
//非预售
}
else
{
//非预售
let
data
=
datas
[
index
.
row
]
let
data
=
datas
[
index
.
row
]
if
data
.
inventory
==
0
{
HUD
.
flash
(
.
label
(
"库存为0,无法下单"
),
delay
:
1.2
)
return
}
let
idx
=
selectArr
.
firstIndex
{
(
model
)
->
Bool
in
let
idx
=
selectArr
.
firstIndex
{
(
model
)
->
Bool
in
return
(
data
.
sku_id
==
model
.
sku_id
)
return
(
data
.
sku_id
==
model
.
sku_id
)
}
}
...
@@ -296,8 +366,12 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -296,8 +366,12 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
if
barTitle
==
"修改价格"
{
if
barTitle
==
"修改价格"
{
return
inputData
.
count
return
inputData
.
count
}
}
if
isSearch
{
return
seacrchArr
.
count
}
return
datas
.
count
return
datas
.
count
}
}
}
}
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
View file @
cc69d710
...
@@ -34,7 +34,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
...
@@ -34,7 +34,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
}
}
searchV
=
searchBr
searchV
=
searchBr
searchBr
.
placeholderStr
=
"供应商名称/联系人/电话号码"
searchBr
.
placeholderStr
=
"供应商名称/联系人/电话号码"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
cc69d710
...
@@ -667,7 +667,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -667,7 +667,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
break
break
case
"物流费用"
:
case
"物流费用"
:
cell
.
textTF
.
text
=
wuLiuPrice
cell
.
textTF
.
text
=
wuLiuPrice
cell
.
textTF
.
keyboardType
=
.
numbersAndPunctuation
cell
.
textTF
.
keyboardType
=
.
decimalPad
break
break
default
:
default
:
break
break
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
cc69d710
...
@@ -419,7 +419,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -419,7 +419,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
break
break
case
"物流费用"
:
case
"物流费用"
:
cell
.
textTF
.
text
=
wuLiuPrice
cell
.
textTF
.
text
=
wuLiuPrice
cell
.
textTF
.
keyboardType
=
.
numbersAndPunctuation
cell
.
textTF
.
keyboardType
=
.
decimalPad
break
break
default
:
default
:
break
break
...
...
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
View file @
cc69d710
...
@@ -244,7 +244,7 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
...
@@ -244,7 +244,7 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
}
}
searchV
=
searchBr
searchV
=
searchBr
searchBr
.
placeholderStr
=
"搜索地点"
searchBr
.
placeholderStr
=
"搜索地点"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
}
}
...
...
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
cc69d710
...
@@ -29,7 +29,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
...
@@ -29,7 +29,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"地址管理"
navbar
.
title
=
"地址管理"
navbar
.
rightTitle
=
"新增"
//
navbar.rightTitle = "新增"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
HUD
.
flash
(
.
progress
)
HUD
.
flash
(
.
progress
)
...
...
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
View file @
cc69d710
<?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=
"DiZhiGuanLiCell"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"DiZhiGuanLiCell"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"79"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"79"
/>
<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"
>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<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=
"寄"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jf6-0X-5eB"
>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"寄"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jf6-0X-5eB"
>
<rect
key=
"frame"
x=
"189"
y=
"15.5"
width=
"18"
height=
"18"
/>
<rect
key=
"frame"
x=
"189"
y=
"15.5"
width=
"18"
height=
"18"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"KUq-24-4Xw"
/>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"KUq-24-4Xw"
/>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mWp-V0-KaZ"
>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mWp-V0-KaZ"
>
<rect
key=
"frame"
x=
"217"
y=
"15.5"
width=
"18"
height=
"18"
/>
<rect
key=
"frame"
x=
"217"
y=
"15.5"
width=
"18"
height=
"18"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"Yz5-IC-luF"
/>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"Yz5-IC-luF"
/>
...
...
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.swift
View file @
cc69d710
...
@@ -34,7 +34,7 @@ class BingDingKeHuViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -34,7 +34,7 @@ class BingDingKeHuViewController: BaseViewController,UITableViewDelegate,UITable
}
}
searchV
=
searchBr
searchV
=
searchBr
searchBr
.
placeholderStr
=
"客户名称/联系人/电话号码"
searchBr
.
placeholderStr
=
"客户名称/联系人/电话号码"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
View file @
cc69d710
...
@@ -46,7 +46,7 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
...
@@ -46,7 +46,7 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
}
}
searchV
=
searchBr
searchV
=
searchBr
searchBr
.
placeholderStr
=
"客户名称/联系人/电话号码"
searchBr
.
placeholderStr
=
"客户名称/联系人/电话号码"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
...
...
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
View file @
cc69d710
...
@@ -39,7 +39,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -39,7 +39,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
}
}
searchV
=
searchBr
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入品牌名称/商品编码"
searchBr
.
placeholderStr
=
"请输入品牌名称/商品编码"
searchBr
.
cornerRadius
=
3
0*0.5
searchBr
.
cornerRadius
=
3
5
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
...
...
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
View file @
cc69d710
...
@@ -31,7 +31,7 @@ class PuTongJieTiCell: UITableViewCell,UITextFieldDelegate {
...
@@ -31,7 +31,7 @@ class PuTongJieTiCell: UITableViewCell,UITextFieldDelegate {
priceTF
.
tag
=
0
priceTF
.
tag
=
0
countTF
.
tag
=
1
countTF
.
tag
=
1
countTF
.
keyboardType
=
.
numberPad
countTF
.
keyboardType
=
.
numberPad
priceTF
.
keyboardType
=
.
numbersAndPunctuation
priceTF
.
keyboardType
=
.
decimalPad
priceTF
.
returnKeyType
=
.
done
priceTF
.
returnKeyType
=
.
done
priceTF
.
delegate
=
self
priceTF
.
delegate
=
self
// Initialization code
// Initialization code
...
...
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