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
5635b62f
Commit
5635b62f
authored
Jun 08, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wyz' into 'test'
优化应收统计2 See merge request
!165
parents
a217d42b
18892f96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
8 deletions
+51
-8
src/views/financialCenter/receivables.vue
+51
-8
No files found.
src/views/financialCenter/receivables.vue
View file @
5635b62f
...
@@ -484,6 +484,7 @@ const handleConfirmAddReceivables = async () => {
...
@@ -484,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
||
'应收款修改失败'
)
...
@@ -741,11 +742,13 @@ const handleReset = () => {
...
@@ -741,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'
])
...
@@ -762,12 +765,14 @@ const operationBtnList = ref([
...
@@ -762,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
)
}
}
...
@@ -788,8 +793,7 @@ const loadTableData = async () => {
...
@@ -788,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
,
...
@@ -798,10 +802,50 @@ const loadTableData = async () => {
...
@@ -798,10 +802,50 @@ const loadTableData = async () => {
pageSize
:
pageSize
.
value
pageSize
:
pageSize
.
value
}
}
const
response
=
await
receivableReport
(
params
)
const
response
=
await
receivableReport
(
params
)
const
response2
=
await
receivableStatistics
(
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 = {
// 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
(
'加载数据失败'
)
}
finally
{
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
)
{
if
(
response2
.
data
&&
response2
.
data
.
statisticsVO
)
{
// 统计信息
// 统计信息
statisticsData
.
value
=
{
statisticsData
.
value
=
{
...
@@ -813,13 +857,10 @@ const loadTableData = async () => {
...
@@ -813,13 +857,10 @@ const loadTableData = async () => {
}
}
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'加载数据失败:'
,
error
)
console
.
error
(
'加载统计数据失败:'
,
error
)
ElMessage
.
error
(
'加载数据失败'
)
ElMessage
.
error
(
'加载统计数据失败'
)
}
finally
{
loading
.
value
=
false
}
}
}
}
// 入账记录查询
// 入账记录查询
const
loadEntryRecordData
=
async
cbd
=>
{
const
loadEntryRecordData
=
async
cbd
=>
{
loading
.
value
=
true
loading
.
value
=
true
...
@@ -957,6 +998,7 @@ const handleConfirmSetStatus = () => {
...
@@ -957,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
||
'状态修改失败'
)
...
@@ -974,6 +1016,7 @@ const handleConfirmSetStatus = () => {
...
@@ -974,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