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
8ad92bd4
Commit
8ad92bd4
authored
Jun 11, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复,物流选择列表
parent
cff28e38
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
99 additions
and
37 deletions
+99
-37
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+1
-1
GeliBusinessPlatform/ViewController/代客下单(货运)/下单成功/XiaDanCGDiZhiCell.xib
...atform/ViewController/代客下单(货运)/下单成功/XiaDanCGDiZhiCell.xib
+6
-5
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+21
-8
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
...Platform/ViewController/供应商管理/GYSListViewController.swift
+57
-6
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+9
-13
GeliBusinessPlatform/ViewController/物流跟踪/WLGZCell.xib
GeliBusinessPlatform/ViewController/物流跟踪/WLGZCell.xib
+2
-2
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
+1
-0
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.xib
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.xib
+0
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8ad92bd4
No preview for this file type
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
8ad92bd4
...
...
@@ -256,7 +256,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
return
}
if
isMultipleS
==
false
{
if
selectNum
==
nil
{
if
selectNum
==
nil
&&
selectNum
!=
10086
{
HUD
.
flash
(
.
label
(
"
\(
titleLbl
.
text
!
)
"
),
delay
:
1.2
)
return
}
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下单成功/XiaDanCGDiZhiCell.xib
View file @
8ad92bd4
<?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"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
@@ -10,7 +11,7 @@
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"XiaDanCGDiZhiCell"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"XiaDanCGDiZhiCell"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"64.5"
/>
<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"
>
...
...
@@ -98,13 +99,13 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
8ad92bd4
...
...
@@ -71,20 +71,18 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
var
selectIdxArr
:
Array
<
IndexPath
>
=
[]
var
isSearch
:
Bool
=
false
var
seacrchArr
:
Array
<
GetGoodsInfoDataModel
>
=
[]
//搜索数据
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
barTitle
self
.
view
.
addSubview
(
navbar
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
if
barTitle
!=
"修改价格"
{
getGoodsInfo
([
"user_token"
:
UserToken
,
"is_adsale"
:
is_adsale
],
success
:
{
(
data
)
in
let
model
=
data
as!
GetGoodsInfoModel
self
.
datas
=
model
.
data
!
self
.
listView
.
reloadData
()
})
{
(
error
)
in
}
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
self
.
listView
!.
mj_header
=
headerMJ
self
.
listView
.
mj_header
?
.
beginRefreshing
()
}
listView
.
separatorStyle
=
.
none
...
...
@@ -106,7 +104,22 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
searchBr
.
delegateL
=
self
listView
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
}
@objc
func
loadData
(){
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
getGoodsInfo
([
"user_token"
:
UserToken
,
"is_adsale"
:
is_adsale
],
success
:
{
(
data
)
in
let
model
=
data
as!
GetGoodsInfoModel
self
.
datas
=
model
.
data
!
self
.
listView
.
reloadData
()
self
.
listView
.
mj_header
?
.
endRefreshing
()
})
{
(
error
)
in
}
}
func
clearSearchAction
()
{
print
(
"清楚搜索文字"
)
isSearch
=
false
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
View file @
8ad92bd4
...
...
@@ -113,17 +113,67 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
@IBAction
func
addAction
(
_
sender
:
Any
)
{
if
barTitle
!=
"供应商管理"
{
delegate
?
.
GYSListViewControllerGetGYS
(
sender
:
selectTarget
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
if
selectTarget
!=
nil
{
delegate
?
.
GYSListViewControllerGetGYS
(
sender
:
selectTarget
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
{
HUD
.
flash
(
.
label
(
"请选择供应商"
),
delay
:
1.2
)
return
}
}
else
{
let
vc
=
GYSGLViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//MARK: - 自定义DELEGATE
func
clearSearchAction
()
{
}
//MARK:--搜索模块
//MAKR:--调起搜索后添加个蒙版本
var
blackBtnView
:
UIButton
!
=
nil
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
blackBtnView
=
UIButton
()
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
topView
.
snp_bottom
)
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
return
true
}
@objc
func
removeBlackBtnView
(){
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
searchV
!.
resignFirstResponder
()
}
}
//MARK:--搜索按钮代理
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索关键字进行--
\(
searchBar
.
text
)
"
)
searchBar
.
resignFirstResponder
()
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
}
keyWord
=
searchBar
.
text
!
listView
.
mj_header
?
.
beginRefreshing
()
}
//MARK:--清空搜索代理
func
clearSearchAction
()
{
}
//MARK:--编辑即将结束
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
keyWord
.
count
>
0
{
keyWord
=
searchBar
.
text
!
if
keyWord
.
count
==
0
{
listView
.
mj_header
?
.
beginRefreshing
()
}
}
}
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
barTitle
==
"供应商管理"
{
...
...
@@ -148,6 +198,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
if
barTitle
!=
"供应商管理"
{
cell
.
selectTypeBtn
.
isSelected
=
false
cell
.
selectTypeView
.
isHidden
=
false
cell
.
selectTypeBtn
.
isUserInteractionEnabled
=
false
if
selectTarget
?
.
ven_id
==
model
.
ven_id
{
cell
.
selectTypeBtn
.
isSelected
=
true
}
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
8ad92bd4
...
...
@@ -535,8 +535,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
119
:
//新增采购单
let
vc
=
YDLBVc
()
//
let vc = XinCaiGouViewController()
//
let vc = YDLBVc()
let
vc
=
XinCaiGouViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
120
:
//商品毛利统计
...
...
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
8ad92bd4
...
...
@@ -43,7 +43,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
HUD
.
flash
(
.
progress
)
purchaseOrderAdd
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交成功"
),
delay
:
1.2
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
...
...
@@ -61,13 +61,16 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
typeSelect
=
selectnum
view
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
typeSelect
=
selectNum
if
typeSelect
!=
nil
&&
typeSelect
!=
10086
{
holderArr
.
insert
(
typeArr
[
typeSelect
!
],
at
:
3
)
holderArr
.
remove
(
at
:
4
)
listView
.
reloadData
()
}
view
.
removeFromSuperview
()
glSelectView
=
nil
}
...
...
@@ -112,7 +115,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
HUD
.
flash
(
.
label
(
"请输入采购人姓名"
),
delay
:
1.2
)
return
}
if
typeSelect
==
nil
{
if
typeSelect
==
nil
&&
typeSelect
!=
10086
{
HUD
.
flash
(
.
label
(
"请选择采购类型"
),
delay
:
1.2
)
return
}
...
...
@@ -217,7 +220,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
0
{
if
indexPath
.
row
==
1
||
indexPath
.
row
==
4
{
if
indexPath
.
row
==
1
||
indexPath
.
row
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
holderArr
[
indexPath
.
row
]
...
...
@@ -233,15 +236,8 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
textTF
.
placeholder
=
holderArr
[
indexPath
.
row
]
if
indexPath
.
row
==
3
{
if
typeSelect
!=
nil
&&
typeSelect
!=
10086
{
cell
.
textTF
.
text
=
typeArr
[
typeSelect
!
]
}
cell
.
textTF
.
isUserInteractionEnabled
=
false
}
else
{
cell
.
textTF
.
delegate
=
self
cell
.
textTF
.
text
=
cgName
}
cell
.
textTF
.
delegate
=
self
cell
.
textTF
.
text
=
cgName
return
cell
}
...
...
GeliBusinessPlatform/ViewController/物流跟踪/WLGZCell.xib
View file @
8ad92bd4
...
...
@@ -86,7 +86,7 @@
<fragment
content=
"代签收(雄狮前台),感谢使用京东冷运;期待再次为您服务(住单总件数:1件)"
>
<attributes>
<color
key=
"NSColor"
name=
"灰色字体颜色"
/>
<font
key=
"NSFont"
metaFont=
"me
nu
"
size=
"11"
/>
<font
key=
"NSFont"
metaFont=
"me
ssage
"
size=
"11"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"left"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
lineSpacing=
"3"
tighteningFactorForTruncation=
"0.0"
/>
</attributes>
</fragment>
...
...
@@ -140,7 +140,7 @@
<color
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
View file @
8ad92bd4
...
...
@@ -53,6 +53,7 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
//MARK: - 加载数据
@objc
func
loadData
(){
print
(
"加载数据"
)
self
.
listView
.
mj_header
?
.
endRefreshing
()
}
//MARK:--搜索模块
//MAKR:--调起搜索后添加个蒙版本
...
...
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.xib
View file @
8ad92bd4
This diff is collapsed.
Click to expand it.
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