Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
8d346c7b
Commit
8d346c7b
authored
Jun 08, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into prod
parents
7b081961
5635b62f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
11 deletions
+65
-11
src/api/financial/commission.js
+8
-0
src/views/financialCenter/receivables.vue
+57
-11
No files found.
src/api/financial/commission.js
View file @
8d346c7b
...
@@ -428,6 +428,14 @@ export function receivableReport(data) {
...
@@ -428,6 +428,14 @@ export function receivableReport(data) {
data
:
data
data
:
data
})
})
}
}
// 应收款报表统计
export
function
receivableStatistics
(
data
)
{
return
request
({
url
:
'/csf/api/CommissionExpected/receivable_report/statistics'
,
method
:
'post'
,
data
:
data
})
}
// 薪资拆分应发信息汇总列表
// 薪资拆分应发信息汇总列表
export
function
salarySummary
(
data
)
{
export
function
salarySummary
(
data
)
{
...
...
src/views/financialCenter/receivables.vue
View file @
8d346c7b
...
@@ -316,6 +316,7 @@ import {
...
@@ -316,6 +316,7 @@ import {
commissionExpectedRecord
,
commissionExpectedRecord
,
addReceivedFortune
,
addReceivedFortune
,
receivableReport
,
receivableReport
,
receivableStatistics
,
CommissionExpectedChangeStatus
,
CommissionExpectedChangeStatus
,
commissionExchangeRateApi
commissionExchangeRateApi
}
from
'@/api/financial/commission'
}
from
'@/api/financial/commission'
...
@@ -483,6 +484,7 @@ const handleConfirmAddReceivables = async () => {
...
@@ -483,6 +484,7 @@ const handleConfirmAddReceivables = async () => {
addReceivablesDialogVisible
.
value
=
false
addReceivablesDialogVisible
.
value
=
false
resetAddReceivablesForm
()
resetAddReceivablesForm
()
receivedFortuneListData
()
receivedFortuneListData
()
getStatics
()
loadTableData
()
// 重新加载表格
loadTableData
()
// 重新加载表格
}
else
{
}
else
{
ElMessage
.
error
(
res
.
msg
||
'应收款修改失败'
)
ElMessage
.
error
(
res
.
msg
||
'应收款修改失败'
)
...
@@ -740,11 +742,13 @@ const handleReset = () => {
...
@@ -740,11 +742,13 @@ const handleReset = () => {
searchFormRef
.
value
.
resetForm
()
searchFormRef
.
value
.
resetForm
()
searchParams
.
value
=
{}
searchParams
.
value
=
{}
console
.
log
(
'表单已重置'
)
console
.
log
(
'表单已重置'
)
getStatics
()
loadTableData
()
loadTableData
()
}
}
const
handleQuery
=
()
=>
{
const
handleQuery
=
()
=>
{
currentPage
.
value
=
1
currentPage
.
value
=
1
getStatics
()
loadTableData
()
loadTableData
()
}
}
const
visibleDefaultButtons
=
ref
([
'add'
,
'export'
,
'reset'
,
'query'
])
const
visibleDefaultButtons
=
ref
([
'add'
,
'export'
,
'reset'
,
'query'
])
...
@@ -761,12 +765,14 @@ const operationBtnList = ref([
...
@@ -761,12 +765,14 @@ const operationBtnList = ref([
const
handleSizeChange
=
val
=>
{
const
handleSizeChange
=
val
=>
{
pageSize
.
value
=
val
pageSize
.
value
=
val
const
params
=
searchFormRef
.
value
.
getFormData
()
const
params
=
searchFormRef
.
value
.
getFormData
()
getStatics
(
params
)
loadTableData
(
params
)
loadTableData
(
params
)
}
}
const
handleCurrentChange
=
val
=>
{
const
handleCurrentChange
=
val
=>
{
currentPage
.
value
=
val
currentPage
.
value
=
val
const
params
=
searchFormRef
.
value
.
getFormData
()
const
params
=
searchFormRef
.
value
.
getFormData
()
getStatics
(
params
)
loadTableData
(
params
)
loadTableData
(
params
)
}
}
...
@@ -787,8 +793,7 @@ const loadTableData = async () => {
...
@@ -787,8 +793,7 @@ const loadTableData = async () => {
const
params
=
{
const
params
=
{
...
searchParams
,
...
searchParams
,
// commissionDateStart: searchParams?.entryDate?.[0] + '-01' || undefined,
// commissionDateEnd: searchParams?.entryDate?.[1] + '-01' || undefined,
commissionDateStart
:
searchParams
.
commissionDateStart
||
undefined
,
commissionDateStart
:
searchParams
.
commissionDateStart
||
undefined
,
commissionDateEnd
:
searchParams
.
commissionDateEnd
||
undefined
,
commissionDateEnd
:
searchParams
.
commissionDateEnd
||
undefined
,
...
@@ -797,18 +802,20 @@ const loadTableData = async () => {
...
@@ -797,18 +802,20 @@ const loadTableData = async () => {
pageSize
:
pageSize
.
value
pageSize
:
pageSize
.
value
}
}
const
response
=
await
receivableReport
(
params
)
const
response
=
await
receivableReport
(
params
)
// const response2 = await receivableStatistics(params)
tableData
.
value
=
response
.
data
.
page
.
records
||
[]
tableData
.
value
=
response
.
data
.
page
.
records
||
[]
pageTotal
.
value
=
response
.
data
.
page
.
total
||
0
pageTotal
.
value
=
response
.
data
.
page
.
total
||
0
pageSize
.
value
=
response
.
data
.
page
.
size
||
50
pageSize
.
value
=
response
.
data
.
page
.
size
||
50
// if (response2.data && response2.data.statisticsVO) {
// 统计信息
// // 统计信息
statisticsData
.
value
=
{
// statisticsData.value = {
totalAmount
:
response
.
data
.
statisticsVO
.
totalAmount
,
// totalAmount: response2.data.statisticsVO.totalAmount,
totalPaidAmount
:
response
.
data
.
statisticsVO
.
totalPaidAmount
,
// totalPaidAmount: response2.data.statisticsVO.totalPaidAmount,
pendingPaidAmount
:
response
.
data
.
statisticsVO
.
pendingPaidAmount
,
// pendingPaidAmount: response2.data.statisticsVO.pendingPaidAmount,
paidAmountRatio
:
response
.
data
.
statisticsVO
.
paidAmountRatio
,
// paidAmountRatio: response2.data.statisticsVO.paidAmountRatio,
totalPolicyCount
:
response
.
data
.
statisticsVO
.
totalPolicyCount
// totalPolicyCount: response2.data.statisticsVO.totalPolicyCount
}
// }
// }
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'加载数据失败:'
,
error
)
console
.
error
(
'加载数据失败:'
,
error
)
ElMessage
.
error
(
'加载数据失败'
)
ElMessage
.
error
(
'加载数据失败'
)
...
@@ -816,7 +823,44 @@ const loadTableData = async () => {
...
@@ -816,7 +823,44 @@ const loadTableData = async () => {
loading
.
value
=
false
loading
.
value
=
false
}
}
}
}
const
getStatics
=
async
()
=>
{
const
searchParams
=
searchFormRef
.
value
.
getFormData
()
||
{}
try
{
if
(
searchParams
.
entryDate
.
length
>
0
)
{
searchParams
.
commissionDateStart
=
`
${
searchParams
.
entryDate
[
0
]}
-01`
searchParams
.
commissionDateEnd
=
`
${
searchParams
.
entryDate
[
1
]}
-01`
}
else
{
searchParams
.
commissionDateStart
=
''
searchParams
.
commissionDateEnd
=
''
}
const
params
=
{
...
searchParams
,
commissionDateStart
:
searchParams
.
commissionDateStart
||
undefined
,
commissionDateEnd
:
searchParams
.
commissionDateEnd
||
undefined
,
entryDate
:
undefined
,
pageNo
:
currentPage
.
value
,
pageSize
:
pageSize
.
value
}
const
response2
=
await
receivableStatistics
(
params
)
if
(
response2
.
data
&&
response2
.
data
.
statisticsVO
)
{
// 统计信息
statisticsData
.
value
=
{
totalAmount
:
response2
.
data
.
statisticsVO
.
totalAmount
,
totalPaidAmount
:
response2
.
data
.
statisticsVO
.
totalPaidAmount
,
pendingPaidAmount
:
response2
.
data
.
statisticsVO
.
pendingPaidAmount
,
paidAmountRatio
:
response2
.
data
.
statisticsVO
.
paidAmountRatio
,
totalPolicyCount
:
response2
.
data
.
statisticsVO
.
totalPolicyCount
}
}
}
catch
(
error
)
{
console
.
error
(
'加载统计数据失败:'
,
error
)
ElMessage
.
error
(
'加载统计数据失败'
)
}
}
// 入账记录查询
// 入账记录查询
const
loadEntryRecordData
=
async
cbd
=>
{
const
loadEntryRecordData
=
async
cbd
=>
{
loading
.
value
=
true
loading
.
value
=
true
...
@@ -954,6 +998,7 @@ const handleConfirmSetStatus = () => {
...
@@ -954,6 +998,7 @@ const handleConfirmSetStatus = () => {
ElMessage
.
success
(
'状态修改成功'
)
ElMessage
.
success
(
'状态修改成功'
)
setStatusDialogTableVisible
.
value
=
false
setStatusDialogTableVisible
.
value
=
false
receivedFortuneListData
()
receivedFortuneListData
()
getStatics
()
loadTableData
()
// 重新加载表格
loadTableData
()
// 重新加载表格
}
else
{
}
else
{
ElMessage
.
error
(
res
.
msg
||
'状态修改失败'
)
ElMessage
.
error
(
res
.
msg
||
'状态修改失败'
)
...
@@ -971,6 +1016,7 @@ const handleConfirmSetStatus = () => {
...
@@ -971,6 +1016,7 @@ const handleConfirmSetStatus = () => {
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
try
{
try
{
await
loadDicts
([
'csf_expected_commission_status'
])
await
loadDicts
([
'csf_expected_commission_status'
])
getStatics
()
loadTableData
()
loadTableData
()
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'字典加载失败'
,
error
)
console
.
error
(
'字典加载失败'
,
error
)
...
...
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