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
1746c0dc
Commit
1746c0dc
authored
May 21, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善订单详情修改(待测试完善)
parent
728e2eae
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
92 additions
and
32 deletions
+92
-32
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+4
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+2
-0
GeliBusinessPlatform/Model/OrderInterface.swift
GeliBusinessPlatform/Model/OrderInterface.swift
+15
-0
GeliBusinessPlatform/Model/OrderManageModel/LogisticsCompanyModel.swift
...atform/Model/OrderManageModel/LogisticsCompanyModel.swift
+40
-0
GeliBusinessPlatform/Other/LMNote/LMNoteViewController.m
GeliBusinessPlatform/Other/LMNote/LMNoteViewController.m
+3
-0
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+8
-8
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+2
-12
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
...orm/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
+6
-4
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
.../ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
+7
-3
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
...ontroller/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
+5
-5
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+0
-0
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
1746c0dc
...
@@ -466,6 +466,7 @@
...
@@ -466,6 +466,7 @@
F9DDBE922457BFEC00A32CB2
/* HUDEXT.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE912457BFEC00A32CB2
/* HUDEXT.swift */
;
};
F9DDBE922457BFEC00A32CB2
/* HUDEXT.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE912457BFEC00A32CB2
/* HUDEXT.swift */
;
};
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE942457D3EC00A32CB2
/* WebViewController.swift */
;
};
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE942457D3EC00A32CB2
/* WebViewController.swift */
;
};
F9DDBE972457D3EC00A32CB2
/* WebViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE952457D3EC00A32CB2
/* WebViewController.xib */
;
};
F9DDBE972457D3EC00A32CB2
/* WebViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE952457D3EC00A32CB2
/* WebViewController.xib */
;
};
F9FF7BA124760DA9006E305E
/* LogisticsCompanyModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9FF7BA024760DA9006E305E
/* LogisticsCompanyModel.swift */
;
};
/* End PBXBuildFile section */
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
/* Begin PBXContainerItemProxy section */
...
@@ -1008,6 +1009,7 @@
...
@@ -1008,6 +1009,7 @@
F9DDBE912457BFEC00A32CB2
/* HUDEXT.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
HUDEXT.swift
;
sourceTree
=
"<group>"
;
};
F9DDBE912457BFEC00A32CB2
/* HUDEXT.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
HUDEXT.swift
;
sourceTree
=
"<group>"
;
};
F9DDBE942457D3EC00A32CB2
/* WebViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WebViewController.swift
;
sourceTree
=
"<group>"
;
};
F9DDBE942457D3EC00A32CB2
/* WebViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WebViewController.swift
;
sourceTree
=
"<group>"
;
};
F9DDBE952457D3EC00A32CB2
/* WebViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WebViewController.xib
;
sourceTree
=
"<group>"
;
};
F9DDBE952457D3EC00A32CB2
/* WebViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WebViewController.xib
;
sourceTree
=
"<group>"
;
};
F9FF7BA024760DA9006E305E
/* LogisticsCompanyModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
LogisticsCompanyModel.swift
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
/* Begin PBXFrameworksBuildPhase section */
...
@@ -2219,6 +2221,7 @@
...
@@ -2219,6 +2221,7 @@
F93E31F624721C4200524DFC
/* EditOGPAdModel.swift */
,
F93E31F624721C4200524DFC
/* EditOGPAdModel.swift */
,
F9A0E1DC246D198B00D7F26F
/* CusListAllModel.swift */
,
F9A0E1DC246D198B00D7F26F
/* CusListAllModel.swift */
,
F9A0E1DE246D1B1E00D7F26F
/* GetGoodsInfoModel.swift */
,
F9A0E1DE246D1B1E00D7F26F
/* GetGoodsInfoModel.swift */
,
F9FF7BA024760DA9006E305E
/* LogisticsCompanyModel.swift */
,
);
);
path
=
OrderManageModel
;
path
=
OrderManageModel
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2888,6 +2891,7 @@
...
@@ -2888,6 +2891,7 @@
E0D197C22448431C002B080C
/* BabyRhythm.m in Sources */
,
E0D197C22448431C002B080C
/* BabyRhythm.m in Sources */
,
F956D5A1246A2D9C003FF510
/* LMNToolBar.m in Sources */
,
F956D5A1246A2D9C003FF510
/* LMNToolBar.m in Sources */
,
F950FDDC24518B9500C40530
/* FSCalendar.m in Sources */
,
F950FDDC24518B9500C40530
/* FSCalendar.m in Sources */
,
F9FF7BA124760DA9006E305E
/* LogisticsCompanyModel.swift in Sources */
,
E0206327246CD84A007A40C4
/* TitleAndLblView.swift in Sources */
,
E0206327246CD84A007A40C4
/* TitleAndLblView.swift in Sources */
,
F942A7FD247500C300FDFC47
/* TestClass.swift in Sources */
,
F942A7FD247500C300FDFC47
/* TestClass.swift in Sources */
,
F950FDD824518B9500C40530
/* FSCalendarDelegationProxy.m in Sources */
,
F950FDD824518B9500C40530
/* FSCalendarDelegationProxy.m in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1746c0dc
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
1746c0dc
...
@@ -68,6 +68,8 @@
...
@@ -68,6 +68,8 @@
<string>
Order/orderReturnedGoodsAd
</string>
<string>
Order/orderReturnedGoodsAd
</string>
<key>
修改订单支付方式(状态)
</key>
<key>
修改订单支付方式(状态)
</key>
<string>
Order/editPayType
</string>
<string>
Order/editPayType
</string>
<key>
获取物流公司信息
</key>
<string>
Order/logisticsCompany
</string>
<key>
获取客户信息
</key>
<key>
获取客户信息
</key>
<string>
Customer/cusListAll
</string>
<string>
Customer/cusListAll
</string>
<key>
获取商品信息
</key>
<key>
获取商品信息
</key>
...
...
GeliBusinessPlatform/Model/OrderInterface.swift
View file @
1746c0dc
...
@@ -254,3 +254,18 @@ func cusListAll(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture
...
@@ -254,3 +254,18 @@ func cusListAll(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture
failture
(
error
)
failture
(
error
)
}
}
}
}
//MARK:--获取物流公司信息
/**
params-key:
user_token(验证token)
*/
func
logisticsCompany
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"获取物流公司信息"
,
params
,
{
(
rep
:
DataResponse
<
LogisticsCompanyModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/OrderManageModel/LogisticsCompanyModel.swift
0 → 100644
View file @
1746c0dc
//
// LogisticsCompanyModel.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/5/21.
// Copyright © 2020 junye lu. All rights reserved.
//
import
Foundation
import
ObjectMapper
//获取物流公司信息
class
LogisticsCompanyModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
LogisticsCompanyDataModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
LogisticsCompanyDataModel
:
Mappable
{
var
lc_id
:
Int
?
//物流公司id
var
lc_name
:
String
?
//物流公司名
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
lc_id
<-
map
[
"lc_id"
]
lc_name
<-
map
[
"lc_name"
]
}
}
GeliBusinessPlatform/Other/LMNote/LMNoteViewController.m
View file @
1746c0dc
...
@@ -216,6 +216,9 @@
...
@@ -216,6 +216,9 @@
{
{
[
self
.
textView
exportHTML
:
^
(
BOOL
succeed
,
NSString
*
html
)
{
[
self
.
textView
exportHTML
:
^
(
BOOL
succeed
,
NSString
*
html
)
{
NSLog
(
@"html:
\n
%@"
,
[
NSString
stringWithFormat
:
@"<html>%@</html>"
,
html
]);
NSLog
(
@"html:
\n
%@"
,
[
NSString
stringWithFormat
:
@"<html>%@</html>"
,
html
]);
LMNWebViewController
*
vc
=
[[
LMNWebViewController
alloc
]
init
];
vc
.
html
=
[
NSString
stringWithFormat
:
@"<html>%@</html>"
,
html
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
}];
}];
}
}
...
...
GeliBusinessPlatform/SceneDelegate.swift
View file @
1746c0dc
...
@@ -42,16 +42,16 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
...
@@ -42,16 +42,16 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
}
}
//MARK:--loginVC
//MARK:--loginVC
func
addLoginVc
(
isAgain
:
Bool
){
func
addLoginVc
(
isAgain
:
Bool
){
//
//
let vc = LoginViewController()
let
vc
=
LoginViewController
()
//
vc.delegate = self
vc
.
delegate
=
self
//
let contentView = vc
let
contentView
=
vc
let
vc
=
LMNoteViewController
()
//
let vc = LMNoteViewController()
//
//
//
let
contentView
=
vc
//
let contentView = vc
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
...
@@ -98,7 +98,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
...
@@ -98,7 +98,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
// Create the SwiftUI view that provides the window contents.
// Create the SwiftUI view that provides the window contents.
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
tabBarController
.
selectedIndex
=
1
//
tabBarController.selectedIndex = 1
let
contentView
=
tabBarController
let
contentView
=
tabBarController
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
1746c0dc
...
@@ -429,12 +429,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -429,12 +429,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
if
isTrue
{
if
isTrue
{
//"下架"
//"下架"
print
(
"下架下架下架"
)
print
(
"下架下架下架"
)
// editField(["user_token":"","function_id":"15","prval":"goods_id","value":"0",], success: { (data) in
}
else
{
// self.loadData()
// }) { (erro) in
//
// }
}
else
{
//"入库"
//"入库"
print
(
"入库--入库"
)
print
(
"入库--入库"
)
...
@@ -446,12 +441,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -446,12 +441,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}
else
{
}
else
{
//"上架"
//"上架"
print
(
"上架上架上架上架"
)
print
(
"上架上架上架上架"
)
// editField(["user_token":"","function_id":"15","prval":rowModel.goods_id,"value":"1",], success: { (data) in
// self.loadData()
// }) { (erro) in
//
// }
}
}
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
View file @
1746c0dc
...
@@ -46,10 +46,12 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -46,10 +46,12 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
let
order_goods
=
dataChangeString
(
sender
:
order_goodsArr
!
)
let
order_goods
=
dataChangeString
(
sender
:
order_goodsArr
!
)
editOrderGoodsPrice
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderID
as
Any
,
"order_goods"
:
order_goods
],
success
:
{
(
data
)
in
editOrderGoodsPrice
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderID
as
Any
,
"order_goods"
:
order_goods
],
success
:
{
(
data
)
in
let
dataM
=
data
as!
UpDataModel
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"修改成功"
),
delay
:
1.2
)
if
dataM
.
code
==
1
{
self
.
delegate
?
.
changeGoodsPriByData
(
sender
:
self
.
dataArr
!
)
self
.
delegate
?
.
changeGoodsPriByData
(
sender
:
self
.
dataArr
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
})
{
(
error
)
in
})
{
(
error
)
in
...
...
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
View file @
1746c0dc
...
@@ -10,6 +10,7 @@ import UIKit
...
@@ -10,6 +10,7 @@ import UIKit
import
ViewAnimator
import
ViewAnimator
class
ShowAlGoodsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
ShowAlGoodsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
var
order_goods
:
Array
<
OrderDetailGoodsModel
>
?
=
[]
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -33,20 +34,23 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
...
@@ -33,20 +34,23 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
tableV
.
dataSource
=
self
tableV
.
dataSource
=
self
tableV
.
separatorStyle
=
.
none
tableV
.
separatorStyle
=
.
none
//不是这个cell-是跟订单详情里面的商品 一样
// tableV?.register(UINib(nibName: "ChangePriceNormalCell", bundle: nil), forCellReuseIdentifier: "ChangePriceNormalCell")
tableV
?
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
tableV
?
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
return
order_goods
!.
count
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
selectBtn
.
isHidden
=
true
cell
.
selectBtn
.
isHidden
=
true
cell
.
detailLbl2
.
isHidden
=
true
cell
.
detailLbl2
.
isHidden
=
true
let
rowModel
=
order_goods
!
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
rowModel
.
goods_name
cell
.
detailLbl
.
text
=
rowModel
.
goods_attr
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
.
goods_price
!
)
return
cell
return
cell
}
}
...
...
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
View file @
1746c0dc
...
@@ -58,12 +58,12 @@ class XiuGaiYuShouJiaViewController: BaseViewController {
...
@@ -58,12 +58,12 @@ class XiuGaiYuShouJiaViewController: BaseViewController {
let
rowModel
=
dataModel
?
.
order_goods
!
[
0
]
let
rowModel
=
dataModel
?
.
order_goods
!
[
0
]
editOrderGoodsPriceAd
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderID
as
Any
,
"og_id"
:
rowModel
?
.
og_id
as
Any
,
"dj_amount"
:
dingJinTF
.
text
as
Any
,
"wk_amount"
:
weiKuanTF
.
text
as
Any
],
success
:
{
(
data
)
in
editOrderGoodsPriceAd
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderID
as
Any
,
"og_id"
:
rowModel
?
.
og_id
as
Any
,
"dj_amount"
:
dingJinTF
.
text
as
Any
,
"wk_amount"
:
weiKuanTF
.
text
as
Any
],
success
:
{
(
data
)
in
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"修改成功"
),
delay
:
1.2
)
//MARK:--需要更改订单详情的对应数据(不做网络请求,减少加载)
let
dataM
=
data
as!
EditOGPAdModel
let
dataM
=
data
as!
EditOGPAdModel
self
.
delegate
?
.
changeYuShouGoodsByData
(
sender
:
dataM
.
data
!
)
if
dataM
.
code
==
1
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
delegate
?
.
changeYuShouGoodsByData
(
sender
:
dataM
.
data
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
})
{
(
error
)
in
})
{
(
error
)
in
}
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
1746c0dc
This diff is collapsed.
Click to expand it.
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