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
93f7ff45
Commit
93f7ff45
authored
Nov 25, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据nil逻辑补充
parent
eab137d7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
...sPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
+1
-0
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
...Platform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
+10
-2
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
...iewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
+8
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
93f7ff45
No preview for this file type
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
View file @
93f7ff45
...
@@ -11,6 +11,7 @@ protocol GYS_FX_ProductCellDelegate {
...
@@ -11,6 +11,7 @@ protocol GYS_FX_ProductCellDelegate {
func
GYS_FX_ProductCellTableViewCellSelect
(
idx
:
Int
)
func
GYS_FX_ProductCellTableViewCellSelect
(
idx
:
Int
)
func
GYS_FX_ProductCellTableViewCellBtnAction
(
idx
:
Int
)
func
GYS_FX_ProductCellTableViewCellBtnAction
(
idx
:
Int
)
}
}
class
GYS_FX_ProductCellTableViewCell
:
UITableViewCell
{
class
GYS_FX_ProductCellTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
color_lbl
:
UILabel
!
@IBOutlet
weak
var
color_lbl
:
UILabel
!
...
...
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
View file @
93f7ff45
...
@@ -281,8 +281,16 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
...
@@ -281,8 +281,16 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
cell
.
delegate
=
self
cell
.
delegate
=
self
let
model
=
datas
[
indexPath
.
row
]
let
model
=
datas
[
indexPath
.
row
]
cell
.
title_Lbl
.
text
=
model
.
goods_name
cell
.
title_Lbl
.
text
=
model
.
goods_name
cell
.
sell_total_Lbl
.
text
=
StringByInt
(
number
:
model
.
dbt_sale
!
)
if
model
.
dbt_sale
!=
nil
{
cell
.
store_lbl
.
text
=
StringByInt
(
number
:
model
.
inventory
!
)
cell
.
sell_total_Lbl
.
text
=
"销量: "
+
StringByInt
(
number
:
model
.
dbt_sale
!
)
}
else
{
cell
.
sell_total_Lbl
.
text
=
"销量: -"
}
if
model
.
inventory
!=
nil
{
cell
.
store_lbl
.
text
=
"库存: "
+
StringByInt
(
number
:
model
.
inventory
!
)
}
else
{
cell
.
store_lbl
.
text
=
"库存: -"
}
if
model
.
commission_type
==
1
{
if
model
.
commission_type
==
1
{
cell
.
FX_Percent_Lbl
.
text
=
StringByInt
(
number
:
model
.
commission_per
!
)
+
"%"
cell
.
FX_Percent_Lbl
.
text
=
StringByInt
(
number
:
model
.
commission_per
!
)
+
"%"
cell
.
FX_Percent_Lbl
.
isHidden
=
false
cell
.
FX_Percent_Lbl
.
isHidden
=
false
...
...
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
View file @
93f7ff45
...
@@ -194,8 +194,14 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -194,8 +194,14 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
cell
.
delegate
=
self
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
tag
=
indexPath
.
row
cell
.
title_Lbl
.
text
=
model
.
goods_name
cell
.
title_Lbl
.
text
=
model
.
goods_name
cell
.
sell_total_Lbl
.
text
=
StringByInt
(
number
:
model
.
dbt_sale
!
)
cell
.
sell_total_Lbl
.
text
=
"销量: -"
cell
.
store_lbl
.
text
=
StringByInt
(
number
:
model
.
inventory
!
)
if
model
.
dbt_sale
!=
nil
{
cell
.
sell_total_Lbl
.
text
=
"销量: "
+
StringByInt
(
number
:
model
.
dbt_sale
!
)
}
cell
.
store_lbl
.
text
=
"库存: -"
if
model
.
inventory
!=
nil
{
cell
.
store_lbl
.
text
=
"库存: "
+
StringByInt
(
number
:
model
.
inventory
!
)
}
if
model
.
commission_type
==
1
{
if
model
.
commission_type
==
1
{
cell
.
FX_Percent_Lbl
.
text
=
StringByInt
(
number
:
model
.
commission_per
!
)
+
"%"
cell
.
FX_Percent_Lbl
.
text
=
StringByInt
(
number
:
model
.
commission_per
!
)
+
"%"
cell
.
FX_Percent_Lbl
.
isHidden
=
false
cell
.
FX_Percent_Lbl
.
isHidden
=
false
...
...
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