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
072c71f2
Commit
072c71f2
authored
Nov 05, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取检测报告
parent
2872b0f2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
0 deletions
+54
-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/WarehouseInterface.swift
GeliBusinessPlatform/Model/WarehouseInterface.swift
+16
-0
GeliBusinessPlatform/Model/WarehouseManageModel/InputInitInfoModel.swift
...tform/Model/WarehouseManageModel/InputInitInfoModel.swift
+36
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
072c71f2
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
072c71f2
...
...
@@ -112,6 +112,8 @@
<string>
Warehouse/goodsInputApply
</string>
<key>
添加检测报告
</key>
<string>
Warehouse/goodsReportAdd
</string>
<key>
获取检测报告
</key>
<string>
Warehouse/goodsReportList
</string>
<key>
获取商品批次
</key>
<string>
Warehouse/getGoodBatch
</string>
<key>
商品出库
</key>
...
...
GeliBusinessPlatform/Model/WarehouseInterface.swift
View file @
072c71f2
...
...
@@ -241,6 +241,22 @@ func GoodsReportAdd(_ params:[String:Any],success:@escaping (_ res:Any)->(),fail
failture
(
error
)
}
}
//MARK: -- 获取检测报告
/**
params-key:
user_token(验证token)
sku_id (商品sku_id )
*/
func
goodsReportList
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"获取检测报告"
,
params
,
{
(
rep
:
DataResponse
<
GoodsReportListModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK: -- 获取商品批次
...
...
GeliBusinessPlatform/Model/WarehouseManageModel/InputInitInfoModel.swift
View file @
072c71f2
...
...
@@ -179,3 +179,39 @@ class GoodsReportAddDataModel: Mappable {
}
}
class
GoodsReportListModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
GoodsReportListDataModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
GoodsReportListDataModel
:
Mappable
{
var
report_id
:
Int
?
//报告id
var
report_sn
:
String
?
//报告编编号
var
report_type
:
Int
?
var
goods_id
:
Int
?
var
sku_id
:
Int
?
//商品sku_id
var
file_url
:
Int
?
//报告文件地址
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
report_id
<-
map
[
"report_id"
]
report_sn
<-
map
[
"report_sn"
]
report_type
<-
map
[
"report_type"
]
goods_id
<-
map
[
"goods_id"
]
sku_id
<-
map
[
"sku_id"
]
file_url
<-
map
[
"file_url"
]
}
}
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