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
68006167
Commit
68006167
authored
Nov 13, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
81,83,84,85
parent
08ddb586
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
95 additions
and
69 deletions
+95
-69
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/背景色/#FAA376.colorset/Contents.json
...atform/Assets.xcassets/背景色/#FAA376.colorset/Contents.json
+2
-2
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+4
-4
GeliBusinessPlatform/View/HeaderSelectView/SelectContentView.swift
...essPlatform/View/HeaderSelectView/SelectContentView.swift
+4
-0
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
...Platform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
+3
-1
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
...iewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
+5
-6
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
+6
-4
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.xib
...ssPlatform/ViewController/供应商管理/GYSListViewController.xib
+17
-7
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
...sPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
+14
-14
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.swift
...form/ViewController/客户管理/BingDingKeHuViewController.swift
+4
-3
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
...Platform/ViewController/客户管理/KeHuListViewController.swift
+4
-3
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+17
-17
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
...form/ViewController/应付账款/YingFuZKListViewController.swift
+4
-3
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
...ViewController/应付账款/YingFuZhangKuanXQViewController.swift
+4
-3
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.swift
...orm/ViewController/新增、编辑品牌/PinPaiListViewController.swift
+4
-2
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.swift
...Platform/ViewController/采购单列表/CGDListViewController.swift
+3
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
68006167
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/背景色/#FAA376.colorset/Contents.json
View file @
68006167
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"color"
:
{
"color"
:
{
"color-space"
:
"srgb"
,
"color-space"
:
"srgb"
,
"components"
:
{
"components"
:
{
"alpha"
:
"
1.00
0"
,
"alpha"
:
"
0.69
0"
,
"blue"
:
"0.463"
,
"blue"
:
"0.463"
,
"green"
:
"0.639"
,
"green"
:
"0.639"
,
"red"
:
"0.980"
"red"
:
"0.980"
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
"color"
:
{
"color"
:
{
"color-space"
:
"srgb"
,
"color-space"
:
"srgb"
,
"components"
:
{
"components"
:
{
"alpha"
:
"
1.00
0"
,
"alpha"
:
"
0.69
0"
,
"blue"
:
"0.463"
,
"blue"
:
"0.463"
,
"green"
:
"0.639"
,
"green"
:
"0.639"
,
"red"
:
"0.980"
"red"
:
"0.980"
...
...
GeliBusinessPlatform/Define/Define.swift
View file @
68006167
...
@@ -27,10 +27,10 @@ let systemVersion = (UIDevice.current.systemVersion as String)
...
@@ -27,10 +27,10 @@ let systemVersion = (UIDevice.current.systemVersion as String)
//接口地址
//接口地址
//test
//test
//
let SERVERCE_ImageHost = "https://z.gelifood.com/"
let
SERVERCE_ImageHost
=
"https://z.gelifood.com/"
//
let SERVERCE_HOST = "https://z.gelifood.com/admin/"
let
SERVERCE_HOST
=
"https://z.gelifood.com/admin/"
let
SERVERCE_ImageHost
=
"https://zx.gelifood.com/"
//
let SERVERCE_ImageHost = "https://zx.gelifood.com/"
let
SERVERCE_HOST
=
"https://zx.gelifood.com/admin/"
//
let SERVERCE_HOST = "https://zx.gelifood.com/admin/"
////online
////online
//视图常量
//视图常量
...
...
GeliBusinessPlatform/View/HeaderSelectView/SelectContentView.swift
View file @
68006167
...
@@ -26,6 +26,7 @@ class SelectContentView: UIView, UITableViewDelegate, UITableViewDataSource {
...
@@ -26,6 +26,7 @@ class SelectContentView: UIView, UITableViewDelegate, UITableViewDataSource {
}
}
}
}
var
dataArr
:
[
String
]
=
[]{
var
dataArr
:
[
String
]
=
[]{
didSet
{
didSet
{
if
dataArr
.
count
>
3
{
if
dataArr
.
count
>
3
{
...
@@ -35,6 +36,8 @@ class SelectContentView: UIView, UITableViewDelegate, UITableViewDataSource {
...
@@ -35,6 +36,8 @@ class SelectContentView: UIView, UITableViewDelegate, UITableViewDataSource {
}
else
{
}
else
{
tabContentHeight
.
constant
=
CGFloat
((
50
*
Int
(
glscale
))
*
dataArr
.
count
+
5
)
tabContentHeight
.
constant
=
CGFloat
((
50
*
Int
(
glscale
))
*
dataArr
.
count
+
5
)
}
}
}
else
if
dataArr
.
count
==
2
{
tabContentHeight
.
constant
=
100
*
glscale
+
5
}
else
{
}
else
{
tabContentHeight
.
constant
=
150
*
glscale
+
5
tabContentHeight
.
constant
=
150
*
glscale
+
5
}
}
...
@@ -43,6 +46,7 @@ class SelectContentView: UIView, UITableViewDelegate, UITableViewDataSource {
...
@@ -43,6 +46,7 @@ class SelectContentView: UIView, UITableViewDelegate, UITableViewDataSource {
}
}
func
setTabv
()
{
func
setTabv
()
{
tableV
=
UITableView
()
tableV
=
UITableView
()
tabContentV
.
addSubview
(
tableV
);
tabContentV
.
addSubview
(
tableV
);
tableV
.
snp
.
makeConstraints
{
(
make
)
in
tableV
.
snp
.
makeConstraints
{
(
make
)
in
...
...
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
View file @
68006167
...
@@ -141,7 +141,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
...
@@ -141,7 +141,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
model
.
data
?
.
forEach
({
(
item
)
in
model
.
data
?
.
forEach
({
(
item
)
in
self
.
centersArr
.
append
(
item
)
self
.
centersArr
.
append
(
item
)
})
})
if
self
.
centersArr
.
count
!=
0
{
//MARK: - 限制中心选择高度
//MARK: - 限制中心选择高度
var
select_list_tbv_height
=
self
.
centersArr
.
count
*
49
var
select_list_tbv_height
=
self
.
centersArr
.
count
*
49
if
select_list_tbv_height
>
350
{
if
select_list_tbv_height
>
350
{
...
@@ -154,6 +154,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
...
@@ -154,6 +154,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
}
}
self
.
center_Name_Lbl
.
text
=
self
.
centersArr
.
first
?
.
shop_name
self
.
center_Name_Lbl
.
text
=
self
.
centersArr
.
first
?
.
shop_name
self
.
arrow_Img
.
image
=
UIImage
(
named
:
"down_blue"
)
self
.
arrow_Img
.
image
=
UIImage
(
named
:
"down_blue"
)
self
.
shop_id
=
(
self
.
centersArr
.
first
?
.
shop_id
)
!
self
.
shop_id
=
(
self
.
centersArr
.
first
?
.
shop_id
)
!
self
.
select_list_tbv
.
reloadData
()
self
.
select_list_tbv
.
reloadData
()
if
model
.
code
==
1
{
if
model
.
code
==
1
{
...
@@ -161,6 +162,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
...
@@ -161,6 +162,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
}
}
self
.
shop_id
=
(
model
.
data
?
.
first
?
.
shop_id
)
!
self
.
shop_id
=
(
model
.
data
?
.
first
?
.
shop_id
)
!
}
//下拉刷新相关设置
//下拉刷新相关设置
self
.
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
self.loadData
)
)
self
.
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
self.loadData
)
)
self
.
home_list_tbv
.
mj_header
=
self
.
headerMJ
self
.
home_list_tbv
.
mj_header
=
self
.
headerMJ
...
...
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
View file @
68006167
...
@@ -53,14 +53,13 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -53,14 +53,13 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
keyword
=
searchBar
.
text
!
}
print
(
"key - "
,
searchBar
.
text
!
)
removeBlackBtnView
()
removeBlackBtnView
()
if
keyword
.
count
>
0
{
if
keyword
.
count
>
0
{
self
.
home_list_tbv
.
mj_header
?
.
beginRefreshing
()
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
loadData
()
}
}
}
}
}
@objc
func
removeBlackBtnView
(){
@objc
func
removeBlackBtnView
(){
...
@@ -76,7 +75,7 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -76,7 +75,7 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
self
.
view
.
addSubview
(
blackBtnView
)
self
.
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
searchV
!.
snp_bottom
)
make
.
top
.
equalTo
(
searchV
iew
!.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
...
...
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
View file @
68006167
...
@@ -67,11 +67,13 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
...
@@ -67,11 +67,13 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
}
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
loadData
()
}
}
}
print
(
"key - "
,
searchBar
.
text
!
)
home_list_tbv
.
mj_header
?
.
beginRefreshing
()
removeBlackBtnView
()
removeBlackBtnView
()
}
}
@objc
func
removeBlackBtnView
(){
@objc
func
removeBlackBtnView
(){
...
@@ -87,7 +89,7 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
...
@@ -87,7 +89,7 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
self
.
view
.
addSubview
(
blackBtnView
)
self
.
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
search
V
!.
snp_bottom
)
make
.
top
.
equalTo
(
search
_view
!.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.xib
View file @
68006167
<?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
7156
"
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=
"15704"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"GYSListViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"GYSListViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"btmLbl"
destination=
"z9e-bT-lDi"
id=
"BcP-Rc-hrF"
/>
<outlet
property=
"btmLbl"
destination=
"z9e-bT-lDi"
id=
"BcP-Rc-hrF"
/>
<outlet
property=
"listView"
destination=
"Qqa-3M-ZQN"
id=
"jPb-Zb-3ct"
/>
<outlet
property=
"listView"
destination=
"Qqa-3M-ZQN"
id=
"jPb-Zb-3ct"
/>
...
@@ -23,7 +25,7 @@
...
@@ -23,7 +25,7 @@
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"9kx-tK-PfB"
customClass=
"LGButton"
customModule=
"LGButton"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"9kx-tK-PfB"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
@@ -48,7 +50,7 @@
...
@@ -48,7 +50,7 @@
</label>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qqa-3M-ZQN"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qqa-3M-ZQN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"725"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"725"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<connections>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"TVJ-KE-qtq"
/>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"TVJ-KE-qtq"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"QYO-PN-ejg"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"QYO-PN-ejg"
/>
...
@@ -56,12 +58,13 @@
...
@@ -56,12 +58,13 @@
</tableView>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WnZ-DY-vHR"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WnZ-DY-vHR"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"w6B-Wh-pPi"
/>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"w6B-Wh-pPi"
/>
</constraints>
</constraints>
</view>
</view>
</subviews>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraints>
<constraint
firstItem=
"9kx-tK-PfB"
firstAttribute=
"top"
secondItem=
"z9e-bT-lDi"
secondAttribute=
"top"
id=
"0NX-2N-3lZ"
/>
<constraint
firstItem=
"9kx-tK-PfB"
firstAttribute=
"top"
secondItem=
"z9e-bT-lDi"
secondAttribute=
"top"
id=
"0NX-2N-3lZ"
/>
...
@@ -79,10 +82,14 @@
...
@@ -79,10 +82,14 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"9kx-tK-PfB"
secondAttribute=
"bottom"
id=
"il2-ke-p14"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"9kx-tK-PfB"
secondAttribute=
"bottom"
id=
"il2-ke-p14"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"WnZ-DY-vHR"
secondAttribute=
"trailing"
id=
"ooy-cD-b4B"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"WnZ-DY-vHR"
secondAttribute=
"trailing"
id=
"ooy-cD-b4B"
/>
</constraints>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"131.91964285714286"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"131.91964285714286"
/>
</view>
</view>
</objects>
</objects>
<designables>
<designable
name=
"9kx-tK-PfB"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
@@ -93,5 +100,8 @@
...
@@ -93,5 +100,8 @@
<namedColor
name=
"白色背景色"
>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
View file @
68006167
...
@@ -91,7 +91,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -91,7 +91,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
let
arr1
=
[
"全部商品"
,
"不参与分销商品"
,
"参与分销商品"
,
"佣金比例商品"
,
"绝对额比例商品"
]
let
arr1
=
[
"全部商品"
,
"不参与分销商品"
,
"参与分销商品"
,
"佣金比例商品"
,
"绝对额比例商品"
]
arr
.
append
(
arr1
[
sender
])
arr
.
append
(
arr1
[
sender
])
}
else
if
showSelectvIndex
==
1
{
}
else
if
showSelectvIndex
==
1
{
let
arr2
=
[
"
全部"
,
"
上架"
,
"下架"
]
let
arr2
=
[
"上架"
,
"下架"
]
arr
.
append
(
arr2
[
sender
])
arr
.
append
(
arr2
[
sender
])
}
}
selectV
.
colseBytitleArr
(
arr
:
arr
,
index
:
showSelectvIndex
)
selectV
.
colseBytitleArr
(
arr
:
arr
,
index
:
showSelectvIndex
)
...
@@ -129,7 +129,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -129,7 +129,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
make
.
top
.
equalTo
(
top_btn_bg_view
.
snp_bottom
)
make
.
top
.
equalTo
(
top_btn_bg_view
.
snp_bottom
)
}
}
showSelectV
=
showSelectView
showSelectV
=
showSelectView
showSelectView
.
dataArr
=
[
"
全部"
,
"
上架"
,
"下架"
]
showSelectView
.
dataArr
=
[
"上架"
,
"下架"
]
showSelectView
.
selectIndx
=
selectIndexArr
[
1
]
showSelectView
.
selectIndx
=
selectIndexArr
[
1
]
}
}
...
@@ -169,12 +169,13 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -169,12 +169,13 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
}
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
removeBlackBtnView
()
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
loadData
()
}
}
}
print
(
"key - "
,
searchBar
.
text
!
)
removeBlackBtnView
()
home_list_tbv
.
mj_header
?
.
beginRefreshing
()
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
print
(
"调起搜索后添加个蒙版本"
)
...
@@ -182,7 +183,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -182,7 +183,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
self
.
view
.
addSubview
(
blackBtnView
)
self
.
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
search
V
!.
snp_bottom
)
make
.
top
.
equalTo
(
search
_view
!.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
...
@@ -235,7 +236,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -235,7 +236,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
func
initHeaderSelectView
()
{
func
initHeaderSelectView
()
{
let
selectView
=
HeaderSelectView
()
let
selectView
=
HeaderSelectView
()
selectView
.
firstBtn
.
setTitle
(
"全部商品"
,
for
:
.
normal
)
selectView
.
firstBtn
.
setTitle
(
"全部商品"
,
for
:
.
normal
)
selectView
.
secBtn
.
setTitle
(
"
全部
"
,
for
:
.
normal
)
selectView
.
secBtn
.
setTitle
(
"
上架
"
,
for
:
.
normal
)
selectView
.
thereBtn
.
removeFromSuperview
()
selectView
.
thereBtn
.
removeFromSuperview
()
selectView
.
firstBtn
.
snp_makeConstraints
{
(
make
)
in
selectView
.
firstBtn
.
snp_makeConstraints
{
(
make
)
in
make
.
left
.
top
.
bottom
.
equalTo
(
0
)
make
.
left
.
top
.
bottom
.
equalTo
(
0
)
...
@@ -334,8 +335,10 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -334,8 +335,10 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
cell
.
old_price_Lbl
.
text
=
"¥"
+
model
.
price
!
cell
.
old_price_Lbl
.
text
=
"¥"
+
model
.
price
!
if
model
.
commission_type
==
1
{
if
model
.
commission_type
==
1
{
cell
.
FX_Percent_Lbl
.
isHidden
=
false
cell
.
FX_Percent_Lbl
.
isHidden
=
false
cell
.
FX_Percent_Lbl
.
text
=
StringByInt
(
number
:
model
.
commission_per
!
)
+
"%"
cell
.
FX_Percent_Lbl
.
text
=
"分销("
+
StringByInt
(
number
:
model
.
commission_per
!
)
+
"%)"
}
else
if
model
.
commission_type
==
2
{
cell
.
FX_Percent_Lbl
.
isHidden
=
false
cell
.
FX_Percent_Lbl
.
text
=
"分销("
+
model
.
commission_val
!
+
"元)"
}
else
{
}
else
{
cell
.
FX_Percent_Lbl
.
isHidden
=
true
cell
.
FX_Percent_Lbl
.
isHidden
=
true
}
}
...
@@ -367,7 +370,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -367,7 +370,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
}
}
var
is_show
=
2
var
is_show
=
1
var
goods_type
=
1
var
goods_type
=
1
//MARK:--加载数据
//MARK:--加载数据
@objc
func
loadData
(){
@objc
func
loadData
(){
...
@@ -376,9 +379,6 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -376,9 +379,6 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
isUpData
=
true
isUpData
=
true
goods_type
=
selectIndexArr
.
first
!
+
1
goods_type
=
selectIndexArr
.
first
!
+
1
switch
selectIndexArr
.
last
{
switch
selectIndexArr
.
last
{
case
0
:
is_show
=
2
break
case
1
:
case
1
:
is_show
=
1
is_show
=
1
break
break
...
...
GeliBusinessPlatform/ViewController/客户管理/BingDingKeHuViewController.swift
View file @
68006167
...
@@ -76,10 +76,11 @@ class BingDingKeHuViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -76,10 +76,11 @@ class BingDingKeHuViewController: BaseViewController,UITableViewDelegate,UITable
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
listView
.
mj_header
?
.
beginRefreshing
()
if
keyword
.
count
==
0
{
loadData
()
}
}
}
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
View file @
68006167
...
@@ -98,10 +98,11 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
...
@@ -98,10 +98,11 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
listView
.
mj_header
?
.
beginRefreshing
()
if
keyword
.
count
==
0
{
loadData
()
}
}
}
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
68006167
...
@@ -624,24 +624,24 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -624,24 +624,24 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
return
case
133
:
//分销店铺管理
case
133
:
//分销店铺管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
//
HUD.flash(.label("敬请期待"),delay: 1.2)
//
let vc = GYS_HZ_Vc()
let
vc
=
GYS_HZ_Vc
()
//
vc.title_str = "分销商管理"
vc
.
title_str
=
"分销商管理"
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
135
:
//供应商管理
case
135
:
//供应商管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
//
HUD.flash(.label("敬请期待"),delay: 1.2)
//
let vc = GYS_HZ_Vc()
let
vc
=
GYS_HZ_Vc
()
//
vc.title_str = "供应商管理"
vc
.
title_str
=
"供应商管理"
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
136
:
//分销员管理
case
136
:
//分销员管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
return
case
137
:
//分销商品管理
case
137
:
//分销商品管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
//
HUD.flash(.label("敬请期待"),delay: 1.2)
//
let vc = FX_Product_GuanLiVC()
let
vc
=
FX_Product_GuanLiVC
()
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
139
:
//分销分账设置
case
139
:
//分销分账设置
//只有当其为供应商才可以进入
//只有当其为供应商才可以进入
...
@@ -665,14 +665,14 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -665,14 +665,14 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return
return
case
140
:
//分销订单管理
case
140
:
//分销订单管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
//
HUD.flash(.label("敬请期待"),delay: 1.2)
//
let vc = RetailManageViewController()
let
vc
=
RetailManageViewController
()
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
142
:
//供应商商品管理
case
142
:
//供应商商品管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
//
HUD.flash(.label("敬请期待"),delay: 1.2)
//
let vc = GYS_FX_Product_VC()
let
vc
=
GYS_FX_Product_VC
()
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
default
:
default
:
break
;
break
;
...
...
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
View file @
68006167
...
@@ -248,10 +248,11 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -248,10 +248,11 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
listView
.
mj_header
?
.
beginRefreshing
()
if
keyword
.
count
==
0
{
loadData
()
}
}
}
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
...
...
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
View file @
68006167
...
@@ -424,10 +424,11 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
...
@@ -424,10 +424,11 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
listView
.
mj_header
?
.
beginRefreshing
()
if
keyword
.
count
==
0
{
loadData
()
}
}
}
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
...
...
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.swift
View file @
68006167
...
@@ -231,9 +231,11 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
...
@@ -231,9 +231,11 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
}
}
removeBlackBtnView
()
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyWord
.
count
!=
0
{
if
keyWord
.
count
>
0
{
keyWord
=
searchBar
.
text
!
keyWord
=
searchBar
.
text
!
listView
.
mj_header
?
.
beginRefreshing
()
if
keyWord
.
count
==
0
{
loadData
()
}
}
}
...
...
GeliBusinessPlatform/ViewController/采购单列表/CGDListViewController.swift
View file @
68006167
...
@@ -133,6 +133,9 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
...
@@ -133,6 +133,9 @@ class CGDListViewController: BaseViewController ,UISearchBarDelegate, SearchBar
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
removeBlackBtnView
()
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
keyword
=
searchBar
.
text
!
keyword
=
searchBar
.
text
!
viewControllers
.
forEach
{
(
vc
)
in
viewControllers
.
forEach
{
(
vc
)
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment