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
cbb50205
Commit
cbb50205
authored
Jun 21, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f2de6bc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
2 deletions
+120
-2
FinancialDocuments.vue
src/components/FinancialModule/FinancialDocuments.vue
+120
-2
No files found.
src/components/FinancialModule/FinancialDocuments.vue
View file @
cbb50205
...
...
@@ -108,6 +108,8 @@
width
:
216px
;
}
._icon_btn
i
.icon-tiaozheng
{
background-color
:
#1296db
;
font-size
:
16px
;}
._icon_btn
i
.icon-zhifupeizhiguanli
{
background-color
:
#1296db
;
font-size
:
16px
;}
.boss_btn_tips
,
.boss_btn
{
text-align
:
center
;
}
...
...
@@ -642,7 +644,10 @@
<el-tooltip
v-if=
"ActionMenuCode.indexOf('F_Update_TradeDate')!=-1"
class=
"item"
:content=
"$t('fnc.tzjyriqi')"
placement=
"top"
>
<i
v-if=
"msg.Conditon==2 && item.TradeDate"
class=
"iconfont icon-tiaozheng"
@
click=
"dialogFormVisible=true,updateMsg.FrID=item.FrID,updateMsg.OTradeDate=item.TradeDate"
></i>
</el-tooltip>
<!-- <el-tooltip class="item" content="交易方式" placement="top" v-if="active==2 && istransaction == true">
<i v-if="active==2" class="iconfont icon-zhifupeizhiguanli"
@click="showjiaoyi(item.FrID)"></i>
</el-tooltip> -->
</td>
</tr>
...
...
@@ -723,6 +728,32 @@
<el-button
class=
"hollowFixedBtn"
@
click=
"dialogFormVisible=false"
>
{{$t('pub.cancelBtn')}}
</el-button>
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"UpdateTradeDate()"
>
{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
<!-- 修改交易方式 -->
<el-dialog
title=
"修改交易方式"
width=
"600px"
:visible
.
sync=
"transactionmode"
center
:before-close=
"closeChangeMachie"
>
<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.AccountTypeId'
placeholder=
""
@
change=
"getAccountList2(x.AccountTypeId,y)"
class=
"w150 _border_b_1"
>
<el-option
v-for=
'item in AccList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<el-select
filterable
v-model=
'x.AccountId'
placeholder=
""
@
change=
"getAccountList3(x,y)"
class=
"w250 _border_b_1"
>
<el-option
v-for=
'item in x.list'
: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=
"transactionmode=false"
>
{{$t('pub.cancelBtn')}}
</el-button>
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"preservetransaction()"
>
{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
<el-dialog
title=
"一键审批"
width=
"400px"
:visible
.
sync=
"BOSSDialog"
center
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
>
<
template
v-if=
"!BOSSDialogText"
>
...
...
@@ -1043,6 +1074,11 @@ export default {
IsAdvanceFinance
:
1
,
},
costList
:[],
transactionmode
:
false
,
accountList2
:[],
trabeList
:[],
//获取的交易方式列表
alltransaction
:[],
istransaction
:
true
,
...
...
@@ -1471,6 +1507,27 @@ export default {
this
.
apipost
(
'AccountType_post_GetList'
,
this
.
queryAccMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
AccList
=
res
.
data
.
data
;
let
alltransaction
=
[]
this
.
AccList
.
forEach
(
x
=>
{
let
obj
=
{
Id
:
x
.
ID
,
list
:[]
}
this
.
apipost
(
'FinancialInstitutions_post_GetALLAccountList'
,
{
TypeId
:
x
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
x
.
allName
=
x
.
BackNo
+
"("
+
x
.
Alias
+
")"
;
x
.
Name
=
x
.
Alias
;
})
obj
.
list
=
data
}
},
err
=>
{})
this
.
alltransaction
.
push
(
obj
)
})
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
...
...
@@ -1903,7 +1960,68 @@ export default {
this
.
$router
.
push
({
name
:
path
,
query
:{
"FrID"
:
id
,
"edit"
:
1
,
blank
:
'y'
,
tab
:
'修改财务单据'
}
})
}
// this.$router.push({ name: path,query:{"type":type,"FrID":id,"edit":edit,"Conditon":Conditon,"pageIndex":pageIndex,blank:'y',tab:'修改财务单据'} })
}
},
showjiaoyi
(
FrId
){
//弹出交易方式修改
this
.
apipost
(
'Financial_get_GetFinanceTrabeList'
,
{
FrId
:
FrId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
trabeList
=
res
.
data
.
data
this
.
trabeList
.
forEach
(
x
=>
{
this
.
alltransaction
.
map
(
j
=>
{
if
(
x
.
AccountTypeId
==
j
.
Id
){
x
.
list
=
j
.
list
return
}
})
})
console
.
log
(
this
.
alltransaction
,
'ssssss'
)
this
.
transactionmode
=
true
}
},
err
=>
{})
},
getAccountList2
(
AccountTypeId
,
y
){
//获取账户类型对应下的账户列表
this
.
alltransaction
.
map
(
x
=>
{
if
(
x
.
Id
==
AccountTypeId
){
this
.
trabeList
[
y
].
list
=
x
.
list
;
return
}
})
},
getAccountList3
(
x
,
y
){
x
.
list
.
map
(
item
=>
{
if
(
x
.
AccountId
==
item
.
ID
){
this
.
trabeList
[
y
].
Type
=
item
.
BankType
;
return
}
})
},
getAccountListtype
(
AccountId
){
this
.
accountList2
.
map
(
x
=>
{
if
(
x
.
ID
==
AccountId
){
this
.
FinanceTrabeMsg
.
Type
=
x
.
BankType
return
}
})
},
preservetransaction
(){
//保存交易方式
let
msg
=
[]
this
.
trabeList
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Type
:
x
.
Type
,
AccountId
:
x
.
AccountId
,
}
msg
.
push
(
obj
)
})
this
.
apipost
(
'Financial_post_SetFinanceTrabeInfo'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
transactionmode
=
true
this
.
getPageList
()
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
}
},
watch
:{
}
...
...
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