Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
许珑标
薪瑞通-前端
Commits
c666c1a9
Commit
c666c1a9
authored
Feb 17, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付历史查看;域名备案查询dom优化
parent
60c1b033
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
6 deletions
+124
-6
src/App.vue
src/App.vue
+0
-1
src/api/business/payOrder.js
src/api/business/payOrder.js
+9
-0
src/layout/components/Sidebar/index.vue
src/layout/components/Sidebar/index.vue
+21
-0
src/views/business/payDetail/index.vue
src/views/business/payDetail/index.vue
+92
-3
src/views/business/payOrder/index.vue
src/views/business/payOrder/index.vue
+1
-1
src/views/login.vue
src/views/login.vue
+1
-1
No files found.
src/App.vue
View file @
c666c1a9
...
...
@@ -2,7 +2,6 @@
<div
id=
"app"
>
<router-view
/>
<div
class=
"el-login-footer"
>
<a
class=
"text-color"
href=
"https://beian.miit.gov.cn"
target=
"_blank"
>
<span
style=
"color: #00afff"
>
备案号:冀ICP备2024097706号-1
</span></a>
</div>
</div>
</
template
>
...
...
src/api/business/payOrder.js
View file @
c666c1a9
...
...
@@ -68,3 +68,12 @@ export function doRepay(data) {
data
:
data
})
}
// 查询支付历史
export
function
getDetailHistory
(
query
)
{
return
request
({
url
:
'
/business/payOrder/detail/history
'
,
method
:
'
get
'
,
params
:
query
})
}
src/layout/components/Sidebar/index.vue
View file @
c666c1a9
...
...
@@ -20,6 +20,9 @@
/>
</el-menu>
</el-scrollbar>
<div
class=
"el-login-footer"
>
<a
class=
"text-color"
href=
"https://beian.miit.gov.cn/#/Integrated/index"
target=
"_blank"
>
<span
style=
"color: #00afff"
>
备案号:冀ICP备2024097706号-1
</span></a>
</div>
</div>
</
template
>
...
...
@@ -55,3 +58,21 @@ export default {
}
};
</
script
>
<
style
lang=
"scss"
>
.el-login-footer
{
height
:
40px
;
line-height
:
40px
;
position
:
fixed
;
bottom
:
0
;
width
:
10%
;
text-align
:
center
;
color
:
#fff
;
font-family
:
Arial
;
font-size
:
12px
;
letter-spacing
:
1px
;
}
.text-color
{
width
:
200px
!
important
;
}
</
style
>
src/views/business/payDetail/index.vue
View file @
c666c1a9
...
...
@@ -104,29 +104,94 @@
icon=
"el-icon-s-check"
@
click=
"failReasonView(scope.row)"
>
失败原因
</el-button>
<el-button
v-if=
"viewBatchNo && scope.row.batchNo !== viewBatchNo"
size=
"mini"
type=
"text"
icon=
"el-icon-c-scale-to-original"
@
click=
"viewHistory(scope.row.id)"
>
支付历史
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
<pagination
id=
"getList"
v-show=
"total>0"
:total=
"total"
:page.sync=
"queryParams.pageNum"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<el-dialog
title=
"支付历史"
:visible.sync=
"history.panel"
width=
"80%"
append-to-body
class=
"dialogIp"
>
<el-table
:data=
"history.rows"
>
<el-table-column
label=
"明细流水号"
align=
"center"
prop=
"bizNo"
/>
<el-table-column
label=
"支付类型"
align=
"center"
prop=
"payTitle"
/>
<el-table-column
label=
"收款账户"
align=
"center"
>
<el-table-column
label=
"户名"
align=
"center"
prop=
"payeeAccName"
/>
<el-table-column
label=
"账户"
align=
"center"
prop=
"payeeAccNo"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"payeeAccType"
>
<
template
slot-scope=
"scope"
>
<el-row>
<el-col
:span=
"12"
>
<dict-tag
:options=
"dict.type.payee_acc_type"
:value=
"scope.row.payeeAccType"
/>
</el-col>
<el-col
:span=
"12"
>
<el-tag
v-if=
"scope.row.isPrivateAcc && scope.row.isPrivateAcc === 1"
>
对私账户
</el-tag>
<el-tag
v-if=
"scope.row.isPrivateAcc && scope.row.isPrivateAcc === 2"
>
对公账户
</el-tag>
</el-col>
</el-row>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"交易金额"
align=
"center"
prop=
"amount"
/>
<el-table-column
label=
"手续费"
align=
"center"
prop=
"transFee"
/>
<el-table-column
label=
"支付状态"
align=
"center"
prop=
"payStatus"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.pay_status"
:value=
"scope.row.payStatus"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"交易完成时间"
align=
"center"
prop=
"transactionTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
transactionTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
align=
"center"
prop=
"payRemark"
/>
</el-table>
<div
style=
"text-align: right; margin-top: 10px"
>
<el-pagination
id=
"viewHistory"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"history.queryParams.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"history.total"
>
</el-pagination>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"history.panel = false"
>
关 闭
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listPayDetail
}
from
"
@/api/business/payDetail
"
;
import
{
detailVoucherView
}
from
'
@/api/business/payOrder
'
import
{
detailVoucherView
,
getDetailHistory
}
from
'
@/api/business/payOrder
'
import
{
background
}
from
'
quill/ui/icons
'
export
default
{
name
:
"
PayDetail
"
,
dicts
:
[
'
pay_status
'
,
'
pay_type_title
'
,
'
payee_acc_type
'
],
data
()
{
return
{
history
:
{
rows
:
[],
total
:
0
,
panel
:
false
,
queryParams
:
{
pageNum
:
0
,
pageSize
:
10
,
payDetailId
:
0
,
}
},
// 根路径
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
// 遮罩层
...
...
@@ -147,6 +212,7 @@ export default {
title
:
""
,
// 是否显示弹出层
open
:
false
,
viewBatchNo
:
''
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
...
...
@@ -172,6 +238,9 @@ export default {
created
()
{
},
mounted
()
{
if
(
this
.
$route
.
query
.
batchNo
)
{
this
.
viewBatchNo
=
this
.
$route
.
query
.
batchNo
}
if
(
this
.
$route
.
query
.
orderId
)
{
this
.
queryParams
.
orderId
=
this
.
$route
.
query
.
orderId
}
...
...
@@ -217,6 +286,26 @@ export default {
this
.
$alert
(
row
.
failReason
,
'
交易失败原因
'
,
{
confirmButtonText
:
'
确定
'
,
});
},
viewHistory
(
detailId
)
{
if
(
detailId
)
{
this
.
history
.
queryParams
.
payDetailId
=
detailId
}
getDetailHistory
(
this
.
history
.
queryParams
).
then
(
resp
=>
{
if
(
200
===
resp
.
code
)
{
this
.
history
.
rows
=
resp
.
rows
this
.
history
.
total
=
resp
.
total
this
.
history
.
panel
=
true
}
})
},
handleSizeChange
(
val
)
{
this
.
history
.
queryParams
.
pageSize
=
val
this
.
viewHistory
()
},
handleCurrentChange
(
val
)
{
this
.
history
.
queryParams
.
pageNum
=
val
this
.
viewHistory
()
}
}
};
...
...
src/views/business/payOrder/index.vue
View file @
c666c1a9
...
...
@@ -230,7 +230,7 @@ export default {
},
`payOrder_
${
new
Date
().
getTime
()}
.xlsx`
)
},
viewDetail
(
row
)
{
this
.
$router
.
push
({
path
:
"
/business/payDetails
"
,
query
:
{
orderId
:
row
.
id
}
});
this
.
$router
.
push
({
path
:
"
/business/payDetails
"
,
query
:
{
orderId
:
row
.
id
,
batchNo
:
row
.
batchNo
}
});
},
doRepay
(
row
)
{
if
(
row
.
id
)
{
...
...
src/views/login.vue
View file @
c666c1a9
...
...
@@ -38,7 +38,7 @@
</el-form>
<!-- 底部 -->
<div
class=
"el-login-footer"
>
<a
class=
"text-color"
href=
"https://beian.miit.gov.cn"
target=
"_blank"
>
<span
style=
"color: #00afff"
>
备案号:冀ICP备2024097706号-1
</span></a>
<a
class=
"text-color"
href=
"https://beian.miit.gov.cn
/#/Integrated/index
"
target=
"_blank"
>
<span
style=
"color: #00afff"
>
备案号:冀ICP备2024097706号-1
</span></a>
</div>
</div>
</
template
>
...
...
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