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
64d44745
Commit
64d44745
authored
May 19, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充新逻辑
parent
29f9ccc3
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
34 deletions
+51
-34
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Define/高德地图/AMapSearchKit.framework/Headers/AMapCommonObj.h
...fine/高德地图/AMapSearchKit.framework/Headers/AMapCommonObj.h
+1
-1
GeliBusinessPlatform/Model/WarehouseInterface.swift
GeliBusinessPlatform/Model/WarehouseInterface.swift
+1
-1
GeliBusinessPlatform/Model/WarehouseManageModel/ShopWarehouseDetailModel.swift
...Model/WarehouseManageModel/ShopWarehouseDetailModel.swift
+18
-4
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+29
-9
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementListVC.swift
...latform/ViewController/仓库管理/WarehoseMangementListVC.swift
+2
-19
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
...ontroller/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
+0
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
64d44745
No preview for this file type
GeliBusinessPlatform/Define/高德地图/AMapSearchKit.framework/Headers/AMapCommonObj.h
View file @
64d44745
...
...
@@ -234,7 +234,7 @@
///中心点经纬度
@property
(
nonatomic
,
copy
)
AMapGeoPoint
*
location
;
///面积,单位平方米
@property
(
nonatomic
,
assign
)
CGFloat
area
;
@property
(
nonatomic
,
assign
)
CGFloat
area
;
@end
///道路
...
...
GeliBusinessPlatform/Model/WarehouseInterface.swift
View file @
64d44745
...
...
@@ -33,7 +33,7 @@ user_token(验证token)
w_id(仓库id)
*/
func
WarehouseDetail
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"商家仓库详情"
,
params
,
{
(
rep
:
DataResponse
<
ShopWarehouseDetail
Data
Model
>
)
in
NetworkRequest
.
sharedInstance
.
postRequest
(
"商家仓库详情"
,
params
,
{
(
rep
:
DataResponse
<
ShopWarehouseDetailModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
...
...
GeliBusinessPlatform/Model/WarehouseManageModel/ShopWarehouseDetailModel.swift
View file @
64d44745
...
...
@@ -45,8 +45,8 @@ class ShopWarehouseDetailDataBasicModel: Mappable {
var
w_name
:
String
?
//仓库名
var
w_type
:
Int
?
//仓库类型,1常温、2冷藏、3冷冻
var
w_address
:
String
?
//地址
var
volume
:
In
t
?
//容积
var
area
:
In
t
?
//面积
var
volume
:
Floa
t
?
//容积
var
area
:
Floa
t
?
//面积
var
contact
:
String
?
//联系人
var
contact_number
:
String
?
//联系电话
var
mail
:
String
?
//电子邮箱
...
...
@@ -81,7 +81,7 @@ class ShopWarehouseDetailDataPositionModel: Mappable {
var
p_name
:
String
?
//库位名
var
is_default
:
Int
?
//是否默认
var
inventory_count
:
Int
?
//库存数
var
status
=
1
//状态
required
init
?(
map
:
Map
)
{
}
...
...
@@ -91,7 +91,21 @@ class ShopWarehouseDetailDataPositionModel: Mappable {
p_name
<-
map
[
"p_name"
]
is_default
<-
map
[
"is_default"
]
inventory_count
<-
map
[
"inventory_count"
]
}
}
class
ShopWarehouseDetailDataPositionDetailModel
:
Mappable
{
var
p_id
:
Int
?
//库位id
var
p_name
:
String
?
//库位名
var
status
:
Int
?
//库位修改状态,1未修改2已修改3删除4新增,库位中有库存时则不能删除
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
p_id
<-
map
[
"p_id"
]
p_name
<-
map
[
"p_name"
]
status
<-
map
[
"status"
]
}
}
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
64d44745
...
...
@@ -203,7 +203,10 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
return
cell
}
@IBAction
func
submitClick
(
_
sender
:
Any
)
{
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
{
delegate
?
.
KuWeiDataArr
?(
sender
:
kuWeiArr
)
return
}
if
isMultipleS
==
false
{
if
selectNum
==
nil
{
HUD
.
flash
(
.
label
(
"
\(
titleLbl
.
text
!
)
"
),
delay
:
1.2
)
...
...
@@ -228,14 +231,34 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
if
isMultipleS
==
false
{
selectNum
=
cell
.
tag
}
else
{
if
cell
.
selectBtn
.
isSelected
==
true
{
selectArray
?
.
insert
(
99
,
at
:
cell
.
tag
)
selectArray
?
.
remove
(
at
:
cell
.
tag
+
1
)
if
isShangPinType
{
if
cell
.
tag
==
0
{
if
selectArray
!
[
0
]
==
99
{
selectArray
?
.
insert
(
0
,
at
:
0
)
selectArray
?
.
remove
(
at
:
1
)
}
else
{
selectArray
?
.
insert
(
99
,
at
:
0
)
selectArray
?
.
remove
(
at
:
1
)
}
}
else
{
for
i
in
1
..<
selectArray
!.
count
{
selectArray
?
.
insert
(
99
,
at
:
i
)
selectArray
?
.
remove
(
at
:
i
+
1
)
}
selectArray
?
.
insert
(
cell
.
tag
,
at
:
cell
.
tag
)
selectArray
?
.
remove
(
at
:
cell
.
tag
+
1
)
}
}
else
{
selectArray
?
.
insert
(
cell
.
tag
,
at
:
cell
.
tag
)
selectArray
?
.
remove
(
at
:
cell
.
tag
+
1
)
if
cell
.
selectBtn
.
isSelected
==
true
{
selectArray
?
.
insert
(
99
,
at
:
cell
.
tag
)
selectArray
?
.
remove
(
at
:
cell
.
tag
+
1
)
}
else
{
selectArray
?
.
insert
(
cell
.
tag
,
at
:
cell
.
tag
)
selectArray
?
.
remove
(
at
:
cell
.
tag
+
1
)
}
}
}
print
(
"sele"
,
selectArray
,
cell
.
tag
)
selectTbv
.
reloadData
()
}
//库位
...
...
@@ -349,8 +372,6 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
@objc
func
addKuWei
(){
IQKeyboardManager
.
shared
.
resignFirstResponder
()
if
(
inputTextTF
?
.
text
!.
count
)
!
>
0
{
...
...
@@ -361,7 +382,6 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
self
.
btmVHeight
.
constant
=
fullScreenHeight
*
0.75
}
inputTextTF
?
.
text
=
""
delegate
?
.
KuWeiDataArr
?(
sender
:
kuWeiArr
)
selectTbv
?
.
reloadData
()
}
else
{
HUD
.
flash
(
.
label
(
"请输入库位名称"
),
delay
:
1.2
)
...
...
GeliBusinessPlatform/ViewController/仓库管理/WarehoseMangementListVC.swift
View file @
64d44745
...
...
@@ -10,23 +10,8 @@ import UIKit
import
ViewAnimator
import
SwipeCellKit
class
WarehoseMangementListVC
:
BaseViewController
,
UISearchBarDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
SearchBarViewDelegate
,
SwipeTableViewCellDelegate
,
CheckWareHourseViewControllerDelegate
{
func
CheckWareHourseViewControllerDelAction
(
Idx
:
Int
)
{
warehourseArr
.
remove
(
at
:
Idx
)
tableV
.
reloadData
()
}
func
CheckWareHourseViewControllerEditAction
(
data
:
ShopWarehouseListDataModel
,
Idx
:
Int
)
{
warehourseArr
.
insert
(
data
,
at
:
Idx
)
warehourseArr
.
remove
(
at
:
Idx
+
1
)
tableV
.
reloadData
()
}
func
CheckWareHourseViewControllerSaveAction
(
data
:
ShopWarehouseListDataModel
)
{
warehourseArr
.
append
(
data
)
tableV
.
reloadData
()
}
class
WarehoseMangementListVC
:
BaseViewController
,
UISearchBarDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
SearchBarViewDelegate
,
SwipeTableViewCellDelegate
{
weak
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
contentView
:
UIView
!
@IBOutlet
weak
var
searchView
:
UIView
!
...
...
@@ -156,7 +141,6 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
searchV
!.
resignFirstResponder
()
}
let
vc
=
CheckWareHourseViewController
()
vc
.
delegate
=
self
vc
.
titleStr
=
"新增仓库"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
false
)
}
...
...
@@ -200,7 +184,6 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
)
let
vc
=
CheckWareHourseViewController
()
vc
.
delegate
=
self
vc
.
titleStr
=
"编辑仓库"
let
model
=
warehourseArr
[
indexPath
.
row
]
vc
.
w_id
=
model
.
w_id
...
...
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
View file @
64d44745
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