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
0860a9f3
Commit
0860a9f3
authored
Jun 03, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作中心+出库记录完善ing
parent
21ea9098
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
271 additions
and
138 deletions
+271
-138
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/Work/WorkcenterIndexModel.swift
GeliBusinessPlatform/Model/Work/WorkcenterIndexModel.swift
+1
-0
GeliBusinessPlatform/View/MoreBtnView/MoreAndTimeSelectView.swift
...nessPlatform/View/MoreBtnView/MoreAndTimeSelectView.swift
+194
-101
GeliBusinessPlatform/View/MoreBtnView/MoreAndTimeSelectView.xib
...sinessPlatform/View/MoreBtnView/MoreAndTimeSelectView.xib
+1
-0
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
+47
-16
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+5
-6
GeliBusinessPlatform/ViewController/工作中心/WorkItemCollectionViewCell.xib
...atform/ViewController/工作中心/WorkItemCollectionViewCell.xib
+6
-1
GeliBusinessPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
...sPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
+6
-3
GeliBusinessPlatform/ViewController/工作中心/编辑工作中心/EditWorkCViewController.swift
.../ViewController/工作中心/编辑工作中心/EditWorkCViewController.swift
+11
-11
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0860a9f3
No preview for this file type
GeliBusinessPlatform/Model/Work/WorkcenterIndexModel.swift
View file @
0860a9f3
...
@@ -81,6 +81,7 @@ class WorkcenterIndexAuthResModel: Mappable {
...
@@ -81,6 +81,7 @@ class WorkcenterIndexAuthResModel: Mappable {
ranges
<-
map
[
"ranges"
]
ranges
<-
map
[
"ranges"
]
platforms
<-
map
[
"platforms"
]
platforms
<-
map
[
"platforms"
]
auth_pid
<-
map
[
"auth_pid"
]
auth_pid
<-
map
[
"auth_pid"
]
app_icon
<-
map
[
"app_icon"
]
}
}
...
...
GeliBusinessPlatform/View/MoreBtnView/MoreAndTimeSelectView.swift
View file @
0860a9f3
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/View/MoreBtnView/MoreAndTimeSelectView.xib
View file @
0860a9f3
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<outlet
property=
"contenV"
destination=
"vHv-I4-dmk"
id=
"WbO-6S-e3L"
/>
<outlet
property=
"contenV"
destination=
"vHv-I4-dmk"
id=
"WbO-6S-e3L"
/>
<outlet
property=
"contentHeight"
destination=
"fb3-1v-gnz"
id=
"Wvf-2H-zNw"
/>
<outlet
property=
"contentHeight"
destination=
"fb3-1v-gnz"
id=
"Wvf-2H-zNw"
/>
<outlet
property=
"contentWidht"
destination=
"Ui1-5n-gGg"
id=
"EH0-e8-5Gv"
/>
<outlet
property=
"contentWidht"
destination=
"Ui1-5n-gGg"
id=
"EH0-e8-5Gv"
/>
<outlet
property=
"scrollview"
destination=
"dH1-9z-HTC"
id=
"ZCH-Yf-jLE"
/>
<outlet
property=
"showViewHeight"
destination=
"e8t-mB-tnZ"
id=
"dat-TC-NVN"
/>
<outlet
property=
"showViewHeight"
destination=
"e8t-mB-tnZ"
id=
"dat-TC-NVN"
/>
</connections>
</connections>
</placeholder>
</placeholder>
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
View file @
0860a9f3
...
@@ -9,11 +9,30 @@
...
@@ -9,11 +9,30 @@
import
UIKit
import
UIKit
import
ViewAnimator
//cell动效
import
ViewAnimator
//cell动效
class
CRKListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CRKCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
CRKXiangQVCDelegate
{
class
CRKListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CRKCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
CRKXiangQVCDelegate
,
MoreAndTimeSelectViewDelegate
{
//刷新???
func
CRKXiangQVCFinishAction
()
{
func
CRKXiangQVCFinishAction
()
{
listView
.
mj_header
?
.
beginRefreshing
()
listView
.
mj_header
?
.
beginRefreshing
()
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
if
moreTimeSelectView
!=
nil
{
moreTimeSelectView
.
removeFromSuperview
()
moreTimeSelectView
=
nil
}
return
true
}
//MARK: - searchView delegate
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
}
var
page
=
0
var
page
=
0
var
isGm
=
true
var
isGm
=
true
...
@@ -21,19 +40,38 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -21,19 +40,38 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
@IBOutlet
weak
var
topBtn
:
UIButton
!
@IBOutlet
weak
var
topBtn
:
UIButton
!
var
moreTimeSelectView
:
MoreAndTimeSelectView
!
=
nil
@IBAction
func
openViewAction
(
_
sender
:
Any
)
{
@IBAction
func
openViewAction
(
_
sender
:
Any
)
{
print
(
"筛选选项"
)
print
(
"筛选选项"
)
let
moreTimeSelectView
=
MoreAndTimeSelectView
()
if
moreTimeSelectView
==
nil
{
self
.
view
.
addSubview
(
moreTimeSelectView
)
moreTimeSelectView
=
MoreAndTimeSelectView
()
moreTimeSelectView
.
snp
.
makeConstraints
{
(
make
)
in
moreTimeSelectView
.
delegate
=
self
make
.
left
.
bottom
.
right
.
equalTo
(
0
)
self
.
view
.
addSubview
(
moreTimeSelectView
)
make
.
top
.
equalTo
(
100*
glscale
)
moreTimeSelectView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
bottom
.
right
.
equalTo
(
0
)
make
.
top
.
equalTo
(
searchBgView
.
snp_bottom
)
}
moreTimeSelectView
.
setUI
()
}
else
{
moreTimeSelectView
.
removeFromSuperview
()
moreTimeSelectView
=
nil
}
}
moreTimeSelectView
.
setUI
()
}
}
//MARK:--筛选回调数据
func
sureActionMoreAndTimeSelectView
(
beginDate
:
Date
?,
endginDate
:
Date
?,
paySelectArr
:
Array
<
Bool
>
,
bugSelectArr
:
Array
<
Bool
>
,
sendSelectArr
:
Array
<
Bool
>
)
{
print
(
beginDate
,
endginDate
,
paySelectArr
,
bugSelectArr
,
sendSelectArr
)
}
//MARK:--筛选回调数据
func
colseActionMoreAndTimeSelectView
()
{
moreTimeSelectView
=
nil
}
@IBOutlet
weak
var
searchBG
:
UIView
!
@IBOutlet
weak
var
searchBG
:
UIView
!
...
@@ -206,12 +244,5 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -206,12 +244,5 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
}
}
}
}
//MARK: - searchView delegate
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
}
}
}
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
0860a9f3
...
@@ -186,14 +186,14 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -186,14 +186,14 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
oldOftenArr
?
.
forEach
({
(
md
)
in
oldOftenArr
?
.
forEach
({
(
md
)
in
var
isAdd
=
false
var
isAdd
=
false
self
.
dataModel
?
.
auth_res
?
.
forEach
({
(
pmd
)
in
self
.
dataModel
?
.
auth_res
?
.
forEach
({
(
pmd
)
in
if
md
.
auth_id
==
pmd
.
auth_id
&&
pmd
.
is_often
==
1
{
if
md
.
auth_id
==
pmd
.
auth_id
{
//存在且还常用
//存在且还常用
isAdd
=
true
isAdd
=
true
}
}
})
})
if
isAdd
{
if
isAdd
{
self
.
oftenArr
?
.
append
(
md
)
self
.
oftenArr
?
.
append
(
md
)
}
}
})
})
}
}
...
@@ -266,7 +266,6 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -266,7 +266,6 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
cell
.
dataIndexSection
=
indexPath
.
row
cell
.
dataIndexSection
=
indexPath
.
row
switch
indexPath
.
row
{
switch
indexPath
.
row
{
case
1
:
case
1
:
cell
.
itemDataArrs
=
self
.
oftenArr
!
var
tempArr
:[
String
]
=
[]
var
tempArr
:[
String
]
=
[]
self
.
oftenArr
?
.
forEach
({
(
md
)
in
self
.
oftenArr
?
.
forEach
({
(
md
)
in
tempArr
.
append
(
md
.
auth_name
!
)
tempArr
.
append
(
md
.
auth_name
!
)
...
@@ -505,14 +504,14 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -505,14 +504,14 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case
116
:
//字段列表
case
116
:
//字段列表
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
return
case
11
7
:
//新增商品
case
11
8
:
//新增商品
let
vc
=
ProductDetailViewController
()
let
vc
=
ProductDetailViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
11
8
:
//新增采购单
case
11
9
:
//新增采购单
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
return
case
1
19
:
//商品毛利统计
case
1
20
:
//商品毛利统计
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
return
default
:
default
:
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkItemCollectionViewCell.xib
View file @
0860a9f3
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
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>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
<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"
/>
...
@@ -27,7 +28,11 @@
...
@@ -27,7 +28,11 @@
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"bianji"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qfI-0k-kQG"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"bianji"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qfI-0k-kQG"
>
<rect
key=
"frame"
x=
"41.5"
y=
"18"
width=
"17"
height=
"16.5"
/>
<rect
key=
"frame"
x=
"37"
y=
"6.5"
width=
"26"
height=
"28"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"26"
id=
"AKt-O2-9tI"
/>
<constraint
firstAttribute=
"height"
constant=
"28"
id=
"mL5-ZO-3vy"
/>
</constraints>
</imageView>
</imageView>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"0"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ajc-oX-hvc"
>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"0"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ajc-oX-hvc"
>
<rect
key=
"frame"
x=
"74"
y=
"0.0"
width=
"16"
height=
"16"
/>
<rect
key=
"frame"
x=
"74"
y=
"0.0"
width=
"16"
height=
"16"
/>
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
View file @
0860a9f3
...
@@ -111,11 +111,14 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
...
@@ -111,11 +111,14 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
}
else
{
}
else
{
cell
.
countLbl
.
isHidden
=
true
cell
.
countLbl
.
isHidden
=
true
let
rowModel
=
self
.
itemDataArrs
[
indexPath
.
row
]
let
rowModel
=
self
.
itemDataArrs
[
indexPath
.
row
]
if
rowModel
.
app_icon
!=
nil
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
}
else
{
if
rowModel
.
app_icon
==
nil
{
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
}
else
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
}
}
}
}
cell
.
itemNameLbl
.
text
=
itemArrs
[
indexPath
.
row
]
cell
.
itemNameLbl
.
text
=
itemArrs
[
indexPath
.
row
]
...
...
GeliBusinessPlatform/ViewController/工作中心/编辑工作中心/EditWorkCViewController.swift
View file @
0860a9f3
...
@@ -151,13 +151,14 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
...
@@ -151,13 +151,14 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
}
}
})
})
let
rowModel
=
chlicdAuthResModelArr
[
indexPath
.
row
]
let
rowModel
=
chlicdAuthResModelArr
[
indexPath
.
row
]
if
rowModel
.
app_icon
!
=
nil
{
if
rowModel
.
app_icon
=
=
nil
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
)
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
}
else
{
}
else
{
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
}
}
cell
.
itemNameLbl
.
text
=
rowModel
.
auth_name
cell
.
itemNameLbl
.
text
=
rowModel
.
auth_name
oftenArr
?
.
forEach
({
(
md
)
in
oftenArr
?
.
forEach
({
(
md
)
in
if
md
.
auth_id
==
rowModel
.
auth_id
{
if
md
.
auth_id
==
rowModel
.
auth_id
{
...
@@ -176,14 +177,13 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
...
@@ -176,14 +177,13 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
cell
.
itemNameLbl
.
isHidden
=
false
cell
.
itemNameLbl
.
isHidden
=
false
cell
.
itemImgV
.
isHidden
=
false
cell
.
itemImgV
.
isHidden
=
false
let
rowModel
=
oftenArr
!
[
indexPath
.
row
]
let
rowModel
=
oftenArr
!
[
indexPath
.
row
]
if
rowModel
.
app_icon
!=
nil
{
if
rowModel
.
app_icon
==
nil
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
}
else
{
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
}
else
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
}
}
cell
.
itemNameLbl
.
text
=
rowModel
.
auth_name
cell
.
itemNameLbl
.
text
=
rowModel
.
auth_name
cell
.
bgImV
.
image
=
UIImage
.
init
(
named
:
"workjian"
)
cell
.
bgImV
.
image
=
UIImage
.
init
(
named
:
"workjian"
)
}
}
...
...
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