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
4e1eac1a
Commit
4e1eac1a
authored
Jun 13, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加采购单修改支付状态接口
parent
7d7f62de
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
32 deletions
+51
-32
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+2
-0
GeliBusinessPlatform/Model/PurchaseInterface.swift
GeliBusinessPlatform/Model/PurchaseInterface.swift
+17
-0
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+1
-1
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+9
-6
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
+0
-1
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
+22
-24
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4e1eac1a
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
4e1eac1a
...
...
@@ -154,5 +154,7 @@
<string>
Purchase/purchaseOrderAudit
</string>
<key>
撤销入库
</key>
<string>
Purchase/backOut
</string>
<key>
采购单修改支付状态
</key>
<string>
Purchase/payStatus
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/PurchaseInterface.swift
View file @
4e1eac1a
...
...
@@ -103,3 +103,20 @@ func backOut(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:@e
failture
(
error
)
}
}
//MARK:--采购单修改支付状态
/* 说明:供应商信息在列表中已经全部列出,详情功能拿列表数据即可
//params-key(
//user_token(验证token)
po_id 采购单id
pay_type 支付类型:0未支付,1现金,2转账(私),3转账(公),4转账(微信),5转账(支付宝)
pay_status 付款状态:1未付款,2已付款,3月结,4欠款
*/
func
payStatus
(
_
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/UpDataModel.swift
View file @
4e1eac1a
...
...
@@ -8,7 +8,7 @@
import
Foundation
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库
,采购单修改支付状态
class
UpDataModel
:
Mappable
{
var
code
:
Int
?
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
4e1eac1a
...
...
@@ -141,8 +141,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
selectTbv
.
isScrollEnabled
=
false
ipdVHeight
.
constant
=
0.001
}
func
setKuWeiView
(){
IQKeyboardManager
.
shared
.
resignFirstResponder
()
...
...
@@ -218,11 +217,12 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"selectTbvCell"
)
as!
TitleAndSelectCell
cell
.
titleLbl
.
text
=
dataArr
[
indexPath
.
row
]
as!
String
cell
.
titleLbl
.
text
=
dataArr
[
indexPath
.
row
]
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
cell
.
selectBtn
.
isSelected
=
false
if
isMultipleS
==
true
{
for
item
in
selectArray
!
{
if
item
==
indexPath
.
row
{
...
...
@@ -236,11 +236,13 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
cell
.
selectBtn
.
isSelected
=
true
}
}
if
deSelectArr
.
count
>
0
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
selectBtn
.
isSelected
=
true
for
i
in
deSelectArr
{
if
i
==
indexPath
.
row
{
deSelectArr
.
forEach
{
(
i
)
in
if
i
==
indexPath
.
row
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"#999999"
)
cell
.
selectBtn
.
isUserInteractionEnabled
=
false
cell
.
selectBtn
.
isSelected
=
false
...
...
@@ -249,6 +251,8 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
return
cell
}
@IBAction
func
submitClick
(
_
sender
:
Any
)
{
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
&&
isOnlySelectKuWei
==
false
{
...
...
@@ -339,7 +343,6 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
func
deleClickAction
(
sender
:
Int
)
{
print
(
"sender == "
,
sender
)
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
&&
isOnlySelectKuWei
==
false
{
kuWeiArr
.
remove
(
at
:
sender
)
delegate
?
.
GLAlertSelectDelAction
?(
sender
:
kuWeiArr
)
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
View file @
4e1eac1a
...
...
@@ -76,7 +76,6 @@
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aRc-4S-xXS"
>
<rect
key=
"frame"
x=
"0.0"
y=
"147.66666666666663"
width=
"414"
height=
"102.33333333333331"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"5Tz-Qf-U57"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"OfK-fO-bG2"
/>
...
...
GeliBusinessPlatform/ViewController/采购单详情/CGDXQVc.swift
View file @
4e1eac1a
...
...
@@ -69,14 +69,15 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
//MARK: - cell delegate
var
titleArr
=
[
"采购单号"
,
"采购日期"
,
"供应商"
,
"采购人"
,
"采购类型"
,
"支付方式"
,
"支付
类型
"
,
"备注"
]
var
titleArr
=
[
"采购单号"
,
"采购日期"
,
"供应商"
,
"采购人"
,
"采购类型"
,
"支付方式"
,
"支付
状态
"
,
"备注"
]
var
holderArr
=
[
"-"
,
"-"
,
"-"
,
"-"
,
"-"
,
"未支付"
,
"未付款"
,
"-"
]
let
zfTypeArr
=
[
"未付款"
,
"欠款"
,
"月结"
,
"已付款"
]
let
zfTypeArr
=
[
"未付款"
,
"已付款"
,
"月结"
,
"欠款"
]
let
zfWayArr
=
[
"未支付"
,
"现金"
,
"转账(私)"
,
"转账(公)"
,
"转账(微信)"
,
"转账(支付宝)"
]
var
pay
Type
=
0
//支付方式
var
pay
Statu
s
=
0
//支付状态
var
pay
Zt
=
0
//支付方式
var
pay
F
s
=
0
//支付状态
var
model
:
PurchaseOrderDetailDataModel
?
...
...
@@ -137,9 +138,6 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
alterView
.
titleLbl
.
text
=
"请填写不通过原因(必填)"
alterView
.
placerLbl
.
text
=
"请填写不通过原因..."
self
.
view
.
window
?
.
addSubview
(
alterView
)
break
default
:
break
...
...
@@ -229,13 +227,13 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
100
view
.
delegate
=
self
if
payStatus
!=
0
{
view
.
deSelectArr
=
[
0
,
1
,
2
]
}
view
.
selectNum
=
payType
view
.
selectNum
=
payZt
view
.
tempNum
=
view
.
selectNum
view
.
titleLbl
.
text
=
"请选择支付状态"
view
.
dataArr
=
zfTypeArr
if
payFs
!=
0
{
view
.
deSelectArr
=
[
0
,
2
,
3
]
}
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
...
...
@@ -245,7 +243,7 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
999
view
.
delegate
=
self
view
.
selectNum
=
pay
Statu
s
view
.
selectNum
=
pay
F
s
view
.
tempNum
=
view
.
selectNum
view
.
titleLbl
.
text
=
"请选择支付方式"
view
.
dataArr
=
zfWayArr
...
...
@@ -292,20 +290,20 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
if
view
.
tag
==
999
{
pay
Statu
s
=
selectNum
holderArr
.
insert
(
zfWayArr
[
pay
Statu
s
],
at
:
5
)
pay
F
s
=
selectNum
holderArr
.
insert
(
zfWayArr
[
pay
F
s
],
at
:
5
)
holderArr
.
remove
(
at
:
6
)
if
pay
Statu
s
!=
0
{
pay
Type
=
3
if
pay
F
s
!=
0
{
pay
Zt
=
1
}
else
{
pay
Type
=
0
pay
Zt
=
0
}
holderArr
.
insert
(
zfTypeArr
[
pay
Type
],
at
:
6
)
holderArr
.
insert
(
zfTypeArr
[
pay
Zt
],
at
:
6
)
holderArr
.
remove
(
at
:
7
)
}
else
{
if
pay
Statu
s
==
0
{
pay
Type
=
selectNum
holderArr
.
insert
(
zfTypeArr
[
pay
Type
],
at
:
6
)
if
pay
F
s
==
0
{
pay
Zt
=
selectNum
holderArr
.
insert
(
zfTypeArr
[
pay
Zt
],
at
:
6
)
holderArr
.
remove
(
at
:
7
)
}
}
...
...
@@ -316,10 +314,10 @@ class CGDXQVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAl
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
if
selectnum
!=
10086
{
if
view
.
titleLbl
.
text
==
"请选择支付状态"
{
pay
Status
=
selectnum
pay
Zt
=
selectnum
}
if
view
.
titleLbl
.
text
==
"请选择支付方式"
{
pay
Type
=
selectnum
pay
Fs
=
selectnum
}
}
view
.
removeFromSuperview
()
...
...
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