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
c6924936
Commit
c6924936
authored
Jul 05, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3e1021dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
1 deletion
+94
-1
RecPayQuery.vue
src/components/FinancialModule/RecPayQuery.vue
+94
-1
No files found.
src/components/FinancialModule/RecPayQuery.vue
View file @
c6924936
...
...
@@ -375,6 +375,26 @@
</div>
</
template
>
</el-dialog>
<!-- 修改费用类型 -->
<el-dialog
title=
"修改费用类型"
width=
"400px"
:visible
.
sync=
"costmode"
center
>
<el-form
label-width=
"110px"
>
<div
class=
"rb_top_row _r_mb5"
v-for=
'(x,y) in trabeList'
:key=
'y'
>
<p>
费用类型:
<el-select
filterable
v-model=
'x.CostTypeId'
placeholder=
""
@
change=
"getAccountList2(x.CostTypeId,y)"
class=
"w250 _border_b_1"
>
<el-option
v-for=
'item in GetCostTypeList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</p>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"hollowFixedBtn"
@
click=
"costmode=false"
>
{{$t('pub.cancelBtn')}}
</el-button>
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"preservetransaction()"
>
{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -455,8 +475,23 @@ Vue.component('table-operation',{ //查看操作按钮
class="iconfont icon-zhuanhuan1" @click="getExchange(rowData,index)">
</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-feiyongleixing" v-if="Finance_ExpenseType==true && (rowData.Type==2 || rowData.Type==1)" @click="showfeiy(rowData)">
</i>
</el-tooltip>
</span>`
,
props
:{
rowData
:{
type
:
Object
},
...
...
@@ -467,6 +502,19 @@ Vue.component('table-operation',{ //查看操作按钮
type
:
Number
}
},
data
(){
return
{
Finance_ExpenseType
:
false
}
},
created
(){
let
userinfo
=
this
.
getLocalStorage
();
let
ActionMenuCode
=
userinfo
.
ActionMenuCode
;
if
(
ActionMenuCode
.
indexOf
(
'Finance_ExpenseType'
)
!=-
1
){
this
.
Finance_ExpenseType
=
true
;
}
},
methods
:{
goUrl
(
path
){
// let routeData = this.$router.resolve({
...
...
@@ -482,6 +530,9 @@ Vue.component('table-operation',{ //查看操作按钮
getExchange
(
rowData
,
index
){
this
.
MsgBus
.
$emit
(
'getRecQuery'
,
rowData
.
FrID
);
},
showfeiy
(
rowData
){
this
.
MsgBus
.
$emit
(
'showfeiyong'
,
rowData
);
}
}
})
Vue
.
component
(
'table-RecPay'
,{
//收支样式
...
...
@@ -921,7 +972,9 @@ export default {
],
pageSize
:
5
,
pageIndex
:
1
,
heightQueryBox
:
false
heightQueryBox
:
false
,
costmode
:
false
,
//费用类型的修改弹窗
trabeList
:[],
//修改费用类型的下啦数据
}
},
created
(){
if
(
this
.
$route
.
query
.
returnCode
){
...
...
@@ -993,6 +1046,9 @@ export default {
that
.
zhuanjiaoMsg
.
FrIDList
.
push
(
FrID
);
that
.
zhuanjiaoBox
=
true
;
});
that
.
MsgBus
.
$on
(
'showfeiyong'
,
function
(
row
){
that
.
showfeiyong
(
row
)
})
},
methods
:{
customCompFunc
(
params
){
},
...
...
@@ -1420,6 +1476,43 @@ export default {
},
goEit
(
path
,
type
,
id
,
edit
,
Conditon
,
pageIndex
){
this
.
$router
.
push
({
name
:
path
,
query
:{
"type"
:
type
,
"FrID"
:
id
,
"edit"
:
edit
,
"Conditon"
:
Conditon
,
"pageIndex"
:
pageIndex
}
})
},
showfeiyong
(
row
){
this
.
apipost
(
'Financial_get_GetFinanceCostTypeList'
,
{
FrId
:
row
.
FrID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
trabeList
=
res
.
data
.
data
this
.
costmode
=
true
}
},
err
=>
{})
},
getAccountList2
(
val
,
index
){
this
.
GetCostTypeList
.
map
((
x
)
=>
{
if
(
x
.
ID
==
val
){
this
.
trabeList
[
index
].
CostTypeName
=
x
.
Name
;
return
}
})
},
preservetransaction
(){
//保存费用类型的修改
let
msg
=
[]
this
.
trabeList
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
FinanceId
:
x
.
FinanceId
,
CostTypeId
:
x
.
CostTypeId
,
CostTypeName
:
x
.
CostTypeName
,
}
msg
.
push
(
obj
)
})
this
.
apipost
(
'Financial_get_SetFinanceCostTypeInfo'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
costmode
=
false
this
.
getPageList
()
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
}
}
...
...
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