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
f205fe2b
Commit
f205fe2b
authored
Jun 15, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商列表系列基本完成
parent
4e1eac1a
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
95 additions
and
11 deletions
+95
-11
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+4
-0
GeliBusinessPlatform/Model/Interface.swift
GeliBusinessPlatform/Model/Interface.swift
+1
-0
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+1
-1
GeliBusinessPlatform/Model/VendorInterface.swift
GeliBusinessPlatform/Model/VendorInterface.swift
+49
-0
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
+5
-4
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.swift
...ssPlatform/ViewController/供应商管理/GYSGLViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.xib
...nessPlatform/ViewController/供应商管理/GYSGLViewController.xib
+7
-3
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
...Platform/ViewController/供应商管理/GYSListViewController.swift
+27
-3
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+1
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
f205fe2b
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
f205fe2b
...
...
@@ -156,5 +156,9 @@
<string>
Purchase/backOut
</string>
<key>
采购单修改支付状态
</key>
<string>
Purchase/payStatus
</string>
<key>
供应商编辑
</key>
<string>
Vender/vendorEdit
</string>
<key>
新增供应商
</key>
<string>
Vender/vendorAdd
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/Interface.swift
View file @
f205fe2b
...
...
@@ -20,6 +20,7 @@ func login(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:@esc
failture
(
error
)
}
}
//MARK:--发送验证码
//params-key(phone(手机号),type( 验证类型,1注册,2修改密码,3登录,4格利商家绑定(修改绑定)格利支付,5格利支付绑定格利商家))
func
sendSmsCaptcha
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
...
...
GeliBusinessPlatform/Model/UpDataModel.swift
View file @
f205fe2b
...
...
@@ -8,7 +8,7 @@
import
Foundation
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态
,供应商编辑,新增供应商
class
UpDataModel
:
Mappable
{
var
code
:
Int
?
...
...
GeliBusinessPlatform/Model/VendorInterface.swift
View file @
f205fe2b
...
...
@@ -24,3 +24,52 @@ func vendorList(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture
failture
(
error
)
}
}
//MARK:--供应商编辑
//- 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
/*
//user_token(验证token)
ven_id 供应商id
ven_name 供应商名
province 省id
city 市id
district 区id
address 详细地址
contacts_name 联系人
contacts_phone 联系电话
contacts_mobile 联系手机号
zhizhao 营业执照
food_production_license 食品流通许可证
*/
func
vendorEdit
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"供应商编辑"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--新增供应商
//- 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
/*
//user_token(验证token)
ven_name 供应商名
province 省id
city 市id
district 区id
address 详细地址
contacts_name 联系人
contacts_phone 联系电话
contacts_mobile 联系手机号
zhizhao 营业执照
food_production_license 食品流通许可证
*/
func
vendorAdd
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"新增供应商"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/View/Cell/TitleAndOnlyBtnCell.xib
View file @
f205fe2b
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
@@ -10,7 +11,7 @@
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
rowHeight=
"92"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndOnlyBtnCell"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
rowHeight=
"92"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndOnlyBtnCell"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
...
...
@@ -127,7 +128,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.swift
View file @
f205fe2b
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/供应商管理/GYSGLViewController.xib
View file @
f205fe2b
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"GYSGLViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"GYSGLViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"btmBtn"
destination=
"UDG-2C-6uA"
id=
"B0W-e7-mba"
/>
<outlet
property=
"listView"
destination=
"dCx-Vv-3aF"
id=
"OCD-Y1-cx8"
/>
...
...
@@ -32,6 +33,9 @@
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Vr9-L7-cxd"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wSI-pD-gTn"
>
<rect
key=
"frame"
x=
"0.0"
y=
"618"
width=
"375"
height=
"49"
/>
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
View file @
f205fe2b
...
...
@@ -10,7 +10,11 @@ import UIKit
protocol
GYSListViewControllerDelegate
{
func
GYSListViewControllerGetGYS
(
sender
:
VendorListDataModel
)
}
class
GYSListViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
class
GYSListViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
GYSGLViewControllerDelegate
{
func
GYSGLViewControllerFinish
()
{
listView
.
mj_header
?
.
beginRefreshing
()
}
var
delegate
:
GYSListViewControllerDelegate
?
var
searchV
:
SearchBarView
?
=
nil
var
selectTarget
:
VendorListDataModel
?
...
...
@@ -25,7 +29,6 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
@objc
func
loadData
(){
print
(
"加载数据"
)
page
=
1
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyWord
as
Any
,
...
...
@@ -123,6 +126,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
}
}
else
{
let
vc
=
GYSGLViewController
()
vc
.
barT
=
"新增供应商信息"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
...
...
@@ -178,8 +182,28 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
barTitle
==
"供应商管理"
{
let
data
=
datas
[
indexPath
.
row
]
let
vc
=
GYSGLViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
vc
.
delegate
=
self
vc
.
barT
=
"编辑供应商信息"
vc
.
gysName
=
data
.
ven_name
!
vc
.
provinceIndex
=
data
.
province
!
vc
.
cityIndex
=
data
.
city
!
vc
.
areaIndex
=
data
.
district
!
vc
.
detailDzStr
=
data
.
address
!
if
data
.
contacts_phone
!=
nil
{
vc
.
telNum
=
data
.
contacts_phone
!
}
vc
.
ven_id
=
data
.
ven_id
!
vc
.
nameStr
=
data
.
contacts_name
!
vc
.
phoneNum
=
data
.
contacts_mobile
!
vc
.
zhizhao
=
data
.
zhizhao
!
vc
.
food_production_license
=
data
.
food_production_license
!
vc
.
img1
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
data
.
zhizhao
!
),
placeholderImage
:
UIImage
(
named
:
"worktest1"
))
print
(
"img = "
,
SERVERCE_ImageHost
+
data
.
zhizhao
!
)
vc
.
img2
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
data
.
food_production_license
!
),
placeholderImage
:
UIImage
(
named
:
"worktest1"
))
self
.
navigationController
!.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
selectTarget
=
datas
[
indexPath
.
row
]
listView
.
reloadData
()
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
f205fe2b
...
...
@@ -525,6 +525,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case
93
:
//供应商管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let
vc
=
GYSListViewController
()
vc
.
barTitle
=
"供应商管理"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
113
:
//管理员列表
...
...
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