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
d291a3c2
Commit
d291a3c2
authored
Jul 14, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入拒绝接单,同意接单,拒绝退款,同意退款,确认用户退款到账。优化订单列表
parent
3bc0756a
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
126 additions
and
45 deletions
+126
-45
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+8
-0
GeliBusinessPlatform/Model/OrderInterface.swift
GeliBusinessPlatform/Model/OrderInterface.swift
+52
-0
GeliBusinessPlatform/Model/OrderManageModel/OrderListModel.swift
...inessPlatform/Model/OrderManageModel/OrderListModel.swift
+2
-0
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+2
-1
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+0
-0
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
...latform/ViewController/订单列表/OrderListViewController.swift
+10
-9
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+52
-35
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d291a3c2
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
d291a3c2
...
...
@@ -202,5 +202,13 @@
<string>
register
</string>
<key>
运单详情
</key>
<string>
Logistics/logisticsOrderDetails
</string>
<key>
拒绝退款
</key>
<string>
Order/orderRefundRefuse
</string>
<key>
确认用户退款到账
</key>
<string>
Order/ConfirmRefund
</string>
<key>
拒绝接单
</key>
<string>
Order/refuseOrder
</string>
<key>
审核同意退货退款
</key>
<string>
Order/refundAndSalesReturn
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/OrderInterface.swift
View file @
d291a3c2
...
...
@@ -355,3 +355,55 @@ func editLwbno(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:
})
{
(
error
)
in
}
}
//MARK: -- 拒绝退款
/**
params-key:
user_token(验证token)
order_id(订单id)
*/
func
orderRefundRefuse
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"拒绝退款"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
}
}
//MARK: -- 确认用户退款到账
/**
params-key:
user_token(验证token)
order_id(订单id)
*/
func
ConfirmRefund
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"确认用户退款到账"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
}
}
//MARK: -- 拒绝接单
/**
params-key:
user_token(验证token)
order_id(订单id)
*/
func
refuseOrder
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"拒绝接单"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
}
}
//MARK: -- 审核同意退货退款
/**
params-key:
user_token(验证token)
order_id(订单id)
*/
func
refundAndSalesReturn
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"审核同意退货退款"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
}
}
GeliBusinessPlatform/Model/OrderManageModel/OrderListModel.swift
View file @
d291a3c2
...
...
@@ -31,6 +31,7 @@ class OrderListDataModel: Mappable {
var
sum_amount
:
String
?
//订单价格
var
order_status
:
Int
?
//订单状态
var
order_status_d
:
Int
?
//订单详细状态
var
goods_before_pay
:
Int
?
//是否为先货后款:0否 1是
var
order_type
:
Int
?
//订单类型 1普通2期货3团购4预售
var
pay_status
:
Int
?
//支付状态
var
pay_type
:
Int
?
//支付类型
...
...
@@ -49,6 +50,7 @@ class OrderListDataModel: Mappable {
order_sn
<-
map
[
"order_sn"
]
add_time
<-
map
[
"add_time"
]
sum_amount
<-
map
[
"sum_amount"
]
goods_before_pay
<-
map
[
"goods_before_pay"
]
order_status
<-
map
[
"order_status"
]
order_status_d
<-
map
[
"order_status_d"
]
order_type
<-
map
[
"order_type"
]
...
...
GeliBusinessPlatform/Model/UpDataModel.swift
View file @
d291a3c2
...
...
@@ -8,7 +8,8 @@
import
Foundation
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,
class
UpDataModel
:
Mappable
{
var
code
:
Int
?
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
d291a3c2
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
View file @
d291a3c2
...
...
@@ -12,21 +12,23 @@ import Parchment
class
OrderListViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
PagingViewControllerDelegate
,
OrderSelectMoreViewDelegate
{
fileprivate
let
cities
=
[
"全部"
,
"待
确认
"
,
"待
接单
"
,
"待付款"
,
"待发货"
,
"已发货"
,
"退款/货"
,
"已取消"
"待收货"
,
"已收货"
,
"退款退货"
,
"交易完成"
]
let
viewControllers
=
[
OrderListVC
(
title
:
"全部"
),
OrderListVC
(
title
:
"待
确认
"
),
OrderListVC
(
title
:
"待
接单
"
),
OrderListVC
(
title
:
"待付款"
),
OrderListVC
(
title
:
"待发货"
),
OrderListVC
(
title
:
"已发货"
),
OrderListVC
(
title
:
"退款/货"
),
OrderListVC
(
title
:
"已取消"
)
OrderListVC
(
title
:
"待收货"
),
OrderListVC
(
title
:
"已收货"
),
OrderListVC
(
title
:
"退款退货"
),
OrderListVC
(
title
:
"交易完成"
)
]
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
contentView
:
UIView
!
...
...
@@ -85,7 +87,6 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
//MARK:--jpushServiceNotification
@objc
func
jpushServiceNotification
(
notion
:
Notification
)
{
let
dict
=
notion
.
userInfo
!
as
NSDictionary
print
(
"123123 =="
,
dict
.
allKeys
)
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
d291a3c2
...
...
@@ -191,7 +191,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
alertView
.
rightBtn
.
tag
=
1002
self
.
view
.
window
?
.
addSubview
(
alertView
)
break
case
"
直接
发货"
:
case
"发货"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
...
...
@@ -1078,60 +1078,77 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
switch
status
{
case
0
:
// str = "未确定" "待付款"
titleArr
=
[
"修改价格"
,
"
打印"
,
"确认订单"
,
"取消订单
"
]
titleArr
=
[
"修改价格"
,
"
拒绝接单"
,
"同意接单"
,
"先货后款
"
]
break
case
1
:
// str = "已确定" "待付款"
titleArr
=
[
"修改价格"
,
"打印"
,
"付款码"
,
"取消订单"
]
titleArr
=
[
"修改价格"
,
"付款码"
,
"取消订单"
]
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
0
{
titleArr
=
[
"修改价格"
,
"付款码"
,
"退货"
]
}
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
0
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
12
{
titleArr
=
[
"修改价格"
,
"付款码"
,
"退款"
]
}
break
case
6
:
// str = "待发货"
titleArr
=
[
"直接发货"
,
"打印"
,
"退款"
]
titleArr
=
[
"发货"
,
"取消订单"
]
if
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
0
{
titleArr
=
[
"发货"
,
"取消订单"
,
"确认收款"
]
}
break
case
7
:
// str = "待收货"
if
self
.
dataMdoel
?
.
order_res
?
.
pay_status
!=
2
&&
self
.
dataMdoel
?
.
order_res
?
.
pay_status
!=
11
{
if
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
1
||
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
2
{
titleArr
=
[
"退货"
,
"打印"
,
"退款"
]
}
else
{
titleArr
=
[
"打印"
,
"退款"
]
}
}
else
{
titleArr
=
[
"打印"
,
"退款"
]
// str = "待收货"
titleArr
=
[
"确认收货"
,
"退货退款"
,
"退款"
]
if
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
0
{
titleArr
=
[
"确认收款"
,
"取消订单"
,
"确认收货"
]
}
break
//订单完成
case
5
:
// str = "订单完成"
if
status_d
==
53
{
if
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
1
||
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
2
{
titleArr
=
[
"退货"
,
"打印"
,
"退款"
]
}
else
{
titleArr
=
[
"打印"
,
"退款"
]
}
}
else
if
status_d
==
52
{
titleArr
=
[
"打印"
,
"退款"
]
}
else
if
status_d
==
51
{
if
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
1
||
self
.
dataMdoel
?
.
order_res
?
.
shipping_status
==
2
{
titleArr
=
[
"退货"
,
"打印"
]
}
else
{
titleArr
=
[]
}
}
// titleArr = ["删除订单"]
// if status_d == 53 {
// if self.dataMdoel?.order_res?.shipping_status == 1 || self.dataMdoel?.order_res?.shipping_status == 2 {
// titleArr = ["退货","打印","退款"]
//
// }else{
// titleArr = ["打印","退款"]
// }
// }else if status_d == 52{
// titleArr = ["打印","退款"]
// }else if status_d == 51 {
// if self.dataMdoel?.order_res?.shipping_status == 1 || self.dataMdoel?.order_res?.shipping_status == 2 {
// titleArr = ["退货","打印"]
//
// }else{
// titleArr = []
// }
// }
break
case
9
:
// 退款中
if
self
.
dataMdoel
!.
order_res
?
.
from
==
3
||
self
.
dataMdoel
!.
order_res
?
.
from
==
5
{
titleArr
=
[
"确认收到退款"
]
}
break
//订单关闭
case
8
,
2
:
// str = "订单关闭"str = "已取消" //用户取消(预售
titleArr
=
[]
break
case
10
:
// str = "订单关闭"str = "已取消" //用户取消(预售
titleArr
=
[
"退货退款"
,
"交易关闭"
]
if
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
0
{
titleArr
=
[
"确认收款"
]
}
break
case
11
:
titleArr
=
[
"拒绝退款"
,
"同意退款"
]
break
default
:
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