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
f2747ec3
Commit
f2747ec3
authored
Mar 11, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into glf
# Conflicts: # src/views/business/salaryAccount/index.vue
parents
41a9bd6e
8e908fee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
157 additions
and
67 deletions
+157
-67
src/api/business/accRecharge.js
src/api/business/accRecharge.js
+7
-1
src/views/business/salaryAccount/index.vue
src/views/business/salaryAccount/index.vue
+150
-66
No files found.
src/api/business/accRecharge.js
View file @
f2747ec3
...
...
@@ -8,7 +8,13 @@ export function listAccRecharge(query) {
params
:
query
})
}
export
function
listBill
(
query
)
{
return
request
({
url
:
'
/business/accRecharge/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询账户充值记录所有列表
export
function
listAllAccRecharge
(
query
)
{
return
request
({
...
...
src/views/business/salaryAccount/index.vue
View file @
f2747ec3
...
...
@@ -71,8 +71,8 @@
</div>
<div
style=
"width: 90%;"
>
<el-row>
<el-col
:span=
"12"
><el-button
style=
"width:120px;"
type=
"primary"
plain
@
click=
"viewBill(ele.payAccNo)"
>
账单查询
</el-button></el-col>
<el-col
:span=
"12"
><el-button
style=
"width:120px;"
type=
"primary"
plain
@
click=
"showBill(ele.payAccNo)"
>
充值记录
</el-button></el-col>
<el-col
:span=
"12"
><el-button
style=
"width:120px;"
type=
"primary"
plain
@
click=
"salarySelection(ele.payAccNo)"
>
去发薪
</el-button></el-col>
</el-row>
...
...
@@ -193,7 +193,8 @@
<el-form-item
label=
"收款账户"
prop=
"payeeAccNo"
>
<el-input
v-model=
"aliQRCodeRechargeForm.payeeAccNo"
placeholder=
"请输入收款账号"
disabled
/>
</el-form-item>
<el-form-item
label=
"付款账户"
prop=
"payerAccNo"
v-if=
"aliQRCodeRechargeForm.bindType && 2 === aliQRCodeRechargeForm.bindType"
>
<el-form-item
label=
"付款账户"
prop=
"payerAccNo"
v-if=
"aliQRCodeRechargeForm.bindType && 2 === aliQRCodeRechargeForm.bindType"
>
<accSelect
:bindType=
"1"
v-model=
"aliQRCodeRechargeForm.payerAccNo"
></accSelect>
</el-form-item>
<el-form-item
label=
"余额/服务费"
prop=
"rechargeType"
>
...
...
@@ -247,7 +248,8 @@
<el-col
:span=
"12"
>
<div
class=
"ownRechargeMain"
>
<img
class=
"ownRechargeImage"
src=
"@/assets/images/zfb.png"
alt=
""
>
<el-button
class=
"ownRechargeButton"
@
click=
"ownAliQRCodeRechargeOpen = false; aliQRCodeRechargeOpen = true"
>
支付宝充值
</el-button>
<el-button
class=
"ownRechargeButton"
@
click=
"ownAliQRCodeRechargeOpen = false; aliQRCodeRechargeOpen = true"
>
支付宝充值
</el-button>
</div>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -266,7 +268,7 @@
商户可通过银行转账方式完成对应支付宝专属收款账户的充值。支付宝会为商户的每个支付宝账户提供独立的"专属收款账户",商户从任一同名银行账户向其对应的"专属收款账户"转账,即可完成充值。
</el-col>
</el-row>
<el-row
style=
"
;
margin-top: 15px;"
>
<el-row
style=
"margin-top: 15px;"
>
<el-col
:span=
"24"
>
<span
style=
"font-weight: bold;font-size: 22px;color: #1a1a1a"
>
三步完成充值
...
...
@@ -336,17 +338,54 @@
<el-button
@
click=
"qrPayPanel.open = false"
>
取 消
</el-button>
</div>
</el-dialog>
<el-dialog
title=
"账单查询"
:visible.sync=
"bill.panel"
width=
"20%"
>
<el-table
:data=
"bill.tableData"
stripe
style=
"width: 100%"
>
<el-table-column
prop=
"date"
label=
"所属账号"
width=
"180"
/>
<el-table-column
prop=
"date"
label=
"交易时间"
width=
"180"
/>
<el-table-column
prop=
"date"
label=
"交易金额"
width=
"180"
/>
<el-table-column
prop=
"date"
label=
"业务单号"
width=
"180"
/>
<el-table-column
prop=
"date"
label=
"备注"
width=
"180"
/>
<el-dialog
title=
"充值记录"
:visible.sync=
"billPanel"
width=
"80%"
>
<el-form
:model=
"billQuery"
size=
"small"
:inline=
"true"
label-width=
"100px"
>
<el-form-item
label=
"账单类型"
prop=
"tranType"
>
<el-select
v-model=
"billQuery.capitalPurpose"
clearable
placeholder=
"请选择"
>
<el-option
label=
"全部"
:value=
"''"
/>
<el-option
label=
"服务费"
:value=
"1"
/>
<el-option
label=
"余额"
:value=
"2"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"时间"
>
<el-date-picker
v-model=
"dateRange"
style=
"width: 240px"
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"daterange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getBillList"
>
搜索
</el-button>
</el-form-item>
</el-form>
<el-tabs
value=
"first"
@
tab-click=
"billTypeTabClick"
>
<el-tab-pane
label=
"账单列表"
name=
"first"
></el-tab-pane>
</el-tabs>
<el-table
v-loading=
"loading"
:data=
"billDataList"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"账单类型"
align=
"center"
prop=
"capitalPurpose"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.capitalPurpose == 1"
>
服务费
</span>
<span
v-if=
"scope.row.capitalPurpose == 2"
>
余额
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"收支类型"
align=
"center"
prop=
"tranType"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"success"
size=
"mini"
v-if=
"scope.row.tranType == 2"
>
收入
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"金额"
align=
"center"
prop=
"tranAmount"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.tranType == 2"
style=
"color: rgb(255, 208, 75)"
>
+
{{
scope
.
row
.
tranAmount
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"时间"
align=
"center"
prop=
"createTime"
width=
"180"
/>
</el-table>
<el-pagination
small
layout=
"prev, pager, next"
:total=
"billTotal"
:page.sync=
"billQuery.pageNum"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:limit.sync=
"billQuery.pageSize"
@
pagination=
"getBillList()"
>
</el-pagination>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"qrPayPanel.open = false"
>
关
闭
</el-button>
<el-button
@
click=
"billPanel = false"
>
关
闭
</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -355,18 +394,16 @@
<
script
>
import
AccSelect
from
'
@/views/business/accInfo/accSelect.vue
'
import
{
listAllAccInfo
,
getAccAliInfo
}
from
'
@/api/business/accInfo
'
import
{
addAccRecharge
}
from
'
@/api/business/accRecharge.js
'
import
{
addAccRecharge
,
listBill
}
from
'
@/api/business/accRecharge.js
'
import
{
addDateRange
}
from
'
@/utils/ruoyi
'
import
{
formatDate
}
from
'
@/utils
'
import
QrCodeComponent
from
'
@/components/QrCode.vue
'
export
default
{
name
:
'
SalaryAccount
'
,
components
:
{
QrCodeComponent
,
AccSelect
},
data
()
{
return
{
bill
:
{
panel
:
false
,
tableData
:
[],
},
billPanel
:
false
,
qrPayPanel
:
{
open
:
false
,
payUrl
:
''
...
...
@@ -429,7 +466,22 @@ export default {
},
// 线下充值
rechargeCoursePanel
:
false
,
offlineRechargeData
:
{}
offlineRechargeData
:
{},
// 充值记录相关参数
billQuery
:
{
pageNum
:
1
,
pageSize
:
10
,
capitalPurpose
:
1
,
//账单类型:1-服务费;2-余额
tranType
:
''
,
//收支类型:1-收入;2-支出
startTime
:
''
,
endTime
:
''
,
},
dateRange
:
[
formatDate
(
new
Date
()),
formatDate
(
new
Date
())],
billDataList
:
[],
billTotal
:
0
,
userInfoName
:
null
,
accountCollection
:
[],
loading
:
false
}
},
created
()
{
},
...
...
@@ -443,6 +495,42 @@ export default {
}
},
methods
:
{
billTypeTabClick
(
tab
)
{
// this.billQuery.capitalPurpose = tab.name === "second" ? 2 : 1 //1:服务费 2:余额
// this.getBillList();
},
showBill
(
cardNo
)
{
this
.
billQuery
.
cardNo
=
cardNo
;
this
.
billPanel
=
true
;
this
.
getBillList
();
},
handleSizeChange
(
val
)
{
this
.
billQuery
.
pageSize
=
Number
(
val
)
this
.
getBillList
()
},
handleCurrentChange
(
val
)
{
this
.
billQuery
.
pageNum
=
Number
(
val
)
this
.
getBillList
()
},
getBillList
()
{
if
(
this
.
dateRange
&&
this
.
dateRange
.
length
>
0
)
{
let
searchVal
=
addDateRange
(
this
.
billQuery
,
this
.
dateRange
)
this
.
billQuery
.
startTime
=
searchVal
.
params
.
beginTime
.
split
(
"
"
)[
0
]
+
"
00:00:00
"
this
.
billQuery
.
endTime
=
searchVal
.
params
.
endTime
.
split
(
"
"
)[
0
]
+
"
23:59:59
"
}
else
{
this
.
billQuery
.
startTime
=
''
this
.
billQuery
.
endTime
=
''
}
this
.
loading
=
true
listBill
(
this
.
billQuery
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
billDataList
=
res
.
rows
this
.
billTotal
=
res
.
total
}
}).
finally
(()
=>
{
this
.
loading
=
false
})
},
// 选择线下充值方法
offlineRecharge
()
{
this
.
ownAliQRCodeRechargeOpen
=
false
...
...
@@ -532,10 +620,6 @@ export default {
}
}
})
},
// 查询账单
viewBill
(
cardNo
)
{
},
// 点击去发薪按钮执行
salarySelection
(
number
)
{
...
...
@@ -567,7 +651,7 @@ export default {
})
},
goRegister
()
{
window
.
open
(
'
http://hfz.hnycrj.top
/register?parameters=MPf%2Flhts8VrGmGDCjFNey4AqyYOJk1pQAc0KS6cZqp2QcvSNrm9LqLlqELVUfoVT
'
,
'
_blank
'
)
window
.
open
(
'
https://admins.openbanks.cn/#
/register?parameters=MPf%2Flhts8VrGmGDCjFNey4AqyYOJk1pQAc0KS6cZqp2QcvSNrm9LqLlqELVUfoVT
'
,
'
_blank
'
)
},
}
}
...
...
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