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
23d2b1d4
Commit
23d2b1d4
authored
Jan 13, 2026
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
来佣重新对比
parent
10d9b14a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
6 deletions
+39
-6
src/api/financial/commission.js
+9
-0
src/views/financialCenter/financialIncome.vue
+30
-6
No files found.
src/api/financial/commission.js
View file @
23d2b1d4
...
...
@@ -412,3 +412,12 @@ export function exportPayRecord(data) {
responseType
:
'blob'
})
}
// 入账检核重新比对
export
function
compareCommissionEntry
(
data
){
return
request
({
url
:
'/csf/api/commission/compare'
,
method
:
'post'
,
data
:
data
})
}
src/views/financialCenter/financialIncome.vue
View file @
23d2b1d4
...
...
@@ -208,6 +208,9 @@
<!-- <el-table-column prop="zip" label="入账状态" width="120" /> -->
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"180"
>
<
template
#
default=
"{ row }"
>
<el-button
type=
"primary"
size=
"default"
@
click=
"compareCommissionEntryapi(row)"
>
重新比对
</el-button>
<el-button
type=
"primary"
size=
"default"
@
click=
"checkRecordEdit(row)"
>
修改
</el-button>
...
...
@@ -286,7 +289,7 @@ import { formatCurrency } from '@/utils/number'
// 接口
import
{
getPolicyCommissionList
,
generateCommissionRecord
,
addPayrollCheckRecord
,
commissionExpectedRecord
,
updateCompareStatus
,
updateCommissionRecord
,
deletePolicyCommission
,
syncExpectedCommission
addPayrollCheckRecord
,
commissionExpectedRecord
,
updateCompareStatus
,
updateCommissionRecord
,
deletePolicyCommission
,
syncExpectedCommission
,
compareCommissionEntry
}
from
'@/api/financial/commission'
import
{
InfoFilled
,
Select
,
Upload
,
Plus
}
from
'@element-plus/icons-vue'
...
...
@@ -620,7 +623,7 @@ const handleAddCheckRecord = async () => {
// ✅ 统一从子组件获取完整表单数据(含 extra 字段)
await
nextTick
()
// 确保子组件已同步
const
formData
=
addCheckRecordFormRef
.
value
.
getFormData
()
console
.
log
(
'======'
,
formData
)
console
.
log
(
'==========='
,
formData
)
let
params
if
(
editStatus
.
value
===
'edit'
)
{
params
=
{
...
...
@@ -635,20 +638,23 @@ const handleAddCheckRecord = async () => {
}
await
addPayrollCheckRecord
([
params
])
}
ElMessage
.
success
(
editStatus
.
value
===
'edit'
?
'更新成功'
:
'新增成功'
)
addCheckRecordDialogFlag
.
value
=
false
resetForm
(
'addReceivablesFormModel'
)
addCheckRecordFormRef
.
value
.
resetForm
()
checkRecordQuery
()
}
catch
(
error
)
{
console
.
error
(
'操作失败'
,
error
)
ElMessage
.
error
(
'操作失败'
)
}
}
const
reset
Form
=
(
type
)
=>
{
const
clear
Form
=
(
type
)
=>
{
if
(
type
===
'addReceivablesFormModel'
)
if
(
addCheckRecordFormRef
.
value
){
addReceivablesFormModel
.
value
=
{}
addCheckRecordFormRef
.
value
.
resetForm
()
}
}
...
...
@@ -842,7 +848,7 @@ const handleAddCheckList = () => {
editStatus
.
value
=
'add'
addReceivablesFormModel
.
value
=
{
...
selectedRow
.
value
}
addCheckRecordDialogFlag
.
value
=
true
reset
Form
(
'addReceivablesFormModel'
)
clear
Form
(
'addReceivablesFormModel'
)
}
// 设置比对状态api
...
...
@@ -911,6 +917,24 @@ const closthDialog = () => {
checkFormData
.
value
=
{}
checkRecordTableData
.
value
=
[]
}
// 重新比对
const
compareCommissionEntryapi
=
async
(
row
)
=>
{
try
{
const
res
=
await
compareCommissionEntry
({
commissionBizId
:
row
.
commissionBizId
})
if
(
res
.
code
===
200
)
{
ElMessage
.
success
(
'重新比对成功'
)
checkRecordQuery
()
}
else
{
ElMessage
.
error
(
res
.
msg
||
'重新比对失败'
)
}
}
catch
(
error
)
{
console
.
error
(
'重新比对失败'
,
error
)
ElMessage
.
error
(
'重新比对失败'
)
}
}
</
script
>
<
style
scoped
>
...
...
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