Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
komatsu-lease-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
komatsu
komatsu-lease-app
Commits
7772cabc
Commit
7772cabc
authored
Jul 19, 2023
by
14699
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'fix-bug修改'
parent
65570695
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
10 deletions
+35
-10
Pay.vue
src/modules/makeRepayment/components/Pay.vue
+30
-6
plan.vue
src/modules/makeRepayment/views/plan.vue
+2
-1
projectForm.vue
src/modules/projectList/views/projectForm.vue
+3
-3
No files found.
src/modules/makeRepayment/components/Pay.vue
View file @
7772cabc
...
...
@@ -188,7 +188,6 @@ const payMoney = () => {
const
goPayApp
=
async
(
param
)
=>
{
let
res
=
await
api
.
getPay
({...
param
,
receivets
:
+
new
Date
()
+
''
,});
console
.
log
(
res
)
let
paramsData
=
{}
if
(
res
.
success
){
if
(
res
.
rows
[
0
].
appPayRequest
){
...
...
@@ -220,14 +219,18 @@ const goPayApp = async (param) => {
};
const
unifyPay
=
(
paramsData
)
=>
{
console
.
log
(
"paramsData:"
,
paramsData
)
window
.
unifyPayBackNormal
=
function
(
res
){
console
.
log
(
'UnifyPay normal =
\
n
\
n'
+
res
)
emit
(
'paySuccess'
,
res
);
let
result
=
res
try
{
result
=
JSON
.
parse
(
res
)
}
catch
(
e
)
{
result
=
res
}
emit
(
'paySuccess'
,
result
);
};
window
.
unifyPayBackException
=
function
(
res
)
{
console
.
log
(
'UnifyPay exception =
\
n
\
n'
+
res
)
emit
(
'payFail'
,
res
);
let
result
=
getPayResult
(
res
)
emit
(
'payFail'
,
res
ult
);
};
let
params
=
{
className
:
"UnifyPayBridge"
,
...
...
@@ -244,6 +247,27 @@ const handleFinishAmount = () => {
pay
();
}
const
getPayResult
=
(
res
)
=>
{
let
resultList
=
[
{
resultCode
:
"0000"
,
resultMsg
:
"支付成功"
},
{
resultCode
:
"1000"
,
resultMsg
:
"取消支付"
},
{
resultCode
:
"1001"
,
resultMsg
:
"参数错误"
},
{
resultCode
:
"1002"
,
resultMsg
:
"网络连接错误"
},
{
resultCode
:
"1003"
,
resultMsg
:
"支付客户端未安装"
},
{
resultCode
:
"2001"
,
resultMsg
:
"订单处理中"
},
{
resultCode
:
"2002"
,
resultMsg
:
"订单号重复"
},
{
resultCode
:
"2003"
,
resultMsg
:
"订单支付失败"
},
{
resultCode
:
"9999"
,
resultMsg
:
"其他支付错误"
}
];
let
result
=
{
resultCode
:
"9999"
,
resultMsg
:
"支付失败,请联系管理员!"
}
for
(
let
i
=
0
;
i
<
resultList
.
length
;
i
++
){
if
(
res
.
indexOf
(
resultList
[
i
].
resultCode
)
!=
-
1
){
result
=
resultList
[
i
]
}
}
return
result
;
}
</
script
>
...
...
src/modules/makeRepayment/views/plan.vue
View file @
7772cabc
...
...
@@ -83,6 +83,7 @@ const handleColse = (param) => {
// 支付成功回调
const
paySuccessFunction
=
(
result
)
=>
{
console
.
log
(
"支付成功"
,
result
)
showModal
.
value
=
false
;
let
message
=
'支付成功!'
Dialog
.
confirm
({
...
...
@@ -96,8 +97,8 @@ const paySuccessFunction = (result) => {
// 支付失败回调
const
payFailFunction
=
(
result
)
=>
{
console
.
log
(
"支付失败"
,
result
)
showModal
.
value
=
false
;
//{"resultCode":"1000","resultMsg":"用户取消了云闪付支付"}
let
message
=
result
.
resultMsg
?
result
.
resultMsg
:
'支付失败,请联系管理员!'
Dialog
.
confirm
({
title
:
'提示'
,
...
...
src/modules/projectList/views/projectForm.vue
View file @
7772cabc
...
...
@@ -124,7 +124,7 @@ const formBillingInfoArr = [
{
title
:
'发票抬头'
,
propName
:
'invoiceTitle'
,
type
:
'
input
'
,
type
:
'
textarea
'
,
value
:
''
,
isRequired
:
false
,
disabled
:
true
...
...
@@ -140,7 +140,7 @@ const formBillingInfoArr = [
{
title
:
'发票地址'
,
propName
:
'invoiceBpAddressPhoneNum'
,
type
:
'
input
'
,
type
:
'
textarea
'
,
value
:
''
,
isRequired
:
false
,
disabled
:
true
...
...
@@ -148,7 +148,7 @@ const formBillingInfoArr = [
{
title
:
'发票开户行'
,
propName
:
'invoiceBpBankAccount'
,
type
:
'
input
'
,
type
:
'
textarea
'
,
value
:
''
,
isRequired
:
false
,
disabled
:
true
...
...
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