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
3176d417
Commit
3176d417
authored
Mar 22, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
佣金请款汇率业务修改
parent
93d1d869
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
exchangeRate.js
src/api/ecw/exchangeRate.js
+7
-0
financial.js
src/api/ecw/financial.js
+4
-0
commission-requestFunds.vue
src/views/ecw/financial/commission-requestFunds.vue
+11
-13
No files found.
src/api/ecw/exchangeRate.js
View file @
3176d417
...
...
@@ -42,6 +42,13 @@ export function getExchangeRatePage(query) {
params
:
query
})
}
// 获取全部的未过期的可用汇率信息列表
export
function
getCurrencyRateAllAvailable
()
{
return
request
({
url
:
'
/ecw/currency-rate/all/available
'
,
method
:
'
get
'
})
}
// 汇率日志查询
export
function
getExchangeRateLogList
(
params
){
return
request
({
...
...
src/api/ecw/financial.js
View file @
3176d417
import
request
from
"
@/utils/request
"
import
{
data
}
from
"
vue2-ace-editor
"
export
function
getCommissionPaymentList
()
{
}
// 创建收款单
export
function
createReceipt
(
data
)
{
return
request
({
...
...
src/views/ecw/financial/commission-requestFunds.vue
View file @
3176d417
...
...
@@ -231,7 +231,7 @@
<
el
-
table
-
column
:
label
=
"
$t('价税合计(RMB)')
"
align
=
"
center
"
prop
=
"
total
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
total
=
((
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
+
(
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
*
(
scope
.
row
.
taxRate
/
100
)).
toFixed
(
2
)
scope
.
row
.
total
=
((
(
scope
.
row
.
totalAmount
*
scope
.
row
.
targetAmount
)
/
scope
.
row
.
sourceAmount
).
toFixed
(
2
)
+
((
scope
.
row
.
totalAmount
*
scope
.
row
.
targetAmount
)
/
scope
.
row
.
sourceAmount
).
toFixed
(
2
)
*
(
scope
.
row
.
taxRate
/
100
)).
toFixed
(
2
)
}}
<
/span
>
<!--
<
span
>
{{
scope
.
row
.
total
}}
<
/span> --
>
<
/template
>
...
...
@@ -453,20 +453,12 @@ import {getChannelList} from "@/api/ecw/channel";
import
CustomerSelector
from
"
@/components/CustomerSelector
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
import
{
getSupplierPage
,
getSupplier
}
from
"
@/api/ecw/supplier
"
;
import
{
getPayableList
,
getPayableInfoByIds
,
getPaymentInfoByIds
,
getPaymentItem
,
updatePayment
,
payablePage
,
commissionPayment
,
commissionPaymentUpdate
,
getCommissionPayable
,
getCommissionPayment
,
getCommissionPaymentList
,
getCommissionPayableList
getCommissionPayment
}
from
"
@/api/ecw/financial
"
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
NP
from
'
number-precision
'
...
...
@@ -474,7 +466,7 @@ import {getWarehouseList} from '@/api/ecw/warehouse'
import
WorkFlow
from
'
@/components/WorkFlow/
'
import
{
getCustomer
,
getCustomerPage
}
from
"
@/api/ecw/customer
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
{
get
ExchangeRatePag
e
}
from
"
@/api/ecw/exchangeRate
"
;
import
{
get
CurrencyRateAllAvailabl
e
}
from
"
@/api/ecw/exchangeRate
"
;
export
default
{
name
:
"
commission-requestFunds
"
,
...
...
@@ -521,7 +513,7 @@ export default {
}
,
async
created
()
{
await
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
await
get
ExchangeRatePage
({
page
:
1
,
rows
:
100
}
).
then
(
res
=>
this
.
rateList
=
res
.
data
.
list
)
await
get
CurrencyRateAllAvailable
().
then
(
res
=>
this
.
rateList
=
res
.
data
)
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
let
that
=
this
;
if
(
that
.
$route
.
query
.
payableId
&&
that
.
$route
.
query
.
payableId
!==
'
0
'
)
{
...
...
@@ -746,7 +738,13 @@ export default {
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
.
map
(
v
=>
{
let
p
=
this
.
rateList
.
find
(
i
=>
i
.
sourceCurrencyId
===
v
.
currencyId
&&
i
.
targetCurrencyId
===
3
)
return
Object
.
assign
(
v
,
{
exchangeRate
:
p
.
currencyRate
}
)
return
Object
.
assign
(
v
,
{
exchangeRate
:
(
p
.
sourceCurrencyCode
+
"
"
+
p
.
sourceAmount
+
"
:
"
+
p
.
targetAmount
+
"
"
+
p
.
targetCurrencyCode
),
sourceAmount
:
p
.
sourceAmount
,
sourceCurrencyCode
:
p
.
sourceCurrencyCode
,
targetAmount
:
p
.
targetAmount
,
targetCurrencyCode
:
p
.
targetCurrencyCode
}
)
}
);
}
,
hiddenDialog
()
{
...
...
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