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
0
Merge Requests
0
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
2462da16
Commit
2462da16
authored
Sep 15, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
72694e0e
01d42804
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
9 deletions
+43
-9
src/api/sign/underwritingMain.js
+10
-0
src/views/sign/underwritingMain/index.vue
+33
-9
No files found.
src/api/sign/underwritingMain.js
View file @
2462da16
...
@@ -9,6 +9,16 @@ export function getPolicyFollowList(data) {
...
@@ -9,6 +9,16 @@ export function getPolicyFollowList(data) {
})
})
}
}
// 按当前筛选条件导出新单跟进清单(xlsx 文件流)
export
function
exportPolicyFollow
(
data
)
{
return
request
({
url
:
'/csf/api/policy_follow/export'
,
method
:
'post'
,
data
:
data
,
responseType
:
'blob'
})
}
// 获取预计来佣列表
// 获取预计来佣列表
// /csf/api/commission/list/page/commission_expected
// /csf/api/commission/list/page/commission_expected
export
function
getExpectedCommissionList
(
data
)
{
export
function
getExpectedCommissionList
(
data
)
{
...
...
src/views/sign/underwritingMain/index.vue
View file @
2462da16
...
@@ -149,6 +149,7 @@ import useUserStore from '@/store/modules/user'
...
@@ -149,6 +149,7 @@ import useUserStore from '@/store/modules/user'
import
{
safeDownload
}
from
'@/utils/safeDownload'
import
{
safeDownload
}
from
'@/utils/safeDownload'
import
{
import
{
getPolicyFollowList
,
getPolicyFollowList
,
exportPolicyFollow
,
getExpectedCommissionList
,
getExpectedCommissionList
,
changePolicyStatus
,
changePolicyStatus
,
policyFollowReport
,
policyFollowReport
,
...
@@ -341,8 +342,29 @@ const handleAdd = () => {
...
@@ -341,8 +342,29 @@ const handleAdd = () => {
const
handleImport
=
()
=>
{
const
handleImport
=
()
=>
{
ElMessage
.
info
(
'点击导入按钮'
)
ElMessage
.
info
(
'点击导入按钮'
)
}
}
const
handleExport
=
()
=>
{
// 查询表单 → 请求体(列表查询与导出共用,保证筛选口径一致)
ElMessage
.
info
(
'点击导出按钮'
)
const
buildQueryParams
=
()
=>
{
const
formData
=
searchFormRef
.
value
?.
getFormData
()
||
{}
return
{
...
formData
,
signDateStart
:
formData
.
signDate
?.[
0
]
||
undefined
,
signDateEnd
:
formData
.
signDate
?.[
1
]
||
undefined
,
signDate
:
undefined
}
}
const
exporting
=
ref
(
false
)
const
handleExport
=
async
()
=>
{
exporting
.
value
=
true
try
{
const
response
=
await
exportPolicyFollow
(
buildQueryParams
())
const
now
=
new
Date
()
const
pad
=
n
=>
String
(
n
).
padStart
(
2
,
'0'
)
const
day
=
`
${
now
.
getFullYear
()}${
pad
(
now
.
getMonth
()
+
1
)}${
pad
(
now
.
getDate
())}
`
await
safeDownload
(
response
,
`新单跟进清单_
${
day
}
.xlsx`
)
}
finally
{
exporting
.
value
=
false
}
}
}
const
handleReset
=
()
=>
{
const
handleReset
=
()
=>
{
// 重置搜索表单
// 重置搜索表单
...
@@ -356,9 +378,14 @@ const handleQuery = async () => {
...
@@ -356,9 +378,14 @@ const handleQuery = async () => {
currentPage
.
value
=
1
currentPage
.
value
=
1
loadTableData
()
loadTableData
()
}
}
const
visibleDefaultButtons
=
ref
([
'reset'
,
'query'
])
const
visibleDefaultButtons
=
ref
([
'export'
,
'reset'
,
'query'
])
// 按钮配置
const
operationBtnList
=
computed
(()
=>
[
const
operationBtnList
=
ref
([
{
key
:
'export'
,
direction
:
'right'
,
loading
:
exporting
.
value
,
click
:
handleExport
},
{
{
key
:
'reset'
,
key
:
'reset'
,
direction
:
'right'
,
direction
:
'right'
,
...
@@ -489,10 +516,7 @@ const loadTableData = async () => {
...
@@ -489,10 +516,7 @@ const loadTableData = async () => {
// console.log(searchParams.value)
// console.log(searchParams.value)
try
{
try
{
const
params
=
{
const
params
=
{
...
searchParams
.
value
,
...
buildQueryParams
(),
signDateStart
:
searchParams
.
value
?.
signDate
[
0
]
||
undefined
,
signDateEnd
:
searchParams
.
value
?.
signDate
[
1
]
||
undefined
,
signDate
:
undefined
,
pageNo
:
currentPage
.
value
,
pageNo
:
currentPage
.
value
,
pageSize
:
pageSize
.
value
pageSize
:
pageSize
.
value
}
}
...
...
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