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
82d18fde
Commit
82d18fde
authored
Mar 14, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
dfdd7e60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
57 deletions
+57
-57
currencyManagement.vue
src/components/systemManagement/currencyManagement.vue
+57
-57
No files found.
src/components/systemManagement/currencyManagement.vue
View file @
82d18fde
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
._benwei
{
background-color
:
#2AAEF2
!important
;
color
:
#0877B0
!important
}
._benwei
{
background-color
:
#2AAEF2
!important
;
color
:
#0877B0
!important
}
._benweiA
{
background-color
:
#0F80BA
!important
}
._benweiA
{
background-color
:
#0F80BA
!important
}
._underline
{
text-decoration
:
underline
;
cursor
:
pointer
;}
._underline
{
text-decoration
:
underline
;
cursor
:
pointer
;}
.currentManage
._vMG_edit
{
overflow
:
auto
;
display
:
none
;
position
:
absolute
;
font-family
:
'PingFangSc-Fine'
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#d1d1d1
;
background-color
:
#FFFFFF
;
padding
:
10px
;
width
:
100%
;}
.currentManage
._vMG_edit
{
overflow
:
auto
;
display
:
none
;
position
:
absolute
;
font-family
:
'PingFangSc-Fine'
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#d1d1d1
;
background-color
:
#FFFFFF
;
padding
:
10px
;
width
:
100%
;}
.currentManage
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
.currentManage
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
.currentManage
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
;}
.currentManage
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
;}
._edHeight
{
height
:
400px
;}
._edHeight
{
height
:
400px
;}
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<li>
<li>
<span>
<span>
<em>
{{
$t
(
'system.table_currencyCode'
)
}}
</em>
<em>
{{
$t
(
'system.table_currencyCode'
)
}}
</em>
<el-input
placeholder=
""
class=
"w210"
v-model=
"msg.Code"
></el-input>
<el-input
placeholder=
""
class=
"w210"
v-model=
"msg.Code"
></el-input>
</span>
</span>
</li>
</li>
<li>
<li>
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
</div>
</div>
<div
class=
"cmci_cen"
>
<div
class=
"cmci_cen"
>
<p
class=
"clearfix"
><span
class=
"fl"
>
{{
$t
(
'fnc.benqihuilv'
)
}}
</span><span
class=
"fr"
>
{{
item
.
Rate
}}
</span></p>
<p
class=
"clearfix"
><span
class=
"fl"
>
{{
$t
(
'fnc.benqihuilv'
)
}}
</span><span
class=
"fr"
>
{{
item
.
Rate
}}
</span></p>
<p
class=
"clearfix"
><span
class=
"fl"
>
{{
$t
(
'fnc.danqgianhuilv'
)
}}
<i
class=
"iconfont icon-shuaxin"
v-if=
"item.IsStandardCurrency!=1"
@
click=
"getCurrentRate(item.ID,index)"
></i></span><span
class=
"fr fc_green"
>
{{
item
.
CurrentRate
}}
</span></p>
<p
class=
"clearfix"
><span
class=
"fl"
>
{{
$t
(
'fnc.danqgianhuilv'
)
}}
<i
class=
"iconfont icon-shuaxin"
v-if=
"item.IsStandardCurrency!=1"
@
click=
"getCurrentRate(item.ID,index)"
></i></span><span
class=
"fr fc_green"
>
{{
item
.
CurrentRate
}}
</span></p>
<p
class=
"clearfix"
><span
class=
"fl"
>
{{
$t
(
'fnc.zjinyue'
)
}}
</span><span
class=
"fr _underline"
@
click=
"goUrl('FineBalance',item.ID,item.Name)"
>
{{
item
.
Money
}}
</span></p>
<p
class=
"clearfix"
><span
class=
"fl"
>
{{
$t
(
'fnc.zjinyue'
)
}}
</span><span
class=
"fr _underline"
@
click=
"goUrl('FineBalance',item.ID,item.Name)"
>
{{
item
.
Money
}}
</span></p>
</div>
</div>
<div
class=
"cmci_bot"
>
<div
class=
"cmci_bot"
>
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('objFill.lishihl')"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('objFill.lishihl')"
placement=
"top-start"
>
<el-button
type=
"warning"
class=
"iconfont"
@
click=
"GoUrlHis('HistoryRateQuery',item)"
>
{{
$t
(
'objFill.li'
)
}}
</el-button>
<el-button
type=
"warning"
class=
"iconfont"
@
click=
"GoUrlHis('HistoryRateQuery',item)"
>
{{
$t
(
'objFill.li'
)
}}
</el-button>
</el-tooltip>
</el-tooltip>
</el-button-group>
</el-button-group>
</td>
</td>
</tr>
</tr>
...
@@ -210,61 +210,61 @@
...
@@ -210,61 +210,61 @@
{{
$t
(
'system.content_noData'
)
}}
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
<div>
<div>
<el-pagination
<el-pagination
background
background
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:page-size=
msg.pageSize
:total=
total
>
:total=
total
>
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
<div
class=
"_vMG_edit"
:class=
"addShow==true?'edHeight':''"
>
<div
class=
"_vMG_edit"
:class=
"addShow==true?'edHeight':''"
>
<p
class=
"_tit"
>
{{
$t
(
'fnc.'
)
}}
</p>
<p
class=
"_tit"
>
{{
$t
(
'fnc.
xzengbizhong
'
)
}}
</p>
<el-form
class=
"_info_box clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
<el-form
class=
"_info_box clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
<ul
class=
"clearfix"
>
<ul
class=
"clearfix"
>
<li>
<li>
<el-form-item
:label=
"$t('fnc.b_hbmingcheng')"
prop=
"Name"
>
<el-form-item
:label=
"$t('fnc.b_hbmingcheng')"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
class=
"w135"
></el-input>
<el-input
v-model=
"addMsg.Name"
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li>
<li>
<el-form-item
:label=
"$t('fnc.b_hbdaima')"
prop=
"Code"
>
<el-form-item
:label=
"$t('fnc.b_hbdaima')"
prop=
"Code"
>
<el-input
v-model=
"addMsg.Code"
class=
"w135"
></el-input>
<el-input
v-model=
"addMsg.Code"
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li
v-if=
"ed==false"
>
<li
v-if=
"ed==false"
>
<el-form-item
:label=
"$t('fnc.b_cshuilv')"
prop=
"Rate"
>
<el-form-item
:label=
"$t('fnc.b_cshuilv')"
prop=
"Rate"
>
<el-input
v-model=
"addMsg.Rate"
class=
"w135"
></el-input>
<el-input
v-model=
"addMsg.Rate"
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li
v-else
>
<li
v-else
>
<el-form-item
:label=
"$t('fnc.b_cshuilv')"
prop=
"Rate"
>
<el-form-item
:label=
"$t('fnc.b_cshuilv')"
prop=
"Rate"
>
<el-input
v-model=
"addMsg.Rate"
disabled
class=
"w135"
></el-input>
<el-input
v-model=
"addMsg.Rate"
disabled
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li>
<li>
<el-form-item
:label=
"$t('objFill.shangtiaohl')"
prop=
"ExchangeRates"
>
<el-form-item
:label=
"$t('objFill.shangtiaohl')"
prop=
"ExchangeRates"
>
<el-input
v-model=
"addMsg.ExchangeRates"
class=
"w135"
></el-input>
<el-input
v-model=
"addMsg.ExchangeRates"
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li>
<li>
<el-form-item
:label=
"$t('fnc.sfbenweibi')+ ':'"
>
<el-form-item
:label=
"$t('fnc.sfbenweibi')+ ':'"
>
<el-switch
v-model=
"addMsg.IsStandardCurrency"
<el-switch
v-model=
"addMsg.IsStandardCurrency"
active-value=
'1'
active-value=
'1'
inactive-value=
'0'
inactive-value=
'0'
active-color=
"#4BCA81"
active-color=
"#4BCA81"
size=
mini
></el-switch>
size=
mini
></el-switch>
</el-form-item>
</el-form-item>
</li>
</li>
</ul>
</ul>
</el-form>
</el-form>
<div>
<div>
<ul
class=
"clearfix"
style=
"text-align: right;"
>
<ul
class=
"clearfix"
style=
"text-align: right;"
>
<li
class=
"_add_saveBtn"
style=
"float: initial;"
>
<li
class=
"_add_saveBtn"
style=
"float: initial;"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('addMsg',1)"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('addMsg',1)"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit(),resetForm('addMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit(),resetForm('addMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</li>
</li>
</ul>
</ul>
...
@@ -277,12 +277,12 @@
...
@@ -277,12 +277,12 @@
<li>
<li>
<el-form-item
:label=
"$t('fnc.b_qchuilv')"
>
<el-form-item
:label=
"$t('fnc.b_qchuilv')"
>
<el-input
v-model=
"SetProfitLossMsg.initRate"
disabled=
""
class=
"w135"
></el-input>
<el-input
v-model=
"SetProfitLossMsg.initRate"
disabled=
""
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li>
<li>
<el-form-item
:label=
"$t('fnc.qmhuilv')"
prop=
"EndRate"
>
<el-form-item
:label=
"$t('fnc.qmhuilv')"
prop=
"EndRate"
>
<el-input
v-model=
"SetProfitLossMsg.EndRate"
@
change=
"Calculation()"
class=
"w135"
></el-input>
<el-input
v-model=
"SetProfitLossMsg.EndRate"
@
change=
"Calculation()"
class=
"w135"
></el-input>
</el-form-item>
</el-form-item>
</li>
</li>
<li>
<li>
<el-form-item
:label=
"$t('fnc.xzqishu')"
prop=
"TermNum"
>
<el-form-item
:label=
"$t('fnc.xzqishu')"
prop=
"TermNum"
>
...
@@ -294,20 +294,20 @@
...
@@ -294,20 +294,20 @@
type=
"month"
type=
"month"
:laceholder=
"$t('admin.admin_choDate')"
>
:laceholder=
"$t('admin.admin_choDate')"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</li>
</li>
<li
class=
"_yingkui"
>
<li
class=
"_yingkui"
>
<p
v-if=
"moneyDate.ProfitLoss
<0
"
>
{{
$t
(
'fnc.yingkui'
)
}}
<span
class=
"fc_red"
>
{{
moneyDate
.
ProfitLoss
}}
</span></p>
<p
v-if=
"moneyDate.ProfitLoss
<0
"
>
{{
$t
(
'fnc.yingkui'
)
}}
<span
class=
"fc_red"
>
{{
moneyDate
.
ProfitLoss
}}
</span></p>
<p
v-if=
"moneyDate.ProfitLoss>0"
>
{{
$t
(
'fnc.yingli'
)
}}
<span
class=
"fc_green"
>
{{
moneyDate
.
ProfitLoss
}}
</span></p>
<p
v-if=
"moneyDate.ProfitLoss>0"
>
{{
$t
(
'fnc.yingli'
)
}}
<span
class=
"fc_green"
>
{{
moneyDate
.
ProfitLoss
}}
</span></p>
<p
v-if=
"moneyDate.ProfitLoss==0"
>
{{
$t
(
'fnc.yingkui'
)
}}
<span
class=
"fc_green"
>
0
</span></p>
<p
v-if=
"moneyDate.ProfitLoss==0"
>
{{
$t
(
'fnc.yingkui'
)
}}
<span
class=
"fc_green"
>
0
</span></p>
</li>
</li>
</ul>
</ul>
</el-form>
</el-form>
<div>
<div>
<ul
class=
"clearfix"
style=
"text-align: right;"
>
<ul
class=
"clearfix"
style=
"text-align: right;"
>
<li
class=
"_add_saveBtn"
style=
"float: initial;"
>
<li
class=
"_add_saveBtn"
style=
"float: initial;"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('SetProfitLossMsg',2)"
>
{{
$t
(
'fnc.qrtijiao'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('SetProfitLossMsg',2)"
>
{{
$t
(
'fnc.qrtijiao'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit(),resetForm('SetProfitLossMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit(),resetForm('SetProfitLossMsg')"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -358,7 +358,7 @@
...
@@ -358,7 +358,7 @@
addShow
:
false
,
addShow
:
false
,
addCuren
:
true
,
addCuren
:
true
,
ed
:
false
,
ed
:
false
,
noData
:
false
,
noData
:
false
,
dialogTitle
:
''
,
dialogTitle
:
''
,
deleteID
:
''
,
deleteID
:
''
,
ProfitLossList
:[],
ProfitLossList
:[],
...
@@ -391,7 +391,7 @@
...
@@ -391,7 +391,7 @@
tableSize
:
0
,
tableSize
:
0
,
blockSize
:
0
,
blockSize
:
0
,
}
}
},
created
(){
},
created
(){
let
allH
,
allW
,
cH
,
cW
;
let
allH
,
allW
,
cH
,
cW
;
allH
=
document
.
documentElement
.
clientHeight
;
allH
=
document
.
documentElement
.
clientHeight
;
allW
=
document
.
documentElement
.
clientWidth
;
allW
=
document
.
documentElement
.
clientWidth
;
...
@@ -433,9 +433,9 @@
...
@@ -433,9 +433,9 @@
this
.
ProfitLossList
=
res
.
data
.
data
this
.
ProfitLossList
=
res
.
data
.
data
// new Date(this.ProfitLossList[0].TermNum).getTime()
// new Date(this.ProfitLossList[0].TermNum).getTime()
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
regNum
(
n
,
t
){
// 判断数字 n 值 t 类型
regNum
(
n
,
t
){
// 判断数字 n 值 t 类型
let
reg
=
/^
\d
+
(\.\d{0,6})?
$/
let
reg
=
/^
\d
+
(\.\d{0,6})?
$/
...
@@ -444,7 +444,7 @@
...
@@ -444,7 +444,7 @@
if
(
reg
.
test
(
n
)){
if
(
reg
.
test
(
n
)){
return
Number
(
n
)
return
Number
(
n
)
}
}
return
0
;
return
0
;
}
else
if
(
t
==
1
){
}
else
if
(
t
==
1
){
if
(
reg
.
test
(
n
)){
if
(
reg
.
test
(
n
)){
return
Number
(
n
)
return
Number
(
n
)
...
@@ -465,21 +465,21 @@
...
@@ -465,21 +465,21 @@
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
apipost
(
'financeinfo_post_Remove'
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
'financeinfo_post_Remove'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
initTableInfo
()
this
.
initTableInfo
()
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
tips
(
res
.
data
.
message
,
'success'
);
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
({
this
.
$message
({
type
:
'info'
,
type
:
'info'
,
message
:
this
.
$t
(
'hotel.hotel_HasBeenCancelled'
)
message
:
this
.
$t
(
'hotel.hotel_HasBeenCancelled'
)
});
});
});
});
},
},
editCurency
(
id
){
// 修改货币信息
editCurency
(
id
){
// 修改货币信息
this
.
apipost
(
'financeinfo_post_Get'
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
'financeinfo_post_Get'
,{
ID
:
id
},
res
=>
{
...
@@ -489,9 +489,9 @@
...
@@ -489,9 +489,9 @@
this
.
addShow
=
true
this
.
addShow
=
true
this
.
ed
=
true
this
.
ed
=
true
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
cancelEdit
(
t
){
// 取消修改、新增
cancelEdit
(
t
){
// 取消修改、新增
this
.
addMsg
=
{
this
.
addMsg
=
{
...
@@ -520,34 +520,34 @@
...
@@ -520,34 +520,34 @@
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
confirmButtonText
:
this
.
$t
(
'pub.sureBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
setStandard
(
id
)
this
.
setStandard
(
id
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
({
this
.
$message
({
type
:
'info'
,
type
:
'info'
,
message
:
this
.
$t
(
'hotel.hotel_HasBeenCancelled'
)
message
:
this
.
$t
(
'hotel.hotel_HasBeenCancelled'
)
});
});
});
});
},
},
setStandard
(
id
){
//设置本位币
setStandard
(
id
){
//设置本位币
this
.
apipost
(
'financeinfo_post_SetStandard'
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
'financeinfo_post_SetStandard'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
initTableInfo
();
this
.
initTableInfo
();
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getCurrentRate
(
id
,
index
){
// 更新汇率
getCurrentRate
(
id
,
index
){
// 更新汇率
this
.
apipost
(
'financeinfo_post_GetCurrentRate'
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
'financeinfo_post_GetCurrentRate'
,{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
initTableInfo
()
this
.
initTableInfo
()
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
initTableInfo
(){
initTableInfo
(){
this
.
tableInfo
=
[];
this
.
tableInfo
=
[];
...
@@ -558,9 +558,9 @@
...
@@ -558,9 +558,9 @@
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading2
=
false
;
this
.
loading2
=
false
;
if
(
this
.
total
>
0
){
if
(
this
.
total
>
0
){
this
.
noData
=
false
;
this
.
noData
=
false
;
}
else
{
}
else
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
}
data
.
forEach
(
x
=>
{
data
.
forEach
(
x
=>
{
x
.
YMoney
=
x
.
Money
x
.
YMoney
=
x
.
Money
...
@@ -570,9 +570,9 @@
...
@@ -570,9 +570,9 @@
})
})
this
.
tableInfo
=
data
this
.
tableInfo
=
data
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{
this
.
loading2
=
false
;})
},
err
=>
{
this
.
loading2
=
false
;})
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
...
@@ -585,28 +585,28 @@
...
@@ -585,28 +585,28 @@
SetProfitLoss
(){
//币种调汇
SetProfitLoss
(){
//币种调汇
this
.
apipost
(
'FinanceInfo_post_SetProfitLoss'
,
this
.
SetProfitLossMsg
,
res
=>
{
this
.
apipost
(
'FinanceInfo_post_SetProfitLoss'
,
this
.
SetProfitLossMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
initTableInfo
();
this
.
initTableInfo
();
this
.
addShow
=
false
this
.
addShow
=
false
this
.
addCuren
=
true
this
.
addCuren
=
true
this
.
ed
=
0
this
.
ed
=
0
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
addFlightmodule
(){
//添加币种
addFlightmodule
(){
//添加币种
this
.
apipost
(
'financeinfo_post_Set'
,
this
.
addMsg
,
res
=>
{
this
.
apipost
(
'financeinfo_post_Set'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
tips
(
res
.
data
.
message
,
'success'
);
this
.
initTableInfo
();
this
.
initTableInfo
();
this
.
addShow
=
false
this
.
addShow
=
false
this
.
ed
=
false
this
.
ed
=
false
this
.
cancelEdit
()
this
.
cancelEdit
()
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
updateInfo
(
ID
){
//修改模板信息
updateInfo
(
ID
){
//修改模板信息
let
msg
=
{
let
msg
=
{
...
@@ -645,13 +645,13 @@
...
@@ -645,13 +645,13 @@
}
}
this
.
apipost
(
'currency_post_Remove'
,
msg
,
res
=>
{
this
.
apipost
(
'currency_post_Remove'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tips
(
this
.
$t
(
'tips.shanchuchenggong'
),
'success'
);
this
.
tips
(
this
.
$t
(
'tips.shanchuchenggong'
),
'success'
);
this
.
innerVisible
=
false
;
this
.
innerVisible
=
false
;
this
.
initTableInfo
();
this
.
initTableInfo
();
}
else
{
}
else
{
this
.
tips
(
this
.
$t
(
'tips.shanchushibai'
),
'success'
);
this
.
tips
(
this
.
$t
(
'tips.shanchushibai'
),
'success'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
submitForm
(
addMsg
,
type
)
{
//提交创建、修改表单
submitForm
(
addMsg
,
type
)
{
//提交创建、修改表单
let
that
=
this
;
let
that
=
this
;
...
@@ -678,7 +678,7 @@
...
@@ -678,7 +678,7 @@
});
});
},
},
goUrl
(
path
,
id
,
name
)
{
goUrl
(
path
,
id
,
name
)
{
this
.
$router
.
push
({
name
:
path
,
query
:{
"id"
:
id
,
'name'
:
name
}
})
this
.
$router
.
push
({
name
:
path
,
query
:{
"id"
:
id
,
'name'
:
name
}
})
}
}
},
},
mounted
(){
mounted
(){
...
...
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