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
ae59a43d
Commit
ae59a43d
authored
Nov 01, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款单币种修复
parent
2f2b7dc6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
36 deletions
+48
-36
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+30
-18
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+18
-18
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
ae59a43d
...
@@ -372,6 +372,7 @@
...
@@ -372,6 +372,7 @@
<
div
v
-
if
=
"
scope.row.collectionAmount[0]
"
>
{{
$t
(
'
美元
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
0
].
toFixed
(
6
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[0]
"
>
{{
$t
(
'
美元
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
0
].
toFixed
(
6
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[1]
"
>
{{
$t
(
'
人民币
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
1
].
toFixed
(
6
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[1]
"
>
{{
$t
(
'
人民币
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
1
].
toFixed
(
6
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[2]
"
>
{{
$t
(
'
奈拉
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
2
].
toFixed
(
6
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[2]
"
>
{{
$t
(
'
奈拉
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
2
].
toFixed
(
6
)
}}
<
/div
>
<
div
v
-
if
=
"
scope.row.collectionAmount[3]
"
>
{{
$t
(
'
西非法郎
'
)
}}
:
{{
scope
.
row
.
collectionAmount
[
3
].
toFixed
(
6
)
}}
<
/div
>
<
/div
>
<
/div
>
<!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
-->
<!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
-->
<
/template
>
<
/template
>
...
@@ -857,12 +858,13 @@ export default {
...
@@ -857,12 +858,13 @@ export default {
row
.
collectionCurrencyId
=
val
row
.
collectionCurrencyId
=
val
if
(
val
==
row
.
currencyId
)
row
.
collectionRate
=
1
if
(
val
==
row
.
currencyId
)
row
.
collectionRate
=
1
else
{
else
{
if
(
row
.
currencyId
==
1
&&
val
==
3
)
row
.
collectionRate
=
this
.
UStoRMB
()
// if (row.currencyId == 1 && val == 3) row.collectionRate = this.UStoRMB()
if
(
row
.
currencyId
==
1
&&
val
==
2
)
row
.
collectionRate
=
this
.
UStoNAN
()
// if (row.currencyId == 1 && val == 2) row.collectionRate = this.UStoNAN()
if
(
row
.
currencyId
==
3
&&
val
==
1
)
row
.
collectionRate
=
this
.
RMBtoUS
()
// if (row.currencyId == 3 && val == 1) row.collectionRate = this.RMBtoUS()
if
(
row
.
currencyId
==
3
&&
val
==
2
)
row
.
collectionRate
=
this
.
RMBtoNAN
()
// if (row.currencyId == 3 && val == 2) row.collectionRate = this.RMBtoNAN()
if
(
row
.
currencyId
==
2
&&
val
==
1
)
row
.
collectionRate
=
this
.
NANtoUS
()
// if (row.currencyId == 2 && val == 1) row.collectionRate = this.NANtoUS()
if
(
row
.
currencyId
==
2
&&
val
==
3
)
row
.
collectionRate
=
this
.
NANtoRMB
()
// if (row.currencyId == 2 && val == 3) row.collectionRate = this.NANtoRMB()
row
.
collectionRate
=
NP
.
divide
(
this
.
currencyList
.
find
(
v
=>
v
.
id
===
row
.
currencyId
).
huilv
,
this
.
currencyList
.
find
(
v
=>
v
.
id
===
val
).
huilv
).
toFixed
(
6
)
}
}
this
.
rateChange
(
row
,
index
)
this
.
rateChange
(
row
,
index
)
...
@@ -887,8 +889,9 @@ export default {
...
@@ -887,8 +889,9 @@ export default {
const
nairaList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
2
)
const
nairaList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
2
)
const
naira
=
nairaList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
)
const
naira
=
nairaList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
)
const
faList
=
this
.
form
.
receiptAccountList
.
filter
(
v
=>
v
.
collectionCurrencyId
==
6
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
[
dollar
,
rmb
,
naira
]
const
fa
=
faList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
),
0
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
[
dollar
,
rmb
,
naira
,
fa
]
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
}
,
100
)
}
,
100
)
}
,
}
,
...
@@ -1091,16 +1094,25 @@ export default {
...
@@ -1091,16 +1094,25 @@ export default {
}
else
{
}
else
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
}
}
// getReceivableInfoByIds(
{
id
:
this
.
selectListRow
.
id
}
).
then
(
res
=>
{
// if(this.id>0)
{
// this.$set(this.list, this.selectListIndex,
{...
res
.
data
}
)
// getInvoicingItem(
{
id
:
this
.
id
}
).
then
(
res
=>
{
// this.list = [...res.data]
// this.cancelDiscount()
// this.cancelDiscount()
// this.calculation()
// this.calculation()
//
}
)
//
}
)
getInvoicingItem
({
id
:
this
.
id
}
).
then
(
res
=>
{
//
}
else
{
this
.
list
=
[...
res
.
data
]
setTimeout
(()
=>
{
getReceivableInfoByIds
({
id
:
this
.
selectListRow
.
id
}
).
then
(
res
=>
{
this
.
$set
(
this
.
list
,
this
.
selectListIndex
,
{...
res
.
data
}
)
this
.
cancelDiscount
()
this
.
cancelDiscount
()
this
.
calculation
()
this
.
calculation
()
}
)
}
)
}
,
1000
)
//
}
}
)
}
)
}
,
}
,
getList
()
{
getList
()
{
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
ae59a43d
...
@@ -41,13 +41,13 @@
...
@@ -41,13 +41,13 @@
<el-table-column
:label=
"$t('单价金额')"
align=
"center"
prop=
"unitPrice"
>
<el-table-column
:label=
"$t('单价金额')"
align=
"center"
prop=
"unitPrice"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
unitPrice
}}
</span>
<span>
{{
scope
.
row
.
unitPrice
}}
</span>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
<
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('优惠金额')"
align=
"center"
>
<el-table-column
:label=
"$t('优惠金额')"
align=
"center"
>
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<
/el-select> --
>
<
/el-select> --
>
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('核销基准币种')
"
>
<
el
-
descriptions
-
item
:
label
=
"
$t('核销基准币种')
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
{{
getCurrencyLabel
(
showCurrencyId
)
}}
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
/el-descriptions
>
<
/el-descriptions
>
<
/el-card
>
<
/el-card
>
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
<
el
-
table
:
data
=
"
form.receiptAccountList
"
border
>
<
el
-
table
:
data
=
"
form.receiptAccountList
"
border
>
<
el
-
table
-
column
:
label
=
"
$t('应收币种')
"
align
=
"
center
"
>
<
el
-
table
-
column
:
label
=
"
$t('应收币种')
"
align
=
"
center
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"
应收金额
"
align
=
"
center
"
prop
=
"
receivableAmount
"
/>
-->
<!--
<
el
-
table
-
column
label
=
"
应收金额
"
align
=
"
center
"
prop
=
"
receivableAmount
"
/>
-->
...
@@ -130,20 +130,20 @@
...
@@ -130,20 +130,20 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
width
=
"
220
"
>
<
el
-
table
-
column
align
=
"
center
"
width
=
"
220
"
>
<
template
#
header
>
<
template
#
header
>
{{
$t
(
'
核销基准币种
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
汇率
'
)
}}
{{
$t
(
'
核销基准币种
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
{{
$t
(
'
汇率
'
)
}}
<
/template
>
<
/template
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
v
-
if
=
"
scope.row.type !== 'total'
"
>
<
template
v
-
if
=
"
scope.row.type !== 'total'
"
>
<
span
>
{{
scope
.
row
.
writeOffRate
}}
<
/span
>
<
span
>
{{
scope
.
row
.
writeOffRate
}}
<
/span
>
<
/template
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
{{
$t
(
'
应收总金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
应收总金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
prop
=
"
writeOffAmount
"
>
<
el
-
table
-
column
align
=
"
center
"
prop
=
"
writeOffAmount
"
>
<
template
#
header
>
<
template
#
header
>
{{
$t
(
'
核销基准金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
核销基准金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款账户')
"
align
=
"
center
"
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款账户')
"
align
=
"
center
"
>
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
<
el
-
card
class
=
"
card
"
>
<
el
-
card
class
=
"
card
"
>
<
div
slot
=
"
header
"
class
=
"
card-title
"
>
{{
$t
(
'
银行收款明细
'
)
}}
<
/div
>
<
div
slot
=
"
header
"
class
=
"
card-title
"
>
{{
$t
(
'
银行收款明细
'
)
}}
<
/div
>
<
div
>
<
div
>
<
el
-
button
type
=
"
primary
"
plain
size
=
"
mini
"
@
click
=
"
batchVerification
"
style
=
"
padding: 10px; margin-bottom: 10px
"
>
{{
$t
(
'
批量核销
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
plain
size
=
"
mini
"
@
click
=
"
batchVerification
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
style
=
"
padding: 10px; margin-bottom: 10px
"
>
{{
$t
(
'
批量核销
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
plain
size
=
"
mini
"
@
click
=
"
handleAddReceiptItem
"
style
=
"
padding: 10px; margin-bottom: 10px
"
>
{{
$t
(
'
添加收款明细
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
plain
size
=
"
mini
"
@
click
=
"
handleAddReceiptItem
"
style
=
"
padding: 10px; margin-bottom: 10px
"
>
{{
$t
(
'
添加收款明细
'
)
}}
<
/el-button
>
<
/div
>
<
/div
>
<
el
-
table
ref
=
"
multipleTable
"
:
data
=
"
detailed
"
border
row
-
key
=
"
id
"
@
selection
-
change
=
"
handleSelectionChange
"
>
<
el
-
table
ref
=
"
multipleTable
"
:
data
=
"
detailed
"
border
row
-
key
=
"
id
"
@
selection
-
change
=
"
handleSelectionChange
"
>
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
<
el
-
table
-
column
:
label
=
"
$t('实收金额')
"
align
=
"
center
"
prop
=
"
amount
"
/>
<
el
-
table
-
column
:
label
=
"
$t('实收金额')
"
align
=
"
center
"
prop
=
"
amount
"
/>
<
el
-
table
-
column
:
label
=
"
$t('实收币种')
"
align
=
"
center
"
prop
=
"
marks
"
>
<
el
-
table
-
column
:
label
=
"
$t('实收币种')
"
align
=
"
center
"
prop
=
"
marks
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('汇率')
"
align
=
"
center
"
prop
=
"
rate
"
/>
<
el
-
table
-
column
:
label
=
"
$t('汇率')
"
align
=
"
center
"
prop
=
"
rate
"
/>
...
@@ -240,8 +240,8 @@
...
@@ -240,8 +240,8 @@
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
text
"
@
click
=
"
detailClick(scope.row)
"
>
{{
$t
(
'
详情
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
text
"
@
click
=
"
detailClick(scope.row)
"
>
{{
$t
(
'
详情
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
verificationClick(scope.row)
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
verificationClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 1
"
type
=
"
text
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 1
"
type
=
"
text
"
@
click
=
"
verificationCancelClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
editClick(scope.row)
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
editClick(scope.row)
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -258,19 +258,19 @@
...
@@ -258,19 +258,19 @@
<
/template
>
<
/template
>
<
div
v
-
else
>
<
div
v
-
else
>
<
div
v
-
for
=
"
(amount, currency) in writeOffTotal
"
:
key
=
"
currency
"
>
<
div
v
-
for
=
"
(amount, currency) in writeOffTotal
"
:
key
=
"
currency
"
>
{{
amount
}}
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
currency
"
/>
{{
amount
}}
{{
getCurrencyLabel
(
currency
)
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
>
<
el
-
descriptions
-
item
>
<
template
slot
=
"
label
"
>
<
template
slot
=
"
label
"
>
{{
$t
(
'
核销基准金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
核销基准金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
{{
writeOffAmount
}}
{{
writeOffAmount
}}
<
/el-descriptions-item
>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
>
<
el
-
descriptions
-
item
>
<
template
slot
=
"
label
"
>
<
template
slot
=
"
label
"
>
{{
$t
(
'
已核销比例
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
已核销比例
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
{{
WriteOffProportion
}}
%
{{
WriteOffProportion
}}
%
<
/el-descriptions-item
>
<
/el-descriptions-item
>
...
@@ -278,7 +278,7 @@
...
@@ -278,7 +278,7 @@
<
/el-card
>
<
/el-card
>
<
div
slot
=
"
footer
"
style
=
"
margin: 20px 0
"
>
<
div
slot
=
"
footer
"
style
=
"
margin: 20px 0
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
toEdit
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
toEdit
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
verificationAll
"
>
{{
$t
(
'
全部核销
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
verificationAll
"
v
-
hasPermi
=
"
['ecw:verification:update']
"
>
{{
$t
(
'
全部核销
'
)
}}
<
/el-button
>
<
/div
>
<
/div
>
<
el
-
dialog
v
-
if
=
"
openAddDialog
"
:
visible
.
sync
=
"
openAddDialog
"
:
title
=
"
dialogTitle
"
width
=
"
40%
"
append
-
to
-
body
>
<
el
-
dialog
v
-
if
=
"
openAddDialog
"
:
visible
.
sync
=
"
openAddDialog
"
:
title
=
"
dialogTitle
"
width
=
"
40%
"
append
-
to
-
body
>
<
div
style
=
"
padding: 0 24px
"
>
<
div
style
=
"
padding: 0 24px
"
>
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
<
/template
>
<
/template
>
<
div
v
-
else
>
<
div
v
-
else
>
<
div
v
-
for
=
"
(amount, currency) in surplusData
"
:
key
=
"
currency
"
>
<
div
v
-
for
=
"
(amount, currency) in surplusData
"
:
key
=
"
currency
"
>
<
span
v
-
if
=
"
amount
"
>
{{
amount
}}
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
currency
"
/>
<
/span
>
<
span
v
-
if
=
"
amount
"
>
{{
amount
}}
{{
getCurrencyLabel
(
currency
)
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -355,7 +355,7 @@
...
@@ -355,7 +355,7 @@
:
rules
=
"
{ required: true, trigger: ['blur', 'change'], message: $t('汇率不能为空')
}
"
:
rules
=
"
{ required: true, trigger: ['blur', 'change'], message: $t('汇率不能为空')
}
"
>
>
<
template
slot
=
"
label
"
>
<
template
slot
=
"
label
"
>
{{
$t
(
'
汇率
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
汇率
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
<
el
-
input
v
-
if
=
"
!isView
"
v
-
model
=
"
addForm.rate
"
style
=
"
width: 220px
"
><
/el-input
>
<
el
-
input
v
-
if
=
"
!isView
"
v
-
model
=
"
addForm.rate
"
style
=
"
width: 220px
"
><
/el-input
>
<
span
v
-
else
>
{{
addForm
.
rate
}}
<
/span
>
<
span
v
-
else
>
{{
addForm
.
rate
}}
<
/span
>
...
@@ -364,7 +364,7 @@
...
@@ -364,7 +364,7 @@
v
-
if
=
"
showCurrencyId != addForm.currencyId
"
v
-
if
=
"
showCurrencyId != addForm.currencyId
"
>
>
<
template
slot
=
"
label
"
>
<
template
slot
=
"
label
"
>
{{
$t
(
'
金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
<
span
>
{{
addForm
.
writeOffAmount
?
parseFloat
(
addForm
.
writeOffAmount
).
toFixed
(
6
):
''
}}
<
/span
>
<
span
>
{{
addForm
.
writeOffAmount
?
parseFloat
(
addForm
.
writeOffAmount
).
toFixed
(
6
):
''
}}
<
/span
>
<
/el-form-item
>
<
/el-form-item
>
...
...
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