Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
bc3ce119
Commit
bc3ce119
authored
Mar 24, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试问题
parent
541297c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+9
-13
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
bc3ce119
...
...
@@ -184,8 +184,8 @@
}}
<
/span
>
<
span
v
-
else
>
{{
scope
.
row
.
sourceCurrencyCode
}}
<
el
-
input
v
-
model
=
"
scope.row.sourceAmount
"
style
=
"
width:
10
0px
"
@
input
=
"
() => sourceAmountChange(scope.row, scope.$index)
"
/>
:
<
el
-
input
v
-
model
=
"
scope.row.targetAmount
"
style
=
"
width:
10
0px
"
@
input
=
"
() => targetAmountChange(scope.row, scope.$index)
"
/>
{{
scope
.
row
.
targetCurrencyCode
}}
{{
scope
.
row
.
sourceCurrencyCode
}}
<
el
-
input
v
-
model
=
"
scope.row.sourceAmount
"
style
=
"
width:
6
0px
"
@
input
=
"
() => sourceAmountChange(scope.row, scope.$index)
"
/>
:
<
el
-
input
v
-
model
=
"
scope.row.targetAmount
"
style
=
"
width:
6
0px
"
@
input
=
"
() => targetAmountChange(scope.row, scope.$index)
"
/>
{{
scope
.
row
.
targetCurrencyCode
}}
<
/span
>
<
/template
>
<
template
v
-
else
>
...
...
@@ -246,8 +246,9 @@
<
el
-
form
-
item
v
-
if
=
"
scope.row.type !== 'total'
"
label
=
""
label
-
width
=
"
0
"
style
=
"
margin-bottom: 0
"
>
<!--
<
el
-
input
v
-
model
=
"
scope.row.collectionRate
"
-->
<!--
@
input
=
"
() => rateChange(scope.row, scope.$index)
"
><
/el-input>--
>
{{
scope
.
row
.
collectionSourceCurrencyCode
}}
<
el
-
input
v
-
model
=
"
scope.row.collectionSourceAmount
"
style
=
"
width: 100px
"
@
input
=
"
() => collectionSourceAmountChange(scope.row, scope.$index)
"
/>
:
<
el
-
input
v
-
model
=
"
scope.row.collectionTargetAmount
"
style
=
"
width: 100px
"
@
input
=
"
() => collectionTargetAmountChange(scope.row, scope.$index)
"
/>
{{
scope
.
row
.
targetCurrencyCode
}}
{{
scope
.
row
.
collectionSourceCurrencyCode
}}
<
el
-
input
v
-
model
=
"
scope.row.collectionSourceAmount
"
style
=
"
width: 60px
"
@
input
=
"
() => collectionSourceAmountChange(scope.row, scope.$index)
"
/>
:
<
el
-
input
v
-
model
=
"
scope.row.collectionTargetAmount
"
style
=
"
width: 60px
"
@
input
=
"
() => collectionTargetAmountChange(scope.row, scope.$index)
"
/>
{{
scope
.
row
.
targetCurrencyCode
}}
<
/el-form-item
>
<
span
v
-
else
>
{{
$t
(
"
期望收费金额
"
)
}}
<
/span
>
<
/template
>
...
...
@@ -1115,7 +1116,6 @@ export default {
row
.
collectionTargetCurrencyCode
=
this
.
getCurrencySymbol
(
row
.
currencyId
)
}
}
this
.
rateChange
(
row
,
index
)
}
,
//获取汇率
...
...
@@ -1128,15 +1128,13 @@ export default {
if
(
!
row
.
targetAmount
)
{
var
rate
=
this
.
getRate
(
row
.
currencyId
,
this
.
showCurrencyId
)
if
(
!
rate
)
{
// this.$modal.msgError(this.$t("11汇率不能为0,请输入正确的汇率"))
this
.
$modal
.
msgError
(
"
11汇率不能为0,请输入正确的汇率
"
)
this
.
$modal
.
msgError
(
this
.
$t
(
"
汇率设置不能为空
"
))
}
row
.
targetAmount
=
rate
.
targetAmount
row
.
targetCurrencyCode
=
rate
.
targetCurrencyCode
}
if
(
row
.
targetAmount
==
0
&&
parseInt
(
row
.
targetAmount
)
===
0
)
{
// this.$modal.msgError(this.$t("22汇率不能为0,请输入正确的汇率"))
this
.
$modal
.
msgError
(
"
22汇率不能为0,请输入正确的汇率
"
)
this
.
$modal
.
msgError
(
this
.
$t
(
"
汇率不能为0,请输入正确的汇率
"
))
}
if
(
row
.
targetAmount
)
{
row
.
writeOffAmount
=
NP
.
divide
(
NP
.
times
(
row
.
targetAmount
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
)),
row
.
sourceAmount
||
1
).
toFixed
(
2
)
...
...
@@ -1161,15 +1159,13 @@ export default {
if
(
!
row
.
sourceAmount
)
{
var
rate
=
this
.
getRate
(
row
.
currencyId
,
this
.
showCurrencyId
)
if
(
!
rate
)
{
// this.$modal.msgError(this.$t("33汇率不能为0,请输入正确的汇率"))
this
.
$modal
.
msgError
(
"
33汇率不能为0,请输入正确的汇率
"
)
this
.
$modal
.
msgError
(
this
.
$t
(
"
汇率设置不能为空
"
))
}
row
.
sourceAmount
=
rate
.
sourceAmount
row
.
sourceCurrencyCode
=
rate
.
sourceCurrencyCode
}
if
(
row
.
sourceAmount
==
0
&&
parseInt
(
row
.
sourceAmount
)
===
0
)
{
// this.$modal.msgError(this.$t("44汇率不能为0,请输入正确的汇率"))
this
.
$modal
.
msgError
(
"
44汇率不能为0,请输入正确的汇率
"
)
this
.
$modal
.
msgError
(
this
.
$t
(
"
汇率不能为0,请输入正确的汇率
"
))
}
if
(
row
.
sourceAmount
)
{
row
.
writeOffAmount
=
NP
.
divide
(
NP
.
times
(
row
.
targetAmount
||
0
,
NP
.
minus
(
row
.
receivableAmount
,
row
.
discountTotal
||
0
)),
row
.
sourceAmount
||
1
).
toFixed
(
2
)
...
...
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