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
0894cb9b
Commit
0894cb9b
authored
Jun 04, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整点击通过bug
parent
04c5c46c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/CRKCell.swift
GeliBusinessPlatform/View/Cell/CRKCell.swift
+3
-1
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
+7
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0894cb9b
No preview for this file type
GeliBusinessPlatform/View/Cell/CRKCell.swift
View file @
0894cb9b
...
@@ -93,15 +93,17 @@ class CRKCell: UITableViewCell {
...
@@ -93,15 +93,17 @@ class CRKCell: UITableViewCell {
rightBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
btmH
.
constant
=
15
btmH
.
constant
=
15
}
else
{
}
else
{
if
status
==
1
{
if
status
==
1
{
leftBtn
.
isHidden
=
false
leftBtn
.
isHidden
=
false
rightBtn
.
isHidden
=
false
rightBtn
.
isHidden
=
false
leftBtn
.
backgroundColor
=
UIColor
.
white
leftBtn
.
backgroundColor
=
UIColor
.
white
leftBtn
.
setTitle
(
"通过"
,
for
:
.
normal
)
leftBtn
.
setTitle
(
"通过"
,
for
:
.
normal
)
leftBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
leftBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
leftBtn
.
isUserInteractionEnabled
=
true
leftBtn
.
backgroundColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
leftBtn
.
backgroundColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
leftBtn
.
layer
.
cornerRadius
=
3
leftBtn
.
layer
.
cornerRadius
=
3
}
else
{
//通过,不通过
}
else
{
rightBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
leftBtn
.
isHidden
=
false
leftBtn
.
isHidden
=
false
leftBtn
.
backgroundColor
=
UIColor
.
white
leftBtn
.
backgroundColor
=
UIColor
.
white
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
View file @
0894cb9b
...
@@ -392,9 +392,11 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -392,9 +392,11 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
var
alterView
:
GeliAlertTextView
?
var
alterView
:
GeliAlertTextView
?
//MARK: - 通过,不通过方法
//MARK: - 通过,不通过方法
func
CRKCellBtnClick
(
sender
:
UIButton
,
cell
:
CRKCell
)
{
func
CRKCellBtnClick
(
sender
:
UIButton
,
cell
:
CRKCell
)
{
selectIdx
=
cell
.
tag
selectIdx
=
cell
.
tag
let
data
=
datas
!
[
selectIdx
!
]
if
sender
.
tag
==
0
{
//通过
if
sender
.
tag
==
0
{
//通过
if
io_type
==
1
{
if
data
.
io_type
==
1
{
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
alertView
.
tishiLbl
.
text
=
""
...
@@ -402,7 +404,7 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -402,7 +404,7 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
}
if
io_type
==
2
{
if
data
.
io_type
==
2
{
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
delegate
=
self
alterView
.
delegate
=
self
self
.
view
.
window
?
.
addSubview
(
alterView
)
self
.
view
.
window
?
.
addSubview
(
alterView
)
...
@@ -444,12 +446,15 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -444,12 +446,15 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
cell
.
isGm
=
isGm
cell
.
isGm
=
isGm
let
model
=
datas
!
[
indexPath
.
row
]
let
model
=
datas
!
[
indexPath
.
row
]
cell
.
status
=
model
.
status
cell
.
status
=
model
.
status
cell
.
isGm
=
false
cell
.
isGm
=
false
if
model
.
io_type
==
1
&&
auth
.
contains
(
"122"
){
if
model
.
io_type
==
1
&&
auth
.
contains
(
"122"
){
cell
.
isGm
=
true
cell
.
isGm
=
true
}
}
if
model
.
io_type
==
2
&&
auth
.
contains
(
"121"
){
if
model
.
io_type
==
2
&&
auth
.
contains
(
"121"
){
cell
.
isGm
=
true
cell
.
isGm
=
true
}
}
cell
.
dataArr
=
model
.
goods_res
cell
.
dataArr
=
model
.
goods_res
cell
.
delegate
=
self
cell
.
delegate
=
self
...
...
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