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
8c349793
Commit
8c349793
authored
Jun 13, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已接入的采购接口(撤销入库,审核,列表,详情)
parent
5ef87967
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
173 additions
and
67 deletions
+173
-67
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+1
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+4
-4
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+4
-0
GeliBusinessPlatform/Model/PurchaseInterface.swift
GeliBusinessPlatform/Model/PurchaseInterface.swift
+32
-0
GeliBusinessPlatform/Model/PurchaseModel/PurchaseModel.swift
GeliBusinessPlatform/Model/PurchaseModel/PurchaseModel.swift
+1
-1
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+1
-1
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+3
-3
GeliBusinessPlatform/ViewController/新增采购单/CGDCell.xib
GeliBusinessPlatform/ViewController/新增采购单/CGDCell.xib
+6
-1
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.swift
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.swift
+70
-7
GeliBusinessPlatform/ViewController/采购单详情/CGDListCell.swift
GeliBusinessPlatform/ViewController/采购单详情/CGDListCell.swift
+50
-49
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
+0
-0
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.xib
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.xib
+1
-0
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
8c349793
...
@@ -1731,6 +1731,7 @@
...
@@ -1731,6 +1731,7 @@
F94A315024626D4000FEC38E
/* 工作中心 */
,
F94A315024626D4000FEC38E
/* 工作中心 */
,
E0707DC82462475700E039A8
/* 地图 */
,
E0707DC82462475700E039A8
/* 地图 */
,
E0BE8A8D245A9B6500E80134
/* 应付账款 */
,
E0BE8A8D245A9B6500E80134
/* 应付账款 */
,
E0EFB9C324930BEE005FB0CD
/* 采购单列表 */
,
E04DFF092490695A002A6931
/* 采购单详情 */
,
E04DFF092490695A002A6931
/* 采购单详情 */
,
E07B1E75245966C90055BA3C
/* 新增采购单 */
,
E07B1E75245966C90055BA3C
/* 新增采购单 */
,
E07B1E64245925F30055BA3C
/* 供应商管理 */
,
E07B1E64245925F30055BA3C
/* 供应商管理 */
,
...
@@ -1747,7 +1748,6 @@
...
@@ -1747,7 +1748,6 @@
E09F4C9A2452BEA000BE033D
/* 寄派方式 */
,
E09F4C9A2452BEA000BE033D
/* 寄派方式 */
,
E0B94620245671AD00FBEC9A
/* 代客下单(购物) */
,
E0B94620245671AD00FBEC9A
/* 代客下单(购物) */
,
E042F72B245272AC00CDFA12
/* 代客下单(货运) */
,
E042F72B245272AC00CDFA12
/* 代客下单(货运) */
,
E0EFB9C324930BEE005FB0CD
/* 采购单列表 */
,
F961D2722450373B007FBE70
/* 订单列表 */
,
F961D2722450373B007FBE70
/* 订单列表 */
,
E0F97B05245161E6001BD600
/* 商品详情 */
,
E0F97B05245161E6001BD600
/* 商品详情 */
,
F969BF17244EE42700C79953
/* 商品管理 */
,
F969BF17244EE42700C79953
/* 商品管理 */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8c349793
No preview for this file type
GeliBusinessPlatform/Define/Define.swift
View file @
8c349793
...
@@ -27,10 +27,10 @@ let systemVersion = (UIDevice.current.systemVersion as String)
...
@@ -27,10 +27,10 @@ let systemVersion = (UIDevice.current.systemVersion as String)
//接口地址
//接口地址
//test
//test
//
let SERVERCE_ImageHost = "https://z.gelifood.com/"
let
SERVERCE_ImageHost
=
"https://z.gelifood.com/"
//
let SERVERCE_HOST = "https://z.gelifood.com/admin/"
let
SERVERCE_HOST
=
"https://z.gelifood.com/admin/"
let
SERVERCE_ImageHost
=
"https://zx.gelifood.com/"
//
let SERVERCE_ImageHost = "https://zx.gelifood.com/"
let
SERVERCE_HOST
=
"https://zx.gelifood.com/admin/"
//
let SERVERCE_HOST = "https://zx.gelifood.com/admin/"
//online
//online
//视图常量
//视图常量
...
...
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
8c349793
...
@@ -150,5 +150,9 @@
...
@@ -150,5 +150,9 @@
<string>
Purchase/purchaseOrderList
</string>
<string>
Purchase/purchaseOrderList
</string>
<key>
采购单详情
</key>
<key>
采购单详情
</key>
<string>
Purchase/purchaseOrderDetail
</string>
<string>
Purchase/purchaseOrderDetail
</string>
<key>
审核采购单
</key>
<string>
Purchase/purchaseOrderAudit
</string>
<key>
撤销入库
</key>
<string>
Purchase/backOut
</string>
</dict>
</dict>
</plist>
</plist>
GeliBusinessPlatform/Model/PurchaseInterface.swift
View file @
8c349793
...
@@ -71,3 +71,35 @@ func purchaseOrderDetail(_ params:[String:Any],success:@escaping (_ res:Any)->()
...
@@ -71,3 +71,35 @@ func purchaseOrderDetail(_ params:[String:Any],success:@escaping (_ res:Any)->()
failture
(
error
)
failture
(
error
)
}
}
}
}
//MARK:--审核采购单
/* 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
po_id 采购单id
order_status 状态,2审核通过,3审核不通过
reason 不通过备注,不通过时必选
*/
func
purchaseOrderAudit
(
_
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:--撤销入库
/* 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
po_id 采购单id
*/
func
backOut
(
_
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/Model/PurchaseModel/PurchaseModel.swift
View file @
8c349793
...
@@ -139,7 +139,7 @@ class PurchaseOrderDetailDataModel: Mappable {
...
@@ -139,7 +139,7 @@ class PurchaseOrderDetailDataModel: Mappable {
var
reason
:
String
?
//审核不通过原因
var
reason
:
String
?
//审核不通过原因
var
ven_id
:
Int
?
var
ven_id
:
Int
?
var
purchase_time
:
Int
?
//采购时间
var
purchase_time
:
Double
?
//采购时间
var
user_name
:
String
?
//制单人
var
user_name
:
String
?
//制单人
var
pay_status
:
Int
?
//付款状态(1未付款,2已付款,3月结,4欠款)
var
pay_status
:
Int
?
//付款状态(1未付款,2已付款,3月结,4欠款)
...
...
GeliBusinessPlatform/Model/UpDataModel.swift
View file @
8c349793
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
Foundation
import
Foundation
import
ObjectMapper
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单
,审核采购单,撤销入库
class
UpDataModel
:
Mappable
{
class
UpDataModel
:
Mappable
{
var
code
:
Int
?
var
code
:
Int
?
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
8c349793
...
@@ -518,9 +518,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -518,9 +518,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
return
case
92
:
//采购订单管理
case
92
:
//采购订单管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
//
HUD.flash(.label("敬请期待"),delay: 1.2)
//
let vc = CGDListViewController()
let
vc
=
CGDListViewController
()
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
93
:
//供应商管理
case
93
:
//供应商管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// HUD.flash(.label("敬请期待"),delay: 1.2)
...
...
GeliBusinessPlatform/ViewController/新增采购单/CGDCell.xib
View file @
8c349793
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<action
selector=
"delAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"VeY-uG-gFs"
/>
<action
selector=
"delAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"VeY-uG-gFs"
/>
</connections>
</connections>
</button>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"标题
标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题
"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"53n-Ij-aLj"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"标题"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"53n-Ij-aLj"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"311.5"
height=
"37"
/>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"311.5"
height=
"37"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"37"
id=
"2Td-7E-Tpz"
/>
<constraint
firstAttribute=
"height"
constant=
"37"
id=
"2Td-7E-Tpz"
/>
...
@@ -109,6 +109,7 @@
...
@@ -109,6 +109,7 @@
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
</subviews>
</subviews>
<color
key=
"backgroundColor"
name=
"白色背景色"
/>
<constraints>
<constraints>
<constraint
firstItem=
"xMe-fM-o6d"
firstAttribute=
"top"
secondItem=
"kBE-rT-dOt"
secondAttribute=
"bottom"
constant=
"15"
id=
"1qd-FP-LcT"
/>
<constraint
firstItem=
"xMe-fM-o6d"
firstAttribute=
"top"
secondItem=
"kBE-rT-dOt"
secondAttribute=
"bottom"
constant=
"15"
id=
"1qd-FP-LcT"
/>
<constraint
firstItem=
"kBE-rT-dOt"
firstAttribute=
"top"
secondItem=
"uED-Ck-HCh"
secondAttribute=
"bottom"
constant=
"10"
id=
"DXT-Nj-hCW"
/>
<constraint
firstItem=
"kBE-rT-dOt"
firstAttribute=
"top"
secondItem=
"uED-Ck-HCh"
secondAttribute=
"bottom"
constant=
"10"
id=
"DXT-Nj-hCW"
/>
...
@@ -132,6 +133,7 @@
...
@@ -132,6 +133,7 @@
<constraint
firstItem=
"HF8-ja-1Mp"
firstAttribute=
"centerX"
secondItem=
"0cf-lx-CTb"
secondAttribute=
"centerX"
id=
"zy8-Zj-6iF"
/>
<constraint
firstItem=
"HF8-ja-1Mp"
firstAttribute=
"centerX"
secondItem=
"0cf-lx-CTb"
secondAttribute=
"centerX"
id=
"zy8-Zj-6iF"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
<color
key=
"backgroundColor"
name=
"白色背景色"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<connections>
<outlet
property=
"btnWidth"
destination=
"IJP-pf-u5R"
id=
"64D-9I-XmJ"
/>
<outlet
property=
"btnWidth"
destination=
"IJP-pf-u5R"
id=
"64D-9I-XmJ"
/>
...
@@ -161,5 +163,8 @@
...
@@ -161,5 +163,8 @@
<namedColor
name=
"灰色分界线"
>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/采购单列表/CGDListVC.swift
View file @
8c349793
...
@@ -9,14 +9,28 @@
...
@@ -9,14 +9,28 @@
import
UIKit
import
UIKit
import
ViewAnimator
//cell动效
import
ViewAnimator
//cell动效
class
CGDListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
GeliAlertViewDelegate
,
CGDListCellDelegate
{
class
CGDListVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
GeliAlertViewDelegate
,
CGDListCellDelegate
,
CGDXQVcDelegate
{
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"po_id"
:
sender
.
tag
as
Any
]
backOut
(
dict
,
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"撤销成功"
),
delay
:
1.2
)
self
.
listView
.
mj_header
?
.
beginRefreshing
()
})
{
(
error
)
in
}
}
func
CGDXQVcFinishAction
()
{
listView
.
mj_header
?
.
beginRefreshing
()
}
var
page
:
Int
=
0
var
page
:
Int
=
0
var
isUpData
=
false
var
isUpData
=
false
var
keyword
=
""
var
keyword
=
""
var
orderStatus
=
1
var
orderStatus
=
1
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
datas
:
Array
<
PurchaseOrderListDataModel
>
=
[]
var
datas
:
Array
<
PurchaseOrderListDataModel
>
=
[]
...
@@ -133,18 +147,67 @@ class CGDListVC: BaseViewController , UITableViewDelegate, UITableViewDataSource
...
@@ -133,18 +147,67 @@ class CGDListVC: BaseViewController , UITableViewDelegate, UITableViewDataSource
let
model
=
datas
[
indexPath
.
row
]
let
model
=
datas
[
indexPath
.
row
]
let
vc
=
CGDXQVc
()
let
vc
=
CGDXQVc
()
vc
.
po_id
=
model
.
po_id
vc
.
po_id
=
model
.
po_id
vc
.
delegate
=
self
var
btnStr
:
Array
<
String
>
=
[]
switch
model
.
order_status
{
//订单状态(1未审核,2审核通过,3审核不通过,4已撤销,5已完成)
case
1
:
// if 权限 {
btnStr
=
[
"不通过"
,
"通过"
]
// }
break
case
2
:
//入库状态(1未入库,2部分入库,3已入库)
switch
model
.
push_status
{
case
1
:
btnStr
=
[
"入库"
]
break
case
2
:
btnStr
=
[
"撤销入库"
,
"补录入库"
]
break
default
:
btnStr
=
[
"撤销入库"
]
break
}
break
default
:
break
}
vc
.
btnTitle
=
btnStr
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//MARK: - 点击cell 按钮
//MARK: - 点击cell 按钮
func
allBtnSubmit
(
sender
:
UIButton
)
{
func
allBtnSubmit
(
sender
:
UIButton
)
{
print
(
"cgd == "
,
sender
.
titleLabel
!.
text
,
sender
.
tag
)
let
model
=
datas
[
sender
.
tag
]
switch
sender
.
titleLabel
?
.
text
{
case
"撤销入库"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
"是否撤销入库?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
model
.
po_id
!
self
.
view
.
window
?
.
addSubview
(
alertView
)
break
case
"入库"
:
break
case
"补录入库"
:
break
case
"修改信息"
:
break
case
"取消"
:
break
default
:
break
}
}
}
//MARK: - alertView delegate
//MARK: - alertView delegate
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
}
//MARK:-- tablev 处理
//MARK:-- tablev 处理
var
listView
:
UITableView
!
var
listView
:
UITableView
!
...
@@ -183,7 +246,7 @@ class CGDListVC: BaseViewController , UITableViewDelegate, UITableViewDataSource
...
@@ -183,7 +246,7 @@ class CGDListVC: BaseViewController , UITableViewDelegate, UITableViewDataSource
print
(
"加载数据"
)
print
(
"加载数据"
)
isUpData
=
true
isUpData
=
true
page
=
1
page
=
1
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
,
"order_status"
:
orderStatus
as
Any
]
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
,
"order_status"
:
orderStatus
as
Any
]
purchaseOrderList
(
dic
,
success
:
{
(
data
)
in
purchaseOrderList
(
dic
,
success
:
{
(
data
)
in
self
.
datas
.
removeAll
()
self
.
datas
.
removeAll
()
...
...
GeliBusinessPlatform/ViewController/采购单详情/CGDListCell.swift
View file @
8c349793
...
@@ -63,53 +63,54 @@ class CGDListCell: UITableViewCell {
...
@@ -63,53 +63,54 @@ class CGDListCell: UITableViewCell {
view
.
removeFromSuperview
()
view
.
removeFromSuperview
()
}
}
var
tempBtn
:
UIButton
?
=
nil
var
tempBtn
:
UIButton
?
=
nil
arr
.
forEach
{
(
str
)
in
arr
.
forEach
{
(
str
)
in
let
rightBtn
=
UIButton
(
type
:
.
custom
)
let
rightBtn
=
UIButton
(
type
:
.
custom
)
rightBtn
.
layer
.
borderWidth
=
1
rightBtn
.
layer
.
borderWidth
=
1
rightBtn
.
tag
=
index
rightBtn
.
tag
=
index
rightBtn
.
backgroundColor
=
UIColor
.
white
rightBtn
.
backgroundColor
=
UIColor
.
white
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)?
.
cgColor
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)?
.
cgColor
rightBtn
.
setTitleColor
(
UIColor
.
init
(
named
:
"按钮渐变色上"
),
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
.
init
(
named
:
"按钮渐变色上"
),
for
:
.
normal
)
rightBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
rightBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
rightBtn
.
layer
.
cornerRadius
=
2
rightBtn
.
layer
.
cornerRadius
=
2
rightBtn
.
isUserInteractionEnabled
=
true
if
str
as!
String
==
"查看详情"
{
if
str
as!
String
==
"查看详情"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"修改信息"
{
rightBtn
.
isUserInteractionEnabled
=
false
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"修改信息"
{
rightBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
rightBtn
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
rightBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)?
.
cgColor
rightBtn
.
backgroundColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)
}
else
if
str
as!
String
==
"取消"
{
rightBtn
.
layer
.
borderColor
=
UIColor
.
init
(
named
:
"按钮渐变色上"
)?
.
cgColor
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"取消"
{
}
else
if
str
as!
String
==
"撤销入库"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"撤销入库"
{
}
else
if
str
as!
String
==
"入库"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"入库"
{
}
else
if
str
as!
String
==
"补录入库"
{
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
else
if
str
as!
String
==
"补录入库"
{
}
rightBtn
.
setTitle
(
str
,
for
:
.
normal
)
}
btnBgView
.
addSubview
(
rightBtn
)
if
tempBtn
==
nil
{
btnBgView
.
addSubview
(
rightBtn
)
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
if
tempBtn
==
nil
{
make
.
width
.
equalTo
(
82*
glscale
)
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
82*
glscale
)
make
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
30
)
make
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
}
make
.
top
.
equalTo
(
0
)
}
else
{
}
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
}
else
{
make
.
width
.
equalTo
(
82*
glscale
)
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
82*
glscale
)
make
.
right
.
equalTo
(
tempBtn
!.
snp_left
)
.
offset
(
-
15
)
make
.
height
.
equalTo
(
30
)
make
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
tempBtn
!.
snp_left
)
.
offset
(
-
15
)
}
make
.
top
.
equalTo
(
0
)
}
}
rightBtn
.
addTarget
(
self
,
action
:
#selector(
btnAction(sender:)
)
,
for
:
.
touchUpInside
)
}
tempBtn
=
rightBtn
rightBtn
.
addTarget
(
self
,
action
:
#selector(
btnAction(sender:)
)
,
for
:
.
touchUpInside
)
}
tempBtn
=
rightBtn
}
}
}
...
@@ -210,7 +211,7 @@ class CGDListCell: UITableViewCell {
...
@@ -210,7 +211,7 @@ class CGDListCell: UITableViewCell {
make
.
left
.
equalTo
(
15
)
make
.
left
.
equalTo
(
15
)
make
.
bottom
.
top
.
equalTo
(
0
)
make
.
bottom
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
80*
glscale
)
make
.
right
.
equalTo
(
-
80*
glscale
)
}
}
let
lbl2
=
UILabel
()
let
lbl2
=
UILabel
()
...
@@ -269,7 +270,7 @@ class CGDListCell: UITableViewCell {
...
@@ -269,7 +270,7 @@ class CGDListCell: UITableViewCell {
make
.
left
.
equalTo
(
15
)
make
.
left
.
equalTo
(
15
)
make
.
bottom
.
top
.
equalTo
(
0
)
make
.
bottom
.
top
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
80*
glscale
)
make
.
right
.
equalTo
(
-
80*
glscale
)
}
}
let
lbl2
=
UILabel
()
let
lbl2
=
UILabel
()
...
...
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
View file @
8c349793
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.xib
View file @
8c349793
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"CGDXQVc"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"CGDXQVc"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"btmColor"
destination=
"XSf-8D-3tt"
id=
"14B-Gc-l2f"
/>
<outlet
property=
"btmView"
destination=
"AfC-cy-CDK"
id=
"OZa-qe-r81"
/>
<outlet
property=
"btmView"
destination=
"AfC-cy-CDK"
id=
"OZa-qe-r81"
/>
<outlet
property=
"listView"
destination=
"xUS-ih-bIA"
id=
"8g9-zc-R5S"
/>
<outlet
property=
"listView"
destination=
"xUS-ih-bIA"
id=
"8g9-zc-R5S"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
...
...
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