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
f625bc36
Commit
f625bc36
authored
May 29, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复保费对账--汇款记录bug
parent
a22a5886
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
src/views/sign/policyReceipts/premiumRecon.vue
+28
-26
No files found.
src/views/sign/policyReceipts/premiumRecon.vue
View file @
f625bc36
...
...
@@ -780,7 +780,7 @@ const remittanceConfig = [
// },
{
type
:
'upload'
,
prop
:
'paymentVoucherList'
,
prop
:
'paymentVoucher
Dto
List'
,
label
:
'支付凭证'
,
uploadType
:
'file'
,
multiple
:
true
,
...
...
@@ -799,7 +799,7 @@ const remittanceConfig = [
},
{
type
:
'upload'
,
prop
:
'accountVerificationList'
,
prop
:
'accountVerification
Dto
List'
,
label
:
'账户证明'
,
uploadType
:
'file'
,
multiple
:
true
,
...
...
@@ -874,6 +874,9 @@ async function onSelectChange(type, prop, value, item) {
}
}
}
else
if
(
type
==
'addCheckRecord'
)
{
console
.
log
(
'===================================='
)
console
.
log
(
'保单号改变'
)
console
.
log
(
'===================================='
)
//新增保费对账弹窗
if
(
prop
===
'policyNo'
&&
value
)
{
tempPolicyNo
.
value
=
value
...
...
@@ -910,6 +913,13 @@ const addRemittance = async () => {
}
try
{
const
formData
=
await
addCheckRecordFormRef
.
value
.
validate
()
const
res
=
await
getCheckPolicyNoApi
(
formData
.
policyNo
)
console
.
log
(
'校验保单res'
,
res
)
if
(
!
res
.
data
)
{
ElMessage
.
warning
(
res
.
msg
)
return
}
// 汇款记录详情也需要回显保费对账得一些字段
remittanceFormModel
.
value
=
{
...
formData
...
...
@@ -917,6 +927,7 @@ const addRemittance = async () => {
remittanceFormModel
.
value
.
apiPremiumRemittanceFileDtoList
=
[]
tempOtherFileList
.
value
=
[]
remittanceDialogTitle
.
value
=
'新增汇款'
showRemittance
.
value
=
true
}
catch
(
error
)
{
// ❌ 校验失败或提交异常都会进入这里
...
...
@@ -993,11 +1004,16 @@ const confirmRemittance = async data => {
const
formData
=
await
remittanceFormRef
.
value
.
validate
()
let
newFormData
=
JSON
.
parse
(
JSON
.
stringify
(
formData
))
// 因为汇款记录回显了保费对账的一些字段,但提交汇款记录的时候这些回显的字段是不能提交的,所以在这里做删除
console
.
log
(
'确认汇款'
,
newFormData
)
// return
let
objMap
=
{
apiPremiumRemittanceFileDtoList
:
'apiPremiumRemittanceFileDtoList'
,
paymentVoucherDtoList
:
'paymentVoucherDtoList'
,
accountVerificationDtoList
:
'accountVerificationDtoList'
}
for
(
const
key
in
newFormData
)
{
if
(
key
==
deleteObjkeys
[
key
])
delete
newFormData
[
key
]
// 文件上传的数据格式在这里统一处理
if
(
key
==
'apiPremiumRemittanceFileDtoList'
&&
newFormData
[
key
].
length
>
0
)
{
if
(
key
==
objMap
[
key
]
&&
newFormData
[
key
]
&&
newFormData
[
key
].
length
>
0
)
{
newFormData
[
key
]
=
newFormData
[
key
].
map
(
item
=>
{
// 有response说明是新上传得,要处理返回格式和字段
if
(
item
.
response
)
{
...
...
@@ -1007,22 +1023,19 @@ const confirmRemittance = async data => {
fileType
:
newObj
.
fileType
,
//文件类型
fileUrl
:
newObj
.
url
,
//文件URL,
url
:
newObj
.
url
//文件URL
// name: newObj.originalName //文件名
}
}
else
{
return
item
}
})
}
else
if
(
(
key
==
'paymentVoucherList'
||
key
==
'accountVerificationList'
)
&&
newFormData
[
key
].
length
>
0
)
{
newFormData
[
key
]
=
newFormData
[
key
].
map
(
item
=>
item
.
url
)
}
}
let
res
=
{}
console
.
log
(
'===================================='
)
console
.
log
(
'newFormData'
,
newFormData
)
console
.
log
(
'===================================='
)
// console.log('====================================')
// console.log('newFormData', newFormData)
// console.log('====================================')
// return
if
(
currentRow
.
value
.
premiumReconciliationBizId
&&
!
formData
.
premiumRemittanceBizId
)
{
//编辑保费对账状态下新增汇款记录
const
params
=
{
...
...
@@ -1089,10 +1102,10 @@ const editRemittance = async row => {
// 上传回显得格式是[{url:''}]所以要处理一下
for
(
const
key
in
newObj
)
{
if
(
key
==
'accountVerificationDtoList'
||
key
==
'paymentVoucherDtoList'
)
{
console
.
log
(
'key'
,
key
)
if
(
newObj
[
key
]
&&
newObj
[
key
].
length
>
0
)
{
newObj
[
key
]
=
newObj
[
key
].
map
(
item
=>
{
return
{
...
item
,
url
:
item
.
fileUrl
,
name
:
item
.
fileName
}
...
...
@@ -1114,17 +1127,6 @@ const editRemittance = async row => {
}
remittanceFormModel
.
value
=
newObj
if
(
newObj
.
accountVerificationDtoList
&&
newObj
.
accountVerificationDtoList
.
length
>
0
)
{
remittanceFormModel
.
value
.
accountVerificationList
=
newObj
.
accountVerificationDtoList
}
else
{
remittanceFormModel
.
value
.
accountVerificationList
=
[]
}
if
(
newObj
.
paymentVoucherDtoList
&&
newObj
.
paymentVoucherDtoList
.
length
>
0
)
{
remittanceFormModel
.
value
.
paymentVoucherList
=
newObj
.
paymentVoucherDtoList
}
else
{
remittanceFormModel
.
value
.
paymentVoucherList
=
[]
}
if
(
remittanceFormModel
.
value
.
apiPremiumRemittanceFileDtoList
.
length
>
0
)
{
tempOtherFileList
.
value
=
remittanceFormModel
.
value
.
apiPremiumRemittanceFileDtoList
}
...
...
@@ -1239,7 +1241,7 @@ const getPremiumReconciliationDetail = async row => {
// 按钮事件处理
const
handleAdd
=
()
=>
{
console
.
log
(
addCheckRecordFormModel
.
value
)
currentRow
.
value
=
{}
receiptsDialogTitle
.
value
=
'新增保单对账'
receiptsFlag
.
value
=
true
}
...
...
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