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
afaff852
Commit
afaff852
authored
Oct 19, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款单货币bug
parent
35b9e1e1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
116 additions
and
75 deletions
+116
-75
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+78
-56
printVoucher.vue
src/views/ecw/financial/printVoucher.vue
+2
-2
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+36
-17
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
afaff852
This diff is collapsed.
Click to expand it.
src/views/ecw/financial/printVoucher.vue
View file @
afaff852
...
...
@@ -64,7 +64,7 @@
<
p
style
=
"
margin: 0;word-break: break-all;
"
>
A
/
C
NO
:
{{
bankTiem
.
platformAccountNo
}}
<
/p
>
<
/div
>
<
div
style
=
"
padding:6px 0;width: 87.5%;text-align: center;
"
>
<
p
style
=
"
margin: 0;
"
>
应收
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
bankTiem.currencyId
"
/>
:
¥
{{
bankTiem
.
receivableAmount
}}
<
/p
>
<
p
style
=
"
margin: 0;
"
>
应收
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
bankTiem.currencyId
"
/>
:
{{
bankTiem
.
receivableAmount
}}
¥
<
/p
>
<!--
<
p
style
=
"
margin: 0;
"
>
未收:¥
{{
bankTiem
.
noReceipt
}}
<
/p> --
>
<
/div
>
<
/div
>
...
...
@@ -241,7 +241,7 @@
getOrder
(
orderId
).
then
(
response
=>
{
this
.
orderData
=
response
.
data
}
);
}
,
}
,
print
(){
lodop
().
then
(
LODOP
=>
{
LODOP
.
PRINT_INIT
();
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
afaff852
...
...
@@ -192,7 +192,8 @@
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款币种')
"
align
=
"
center
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.collectionCurrencyId
"
/>
<!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.collectionCurrencyId
"
/>
-->
{{
getCurrencyLabel
(
scope
.
row
.
collectionCurrencyId
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款汇率')
"
align
=
"
center
"
>
...
...
@@ -324,9 +325,22 @@
prop
=
"
currencyId
"
:
rules
=
"
{ required: true, trigger: ['blur', 'change'], message: $t('币种不能为空')
}
"
>
<
dict
-
selector
v
-
if
=
"
!isView
"
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
v
-
model
=
"
addForm.currencyId
"
@
change
=
"
val => currencyIdChange(val)
"
/>
<
el
-
select
v
-
model
=
"
addForm.currencyId
"
:
placeholder
=
"
$t('请选择')
"
:
disabled
=
"
isView
"
@
change
=
"
val => currencyIdChange(val)
"
>
<
el
-
option
v
-
for
=
"
item in currencyList
"
:
key
=
"
item.id
"
:
label
=
"
item.titleZh
"
:
value
=
"
item.id
"
/>
<
/el-select
>
<!--
<
dict
-
selector
v
-
if
=
"
!isView
"
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
v
-
model
=
"
addForm.currencyId
"
@
change
=
"
val => currencyIdChange(val)
"
/>
-->
<!--
<
span
v
-
else
>
{{
addForm
.
currencyId
}}
<
/span> --
>
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
addForm.currencyId
"
/
>
<
!--
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
addForm.currencyId
"
/>
--
>
<
/el-form-item
>
<
/div
>
<
el
-
form
-
item
...
...
@@ -533,10 +547,10 @@ export default {
const
dollarList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
1
)
const
dollar
=
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
||
0
),
0
)
const
rmbList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
2
)
const
rmbList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
3
)
const
rmb
=
rmbList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
||
0
),
0
)
const
nairaList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
3
)
const
nairaList
=
res
.
data
.
filter
(
v
=>
v
.
collectionCurrencyId
==
2
)
const
naira
=
nairaList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
collectionAmount
||
0
),
0
)
res
.
data
[
res
.
data
.
length
-
1
].
collectionAmount
=
[
dollar
,
rmb
,
naira
]
...
...
@@ -547,14 +561,14 @@ export default {
const
d
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
1
)
d
&&
(
d
.
discountTotal
=
discountDollar
)
const
rmbListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
2
)
const
rmbListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
3
)
const
discountRmb
=
rmbListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
const
r
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
2
)
const
r
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
3
)
r
&&
(
r
.
discountTotal
=
discountRmb
)
const
nairaListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
3
)
const
nairaListByList
=
this
.
list
.
filter
(
v
=>
v
.
currencyId
===
2
)
const
discountNaira
=
nairaListByList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
discountTotal
||
0
),
0
)
const
n
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
3
)
const
n
=
res
.
data
.
find
(
v
=>
v
.
currencyId
==
2
)
n
&&
(
n
.
discountTotal
=
discountNaira
)
...
...
@@ -573,13 +587,18 @@ export default {
setWriteOffAmount
()
{
this
.
$set
(
this
.
addForm
,
'
writeOffAmount
'
,
NP
.
times
(
this
.
addForm
.
rate
||
0
,
this
.
addForm
.
amount
||
0
))
}
,
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
}
,
calculation
()
{
const
verificationList
=
this
.
detailed
.
filter
(
v
=>
v
.
status
===
1
)
const
dollarList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
1
)
const
dollar
=
dollarList
.
length
>
0
?
dollarList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
amount
||
0
),
0
)
:
0
const
rmbList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
2
)
const
rmbList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
3
)
const
rmb
=
rmbList
.
length
>
0
?
rmbList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
amount
||
0
),
0
)
:
0
const
nairaList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
3
)
const
nairaList
=
verificationList
.
filter
(
v
=>
v
.
currencyId
===
2
)
const
naira
=
nairaList
.
length
>
0
?
nairaList
.
reduce
((
total
,
currentValue
)
=>
NP
.
plus
(
total
,
currentValue
.
amount
||
0
),
0
)
:
0
// const usCount = NP.plus(dollar, NP.times(this.RMBtoUS(), rmb), NP.times(this.NANtoUS(), naira))
...
...
@@ -653,12 +672,12 @@ export default {
if
(
val
===
this
.
showCurrencyId
)
{
rate
=
1
}
else
{
if
(
this
.
showCurrencyId
===
1
&&
val
===
2
)
rate
=
this
.
RMBtoUS
()
else
if
(
this
.
showCurrencyId
===
1
&&
val
===
3
)
rate
=
this
.
NANtoUS
()
else
if
(
this
.
showCurrencyId
===
2
&&
val
===
1
)
rate
=
this
.
UStoRMB
()
else
if
(
this
.
showCurrencyId
===
2
&&
val
===
3
)
rate
=
this
.
NANtoRMB
()
else
if
(
this
.
showCurrencyId
===
3
&&
val
===
1
)
rate
=
this
.
UStoNAN
()
else
if
(
this
.
showCurrencyId
===
3
&&
val
===
2
)
rate
=
this
.
RMBtoNAN
()
if
(
this
.
showCurrencyId
===
1
&&
val
===
3
)
rate
=
this
.
RMBtoUS
()
else
if
(
this
.
showCurrencyId
===
1
&&
val
===
2
)
rate
=
this
.
NANtoUS
()
else
if
(
this
.
showCurrencyId
===
3
&&
val
===
1
)
rate
=
this
.
UStoRMB
()
else
if
(
this
.
showCurrencyId
===
3
&&
val
===
2
)
rate
=
this
.
NANtoRMB
()
else
if
(
this
.
showCurrencyId
===
2
&&
val
===
1
)
rate
=
this
.
UStoNAN
()
else
if
(
this
.
showCurrencyId
===
2
&&
val
===
3
)
rate
=
this
.
RMBtoNAN
()
}
this
.
$set
(
this
.
addForm
,
'
rate
'
,
rate
)
}
,
...
...
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