Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
罗超
SuperMan
Commits
3ffe7277
Commit
3ffe7277
authored
Dec 02, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5d29333b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
5 deletions
+106
-5
RecPayQuery.vue
src/components/FinancialModule/RecPayQuery.vue
+88
-3
index.js
src/plug/index.js
+18
-2
No files found.
src/components/FinancialModule/RecPayQuery.vue
View file @
3ffe7277
...
...
@@ -395,6 +395,35 @@
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"preservetransaction()"
>
{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
<!-- 修改汇率 -->
<el-dialog
title=
"修改汇率"
width=
"400px"
:visible
.
sync=
"costmodeHL"
center
>
<
template
v-for=
'(x,y) in trabeListHL'
>
<el-form
label-width=
"110px"
style=
"padding: 5px 0;"
>
费用:
{{
x
.
CostTypeName
}}
</el-form>
<el-form
label-width=
"110px"
style=
"padding: 5px 0;"
>
币种:
{{
x
.
CurrencyName
}}
</el-form>
<el-form
label-width=
"110px"
style=
"padding: 5px 0;"
>
原币:
{{
x
.
OriginalMoney
}}
</el-form>
<el-form
label-width=
"110px"
style=
"padding: 5px 0;"
>
本位币:
{{
x
.
Money
}}
</el-form>
<el-form
label-width=
"110px"
style=
"padding: 5px 0;"
>
汇率:
<!--
<span
v-if=
"!bianjiShow"
>
{{
x
.
Rate
}}
</span>
-->
<el-input-number
v-model=
"x.Rate"
:min=
"0"
style=
"width: 240px;"
@
change=
"getRate"
></el-input-number>
<!--
<span
class=
"iconfont"
:class=
"
{'icon-bianji':!bianjiShow,'icon-quxiao1':bianjiShow}" @click="bianjiShow=!bianjiShow"
style="cursor: pointer;color: red;margin-left: 10px;font-size: 13px;">
</span>
-->
</el-form>
</
template
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"hollowFixedBtn"
@
click=
"costmodeHL=false"
>
{{$t('pub.cancelBtn')}}
</el-button>
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"preservetransactionHL()"
>
{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -489,6 +518,20 @@ Vue.component('table-operation',{ //查看操作按钮
outline: none;" class="iconfont icon-feiyongleixing" v-if="Finance_ExpenseType==true && (rowData.Type==2 || rowData.Type==1)" @click="showfeiy(rowData)">
</i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="修改汇率" placement="top">
<i style="width: 30px;
height: 30px;
display: inline-block;
color: white !important;
border-radius: 50%;
text-align: center;
line-height: 30px;
margin-right: 10px;
cursor: pointer;
background-color: #47BF8C;
outline: none;" class="iconfont icon-money" v-if="F_Update_CurrencyRate==true && (rowData.Type==2 || rowData.Type==1)" @click="editRate(rowData)">
</i>
</el-tooltip>
</span>`
,
props
:{
...
...
@@ -504,7 +547,8 @@ Vue.component('table-operation',{ //查看操作按钮
},
data
(){
return
{
Finance_ExpenseType
:
false
Finance_ExpenseType
:
false
,
F_Update_CurrencyRate
:
false
}
},
created
(){
...
...
@@ -513,6 +557,8 @@ Vue.component('table-operation',{ //查看操作按钮
let
ActionMenuCode
=
userinfo
.
ActionMenuCode
;
if
(
ActionMenuCode
.
indexOf
(
'Finance_ExpenseType'
)
!=-
1
){
this
.
Finance_ExpenseType
=
true
;
}
if
(
ActionMenuCode
.
indexOf
(
'F_Update_CurrencyRate'
)
!=-
1
){
this
.
F_Update_CurrencyRate
=
true
;
}
},
methods
:{
...
...
@@ -532,7 +578,10 @@ Vue.component('table-operation',{ //查看操作按钮
},
showfeiy
(
rowData
){
this
.
MsgBus
.
$emit
(
'showfeiyong'
,
rowData
);
}
},
editRate
(
rowData
){
this
.
MsgBus
.
$emit
(
'showhuilv'
,
rowData
);
},
}
})
Vue
.
component
(
'table-RecPay'
,{
//收支样式
...
...
@@ -974,7 +1023,10 @@ export default {
pageIndex
:
1
,
heightQueryBox
:
false
,
costmode
:
false
,
//费用类型的修改弹窗
trabeList
:[],
//修改费用类型的下啦数据
costmodeHL
:
false
,
bianjiShow
:
false
,
trabeList
:[],
//修改费用类型的下拉数据
trabeListHL
:[],
//修改费率下拉数据
}
},
created
(){
if
(
this
.
$route
.
query
.
returnCode
){
...
...
@@ -1049,6 +1101,9 @@ export default {
that
.
MsgBus
.
$on
(
'showfeiyong'
,
function
(
row
){
that
.
showfeiyong
(
row
)
})
that
.
MsgBus
.
$on
(
'showhuilv'
,
function
(
row
){
that
.
showhuilv
(
row
)
})
},
methods
:{
customCompFunc
(
params
){
},
...
...
@@ -1485,6 +1540,14 @@ export default {
}
},
err
=>
{})
},
showhuilv
(
row
){
this
.
apipost
(
'Financial_get_GetFinanceRate'
,
{
FinanceId
:
row
.
FrID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
trabeListHL
=
res
.
data
.
data
this
.
costmodeHL
=
true
}
},
err
=>
{})
},
getAccountList2
(
val
,
index
){
this
.
GetCostTypeList
.
map
((
x
)
=>
{
if
(
x
.
ID
==
val
){
...
...
@@ -1513,6 +1576,28 @@ export default {
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
getRate
(
value
){
return
this
.
moneyFormatB
(
value
)
},
preservetransactionHL
(){
//保存费率的修改
let
msg
=
[]
this
.
trabeListHL
.
forEach
(
x
=>
{
let
obj
=
{
FrId
:
x
.
FinanceId
,
Rate
:
this
.
moneyFormatB
(
x
.
Rate
),
}
msg
=
obj
})
this
.
apipost
(
'Financial_post_UpdateFinanceCurrencyRate'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
costmodeHL
=
false
this
.
getPageList
()
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
}
}
...
...
src/plug/index.js
View file @
3ffe7277
...
...
@@ -118,7 +118,9 @@ export default {
let
lxymallUrl
=
''
;
//国内游api
let
crmUrl
=
""
;
//crm API
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://192.168.10.128"
;
// domainUrl = "http://192.168.10.128";
domainUrl
=
"http://192.168.10.11:8083"
;
// domainUrl = "http://reborn.oytour.com";
let
crmLocalFileStreamDownLoadUrl
=
""
;
crmLocalFileStreamDownLoadUrl
=
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://crm.oytour.com"
:
"http://testcrm.oytour.com"
;
let
javaUrldo
=
""
;
...
...
@@ -127,7 +129,8 @@ export default {
// mallUrl = "http://192.168.1.48:8019";
mallUrl
=
"http://192.168.20.13:8088"
;
lxymallUrl
=
"http://192.168.20.13:8088"
;
crmUrl
=
"http://192.168.10.36:8098"
// crmUrl = "http://192.168.10.36:8098"
crmUrl
=
"http://192.168.10.11:8098"
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
mallUrl
=
"https://mallapi.oytour.com"
;
...
...
@@ -1223,6 +1226,19 @@ export default {
}
return
x1
+
x2
;
},
//价钱格式化,三位数逗号分隔,保留八位小数 duanjun
Vue
.
prototype
.
moneyFormatB
=
function
(
value
)
{
let
nStr
=
Number
(
value
).
toFixed
(
8
)
nStr
+=
''
;
let
x
=
nStr
.
split
(
'.'
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
'.'
+
x
[
1
]
:
''
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
'$1'
+
','
+
'$2'
);
}
return
x1
+
x2
;
},
//文件图标
Vue
.
prototype
.
loadFileICON
=
function
(
suffix
)
{
let
icons
=
[{
...
...
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