Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-finance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-finance
Commits
fbffce48
提交
fbffce48
authored
9月 15, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:代码优化
上级
09d17da0
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
48 行增加
和
42 行删除
+48
-42
Detail.vue
src/modules/payment/views/Detail.vue
+48
-42
没有找到文件。
src/modules/payment/views/Detail.vue
浏览文件 @
fbffce48
<
template
>
<div>
<template
v-if=
"dealList.payment_status === '70'"
>
<el-button
@
click=
"fetchConfirmTicketDetail('FINANCE')"
type=
"danger"
v-if=
"isFINANCE && dealList.finance_confirm_status === 0"
>
财务确认足额支付
</el-button
>
<el-button
@
click=
"fetchConfirmTicketDetail('BUSINESS')"
type=
"danger"
v-if=
"isBUSINESS && dealList.business_confirm_status === 0"
>
业务确认足额支付
</el-button
>
</
template
>
<
template
v-if=
"dealList.payment_status === '80'"
>
<el-button
@
click=
"fetchCancelTicketDetail('FINANCE')"
type=
"danger"
v-if=
"isFINANCE && dealList.finance_confirm_status === 1"
>
财务取消足额支付
</el-button
>
<el-button
@
click=
"fetchCancelTicketDetail('BUSINESS')"
type=
"danger"
v-if=
"isBUSINESS && dealList.business_confirm_status === 1"
>
业务取消足额支付
</el-button
>
</
template
>
<!-- 财务 -->
<el-button
type=
"danger"
v-if=
"
isFINANCE &&
((this.dealList.finance_confirm_status === 0 && this.dealList.payment_status === '70') ||
(this.dealList.finance_confirm_status === 1 && this.dealList.payment_status === '80'))
"
@
click=
"fetchToTicketDetail('FINANCE')"
>
{{
btnText1
}}
</el-button>
<!-- 业务 -->
<el-button
type=
"danger"
v-if=
"
isBUSINESS &&
((this.dealList.business_confirm_status === 0 && this.dealList.payment_status === '70') ||
(this.dealList.business_confirm_status === 1 && this.dealList.payment_status === '80'))
"
@
click=
"fetchToTicketDetail('BUSINESS')"
>
{{
btnText2
}}
</el-button>
<app-card
title=
"订单信息"
style=
"margin-top: 20px"
>
<Order
:dealList=
"dealList"
/>
</app-card>
...
...
@@ -88,6 +80,22 @@ export default {
this
.
roles
.
includes
(
'dean_of_admissions'
)
||
this
.
roles
.
includes
(
'developer'
)
)
},
// eslint-disable-next-line vue/return-in-computed-property
btnText1
()
{
if
(
this
.
dealList
.
finance_confirm_status
===
0
&&
this
.
dealList
.
payment_status
===
'70'
)
{
return
'财务确认足额支付'
}
else
if
(
this
.
dealList
.
finance_confirm_status
===
1
&&
this
.
dealList
.
payment_status
===
'80'
)
{
return
'财务取消足额支付'
}
},
// eslint-disable-next-line vue/return-in-computed-property
btnText2
()
{
if
(
this
.
dealList
.
business_confirm_status
===
0
&&
this
.
dealList
.
payment_status
===
'70'
)
{
return
'业务确认足额支付'
}
else
if
(
this
.
dealList
.
business_confirm_status
===
1
&&
this
.
dealList
.
payment_status
===
'80'
)
{
return
'业务取消足额支付'
}
}
},
beforeMount
()
{
...
...
@@ -107,25 +115,23 @@ export default {
this
.
$message
.
error
(
error
.
message
)
})
},
//
确认
fetch
Confirm
TicketDetail
(
val
)
{
//
财务(业务)确认(取消)支付
fetch
To
TicketDetail
(
val
)
{
const
params
=
{
confirm_type
:
val
,
id
:
this
.
id
}
confirmPayDetail
(
params
).
then
(
res
=>
{
this
.
fetchTicketDetail
()
})
},
// 取消
fetchCancelTicketDetail
(
val
)
{
const
params
=
{
confirm_type
:
val
,
id
:
this
.
id
if
(
this
.
dealList
.
payment_status
===
'70'
)
{
// 确认
confirmPayDetail
(
params
).
then
(
res
=>
{
this
.
fetchTicketDetail
()
})
}
else
{
// 取消
cancelPayDetail
(
params
).
then
(
res
=>
{
this
.
fetchTicketDetail
()
})
}
cancelPayDetail
(
params
).
then
(
res
=>
{
this
.
fetchTicketDetail
()
})
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论