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
220d00dc
Commit
220d00dc
authored
Dec 23, 2025
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
c58ec623
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
66 deletions
+70
-66
src/api/financial/commission.js
+19
-1
src/api/search.ts
+23
-34
src/views/financialCenter/financialIncome.vue
+0
-0
src/views/financialCenter/financialSalary.vue
+0
-0
src/views/financialCenter/payables.vue
+0
-0
src/views/financialCenter/receivables.vue
+28
-31
No files found.
src/api/financial/commission.js
View file @
220d00dc
...
@@ -226,7 +226,7 @@ export function policyData(data) {
...
@@ -226,7 +226,7 @@ export function policyData(data) {
// 应付款管理列表
// 应付款管理列表
export
function
expectedFortuneList
(
data
)
{
export
function
expectedFortuneList
(
data
)
{
return
request
({
return
request
({
url
:
'/csf/api/expectedFortune/
list
'
,
url
:
'/csf/api/expectedFortune/
page
'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
...
@@ -272,3 +272,21 @@ export function commissionEntryEditRecords(data) {
...
@@ -272,3 +272,21 @@ export function commissionEntryEditRecords(data) {
data
:
data
data
:
data
})
})
}
}
// 出账记录查询
export
function
payRecordList
(
data
)
{
return
request
({
url
:
'/csf/api/fortune/list/page/fortuneAccount'
,
method
:
'post'
,
data
:
data
})
}
// 获取保单发佣列表
export
function
policyNoCommissionPayRecord
(
data
)
{
return
request
({
url
:
'/csf/api/fortune/list/page/vo'
,
method
:
'post'
,
data
:
data
})
}
src/api/search.ts
View file @
220d00dc
// src/api/search.ts
// src/api/search.ts
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 通用搜索接口
export
function
commonSearch
(
params
:
{
// 特定模块搜索
module
:
string
keyword
?:
string
// 搜索保险公司
pageSize
?:
number
export
function
searchInsurers
(
params
)
{
})
{
return
request
({
return
request
({
url
:
'/
common/search
'
,
url
:
'/
insurance/base/api/insuranceCompany/page
'
,
method
:
'
get
'
,
method
:
'
POST
'
,
params
params
})
})
}
}
// 特定模块搜索
// 搜索产品
export
function
searchCompanies
(
params
:
{
export
function
searchProducts
(
params
)
{
type
?:
string
keyword
?:
string
pageSize
?:
number
})
{
return
request
({
return
request
({
url
:
'/
company
/search'
,
url
:
'/
product/base/api/product
/search'
,
method
:
'
get
'
,
method
:
'
POST
'
,
params
params
})
})
}
}
export
function
searchCommissionTypes
(
params
:
{
// 获取对账公司
keyword
?:
string
export
function
searchReconciliationCompanies
(
params
)
{
pageSize
?:
number
})
{
return
request
({
return
request
({
url
:
'/
commission/type/search
'
,
url
:
'/
insurance/base/api/insuranceReconciliationCompany/page
'
,
method
:
'
get
'
,
method
:
'
POST
'
,
params
params
})
})
}
}
export
function
searchInsurers
(
params
:
{
// 获取签单员列表
keyword
?:
string
export
function
searchSigners
(
params
)
{
pageSize
?:
number
})
{
return
request
({
return
request
({
url
:
'/insur
er/search
'
,
url
:
'/insur
ance/base/api/userSignExpand/page
'
,
method
:
'
get
'
,
method
:
'
POST
'
,
params
params
})
})
}
}
export
function
searchProducts
(
params
:
{
// 获取转介人列表
keyword
?:
string
export
function
searchIntermediaries
(
params
)
{
pageSize
?:
number
})
{
return
request
({
return
request
({
url
:
'/
product/search
'
,
url
:
'/
insurance/base/api/userSaleExpand/page
'
,
method
:
'
get
'
,
method
:
'
POST
'
,
params
params
})
})
}
}
src/views/financialCenter/financialIncome.vue
View file @
220d00dc
This diff is collapsed.
Click to expand it.
src/views/financialCenter/financialSalary.vue
View file @
220d00dc
This diff is collapsed.
Click to expand it.
src/views/financialCenter/payables.vue
View file @
220d00dc
This diff is collapsed.
Click to expand it.
src/views/financialCenter/receivables.vue
View file @
220d00dc
statistics-cards
<
template
>
<
template
>
<CommonPage
:operationBtnList=
"operationBtnList"
:showSearchForm=
"true"
:show-pagination=
"true"
:total=
"pageTotal"
<div>
:current-page=
"currentPage"
:page-size=
"pageSize"
@
size-change=
"handleSizeChange"
<CommonPage
:operationBtnList=
"operationBtnList"
:showSearchForm=
"true"
:show-pagination=
"true"
:total=
"pageTotal"
:current-page=
"currentPage"
:page-size=
"pageSize"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
@
current-change=
"handleCurrentChange"
>
<!-- 搜索区域 -->
<!-- 搜索区域 -->
<template
#
searchForm
>
<template
#
searchForm
>
<SearchForm
ref=
"searchFormRef"
v-model=
"searchFormData"
:fields=
"searchFields"
label-position=
"top"
<SearchForm
ref=
"searchFormRef"
v-model=
"searchFormData"
:fields=
"searchFields"
label-position=
"top"
:label-width=
"null"
:inline=
"false"
:gutter=
"20"
class=
"custom-search-form"
/>
:label-width=
"null"
:inline=
"false"
:gutter=
"20"
class=
"custom-search-form"
/>
{{
searchFormData
}}
</
template
>
</
template
>
<!-- 列表区域 -->
<!-- 列表区域 -->
<
template
#
table
>
<
template
#
table
>
...
@@ -104,10 +106,12 @@ statistics-cards<template>
...
@@ -104,10 +106,12 @@ statistics-cards<template>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</template>
</template>
</CommonPage>
</CommonPage>
<!-- 比对状态表格弹窗-->
<!-- 比对状态表格弹窗-->
<CommonDialog
dialogTitle=
"入账记录"
dialogWidth=
"80%"
:openDialog=
"entryRecordDialogTableVisible"
:showAction=
"false"
:showClose=
"true"
@
close=
"entryRecordDialogTableVisible=false"
>
<CommonDialog
dialogTitle=
"入账记录"
dialogWidth=
"80%"
:openDialog=
"entryRecordDialogTableVisible"
<el-table
:data=
"entryRecordDialogTableData"
border
style=
"width: 100%"
>
:showAction=
"false"
:showClose=
"true"
@
close=
"entryRecordDialogTableVisible = false"
>
<el-table
:data=
"entryRecordDialogTableData"
border
style=
"width: 100%"
>
<el-table-column
v-for=
"item in entryRecordDialogTableColumns"
:key=
"item.property"
<el-table-column
v-for=
"item in entryRecordDialogTableColumns"
:key=
"item.property"
:property=
"item.property"
:label=
"item.label"
:width=
"item.width"
/>
:property=
"item.property"
:label=
"item.label"
:width=
"item.width"
/>
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"120"
>
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"120"
>
...
@@ -121,7 +125,8 @@ statistics-cards<template>
...
@@ -121,7 +125,8 @@ statistics-cards<template>
</CommonDialog>
</CommonDialog>
<!-- 操作记录表格弹窗-->
<!-- 操作记录表格弹窗-->
<CommonDialog
dialogTitle=
"操作记录"
dialogWidth=
"80%"
:openDialog=
"actionRecordsDialogVisible"
:showAction=
"false"
:showClose=
"true"
@
close=
"actionRecordsDialogVisible=false"
>
<CommonDialog
dialogTitle=
"操作记录"
dialogWidth=
"80%"
:openDialog=
"actionRecordsDialogVisible"
:showAction=
"false"
:showClose=
"true"
@
close=
"actionRecordsDialogVisible = false"
>
<el-table
:data=
"actionRecordsDialogTableData"
border
style=
"width: 100%"
>
<el-table
:data=
"actionRecordsDialogTableData"
border
style=
"width: 100%"
>
<el-table-column
v-for=
"item in actionRecordsDialogTableColumns"
:key=
"item.property"
<el-table-column
v-for=
"item in actionRecordsDialogTableColumns"
:key=
"item.property"
:property=
"item.property"
:label=
"item.label"
:width=
"item.width"
/>
:property=
"item.property"
:label=
"item.label"
:width=
"item.width"
/>
...
@@ -129,7 +134,8 @@ statistics-cards<template>
...
@@ -129,7 +134,8 @@ statistics-cards<template>
</CommonDialog>
</CommonDialog>
<!-- 设置状态 弹窗-->
<!-- 设置状态 弹窗-->
<CommonDialog
dialogTitle=
"设置入账状态"
dialogWidth=
"80%"
:openDialog=
"setStatusDialogTableVisible"
@
close=
"setStatusDialogTableVisible=false"
@
confirm=
"setStatusDialogTableVisible=false"
>
<CommonDialog
dialogTitle=
"设置入账状态"
dialogWidth=
"80%"
:openDialog=
"setStatusDialogTableVisible"
@
close=
"setStatusDialogTableVisible = false"
@
confirm=
"setStatusDialogTableVisible = false"
>
<el-form
:model=
"form"
>
<el-form
:model=
"form"
>
<el-form-item
label=
"入账状态"
label-width=
"120"
>
<el-form-item
label=
"入账状态"
label-width=
"120"
>
<el-select
v-model=
"form.status"
placeholder=
"请选择入账状态"
>
<el-select
v-model=
"form.status"
placeholder=
"请选择入账状态"
>
...
@@ -150,17 +156,19 @@ statistics-cards<template>
...
@@ -150,17 +156,19 @@ statistics-cards<template>
</div>
</div>
</
template
>
</
template
>
</CommonDialog>
</CommonDialog>
</div>
</template>
</template>
<
script
setup
name=
"Receivables"
>
<
script
setup
name=
"Receivables"
>
import
CommonPage
from
'@/components/commonPage'
import
CommonPage
from
'@/components/commonPage'
import
CommonDialog
from
'@/components/commonDialog'
import
CommonDialog
from
'@/components/commonDialog'
import
{
ref
,
reactive
,
onMounted
,
watch
}
from
'vue'
import
{
ref
,
reactive
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
formatCurrency
}
from
'@/utils/number'
import
{
formatCurrency
}
from
'@/utils/number'
import
{
receivedFortuneList
,
commissionEntryRecord
,
commissionEntryEditRecords
}
from
'@/api/financial/commission'
import
{
receivedFortuneList
,
commissionEntryRecord
,
commissionEntryEditRecords
}
from
'@/api/financial/commission'
import
SearchForm
from
'@/components/SearchForm/index.vue'
import
SearchForm
from
'@/components/SearchForm/index.vue'
import
{
searchCompanies
,
searchCommissionTypes
}
from
'@/api/search'
// 分页相关
// 分页相关
const
currentPage
=
ref
(
1
)
const
currentPage
=
ref
(
1
)
const
pageSize
=
ref
(
10
)
const
pageSize
=
ref
(
10
)
...
@@ -186,9 +194,9 @@ const form = reactive({
...
@@ -186,9 +194,9 @@ const form = reactive({
const
selectedRow
=
ref
(
null
)
const
selectedRow
=
ref
(
null
)
const
handleSelect
=
(
e
,
row
)
=>
{
const
handleSelect
=
(
e
,
row
)
=>
{
console
.
log
(
e
,
row
)
selectedRow
.
value
=
row
selectedRow
.
value
=
row
if
(
e
===
'entryRecord'
)
{
if
(
e
===
'entryRecord'
)
{
// 入账记录
entryRecordDialogTableVisible
.
value
=
true
entryRecordDialogTableVisible
.
value
=
true
entryRecordDialogTableColumns
.
value
=
[
entryRecordDialogTableColumns
.
value
=
[
{
property
:
'commissionPeriod'
,
label
:
'佣金期数'
,
width
:
'100'
},
{
property
:
'commissionPeriod'
,
label
:
'佣金期数'
,
width
:
'100'
},
...
@@ -202,6 +210,7 @@ const handleSelect = (e, row) => {
...
@@ -202,6 +210,7 @@ const handleSelect = (e, row) => {
]
]
// 加载入账记录-假数据等待接口修改
// 加载入账记录-假数据等待接口修改
loadEntryRecordData
(
selectedRow
.
value
.
commissionExpectedBizId
).
then
(
records
=>
{
loadEntryRecordData
(
selectedRow
.
value
.
commissionExpectedBizId
).
then
(
records
=>
{
console
.
log
(
records
)
entryRecordDialogTableData
.
value
=
records
=
entryRecordDialogTableData
.
value
=
records
=
[{
[{
commissionPeriod
:
'2023-08-01'
,
commissionPeriod
:
'2023-08-01'
,
...
@@ -290,20 +299,11 @@ const searchFields = ref([
...
@@ -290,20 +299,11 @@ const searchFields = ref([
label
:
'入账状态'
,
label
:
'入账状态'
,
placeholder
:
'请选择入账状态'
,
placeholder
:
'请选择入账状态'
,
colSpan
:
6
,
colSpan
:
6
,
remoteConfig
:
{
options
:
[
type
:
'commissionType'
,
apiMethod
:
searchCommissionTypes
,
formatResult
:
(
data
)
=>
data
.
map
(
item
=>
({
label
:
item
.
typeName
,
value
:
item
.
typeCode
,
remark
:
item
.
remark
})),
defaultOptions
:
[
{
label
:
'已入账'
,
value
:
'1'
},
{
label
:
'已入账'
,
value
:
'1'
},
{
label
:
'待入账'
,
value
:
'0'
},
{
label
:
'待入账'
,
value
:
'0'
},
{
label
:
'部分入账'
,
value
:
'2'
}
{
label
:
'部分入账'
,
value
:
'2'
}
]
]
}
},
},
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -320,7 +320,6 @@ const searchFields = ref([
...
@@ -320,7 +320,6 @@ const searchFields = ref([
colSpan
:
6
,
colSpan
:
6
,
remoteConfig
:
{
remoteConfig
:
{
type
:
'company'
,
type
:
'company'
,
apiMethod
:
(
params
)
=>
searchCompanies
({
...
params
,
type
:
'reconciliation'
}),
defaultOptions
:
[]
defaultOptions
:
[]
}
}
},
},
...
@@ -352,7 +351,6 @@ const searchFields = ref([
...
@@ -352,7 +351,6 @@ const searchFields = ref([
placeholder
:
'请选择应收款类型'
,
placeholder
:
'请选择应收款类型'
,
colSpan
:
6
,
colSpan
:
6
,
options
:
[
options
:
[
{
label
:
'全部'
,
value
:
''
},
{
label
:
'关联保单应收单'
,
value
:
'1'
},
{
label
:
'关联保单应收单'
,
value
:
'1'
},
{
label
:
'非关联保单应收单'
,
value
:
'2'
}
{
label
:
'非关联保单应收单'
,
value
:
'2'
}
]
]
...
@@ -409,8 +407,7 @@ const handleReset = () => {
...
@@ -409,8 +407,7 @@ const handleReset = () => {
const
handleQuery
=
async
()
=>
{
const
handleQuery
=
async
()
=>
{
loadTableData
()
loadTableData
()
}
}
// 控制要显示的默认按钮
const
visibleDefaultButtons
=
ref
([
'add'
,
'import'
,
'export'
])
// 只显示新增和查询两个默认按钮
// 按钮配置
// 按钮配置
const
operationBtnList
=
ref
([
const
operationBtnList
=
ref
([
{
{
...
@@ -453,6 +450,7 @@ const handleCurrentChange = (val) => {
...
@@ -453,6 +450,7 @@ const handleCurrentChange = (val) => {
// 加载表格数据
// 加载表格数据
const
loadTableData
=
async
()
=>
{
const
loadTableData
=
async
()
=>
{
console
.
log
(
searchFormData
)
loading
.
value
=
true
loading
.
value
=
true
try
{
try
{
const
params
=
{
const
params
=
{
...
@@ -461,9 +459,9 @@ const loadTableData = async () => {
...
@@ -461,9 +459,9 @@ const loadTableData = async () => {
pageSize
:
pageSize
.
value
pageSize
:
pageSize
.
value
}
}
const
response
=
await
receivedFortuneList
(
params
)
const
response
=
await
receivedFortuneList
(
params
)
tableData
.
value
=
response
.
data
.
page
.
records
tableData
.
value
=
response
.
data
.
page
.
records
||
[]
pageTotal
.
value
=
response
.
data
.
page
.
total
pageTotal
.
value
=
response
.
data
.
page
.
total
||
0
pageSize
.
value
=
response
.
data
.
page
.
size
pageSize
.
value
=
response
.
data
.
page
.
size
||
10
// 统计信息
// 统计信息
statisticsData
.
value
=
{
statisticsData
.
value
=
{
...
@@ -521,18 +519,17 @@ const loadEntryEditRecordData = async (cbd) => {
...
@@ -521,18 +519,17 @@ const loadEntryEditRecordData = async (cbd) => {
// 初始化加载数据
// 初始化加载数据
onMounted
(()
=>
{
loadTableData
()
loadTableData
()
})
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.statistics-cards
{
.statistics-cards
{
margin-bottom
:
5px
;
margin-bottom
:
5px
;
background
:
RGBA
(
0
,
82
,
217
,
0.03
);
background
:
RGBA
(
0
,
82
,
217
,
0.03
);
border-radius
:
8px
;
border-radius
:
8px
;
padding
:
10px
20px
;
padding
:
10px
20px
;
}
}
.page-search-container
{
.page-search-container
{
padding
:
20px
;
padding
:
20px
;
background
:
#fff
;
background
:
#fff
;
...
...
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