Commit d43a8c40 authored by 刘俊宏's avatar 刘俊宏

添加了供应商列表 +详情的接口和model

parent e6f8ff4d
...@@ -470,6 +470,8 @@ ...@@ -470,6 +470,8 @@
F961D27524503CCF007FBE70 /* OrderSelectMoreView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F961D27424503CCF007FBE70 /* OrderSelectMoreView.xib */; }; F961D27524503CCF007FBE70 /* OrderSelectMoreView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F961D27424503CCF007FBE70 /* OrderSelectMoreView.xib */; };
F961D27724503F51007FBE70 /* OrderSelectMoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961D27624503F51007FBE70 /* OrderSelectMoreView.swift */; }; F961D27724503F51007FBE70 /* OrderSelectMoreView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961D27624503F51007FBE70 /* OrderSelectMoreView.swift */; };
F96407642468DEB400A05E12 /* SaveFileModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96407632468DEB400A05E12 /* SaveFileModel.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 */; }; F969BF07244EC38000C79953 /* GoodsCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF05244EC38000C79953 /* GoodsCollectionViewCell.swift */; };
F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F969BF06244EC38000C79953 /* GoodsCollectionViewCell.xib */; }; F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F969BF06244EC38000C79953 /* GoodsCollectionViewCell.xib */; };
F969BF1E244EE67900C79953 /* GoodsManageListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */; }; F969BF1E244EE67900C79953 /* GoodsManageListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */; };
...@@ -1044,6 +1046,8 @@ ...@@ -1044,6 +1046,8 @@
F961D27424503CCF007FBE70 /* OrderSelectMoreView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderSelectMoreView.xib; sourceTree = "<group>"; }; 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>"; }; 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>"; }; 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>"; }; 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>"; }; 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>"; }; F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsManageListVC.swift; sourceTree = "<group>"; };
...@@ -1617,6 +1621,7 @@ ...@@ -1617,6 +1621,7 @@
E09B03A92445B09200211A51 /* Model */ = { E09B03A92445B09200211A51 /* Model */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
F9697240248F6F550010D39B /* VendorModel */,
E0AA3A85248F3C1B00CBFC27 /* StatisticsModel */, E0AA3A85248F3C1B00CBFC27 /* StatisticsModel */,
E0571C68248DC5CD00E85711 /* AdrModel */, E0571C68248DC5CD00E85711 /* AdrModel */,
E00D85DC244561FD00F5F816 /* Products */, E00D85DC244561FD00F5F816 /* Products */,
...@@ -1626,6 +1631,7 @@ ...@@ -1626,6 +1631,7 @@
F956D5BD246A3629003FF510 /* PersonCenterModel */, F956D5BD246A3629003FF510 /* PersonCenterModel */,
F956D5BC246A35DB003FF510 /* GoodsManageMoel */, F956D5BC246A35DB003FF510 /* GoodsManageMoel */,
F9171EFB245128B200359C2B /* Interface.swift */, F9171EFB245128B200359C2B /* Interface.swift */,
F9697243248F70C00010D39B /* VendorInterface.swift */,
E0AA3A88248F3E1400CBFC27 /* StatisticsInterface.swift */, E0AA3A88248F3E1400CBFC27 /* StatisticsInterface.swift */,
E0571C6D248DD4DE00E85711 /* AdressInterface.swift */, E0571C6D248DD4DE00E85711 /* AdressInterface.swift */,
E0B5308524728FB600FFCC15 /* WarehouseInterface.swift */, E0B5308524728FB600FFCC15 /* WarehouseInterface.swift */,
...@@ -2460,6 +2466,14 @@ ...@@ -2460,6 +2466,14 @@
path = MoreBtnView; path = MoreBtnView;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
F9697240248F6F550010D39B /* VendorModel */ = {
isa = PBXGroup;
children = (
F9697241248F6F7C0010D39B /* VendorListModel.swift */,
);
path = VendorModel;
sourceTree = "<group>";
};
F969BF04244EC27E00C79953 /* CollectionCell */ = { F969BF04244EC27E00C79953 /* CollectionCell */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -2914,6 +2928,7 @@ ...@@ -2914,6 +2928,7 @@
E0DDCB18244AE2AC00DF54C7 /* XiuGaiYuShouJiaViewController.swift in Sources */, E0DDCB18244AE2AC00DF54C7 /* XiuGaiYuShouJiaViewController.swift in Sources */,
E0E8ABFD246E359700E3BB54 /* GuiGeModel.swift in Sources */, E0E8ABFD246E359700E3BB54 /* GuiGeModel.swift in Sources */,
F950FDEA2451920200C40530 /* DIYCalendarCell.swift in Sources */, F950FDEA2451920200C40530 /* DIYCalendarCell.swift in Sources */,
F9697242248F6F7C0010D39B /* VendorListModel.swift in Sources */,
F950FDE224518B9500C40530 /* FSCalendarCalculator.m in Sources */, F950FDE224518B9500C40530 /* FSCalendarCalculator.m in Sources */,
E0D197C12448431C002B080C /* BabyToy.m in Sources */, E0D197C12448431C002B080C /* BabyToy.m in Sources */,
E0F97B0C24516B1F001BD600 /* AddImgCell.swift in Sources */, E0F97B0C24516B1F001BD600 /* AddImgCell.swift in Sources */,
...@@ -3003,6 +3018,7 @@ ...@@ -3003,6 +3018,7 @@
F9A0E1DD246D198B00D7F26F /* CusListAllModel.swift in Sources */, F9A0E1DD246D198B00D7F26F /* CusListAllModel.swift in Sources */,
F9956B2524640D34001A617D /* GoodsClassModel.swift in Sources */, F9956B2524640D34001A617D /* GoodsClassModel.swift in Sources */,
F961D26B24500FF6007FBE70 /* HeaderSelectView.swift in Sources */, F961D26B24500FF6007FBE70 /* HeaderSelectView.swift in Sources */,
F9697244248F70C00010D39B /* VendorInterface.swift in Sources */,
E09F4C9D2452BEBB00BE033D /* JiPaiFangShiViewController.swift in Sources */, E09F4C9D2452BEBB00BE033D /* JiPaiFangShiViewController.swift in Sources */,
F96407642468DEB400A05E12 /* SaveFileModel.swift in Sources */, F96407642468DEB400A05E12 /* SaveFileModel.swift in Sources */,
E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */, E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */,
......
...@@ -142,5 +142,7 @@ ...@@ -142,5 +142,7 @@
<string>Address/addressDel</string> <string>Address/addressDel</string>
<key>收支统计</key> <key>收支统计</key>
<string>Finance/statistics</string> <string>Finance/statistics</string>
<key>供应商列表 +详情</key>
<string>Vender/vendorList</string>
</dict> </dict>
</plist> </plist>
//
// 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)
}
}
//
// 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"]
}
}
...@@ -517,7 +517,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -517,7 +517,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD.flash(.label("敬请期待"),delay: 1.2) HUD.flash(.label("敬请期待"),delay: 1.2)
return return
case 93: //供应商管理 case 93: //供应商管理
HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = GYSListViewController()
self.navigationController?.pushViewController(vc, animated: true)
return return
case 113: //管理员列表 case 113: //管理员列表
HUD.flash(.label("敬请期待"),delay: 1.2) HUD.flash(.label("敬请期待"),delay: 1.2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment