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
57df3182
Commit
57df3182
authored
Jun 04, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库默认仓库,库位,出库逻辑补充
parent
46d4fe31
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
9 deletions
+85
-9
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+1
-1
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
+11
-0
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
+23
-2
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
+50
-6
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
57df3182
No preview for this file type
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
View file @
57df3182
...
...
@@ -356,7 +356,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
let
data
=
rkSelectArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
data
.
goods_name
cell
.
detailLbl
.
text
=
data
.
spec_str
!
+
" "
+
"¥
\(
data
.
price
!
)
"
cell
.
rkPriceTf
.
text
=
""
cell
.
rkPriceTf
.
text
=
"
\(
data
.
price
!
)
"
cell
.
rkCountTf
.
text
=
""
cell
.
bzqTf
.
text
=
""
cell
.
timeLbl
.
text
=
"请选择生产日期"
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/出库/NewCKVc.swift
View file @
57df3182
...
...
@@ -35,6 +35,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
HUD
.
flash
(
.
label
(
"请选择出库类型"
),
delay
:
1.2
)
return
}
if
rkSelectArr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择出库商品"
),
delay
:
1.2
)
return
}
if
isGm
==
false
{
rkSelectArr
.
forEach
{
(
model
)
in
if
model
.
chuKuLiang
==
nil
{
...
...
@@ -42,6 +46,13 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
return
}
}
}
else
{
for
i
in
0
..<
rkSelectArr
.
count
{
if
piCiArr
!
[
i
]
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择商品批次"
),
delay
:
1.2
)
return
}
}
}
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
View file @
57df3182
...
...
@@ -430,14 +430,35 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
let
model
=
datas
!
[
indexPath
.
row
]
let
vc
=
CRKXiangQVC
()
vc
.
delegate
=
self
vc
.
status
=
model
.
status
vc
.
model
=
model
if
model
.
io_type
==
1
&&
auth
.
contains
(
"122"
){
//入库
vc
.
isGm
=
true
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
InputInitInfo
([
"user_token"
:
UserToken
as
Any
,
"goods_id"
:
model
.
goods_res
?
.
first
?
.
goods_id
as
Any
],
success
:
{
(
data
)
in
let
model
=
data
as!
InputInitInfoModel
model
.
data
?
.
warehouse_res
?
.
forEach
({
(
item
)
in
if
item
.
is_default
==
1
{
vc
.
w_id
=
item
.
w_id
vc
.
w_name
=
item
.
w_name
item
.
warehouse_position
?
.
forEach
({
(
poi
)
in
if
poi
.
is_default
==
1
{
vc
.
p_id
=
poi
.
p_id
vc
.
p_name
=
poi
.
p_name
}
})
}
})
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
})
{
(
error
)
in
}
return
}
if
model
.
io_type
==
2
&&
auth
.
contains
(
"121"
){
vc
.
isGm
=
true
}
vc
.
status
=
model
.
status
vc
.
model
=
model
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
View file @
57df3182
...
...
@@ -11,20 +11,23 @@ protocol CRKXiangQVCDelegate {
func
CRKXiangQVCFinishAction
()
}
class
CRKXiangQVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
NewCKCellDelegate
,
PiCiXuanZeViewControllerDelegate
,
WarehoseMangementListVCDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertTextViewDelegate
,
GeliAlertViewDelegate
{
var
w_id
:
Int
?
var
p_id
:
Int
?
var
w_name
:
String
?
var
p_name
:
String
?
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
//MARK: - 出入库列表 iog_id
let
poi
=
positionArr
!
[
selectIdx
!
]
var
goodInfoArr
:
Array
<
Any
>
=
[]
inGoodsModels
?
.
forEach
({
(
item
)
in
let
goods
=
[
"w_id"
:
poi
.
w_id
as
Any
,
"p_id"
:
p
oi
.
p
_id
as
Any
,
"w_id"
:
w_id
as
Any
,
"p_id"
:
p_id
as
Any
,
"iog_id"
:
item
.
iog_id
as
Any
]
goodInfoArr
.
append
(
goods
)
...
...
@@ -60,10 +63,12 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
wareHouseModel
=
sender
holderArr
?
.
insert
(
sender
.
w_name
!
,
at
:
0
)
holderArr
?
.
remove
(
at
:
1
)
holderArr
?
.
insert
(
"请选择库位"
,
at
:
1
)
holderArr
?
.
remove
(
at
:
2
)
w_id
=
sender
.
w_id
positionArr
?
.
removeAll
()
kuWeiArr
.
forEach
{
(
item
)
in
positionArr
?
.
append
(
item
)
print
(
item
.
p_name
)
}
listView
.
reloadData
()
}
...
...
@@ -180,6 +185,13 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
if
model
?
.
io_type
==
1
{
titleArr
=
[
"仓库"
,
"库位"
,
"入库类型"
]
holderArr
=
[
"请选择仓库"
,
"请选择库位"
,
str
]
if
w_name
!=
nil
{
holderArr
=
[
w_name
!
,
"请选择库位"
,
str
]
}
if
p_name
!=
nil
{
holderArr
=
[
w_name
!
,
p_name
!
,
str
]
}
navbar
.
title
=
"商品入库详情"
...
...
@@ -187,7 +199,6 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
let
model
=
data
as!
InGoodsDetailModel
model
.
data
?
.
goods_res
?
.
forEach
({
(
item
)
in
self
.
inGoodsModels
?
.
append
(
item
)
})
if
self
.
isGm
==
false
{
self
.
titleArr
=
[
"入库类型"
,
"备注"
]
...
...
@@ -380,9 +391,41 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
else
{
if
w_id
!=
nil
{
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
WarehouseDetail
([
"user_token"
:
UserToken
as
Any
,
"w_id"
:
w_id
as
Any
],
success
:
{
(
data
)
in
let
mo
=
data
as!
ShopWarehouseDetailModel
mo
.
data
?
.
position_res
?
.
forEach
({
(
item
)
in
self
.
positionArr
!.
append
(
item
)
})
if
self
.
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
if
self
.
selectIdx
!=
nil
{
view
.
selectNum
=
self
.
selectIdx
view
.
tempNum
=
view
.
selectNum
}
view
.
isOnlySelectKuWei
=
true
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择库位"
var
poiArr
:
Array
<
String
>
=
[]
for
item
in
self
.
positionArr
!
{
let
str
=
item
.
p_name
!
+
"(库存数:
\(
item
.
inventory_count
!
)
"
poiArr
.
append
(
str
)
}
view
.
dataArr
=
poiArr
self
.
view
.
addSubview
(
view
)
self
.
glSelectView
=
view
}
})
{
(
error
)
in
}
}
else
{
HUD
.
flash
(
.
label
(
"请选择仓库"
),
delay
:
1.2
)
}
}
}
}
...
...
@@ -581,6 +624,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
let
data
=
positionArr
!
[
selectIdx
!
]
holderArr
?
.
insert
(
data
.
p_name
!
,
at
:
1
)
holderArr
?
.
remove
(
at
:
2
)
p_id
=
data
.
p_id
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
listView
.
reloadData
()
...
...
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