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
6e0f4a48
Commit
6e0f4a48
authored
Nov 21, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复已知bug3.0
parent
ca61e663
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertTbAddView.swift
GeliBusinessPlatform/View/AlertView/GLAlertTbAddView.swift
+16
-6
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
6e0f4a48
No preview for this file type
GeliBusinessPlatform/View/AlertView/GLAlertTbAddView.swift
View file @
6e0f4a48
...
...
@@ -188,12 +188,18 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert
@IBAction
func
btnAction
(
_
sender
:
UIButton
)
{
if
sender
.
tag
==
0
{
var
shop_id
=
""
var
d
:
Array
<
String
>
=
[]
datas
.
forEach
{
(
str
)
in
if
str
!=
""
{
d
.
append
(
str
)
}
}
if
title_lbl
.
text
==
"新增供应商"
{
for
i
in
0
..<
d
atas
.
count
{
let
str
=
d
atas
[
i
]
for
i
in
0
..<
d
.
count
{
let
str
=
d
[
i
]
gys_centers
.
forEach
{
(
item
)
in
if
item
.
shop_name
==
str
{
if
i
<
d
atas
.
count
-
1
{
if
i
<
d
.
count
-
1
{
shop_id
+=
StringByInt
(
number
:
item
.
shop_id
!
)
+
","
}
else
{
shop_id
+=
StringByInt
(
number
:
item
.
shop_id
!
)
...
...
@@ -201,6 +207,8 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert
}
}
}
dbtAddContract
([
"user_token"
:
UserToken
as
Any
,
"shop_id"
:
shop_id
as
Any
])
{
(
data
)
in
self
.
removeFromSuperview
()
NotificationCenter
.
default
.
post
(
name
:
NSNotification
.
Name
(
rawValue
:
"haveAdd"
),
object
:
"fxsAdd"
)
...
...
@@ -208,11 +216,11 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert
}
return
}
for
i
in
0
..<
d
atas
.
count
{
let
str
=
d
atas
[
i
]
for
i
in
0
..<
d
.
count
{
let
str
=
d
[
i
]
centers
.
forEach
{
(
item
)
in
if
item
.
shop_name
==
str
{
if
i
<
d
atas
.
count
-
1
{
if
i
<
d
.
count
-
1
{
shop_id
+=
StringByInt
(
number
:
item
.
shop_id
!
)
+
","
}
else
{
shop_id
+=
StringByInt
(
number
:
item
.
shop_id
!
)
...
...
@@ -220,6 +228,8 @@ class GLAlertTbAddView: UIView,UITableViewDelegate,UITableViewDataSource,GLAlert
}
}
}
supAddContract
([
"user_token"
:
UserToken
as
Any
,
"shop_id"
:
shop_id
as
Any
])
{
(
data
)
in
self
.
removeFromSuperview
()
NotificationCenter
.
default
.
post
(
name
:
NSNotification
.
Name
(
rawValue
:
"haveAdd"
),
object
:
"fxsAdd"
)
...
...
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