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
b5da2d46
Commit
b5da2d46
authored
May 06, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复新增汇款bug
parent
c92e309d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
15 deletions
+61
-15
src/utils/number.js
+1
-3
src/views/financialCenter/financialBilling.vue
+57
-7
src/views/sign/appointment/appointmentEdit.vue
+1
-1
src/views/sign/policyReceipts/premiumRecon.vue
+2
-4
No files found.
src/utils/number.js
View file @
b5da2d46
...
@@ -229,9 +229,7 @@ export function calculateAmount(a, b, digits = 2, type) {
...
@@ -229,9 +229,7 @@ export function calculateAmount(a, b, digits = 2, type) {
}
}
// 四舍五入到指定位数,并转为 Number(若需要字符串可用 .toFixed(digits))
// 四舍五入到指定位数,并转为 Number(若需要字符串可用 .toFixed(digits))
// return result.toDecimalPlaces(digits, Decimal.ROUND_HALF_UP).toNumber()
// return result.toDecimalPlaces(digits, Decimal.ROUND_HALF_UP).toNumber()
console
.
log
(
'===================================='
)
console
.
log
(
'金钱'
,
result
.
toFixed
(
digits
,
Decimal
.
ROUND_HALF_UP
))
console
.
log
(
'===================================='
)
return
result
.
toFixed
(
digits
,
Decimal
.
ROUND_HALF_UP
)
return
result
.
toFixed
(
digits
,
Decimal
.
ROUND_HALF_UP
)
}
catch
(
e
)
{
}
catch
(
e
)
{
return
null
return
null
...
...
src/views/financialCenter/financialBilling.vue
View file @
b5da2d46
...
@@ -72,6 +72,11 @@
...
@@ -72,6 +72,11 @@
>
>
<el-table-column
type=
"selection"
width=
"40"
/>
<el-table-column
type=
"selection"
width=
"40"
/>
<el-table-column
prop=
"policyNo"
label=
"业务编号"
width=
"120"
sortable
/>
<el-table-column
prop=
"policyNo"
label=
"业务编号"
width=
"120"
sortable
/>
<el-table-column
prop=
"status"
label=
"出账状态"
width=
"160"
sortable
>
<template
#
default=
"
{ row }">
{{
selectDictLabel
(
csf_fortune_status
,
row
.
status
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"isPart"
label=
"是否拆分出账"
width=
"120"
>
<el-table-column
prop=
"isPart"
label=
"是否拆分出账"
width=
"120"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<dict-tag
:options=
"sys_no_yes"
:value=
"scope.row.isPart"
/>
<dict-tag
:options=
"sys_no_yes"
:value=
"scope.row.isPart"
/>
...
@@ -148,11 +153,7 @@
...
@@ -148,11 +153,7 @@
sortable
sortable
:formatter=
"row => `${row.fortuneUnpaidRatio}%`"
:formatter=
"row => `${row.fortuneUnpaidRatio}%`"
/>
/>
<el-table-column
prop=
"status"
label=
"出账状态"
width=
"160"
sortable
>
<
template
#
default=
"{ row }"
>
{{
selectDictLabel
(
csf_fortune_status
,
row
.
status
)
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"premium"
prop=
"premium"
label=
"期交保费"
label=
"期交保费"
...
@@ -727,6 +728,18 @@ const handleInputChange = async (formType, prop, value, item) => {
...
@@ -727,6 +728,18 @@ const handleInputChange = async (formType, prop, value, item) => {
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
await
nextTick
()
await
nextTick
()
rateExchangeForm
.
value
.
hkdAmount
=
hkdAmount
rateExchangeForm
.
value
.
hkdAmount
=
hkdAmount
const
hkdToPayoutRate
=
rateExchangeForm
.
value
.
hkdToPayoutRate
if
(
hkdToPayoutRate
)
{
const
payoutAmount
=
calculateAmount
(
hkdAmount
,
hkdToPayoutRate
,
2
)
await
nextTick
()
rateExchangeForm
.
value
.
payoutAmount
=
payoutAmount
}
const
exchangeRate
=
rateExchangeForm
.
value
.
exchangeRate
if
(
exchangeRate
)
{
const
ruleAmount
=
calculateAmount
(
hkdAmount
,
exchangeRate
,
2
,
'Divided'
)
await
nextTick
()
rateExchangeForm
.
value
.
ruleAmount
=
ruleAmount
}
}
else
if
(
prop
===
'originalAmount'
&&
value
&&
rateExchangeForm
.
value
.
originalToHkdRate
)
{
}
else
if
(
prop
===
'originalAmount'
&&
value
&&
rateExchangeForm
.
value
.
originalToHkdRate
)
{
// 计算港币金额
// 计算港币金额
const
originalAmount
=
value
const
originalAmount
=
value
...
@@ -734,6 +747,19 @@ const handleInputChange = async (formType, prop, value, item) => {
...
@@ -734,6 +747,19 @@ const handleInputChange = async (formType, prop, value, item) => {
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
await
nextTick
()
await
nextTick
()
rateExchangeForm
.
value
.
hkdAmount
=
hkdAmount
rateExchangeForm
.
value
.
hkdAmount
=
hkdAmount
const
hkdToPayoutRate
=
rateExchangeForm
.
value
.
hkdToPayoutRate
if
(
hkdToPayoutRate
)
{
const
payoutAmount
=
calculateAmount
(
hkdAmount
,
hkdToPayoutRate
,
2
)
await
nextTick
()
rateExchangeForm
.
value
.
payoutAmount
=
payoutAmount
}
const
exchangeRate
=
rateExchangeForm
.
value
.
exchangeRate
if
(
exchangeRate
)
{
const
ruleAmount
=
calculateAmount
(
hkdAmount
,
exchangeRate
,
2
,
'Divided'
)
await
nextTick
()
rateExchangeForm
.
value
.
ruleAmount
=
ruleAmount
}
}
}
//2.计算实际发放金额 港币金额*港币->发放币种汇率
//2.计算实际发放金额 港币金额*港币->发放币种汇率
if
(
prop
==
'hkdAmount'
&&
value
&&
rateExchangeForm
.
value
.
hkdToPayoutRate
)
{
if
(
prop
==
'hkdAmount'
&&
value
&&
rateExchangeForm
.
value
.
hkdToPayoutRate
)
{
...
@@ -791,8 +817,20 @@ const handleInputChange = async (formType, prop, value, item) => {
...
@@ -791,8 +817,20 @@ const handleInputChange = async (formType, prop, value, item) => {
const
originalToHkdRate
=
value
const
originalToHkdRate
=
value
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
await
nextTick
()
await
nextTick
()
addCheckRecordFormModel
.
value
.
hkdAmount
=
hkdAmount
addCheckRecordFormModel
.
value
.
hkdAmount
=
hkdAmount
const
hkdToPayoutRate
=
addCheckRecordFormModel
.
value
.
hkdToPayoutRate
if
(
hkdToPayoutRate
)
{
const
payoutAmount
=
calculateAmount
(
hkdAmount
,
hkdToPayoutRate
,
2
)
await
nextTick
()
addCheckRecordFormModel
.
value
.
payoutAmount
=
payoutAmount
}
const
exchangeRate
=
addCheckRecordFormModel
.
value
.
exchangeRate
if
(
exchangeRate
)
{
const
ruleAmount
=
calculateAmount
(
hkdAmount
,
exchangeRate
,
2
,
'Divided'
)
await
nextTick
()
addCheckRecordFormModel
.
value
.
ruleAmount
=
ruleAmount
}
}
else
if
(
}
else
if
(
prop
===
'originalAmount'
&&
prop
===
'originalAmount'
&&
value
&&
value
&&
...
@@ -805,6 +843,18 @@ const handleInputChange = async (formType, prop, value, item) => {
...
@@ -805,6 +843,18 @@ const handleInputChange = async (formType, prop, value, item) => {
console
.
log
(
'新增'
,
hkdAmount
)
console
.
log
(
'新增'
,
hkdAmount
)
await
nextTick
()
await
nextTick
()
addCheckRecordFormModel
.
value
.
hkdAmount
=
hkdAmount
addCheckRecordFormModel
.
value
.
hkdAmount
=
hkdAmount
const
hkdToPayoutRate
=
addCheckRecordFormModel
.
value
.
hkdToPayoutRate
if
(
hkdToPayoutRate
)
{
const
payoutAmount
=
calculateAmount
(
hkdAmount
,
hkdToPayoutRate
,
2
)
await
nextTick
()
addCheckRecordFormModel
.
value
.
payoutAmount
=
payoutAmount
}
const
exchangeRate
=
addCheckRecordFormModel
.
value
.
exchangeRate
if
(
exchangeRate
)
{
const
ruleAmount
=
calculateAmount
(
hkdAmount
,
exchangeRate
,
2
,
'Divided'
)
await
nextTick
()
addCheckRecordFormModel
.
value
.
ruleAmount
=
ruleAmount
}
}
}
//2.计算实际发放金额 港币金额*港币->发放币种汇率
//2.计算实际发放金额 港币金额*港币->发放币种汇率
if
(
prop
==
'hkdAmount'
&&
value
&&
addCheckRecordFormModel
.
value
.
hkdToPayoutRate
)
{
if
(
prop
==
'hkdAmount'
&&
value
&&
addCheckRecordFormModel
.
value
.
hkdToPayoutRate
)
{
...
@@ -980,7 +1030,7 @@ const addSpiltRecord = () => {
...
@@ -980,7 +1030,7 @@ const addSpiltRecord = () => {
console
.
log
(
'比例'
,
ratio
)
console
.
log
(
'比例'
,
ratio
)
if
(
ratio
>
100
||
ratio
==
100
)
{
if
(
ratio
>
100
||
ratio
==
100
)
{
ElMessage
.
error
(
'
应
出账比例不能大于100%'
)
ElMessage
.
error
(
'出账比例不能大于100%'
)
return
return
}
}
}
}
...
...
src/views/sign/appointment/appointmentEdit.vue
View file @
b5da2d46
...
@@ -487,7 +487,7 @@ const processInfo = ref({
...
@@ -487,7 +487,7 @@ const processInfo = ref({
fnaNo
:
'暂无'
,
fnaNo
:
'暂无'
,
status
:
'未完成'
,
status
:
'未完成'
,
createTime
:
proxy
.
parseTime
(
new
Date
()),
createTime
:
proxy
.
parseTime
(
new
Date
()),
c
ustomerName
:
userStore
.
n
ame
c
reatorName
:
userStore
.
realN
ame
})
})
const
editStatus
=
ref
(
null
)
//编辑状态
const
editStatus
=
ref
(
null
)
//编辑状态
const
execlDialog
=
ref
(
false
)
const
execlDialog
=
ref
(
false
)
...
...
src/views/sign/policyReceipts/premiumRecon.vue
View file @
b5da2d46
...
@@ -876,7 +876,6 @@ async function onSelectChange(type, prop, value, item) {
...
@@ -876,7 +876,6 @@ async function onSelectChange(type, prop, value, item) {
const
getPolicyInfo
=
async
(
policyNo
,
type
,
valueType
)
=>
{
const
getPolicyInfo
=
async
(
policyNo
,
type
,
valueType
)
=>
{
try
{
try
{
const
res
=
await
policyDetail
(
policyNo
)
const
res
=
await
policyDetail
(
policyNo
)
console
.
log
(
'姓名'
,
res
)
if
(
type
==
'remittance'
)
{
if
(
type
==
'remittance'
)
{
if
(
valueType
==
'TBR'
)
{
if
(
valueType
==
'TBR'
)
{
remittanceFormModel
.
value
.
payer
=
res
.
data
.
policyHolder
remittanceFormModel
.
value
.
payer
=
res
.
data
.
policyHolder
...
@@ -1321,17 +1320,16 @@ const handleCurrentChange = val => {
...
@@ -1321,17 +1320,16 @@ const handleCurrentChange = val => {
const
tableData
=
ref
([])
const
tableData
=
ref
([])
const
handleSelect
=
(
command
,
row
)
=>
{
const
handleSelect
=
(
command
,
row
)
=>
{
selectedRow
.
value
=
row
selectedRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
tempPolicyNo
.
value
=
selectedRow
.
value
.
policyNo
if
(
command
===
'editRecord'
)
{
if
(
command
===
'editRecord'
)
{
currentRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
currentRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
getPremiumReconciliationDetail
(
row
)
getPremiumReconciliationDetail
(
row
)
}
else
if
(
command
===
'settingResult'
)
{
}
else
if
(
command
===
'settingResult'
)
{
affirmFormModel
.
value
=
{}
affirmFormModel
.
value
=
{}
settingAffirmLoading
.
value
=
false
settingAffirmLoading
.
value
=
false
showAffirm
.
value
=
true
showAffirm
.
value
=
true
currentRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
currentRow
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
row
))
tempPolicyNo
.
value
=
currentRow
.
value
.
policyNo
getPolicyInfo
(
row
.
policyNo
,
'affirm'
)
getPolicyInfo
(
row
.
policyNo
,
'affirm'
)
}
}
}
}
...
...
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