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
62d31008
Commit
62d31008
authored
Feb 22, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销订单溯源显示完善
parent
1b4e56e8
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
17 deletions
+54
-17
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.swift
...atform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.swift
+5
-2
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
...Platform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
+5
-0
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
...wController/分销订单管理/RetailManageDetailViewController.swift
+17
-6
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.xib
...iewController/分销订单管理/RetailManageDetailViewController.xib
+2
-2
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
...rm/ViewController/分销订单管理/RetailManageViewController.swift
+1
-0
GeliBusinessPlatform/ViewController/商品库存/S_P_K_C_Report_Cell.swift
...essPlatform/ViewController/商品库存/S_P_K_C_Report_Cell.swift
+0
-1
GeliBusinessPlatform/ViewController/溯源/cell/S_Y_View_Cell.swift
...sinessPlatform/ViewController/溯源/cell/S_Y_View_Cell.swift
+0
-2
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+2
-2
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+22
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
62d31008
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.swift
View file @
62d31008
...
...
@@ -13,6 +13,7 @@ protocol DaiKeXiaDanGouWuCellDelegate {
func
DaiKeXiaDanGouWuCell_check
(
cell
:
DaiKeXiaDanGouWuCell
)
}
class
DaiKeXiaDanGouWuCell
:
UITableViewCell
,
UITextViewDelegate
{
@IBOutlet
weak
var
bottom_margin
:
NSLayoutConstraint
!
@IBOutlet
weak
var
dj_wk_view
:
UIView
!
@IBOutlet
weak
var
dj_wk_top
:
NSLayoutConstraint
!
@IBOutlet
weak
var
btm_line
:
UIView
!
...
...
@@ -20,6 +21,7 @@ class DaiKeXiaDanGouWuCell: UITableViewCell,UITextViewDelegate {
@IBOutlet
weak
var
check_button
:
UIButton
!
var
isFx
=
false
@IBOutlet
weak
var
botton_height
:
NSLayoutConstraint
!
var
delegate
:
DaiKeXiaDanGouWuCellDelegate
?
@IBOutlet
weak
var
bz_lbl
:
UILabel
!
@IBOutlet
weak
var
changeBtn
:
UIButton
!
...
...
@@ -38,11 +40,12 @@ class DaiKeXiaDanGouWuCell: UITableViewCell,UITextViewDelegate {
@IBOutlet
weak
var
dj_wk_height
:
NSLayoutConstraint
!
@IBOutlet
weak
var
ding_jin_lbl
:
UILabel
!
@IBOutlet
weak
var
wei_kuan_lbl
:
UILabel
!
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
if
isFx
{
check_button
.
isHidden
=
false
arrow_img
.
isHidden
=
false
bottom_margin
.
constant
=
36
bz_lbl
.
isHidden
=
true
holder_lbl
.
isHidden
=
true
content_tv
.
isHidden
=
true
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.xib
View file @
62d31008
...
...
@@ -156,6 +156,9 @@
</label>
<button
hidden=
"YES"
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DvI-Hk-ZNE"
>
<rect
key=
"frame"
x=
"244"
y=
"86"
width=
"78"
height=
"31"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"tH7-Qz-qRx"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"查看溯源信息"
>
<color
key=
"titleColor"
name=
"#F57575"
/>
...
...
@@ -268,6 +271,8 @@
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"arrow_img"
destination=
"2p2-7L-Hi7"
id=
"iJ8-Mg-yL3"
/>
<outlet
property=
"bottom_margin"
destination=
"0h4-hS-U5y"
id=
"BtA-52-6DM"
/>
<outlet
property=
"botton_height"
destination=
"5Ig-Ek-Czg"
id=
"2aJ-UD-gPB"
/>
<outlet
property=
"btmLIneWidth"
destination=
"qMJ-nI-cSg"
id=
"dsM-yO-8bv"
/>
<outlet
property=
"btm_line"
destination=
"oAm-E1-HwQ"
id=
"vp2-Uf-gI6"
/>
<outlet
property=
"bz_lbl"
destination=
"ykh-Oc-5e6"
id=
"1JL-Gh-kqG"
/>
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
View file @
62d31008
...
...
@@ -40,13 +40,15 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
//查溯源
print
(
"check S_Y"
)
if
(
dataMdoel
?
.
order_goods
!.
count
)
!
>
0
{
let
target
=
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
if
(
target
?
.
goods_source
!.
count
)
!
>
0
{
let
vc
=
S_Y_View
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
let
target
=
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
vc
.
data
=
target
?
.
goods_source
self
.
view
.
addSubview
(
vc
)
}
}
}
let
goodsTitleArr
=
[
"商品合计"
]
...
...
@@ -146,15 +148,24 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
}
else
{
cell
.
detailLbl
.
text
=
"规格:-"
}
cell
.
dan_jia_lbl
.
text
=
"单价:"
+
(
rowModel
?
.
goods_price
)
!
cell
.
count_lbl
.
text
=
"数量:"
+
StringByInt
(
number
:
(
rowModel
?
.
cart_number
!
)
!
)
cell
.
yong_jin_lbl
.
text
=
"佣金:¥"
+
(
rowModel
?
.
commission_val
)
!
let
s_p
=
rowModel
?
.
goods_price
as!
NSString
let
p_count
=
Float
((
rowModel
?
.
cart_number
)
!
)
*
s_p
.
floatValue
cell
.
xiao_ji_lbl
.
text
=
"小计:"
+
String
(
format
:
"%.2f"
,
p_count
)
cell
.
count_lbl
.
text
=
"单价:"
+
(
rowModel
?
.
goods_price
)
!
cell
.
yong_jin_lbl
.
text
=
"小计:"
+
String
(
format
:
"%.2f"
,
p_count
)
cell
.
dan_jia_lbl
.
text
=
"佣金:¥"
+
(
rowModel
?
.
commission_val
)
!
cell
.
xiao_ji_lbl
.
text
=
"数量:"
+
StringByInt
(
number
:
(
rowModel
?
.
cart_number
!
)
!
)
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
arrow_img
.
isHidden
=
true
cell
.
check_button
.
isHidden
=
true
if
(
rowModel
?
.
goods_source
!.
count
)
!
>
0
{
cell
.
arrow_img
.
isHidden
=
false
cell
.
check_button
.
isHidden
=
false
}
return
cell
case
2
:
cell
.
nameLbl
.
text
=
goodsTitleArr
[
indexPath
.
row
]
...
...
@@ -250,7 +261,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
return
30
0
return
22
0
}
return
49
}
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.xib
View file @
62d31008
...
...
@@ -22,7 +22,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tYc-sK-fji"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"8
18
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"8
52
"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"Dsh-hL-pEX"
/>
...
...
@@ -33,7 +33,7 @@
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
first
Item=
"fnl-2z-Ty3"
first
Attribute=
"bottom"
secondItem=
"tYc-sK-fji"
secondAttribute=
"bottom"
id=
"Vgw-Vv-CZV"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"tYc-sK-fji"
secondAttribute=
"bottom"
id=
"Vgw-Vv-CZV"
/>
<constraint
firstItem=
"tYc-sK-fji"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"X0H-Pm-zR2"
/>
<constraint
firstItem=
"tYc-sK-fji"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"bO3-PG-SRW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"tYc-sK-fji"
secondAttribute=
"trailing"
id=
"tby-ZM-jOk"
/>
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
View file @
62d31008
...
...
@@ -155,6 +155,7 @@ class RetailManageViewController: BaseViewController,UITableViewDelegate,UITable
let
vc
=
RetailManageDetailViewController
()
let
goodArrModel
=
self
.
dataArr
[
indexPath
.
section
]
vc
.
orderId
=
goodArrModel
.
order_id
// vc.orderId = 12746
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/商品库存/S_P_K_C_Report_Cell.swift
View file @
62d31008
...
...
@@ -12,7 +12,6 @@ class S_P_K_C_Report_Cell: UITableViewCell {
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
self
.
selectionStyle
=
.
none
}
@IBOutlet
weak
var
img_view
:
UIImageView
!
...
...
GeliBusinessPlatform/ViewController/溯源/cell/S_Y_View_Cell.swift
View file @
62d31008
...
...
@@ -43,8 +43,6 @@ class S_Y_View_Cell: UITableViewCell {
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
62d31008
...
...
@@ -705,8 +705,8 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
let
rowModel
=
self
.
dataArr
[
indexPath
.
row
]
let
vc
=
OrderDViewController
()
vc
.
delegate
=
self
//
vc.orderId = rowModel.order_id!
vc
.
orderId
=
12746
vc
.
orderId
=
rowModel
.
order_id
!
//
vc.orderId = 12746
vc
.
order_type
=
rowModel
.
order_type
vc
.
lmIdx
=
orderStatus
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
62d31008
...
...
@@ -59,13 +59,15 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
print
(
"溯源"
)
print
(
"check S_Y"
)
if
(
dataMdoel
?
.
order_goods
!.
count
)
!
>
0
{
let
target
=
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
if
(
target
?
.
goods_source
!.
count
)
!
>
0
{
let
vc
=
S_Y_View
(
frame
:
self
.
view
.
bounds
)
vc
.
delegate
=
self
let
target
=
dataMdoel
?
.
order_goods
!
[
cell
.
tag
]
vc
.
data
=
target
?
.
goods_source
self
.
view
.
addSubview
(
vc
)
}
}
}
...
...
@@ -501,10 +503,20 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
btm_line
.
isHidden
=
true
}
}
cell
.
check_button
.
isHidden
=
false
//
cell.check_button.isHidden = false
cell
.
imgView
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
))
cell
.
content_tv
.
text
=
rowModel
?
.
remark
cell
.
titleLbl
.
text
=
rowModel
?
.
goods_name
cell
.
arrow_img
.
isHidden
=
true
cell
.
check_button
.
isHidden
=
true
cell
.
botton_height
.
constant
=
10
if
(
rowModel
?
.
goods_source
!.
count
)
!
>
0
{
cell
.
arrow_img
.
isHidden
=
false
cell
.
check_button
.
isHidden
=
false
cell
.
botton_height
.
constant
=
40
}
if
rowModel
?
.
goods_attr
!=
nil
{
cell
.
detailLbl
.
text
=
"规格:"
+
(
rowModel
?
.
goods_attr
)
!
}
else
{
...
...
@@ -1223,10 +1235,18 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
switch
indexPath
.
section
{
case
1
:
//商品展示heightrow
let
target
=
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
if
isYuShou
{
if
(
target
?
.
goods_source
!.
count
)
!
>
0
{
return
340
}
return
310
}
if
(
target
?
.
goods_source
!.
count
)
!
>
0
{
return
300
}
return
270
case
4
:
//发票信息heightrow
if
segmentIndex
==
0
{
return
180
...
...
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