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
d43a8c40
Commit
d43a8c40
authored
Jun 09, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了供应商列表 +详情的接口和model
parent
e6f8ff4d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
1 deletion
+116
-1
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+16
-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/VendorInterface.swift
GeliBusinessPlatform/Model/VendorInterface.swift
+26
-0
GeliBusinessPlatform/Model/VendorModel/VendorListModel.swift
GeliBusinessPlatform/Model/VendorModel/VendorListModel.swift
+69
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+3
-1
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
d43a8c40
...
...
@@ -470,6 +470,8 @@
F961D27524503CCF007FBE70
/* OrderSelectMoreView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F961D27424503CCF007FBE70
/* OrderSelectMoreView.xib */
;
};
F961D27724503F51007FBE70
/* OrderSelectMoreView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F961D27624503F51007FBE70
/* OrderSelectMoreView.swift */
;
};
F96407642468DEB400A05E12
/* SaveFileModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F96407632468DEB400A05E12
/* SaveFileModel.swift */
;
};
F9697242248F6F7C0010D39B
/* VendorListModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9697241248F6F7C0010D39B
/* VendorListModel.swift */
;
};
F9697244248F70C00010D39B
/* VendorInterface.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9697243248F70C00010D39B
/* VendorInterface.swift */
;
};
F969BF07244EC38000C79953
/* GoodsCollectionViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F969BF05244EC38000C79953
/* GoodsCollectionViewCell.swift */
;
};
F969BF08244EC38000C79953
/* GoodsCollectionViewCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F969BF06244EC38000C79953
/* GoodsCollectionViewCell.xib */
;
};
F969BF1E244EE67900C79953
/* GoodsManageListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F969BF1C244EE67900C79953
/* GoodsManageListVC.swift */
;
};
...
...
@@ -1044,6 +1046,8 @@
F961D27424503CCF007FBE70
/* OrderSelectMoreView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
OrderSelectMoreView.xib
;
sourceTree
=
"<group>"
;
};
F961D27624503F51007FBE70
/* OrderSelectMoreView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
OrderSelectMoreView.swift
;
sourceTree
=
"<group>"
;
};
F96407632468DEB400A05E12
/* SaveFileModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SaveFileModel.swift
;
sourceTree
=
"<group>"
;
};
F9697241248F6F7C0010D39B
/* VendorListModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
VendorListModel.swift
;
sourceTree
=
"<group>"
;
};
F9697243248F70C00010D39B
/* VendorInterface.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
VendorInterface.swift
;
sourceTree
=
"<group>"
;
};
F969BF05244EC38000C79953
/* GoodsCollectionViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GoodsCollectionViewCell.swift
;
sourceTree
=
"<group>"
;
};
F969BF06244EC38000C79953
/* GoodsCollectionViewCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GoodsCollectionViewCell.xib
;
sourceTree
=
"<group>"
;
};
F969BF1C244EE67900C79953
/* GoodsManageListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GoodsManageListVC.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1617,6 +1621,7 @@
E09B03A92445B09200211A51
/* Model */
=
{
isa
=
PBXGroup
;
children
=
(
F9697240248F6F550010D39B
/* VendorModel */
,
E0AA3A85248F3C1B00CBFC27
/* StatisticsModel */
,
E0571C68248DC5CD00E85711
/* AdrModel */
,
E00D85DC244561FD00F5F816
/* Products */
,
...
...
@@ -1626,6 +1631,7 @@
F956D5BD246A3629003FF510
/* PersonCenterModel */
,
F956D5BC246A35DB003FF510
/* GoodsManageMoel */
,
F9171EFB245128B200359C2B
/* Interface.swift */
,
F9697243248F70C00010D39B
/* VendorInterface.swift */
,
E0AA3A88248F3E1400CBFC27
/* StatisticsInterface.swift */
,
E0571C6D248DD4DE00E85711
/* AdressInterface.swift */
,
E0B5308524728FB600FFCC15
/* WarehouseInterface.swift */
,
...
...
@@ -2460,6 +2466,14 @@
path
=
MoreBtnView
;
sourceTree
=
"<group>"
;
};
F9697240248F6F550010D39B
/* VendorModel */
=
{
isa
=
PBXGroup
;
children
=
(
F9697241248F6F7C0010D39B
/* VendorListModel.swift */
,
);
path
=
VendorModel
;
sourceTree
=
"<group>"
;
};
F969BF04244EC27E00C79953
/* CollectionCell */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2914,6 +2928,7 @@
E0DDCB18244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.swift in Sources */
,
E0E8ABFD246E359700E3BB54
/* GuiGeModel.swift in Sources */
,
F950FDEA2451920200C40530
/* DIYCalendarCell.swift in Sources */
,
F9697242248F6F7C0010D39B
/* VendorListModel.swift in Sources */
,
F950FDE224518B9500C40530
/* FSCalendarCalculator.m in Sources */
,
E0D197C12448431C002B080C
/* BabyToy.m in Sources */
,
E0F97B0C24516B1F001BD600
/* AddImgCell.swift in Sources */
,
...
...
@@ -3003,6 +3018,7 @@
F9A0E1DD246D198B00D7F26F
/* CusListAllModel.swift in Sources */
,
F9956B2524640D34001A617D
/* GoodsClassModel.swift in Sources */
,
F961D26B24500FF6007FBE70
/* HeaderSelectView.swift in Sources */
,
F9697244248F70C00010D39B
/* VendorInterface.swift in Sources */
,
E09F4C9D2452BEBB00BE033D
/* JiPaiFangShiViewController.swift in Sources */
,
F96407642468DEB400A05E12
/* SaveFileModel.swift in Sources */
,
E0D4166424483058008DCAB4
/* ChangePassViewController.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d43a8c40
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
d43a8c40
...
...
@@ -142,5 +142,7 @@
<string>
Address/addressDel
</string>
<key>
收支统计
</key>
<string>
Finance/statistics
</string>
<key>
供应商列表 +详情
</key>
<string>
Vender/vendorList
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/VendorInterface.swift
0 → 100644
View file @
d43a8c40
//
// VendorInterface.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/6/9.
// Copyright © 2020 junye lu. All rights reserved.
//
import
Foundation
import
Alamofire
import
SwiftyJSON
import
ObjectMapper
//MARK:--供应商列表 +详情
//- 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
//keyword 搜索关键词
//page 页数
func
vendorList
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"供应商列表 +详情"
,
params
,
{
(
rep
:
DataResponse
<
VendorListModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/VendorModel/VendorListModel.swift
0 → 100644
View file @
d43a8c40
//
// VendorListModel.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/6/9.
// Copyright © 2020 junye lu. All rights reserved.
//
import
Foundation
import
ObjectMapper
//仓库列表
class
VendorListModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
VendorListDataModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
//仓库列表
class
VendorListDataModel
:
Mappable
{
var
ven_id
:
Int
?
//供应商id
var
shop_id
:
Int
?
var
ven_name
:
String
?
//供应商名
var
province
:
Int
?
//省id
var
city
:
Int
?
//市id
var
district
:
Int
?
//区id
var
address
:
String
?
//详细地址
var
contacts_phone
:
String
?
//联系人电话
var
contacts_mobile
:
String
?
//联系人手机号
var
zhizhao
:
String
?
//营业执照
var
food_production_license
:
String
?
//食品流通许可证
var
payable_money
:
String
?
//详细地址
var
is_delete
:
Int
?
var
p_cn
:
String
?
//省
var
c_cn
:
String
?
//市
var
d_cn
:
String
?
//区
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
ven_id
<-
map
[
"ven_id"
]
shop_id
<-
map
[
"shop_id"
]
ven_name
<-
map
[
"ven_name"
]
province
<-
map
[
"province"
]
city
<-
map
[
"city"
]
district
<-
map
[
"district"
]
address
<-
map
[
"address"
]
contacts_phone
<-
map
[
"contacts_phone"
]
contacts_mobile
<-
map
[
"contacts_mobile"
]
zhizhao
<-
map
[
"zhizhao"
]
food_production_license
<-
map
[
"food_production_license"
]
payable_money
<-
map
[
"payable_money"
]
is_delete
<-
map
[
"is_delete"
]
p_cn
<-
map
[
"p_cn"
]
c_cn
<-
map
[
"c_cn"
]
d_cn
<-
map
[
"d_cn"
]
}
}
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
d43a8c40
...
...
@@ -517,7 +517,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
case
93
:
//供应商管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
let
vc
=
GYSListViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
113
:
//管理员列表
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
...
...
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