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
ec7743ef
Commit
ec7743ef
authored
Jun 04, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充入库通过提醒
parent
ba912068
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
79 deletions
+78
-79
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/WarehouseManageModel/WarehouseIoListModel.swift
...orm/Model/WarehouseManageModel/WarehouseIoListModel.swift
+4
-0
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController.swift
...Platform/ViewController/入库/PiCiXuanZeViewController.swift
+3
-2
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
+70
-75
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
+1
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ec7743ef
No preview for this file type
GeliBusinessPlatform/Model/WarehouseManageModel/WarehouseIoListModel.swift
View file @
ec7743ef
...
@@ -85,6 +85,8 @@ class WarehouseIoListDataResModel: Mappable {
...
@@ -85,6 +85,8 @@ class WarehouseIoListDataResModel: Mappable {
var
number
:
Int
?
var
number
:
Int
?
//缩略图
//缩略图
var
goods_thumb
:
String
?
var
goods_thumb
:
String
?
var
sku_id
:
Int
?
var
goods_id
:
Int
?
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
}
}
...
@@ -93,5 +95,7 @@ class WarehouseIoListDataResModel: Mappable {
...
@@ -93,5 +95,7 @@ class WarehouseIoListDataResModel: Mappable {
goods_spec
<-
map
[
"goods_spec"
]
goods_spec
<-
map
[
"goods_spec"
]
number
<-
map
[
"number"
]
number
<-
map
[
"number"
]
goods_thumb
<-
map
[
"goods_thumb"
]
goods_thumb
<-
map
[
"goods_thumb"
]
goods_id
<-
map
[
"goods_id"
]
sku_id
<-
map
[
"sku_id"
]
}
}
}
}
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeViewController.swift
View file @
ec7743ef
...
@@ -142,7 +142,8 @@ class PiCiXuanZeViewController: BaseViewController,UITableViewDelegate,UITableVi
...
@@ -142,7 +142,8 @@ class PiCiXuanZeViewController: BaseViewController,UITableViewDelegate,UITableVi
totalCount
+=
data
.
chuHuoLiang
!
totalCount
+=
data
.
chuHuoLiang
!
}
}
}
}
listView
.
reloadData
()
let
index
=
IndexPath
(
row
:
0
,
section
:
1
)
listView
.
reloadRows
(
at
:
[
index
],
with
:
.
none
)
}
}
func
PiCiXuanZeCellBtnSelect
(
cell
:
PiCiXuanZeCell
)
{
func
PiCiXuanZeCellBtnSelect
(
cell
:
PiCiXuanZeCell
)
{
...
@@ -165,7 +166,7 @@ class PiCiXuanZeViewController: BaseViewController,UITableViewDelegate,UITableVi
...
@@ -165,7 +166,7 @@ class PiCiXuanZeViewController: BaseViewController,UITableViewDelegate,UITableVi
totalCount
=
0
totalCount
=
0
for
item
in
recordArr
{
for
item
in
recordArr
{
if
item
.
chuHuoLiang
!=
nil
&&
item
.
chuHuoLiang
!=
0
{
if
item
.
chuHuoLiang
!=
nil
{
totalCount
+=
item
.
chuHuoLiang
!
totalCount
+=
item
.
chuHuoLiang
!
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKListVC.swift
View file @
ec7743ef
...
@@ -9,7 +9,35 @@
...
@@ -9,7 +9,35 @@
import
UIKit
import
UIKit
import
ViewAnimator
//cell动效
import
ViewAnimator
//cell动效
class
CRKListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CRKCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
CRKXiangQVCDelegate
,
MoreAndTimeSelectViewDelegate
,
GeliAlertTextViewDelegate
{
class
CRKListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CRKCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
CRKXiangQVCDelegate
,
MoreAndTimeSelectViewDelegate
,
GeliAlertTextViewDelegate
,
GeliAlertViewDelegate
{
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
//MARK: - 出入库列表 iog_id
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
data
=
datas
!
[
selectIdx
!
]
var
goodInfoArr
:
Array
<
Any
>
=
[]
data
.
goods_res
?
.
forEach
({
(
model
)
in
let
goods
=
[
"w_id"
:
0
as
Any
,
"p_id"
:
0
as
Any
,
"iog_id"
:
0
as
Any
]
goodInfoArr
.
append
(
goods
)
})
let
goodsInfo
=
dataChangeString
(
sender
:
goodInfoArr
)
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"io_id"
:
data
.
io_id
as
Any
,
"goods_info"
:
goodsInfo
as
Any
]
GoodsInputAudit
(
dict
,
success
:
{
(
data
)
in
self
.
listView
.
mj_header
?
.
beginRefreshing
()
})
{
(
error
)
in
}
}
...
@@ -304,75 +332,30 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -304,75 +332,30 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
if
isPass
{
//通过
if
isPass
{
//通过
if
io_type
==
1
{
//入库
let
data
=
datas
!
[
selectIdx
!
]
let
batchInfo
:
Array
<
Any
>
=
[]
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
goodsInfoArr
:
Array
<
Any
>
=
[]
//MARK: - 出入库列表 iog_id
data
.
goods_res
?
.
forEach
({
(
item
)
in
let
goods
=
[
let
data
=
datas
!
[
selectIdx
!
]
"goods_id"
:
item
.
goods_id
as
Any
,
"goods_name"
:
item
.
goods_name
as
Any
,
var
goodInfoArr
:
Array
<
Any
>
=
[]
"goods_spec"
:
item
.
goods_spec
as
Any
,
// data.goods_res?.forEach({ (model) in
"sku_id"
:
item
.
sku_id
as
Any
,
// let goods = [
"number"
:
item
.
number
as
Any
,
// "w_id":.w_id as Any,
"batch_info"
:
batchInfo
// "p_id":data.p_id as Any,
]
as
[
String
:
Any
]
// "iog_id":data.iog_id as Any
goodsInfoArr
.
append
(
goods
)
// ]
})
// goodInfoArr.append(goods)
// })
let
goods_info
=
dataChangeString
(
sender
:
goodsInfoArr
)
let
goodsInfo
=
dataChangeString
(
sender
:
goodInfoArr
)
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
let
dict
=
[
"io_id"
:
data
.
io_id
as
Any
,
"user_token"
:
UserToken
as
Any
,
"audit_remark"
:
sender
,
"io_id"
:
data
.
io_id
as
Any
,
"goods_info"
:
goods_info
]
"goods_info"
:
goodsInfo
as
Any
GoodsOutputAudit
(
dict
,
success
:
{
(
data
)
in
]
self
.
listView
.
mj_header
?
.
beginRefreshing
()
GoodsInputAudit
(
dict
,
success
:
{
(
data
)
in
})
{
(
error
)
in
self
.
listView
.
mj_header
?
.
beginRefreshing
()
})
{
(
error
)
in
}
}
else
{
//出库
let
data
=
datas
!
[
selectIdx
!
]
var
batchInfo
:
Array
<
Any
>
=
[]
// piCiArr.forEach { (batchArr) in
// batchArr.forEach { (model) in
// let batch = [
// "w_id":model.w_id as Any,
// "p_id":model.p_id as Any,
// "number":model.chuHuoLiang as Any,
// "production_data":model.production_data as Any,
// "shelf_life":model.shelf_life as Any,
// "valid_date":model.valid_date as Any,
// "batch_id":model.batch_id as Any,
// "report_id":model.report_id as Any
// ]
// batchInfo.append(batch)
// }
// }
var
goodsInfoArr
:
Array
<
Any
>
=
[]
// outGoodsModels?.forEach({ (item) in
// let goods = [
// "goods_id":item.goods_id as Any,
// "goods_name":item.goods_name as Any,
// "goods_spec":item.goods_spec as Any,
// "sku_id":item.sku_id as Any,
// "number":item.number as Any,
// "batch_info":batchInfo
// ] as [String : Any]
// goodsInfoArr.append(goods)
// })
let
goods_info
=
dataChangeString
(
sender
:
goodsInfoArr
)
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"io_id"
:
data
.
io_id
as
Any
,
"audit_remark"
:
sender
,
"goods_info"
:
goods_info
]
GoodsOutputAudit
(
dict
,
success
:
{
(
data
)
in
self
.
listView
.
mj_header
?
.
beginRefreshing
()
})
{
(
error
)
in
}
}
}
}
else
{
//不通过
}
else
{
//不通过
...
@@ -397,11 +380,23 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
...
@@ -397,11 +380,23 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
func
CRKCellBtnClick
(
sender
:
UIButton
,
cell
:
CRKCell
)
{
func
CRKCellBtnClick
(
sender
:
UIButton
,
cell
:
CRKCell
)
{
selectIdx
=
cell
.
tag
selectIdx
=
cell
.
tag
if
sender
.
tag
==
0
{
//通过
if
sender
.
tag
==
0
{
//通过
print
(
"1"
,
cell
.
tag
)
if
io_type
==
1
{
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
delegate
=
self
alertView
.
delegate
=
self
;
self
.
view
.
window
?
.
addSubview
(
alterView
)
alertView
.
tishiLbl
.
text
=
""
isPass
=
true
alertView
.
titileLbl
.
text
=
"是否通过审核?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
return
}
if
io_type
==
2
{
print
(
"1"
,
cell
.
tag
)
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
alterView
.
delegate
=
self
self
.
view
.
window
?
.
addSubview
(
alterView
)
isPass
=
true
}
}
else
{
//不通过
}
else
{
//不通过
print
(
"2"
,
cell
.
tag
)
print
(
"2"
,
cell
.
tag
)
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
...
...
GeliBusinessPlatform/ViewController/出入库记录/CRKXiangQVC.swift
View file @
ec7743ef
...
@@ -219,8 +219,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
...
@@ -219,8 +219,7 @@ class CRKXiangQVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,
alertView
.
delegate
=
self
;
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
"是否通过审核?"
alertView
.
titileLbl
.
text
=
"是否通过审核?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"保存"
),
for
:
.
normal
)
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
1001
self
.
view
.
window
?
.
addSubview
(
alertView
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
else
{
}
else
{
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
let
alterView
=
GeliAlertTextView
(
frame
:
self
.
view
.
window
!.
bounds
)
...
...
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