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
05f0ecca
Commit
05f0ecca
authored
Nov 12, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善分销订单详情
parent
e0abc367
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
4 deletions
+37
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
...essPlatform/Model/OrderManageModel/OrderDetailModel.swift
+25
-0
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
...wController/分销订单管理/RetailManageDetailViewController.swift
+12
-4
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
05f0ecca
No preview for this file type
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
View file @
05f0ecca
...
@@ -27,6 +27,7 @@ class OrderDetailDataModel: Mappable {
...
@@ -27,6 +27,7 @@ class OrderDetailDataModel: Mappable {
var
order_res
:
OrderDetailResModel
?
//订单信息
var
order_res
:
OrderDetailResModel
?
//订单信息
var
order_goods
:
Array
<
OrderDetailGoodsModel
>
?
//订单商品
var
order_goods
:
Array
<
OrderDetailGoodsModel
>
?
//订单商品
var
receiving
:
OrderDetailReceivingModel
?
//收货信息
var
receiving
:
OrderDetailReceivingModel
?
//收货信息
var
dbt_info
:
OrderDetailDbtInfoDataModel
?
//分销信息
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
...
@@ -35,6 +36,30 @@ class OrderDetailDataModel: Mappable {
...
@@ -35,6 +36,30 @@ class OrderDetailDataModel: Mappable {
order_res
<-
map
[
"order_res"
]
order_res
<-
map
[
"order_res"
]
order_goods
<-
map
[
"order_goods"
]
order_goods
<-
map
[
"order_goods"
]
receiving
<-
map
[
"receiving"
]
receiving
<-
map
[
"receiving"
]
dbt_info
<-
map
[
"dbt_info"
]
}
}
class
OrderDetailDbtInfoDataModel
:
Mappable
{
var
dbt_target
:
Int
?
//分销对象 1供应商 2分销商 3分销员
var
target_id
:
Int
?
//分销对象id
var
target_name
:
String
?
//分销对象名称
var
dbt_type
:
Int
?
//分销分账方式 1人工结算 2自动结算
var
commission_time
:
String
?
//佣金结算时间
var
sum_commission_val
:
String
?
//总佣金
var
commission_type
:
String
?
//佣金方式
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
dbt_target
<-
map
[
"dbt_target"
]
target_id
<-
map
[
"target_id"
]
target_name
<-
map
[
"target_name"
]
dbt_type
<-
map
[
"dbt_type"
]
commission_time
<-
map
[
"commission_time"
]
sum_commission_val
<-
map
[
"sum_commission_val"
]
commission_type
<-
map
[
"commission_type"
]
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
View file @
05f0ecca
...
@@ -117,13 +117,21 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
...
@@ -117,13 +117,21 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
cell
.
textTF
.
text
=
"-"
cell
.
textTF
.
text
=
"-"
}
}
case
1
:
case
1
:
cell
.
textTF
.
text
=
"结算方式"
if
self
.
dataMdoel
?
.
dbt_info
?
.
dbt_type
==
1
{
cell
.
textTF
.
text
=
"人工结算"
}
else
if
self
.
dataMdoel
?
.
dbt_info
?
.
dbt_type
==
2
{
cell
.
textTF
.
text
=
"自动结算"
}
else
{
cell
.
textTF
.
text
=
"-"
}
case
2
:
case
2
:
cell
.
textTF
.
text
=
"佣金方式"
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
dbt_info
?
.
commission_type
case
3
:
case
3
:
cell
.
textTF
.
text
=
"佣金结算时间"
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
dbt_info
?
.
commission_time
case
4
:
case
4
:
cell
.
textTF
.
text
=
"
佣金分销结算"
cell
.
textTF
.
text
=
"
¥"
+
(
self
.
dataMdoel
?
.
order_res
!.
sum_commission_val
)
!
default
:
default
:
cell
.
textTF
.
text
=
""
cell
.
textTF
.
text
=
""
break
break
...
...
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