Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
confucius
Commits
7591e087
Commit
7591e087
authored
Feb 14, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
533a0edc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2657 additions
and
165 deletions
+2657
-165
ChoiceAddFinancialDocuments.vue
...inancial/financalDocument/ChoiceAddFinancialDocuments.vue
+388
-156
FinancialDocuments.vue
src/pages/financial/financalDocument/FinancialDocuments.vue
+16
-6
batchVoucher.vue
src/pages/financial/financalDocument/batchVoucher.vue
+2245
-0
ReturnperiodsList.vue
src/pages/financial/returnPassbook/ReturnperiodsList.vue
+2
-2
routes.js
src/router/routes.js
+5
-0
request.js
src/utils/request.js
+1
-1
No files found.
src/pages/financial/financalDocument/ChoiceAddFinancialDocuments.vue
View file @
7591e087
<
style
scoped
>
<
style
scoped
>
@import
"../css/cssReset.css"
;
@import
"../css/cssReset.css"
;
._nav
{
margin
:
20px
0
0
0
;
background-color
:
#f5f5f5
;}
._nav
li
{
float
:
left
;
font-size
:
14px
;
color
:
#666666
;
padding
:
15px
20px
;
cursor
:
pointer
;
position
:
relative
;
background-color
:
#f1f1f1
;
margin-right
:
5px
}
._nav
{
._nav
li
._active
{
background-color
:
#FFFFFF
;
color
:
#333333
}
margin
:
20px
0
0
0
;
._nav
li
._active
::after
{
content
:
""
;
width
:
20px
;
height
:
3px
;
background-color
:
#E95252
;
display
:
inline-block
;
position
:
absolute
;
bottom
:
0
;
left
:
38%
;}
background-color
:
#f5f5f5
;
._conten
li
{
display
:
flex
;
padding
:
10px
30px
;
margin-top
:
20px
;
border
:
1px
solid
#ebebeb
;}
}
._left
{
display
:
flex
;
flex
:
6
;
align-items
:
center
;
border-right
:
1px
dashed
#DCDFE6
;
padding-right
:
20px
!important
;}
._left
>
div
{
padding-left
:
14px
}
._nav
li
{
._Icon
{
width
:
50px
;
height
:
50px
;
line-height
:
50px
;
text-align
:
center
;
color
:
white
;
font-weight
:
bold
;
background-color
:
#2AAEF2
;
border-radius
:
50%
;
font-size
:
22px
}
float
:
left
;
._t
{
color
:
#333333
;
font-size
:
14px
;
padding-bottom
:
7px
;
font-weight
:
bold
}
font-size
:
14px
;
._s
{
color
:
#666666
;
font-size
:
12px
;}
color
:
#666666
;
._right
{
flex
:
1
;
align-items
:
center
;
display
:
flex
;
padding-left
:
20px
!important
;
border-left
:
1px
dashed
#DCDFE6
;
justify-content
:
center
;}
padding
:
15px
20px
;
._right
i
{
width
:
30px
;
height
:
30px
;
display
:
inline-block
;
color
:
white
!important
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
30px
;
margin-right
:
10px
;
cursor
:
pointer
;
outline
:
none
;}
cursor
:
pointer
;
._right
i
.icon-liucheng
{
background-color
:
#00C6FF
}
position
:
relative
;
._right
i
.icon-liucheng
:hover
{
background-color
:
#83d7ef
}
background-color
:
#f1f1f1
;
._right
i
.icon-liucheng
:active
{
background-color
:
#038cb3
}
margin-right
:
5px
._right
i
.el-icon-circle-plus-outline
{
background-color
:
#47BF8C
}
}
._right
i
.el-icon-circle-plus-outline
:hover
{
background-color
:
#47BF8C
}
._right
i
.el-icon-circle-plus-outline
:active
{
background-color
:
#10a063
}
._nav
li
._active
{
._log_t
{
padding
:
10px
;}
background-color
:
#FFFFFF
;
color
:
#333333
}
._nav
li
._active
::after
{
content
:
""
;
width
:
20px
;
height
:
3px
;
background-color
:
#E95252
;
display
:
inline-block
;
position
:
absolute
;
bottom
:
0
;
left
:
38%
;
}
._conten
li
{
display
:
flex
;
padding
:
10px
30px
;
margin-top
:
20px
;
border
:
1px
solid
#ebebeb
;
}
._left
{
display
:
flex
;
flex
:
6
;
align-items
:
center
;
border-right
:
1px
dashed
#DCDFE6
;
padding-right
:
20px
!important
;
}
._left
>
div
{
padding-left
:
14px
}
._Icon
{
width
:
50px
;
height
:
50px
;
line-height
:
50px
;
text-align
:
center
;
color
:
white
;
font-weight
:
bold
;
background-color
:
#2AAEF2
;
border-radius
:
50%
;
font-size
:
22px
}
._t
{
color
:
#333333
;
font-size
:
14px
;
padding-bottom
:
7px
;
font-weight
:
bold
}
._s
{
color
:
#666666
;
font-size
:
12px
;
}
._right
{
flex
:
1
;
align-items
:
center
;
display
:
flex
;
padding-left
:
20px
!important
;
border-left
:
1px
dashed
#DCDFE6
;
justify-content
:
center
;
}
._right
i
{
width
:
30px
;
height
:
30px
;
display
:
inline-block
;
color
:
white
!important
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
30px
;
margin-right
:
10px
;
cursor
:
pointer
;
outline
:
none
;
}
._right
i
.icon-liucheng
{
background-color
:
#00C6FF
}
._right
i
.icon-liucheng
:hover
{
background-color
:
#83d7ef
}
._right
i
.icon-liucheng
:active
{
background-color
:
#038cb3
}
._right
i
.el-icon-circle-plus-outline
{
background-color
:
#47BF8C
}
._right
i
.el-icon-circle-plus-outline
:hover
{
background-color
:
#47BF8C
}
._right
i
.el-icon-circle-plus-outline
:active
{
background-color
:
#10a063
}
._log_t
{
padding
:
10px
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
<ul
class=
"_nav clearfix"
v-if=
"showTab==0"
>
<ul
class=
"_nav clearfix"
v-if=
"showTab==0"
>
<li
:class=
"active==1?'_active':''"
@
click=
"active=1,tabData(1)"
>
{{
$t
(
'fnc.shoukuandan'
)
}}
</li>
<template
v-if=
"isFrom==1"
>
<li
:class=
"active==2?'_active':''"
@
click=
"active=2,tabData(2)"
>
{{
$t
(
'fnc.fukuandan'
)
}}
</li>
<li
:class=
"active==2?'_active':''"
@
click=
"active=2,tabData(2)"
>
{{
$t
(
'fnc.fukuandan'
)
}}
</li>
<li
v-if=
"!visaShowTab"
:class=
"active==3?'_active':''"
@
click=
"active=3,tabData(3)"
>
挂账单
</li>
</
template
>
<li
v-if=
"!visaShowTab"
:class=
"active==4?'_active':''"
@
click=
"active=4,tabData(4)"
>
折让单
</li>
<
template
v-else
>
<li
:class=
"active==1?'_active':''"
@
click=
"active=1,tabData(1)"
>
{{
$t
(
'fnc.shoukuandan'
)
}}
</li>
<li
:class=
"active==2?'_active':''"
@
click=
"active=2,tabData(2)"
>
{{
$t
(
'fnc.fukuandan'
)
}}
</li>
<li
v-if=
"!visaShowTab"
:class=
"active==3?'_active':''"
@
click=
"active=3,tabData(3)"
>
挂账单
</li>
<li
v-if=
"!visaShowTab"
:class=
"active==4?'_active':''"
@
click=
"active=4,tabData(4)"
>
折让单
</li>
</
template
>
</ul>
</ul>
<ul
class=
"_nav ceshi clearfix"
v-else
>
<ul
class=
"_nav ceshi clearfix"
v-else
>
<li
:class=
"active==1?'_active':''"
v-if=
"showTab==1"
>
{{
$t
(
'fnc.shoukuandan'
)
}}
</li>
<li
:class=
"active==1?'_active':''"
v-if=
"showTab==1"
>
{{$t('fnc.shoukuandan')}}
</li>
<li
:class=
"active==2?'_active':''"
v-if=
"showTab==2"
>
{{$t('fnc.fukuandan')}}
</li>
<li
:class=
"active==2?'_active':''"
v-if=
"showTab==2"
>
{{$t('fnc.fukuandan')}}
</li>
<li
:class=
"active==3?'_active':''"
v-if=
"showTab==3"
>
挂账单
</li>
<li
:class=
"active==3?'_active':''"
v-if=
"showTab==3"
>
挂账单
</li>
<li
:class=
"active==4?'_active':''"
v-if=
"showTab==4"
>
折让单
</li>
<li
:class=
"active==4?'_active':''"
v-if=
"showTab==4"
>
折让单
</li>
...
@@ -49,12 +161,9 @@
...
@@ -49,12 +161,9 @@
</div>
</div>
</div>
</div>
<div
class=
"_right"
>
<div
class=
"_right"
>
<el-tooltip
popper-class=
"item _process"
effect=
"dark"
:content=
"$t('fnc.liucheng')"
placement=
"top"
>
<el-tooltip
popper-class=
"item _process"
effect=
"dark"
:content=
"$t('fnc.liucheng')"
placement=
"top"
>
<el-popover
<el-popover
popper-class=
"detailsIT_Journal"
width=
"580"
trigger=
"click"
>
popper-class=
"detailsIT_Journal"
<div
class=
"InfoChangeLog"
>
width=
"580"
trigger=
"click"
>
<div
class=
"InfoChangeLog"
>
<div
class=
"changLog"
>
<div
class=
"changLog"
>
<p
class=
"_log_t"
>
{{$t('fnc.skliucheng')}}
</p>
<p
class=
"_log_t"
>
{{$t('fnc.skliucheng')}}
</p>
<my-FlowChartModule
:data=
"AuditListData"
></my-FlowChartModule>
<my-FlowChartModule
:data=
"AuditListData"
></my-FlowChartModule>
...
@@ -63,8 +172,9 @@
...
@@ -63,8 +172,9 @@
<i
slot=
"reference"
class=
"iconfont icon-liucheng"
@
click=
"getFlowChart(item.Id)"
></i>
<i
slot=
"reference"
class=
"iconfont icon-liucheng"
@
click=
"getFlowChart(item.Id)"
></i>
</el-popover>
</el-popover>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.addBtn')"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.addBtn')"
placement=
"top"
>
<i
class=
"edit el-icon-circle-plus-outline"
@
click=
"goUrl('addFinancialDocuments',item.Id,item.Name+$t('visa.v_dan'),item.Type,item.IsUploadPic)"
></i>
<i
class=
"edit el-icon-circle-plus-outline"
@
click=
"goUrl('addFinancialDocuments',item.Id,item.Name+$t('visa.v_dan'),item.Type,item.IsUploadPic)"
></i>
</el-tooltip>
</el-tooltip>
</div>
</div>
</li>
</li>
...
@@ -77,136 +187,252 @@
...
@@ -77,136 +187,252 @@
<
script
>
<
script
>
import
myFlowChartModule
from
"../components/FlowChartModule.vue"
;
import
myFlowChartModule
from
"../components/FlowChartModule.vue"
;
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
searchVal
:
''
,
searchVal
:
''
,
GetList
:[],
GetList
:
[],
active
:
1
,
active
:
1
,
AuditListData
:{
AuditListData
:
{
AuditList
:[]
AuditList
:
[]
},
},
collectList
:[],
collectList
:
[],
payList
:[],
payList
:
[],
GZList
:
[],
GZList
:
[],
ZRList
:
[],
ZRList
:
[],
total
:
0
,
total
:
0
,
currentPage
:
1
,
currentPage
:
1
,
noData
:
false
,
noData
:
false
,
lastID
:
-
1
,
lastID
:
-
1
,
orderObj
:
null
,
orderObj
:
null
,
showTab
:
0
,
showTab
:
0
,
templateID
:
null
,
templateID
:
null
,
DepartID
:
null
,
DepartID
:
null
,
EmployeeId
:
null
,
EmployeeId
:
null
,
OrderSource
:
null
,
OrderSource
:
null
,
visaShowTab
:
false
,
visaShowTab
:
false
,
tradeWay
:
''
,
tradeWay
:
''
,
platformAccount
:
''
,
platformAccount
:
''
,
Handmsg
:{},
Handmsg
:
{},
czmsg
:{},
czmsg
:
{},
ReFinanceId
:
0
,
//活动id
ReFinanceId
:
0
,
//活动id
isFrom
:
0
//判断该往哪跳
}
}
},
},
computed
:
{
computed
:
{
NewItems
()
{
NewItems
()
{
var
_this
=
this
;
var
_this
=
this
;
var
NewItems
=
[];
var
NewItems
=
[];
this
.
GetList
.
map
(
function
(
item
)
{
this
.
GetList
.
map
(
function
(
item
)
{
if
(
item
.
Name
.
search
(
_this
.
searchVal
)
!=
-
1
)
{
if
(
item
.
Name
.
search
(
_this
.
searchVal
)
!=
-
1
)
{
NewItems
.
push
(
item
);
NewItems
.
push
(
item
);
}
}
});
});
return
NewItems
;
return
NewItems
;
}
}
},
},
methods
:{
methods
:
{
goUrl
(
path
,
id
,
Name
,
Type
,
IsUploadPic
)
{
goUrl
(
path
,
id
,
Name
,
Type
,
IsUploadPic
)
{
if
(
this
.
active
==
1
){
if
(
this
.
isFrom
==
0
)
{
// 手配费 收款单参数Handmsg
if
(
this
.
active
==
1
)
{
if
(
this
.
$route
.
query
.
Handmsg
){
// 手配费 收款单参数Handmsg
this
.
$router
.
push
({
if
(
this
.
$route
.
query
.
Handmsg
)
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/addReceivablesDocuments'
,
path
:
'/financial/financalDocument/addReceivablesDocuments'
,
query
:{
"Handmsg"
:
this
.
Handmsg
,
"tradeWay"
:
this
.
tradeWay
,
"platformAccount"
:
this
.
platformAccount
,
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
query
:
{
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增收款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
"Handmsg"
:
this
.
Handmsg
,
});
"tradeWay"
:
this
.
tradeWay
,
}
"platformAccount"
:
this
.
platformAccount
,
// 财务收据
"id"
:
id
,
else
if
(
this
.
$route
.
query
.
czmsg
){
"Name"
:
Name
,
let
Handmsg
=
this
.
$route
.
query
.
czmsg
;
"Type"
:
Type
,
this
.
$router
.
push
({
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增收款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
}
// 财务收据
else
if
(
this
.
$route
.
query
.
czmsg
)
{
let
Handmsg
=
this
.
$route
.
query
.
czmsg
;
this
.
$router
.
push
({
path
:
'/financial/financalDocument/addReceivablesDocuments'
,
path
:
'/financial/financalDocument/addReceivablesDocuments'
,
query
:{
"Handmsg"
:
Handmsg
,
"tradeWay"
:
this
.
tradeWay
,
"platformAccount"
:
this
.
platformAccount
,
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
query
:
{
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增收款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
"Handmsg"
:
Handmsg
,
});
"tradeWay"
:
this
.
tradeWay
,
}
"platformAccount"
:
this
.
platformAccount
,
else
{
"id"
:
id
,
this
.
$router
.
push
({
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增收款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
}
else
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/addReceivablesDocuments'
,
path
:
'/financial/financalDocument/addReceivablesDocuments'
,
query
:{
"tradeWay"
:
this
.
tradeWay
,
"platformAccount"
:
this
.
platformAccount
,
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
query
:
{
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增收款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
,
ReFinanceId
:
this
.
ReFinanceId
}
"tradeWay"
:
this
.
tradeWay
,
});
"platformAccount"
:
this
.
platformAccount
,
}
"id"
:
id
,
}
else
if
(
this
.
active
==
2
){
"Name"
:
Name
,
// 付款单参数czmsg
"Type"
:
Type
,
// 领队报账 预付款冲抵 返款制单
"orderObj"
:
this
.
orderObj
,
if
(
this
.
$route
.
query
.
czmsg
){
'path'
:
this
.
$route
.
query
.
path
,
this
.
$router
.
push
({
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增收款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
,
ReFinanceId
:
this
.
ReFinanceId
}
});
}
}
else
if
(
this
.
active
==
2
)
{
// 付款单参数czmsg
// 领队报账 预付款冲抵 返款制单
if
(
this
.
$route
.
query
.
czmsg
)
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/'
+
path
,
path
:
'/financial/financalDocument/'
+
path
,
query
:{
"czmsg"
:
this
.
czmsg
,
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
query
:
{
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
"czmsg"
:
this
.
czmsg
,
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
}
else
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/'
+
path
,
query
:
{
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
}
}
else
if
(
this
.
active
==
4
)
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/'
+
path
,
query
:
{
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
2
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
});
}
else
{
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/financial/financalDocument/'
+
path
,
path
:
'/financial/financalDocument/addFinancialGZDocuments'
,
query
:{
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
query
:
{
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增挂账单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
});
}
}
}
else
if
(
this
.
active
==
4
){
}
else
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/'
+
path
,
query
:{
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
2
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
});
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/financial/financalDocument/addFinancialGZDocuments'
,
path
:
'/financial/financalDocument/batchVoucher'
,
query
:{
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增挂账单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
}
query
:
{
"id"
:
id
,
"Name"
:
Name
,
"Type"
:
Type
,
"orderObj"
:
this
.
orderObj
,
'path'
:
this
.
$route
.
query
.
path
,
'IsUploadPic'
:
IsUploadPic
,
'Cmd'
:
this
.
$route
.
query
.
Cmd
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
blank
:
'y'
,
tab
:
'新增付款单'
,
GuestId
:
this
.
$route
.
query
.
GuestId
,
isFrom
:
this
.
isFrom
}
});
});
}
}
},
},
getFlowChart
(
id
){
//获取流程图
getFlowChart
(
id
)
{
//获取流程图
if
(
this
.
lastID
==
id
)
return
if
(
this
.
lastID
==
id
)
return
this
.
apipost
(
'FinancialFlowTemplate_post_GetProcessList'
,{
ID
:
id
,
WorkFlowID
:
0
,
TemplateType
:
0
},
res
=>
{
this
.
apipost
(
'FinancialFlowTemplate_post_GetProcessList'
,
{
if
(
res
.
data
.
resultCode
==
1
){
ID
:
id
,
WorkFlowID
:
0
,
TemplateType
:
0
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
lastID
=
id
this
.
lastID
=
id
res
.
data
.
data
.
forEach
(
y
=>
{
res
.
data
.
data
.
forEach
(
y
=>
{
y
.
contentTips
=
y
.
AuditDescription
+
(
y
.
AuditWay
==
"2"
?
this
.
$t
(
'fnc.huiqian'
)
:
this
.
$t
(
'fnc.huoqian'
))
y
.
contentTips
=
y
.
AuditDescription
+
(
y
.
AuditWay
==
"2"
?
this
.
$t
(
'fnc.huiqian'
)
:
this
.
$t
(
'fnc.huoqian'
))
});
});
this
.
AuditListData
.
AuditList
=
res
.
data
.
data
this
.
AuditListData
.
AuditList
=
res
.
data
.
data
}
else
{}
}
else
{}
},
err
=>
{})
},
err
=>
{})
},
},
tabData
(
t
){
//切换
tabData
(
t
)
{
//切换
if
(
t
==
1
){
console
.
log
(
t
,
'ttt'
);
if
(
t
==
1
)
{
this
.
GetList
=
this
.
collectList
;
this
.
GetList
=
this
.
collectList
;
}
else
if
(
t
==
2
)
{
}
else
if
(
t
==
2
)
{
this
.
GetList
=
this
.
payList
;
this
.
GetList
=
this
.
payList
;
}
else
if
(
t
==
3
)
{
}
else
if
(
t
==
3
)
{
this
.
GetList
=
this
.
GZList
;
this
.
GetList
=
this
.
GZList
;
}
}
else
if
(
t
==
4
)
{
else
if
(
t
==
4
)
{
this
.
GetList
=
this
.
ZRList
;
this
.
GetList
=
this
.
ZRList
;
}
}
if
(
this
.
GetList
.
length
<
1
)
{
if
(
this
.
GetList
.
length
<
1
)
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
else
{
}
else
{
this
.
noData
=
false
;
this
.
noData
=
false
;
}
}
let
newList
=
[];
let
newList
=
[];
console
.
log
(
this
.
GetList
,
'getList111'
);
console
.
log
(
this
.
templateID
,
'template'
);
if
(
this
.
templateID
)
{
if
(
this
.
templateID
)
{
this
.
templateID
.
forEach
(
x
=>
{
this
.
templateID
.
forEach
(
x
=>
{
this
.
GetList
.
forEach
(
y
=>
{
this
.
GetList
.
forEach
(
y
=>
{
if
(
x
==
y
.
Id
)
{
if
(
x
==
y
.
Id
)
{
y
.
showYes
=
true
y
.
showYes
=
true
newList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
y
)))
newList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
y
)))
}
else
{
}
else
{
...
@@ -216,28 +442,29 @@
...
@@ -216,28 +442,29 @@
})
})
this
.
GetList
=
newList
;
this
.
GetList
=
newList
;
}
}
this
.
$forceUpdate
();
},
},
Financial_post_GetList
(){
//获取
Financial_post_GetList
()
{
//获取
this
.
apipost
(
'Financial_post_GetList'
,
{},
res
=>
{
this
.
apipost
(
'Financial_post_GetList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
if
(
data
)
{
if
(
data
)
{
data
.
forEach
(
x
=>
{
data
.
forEach
(
x
=>
{
// 5-8 OrderSource 为5 并且当前登录人为吴珊,只显示49和50
// 5-8 OrderSource 为5 并且当前登录人为吴珊,只显示49和50
// 如果不是吴珊,只显示49
// 如果不是吴珊,只显示49
// 如果没有 OrderSource 则49和50都不显示
// 如果没有 OrderSource 则49和50都不显示
if
(
this
.
OrderSource
===
'5'
&&
this
.
showTab
===
'2'
&&
(
x
.
Id
===
49
||
x
.
Id
===
50
))
{
if
(
this
.
OrderSource
===
'5'
&&
this
.
showTab
===
'2'
&&
(
x
.
Id
===
49
||
x
.
Id
===
50
))
{
if
(
x
.
Id
===
49
||
x
.
Id
===
50
){
if
(
x
.
Id
===
49
||
x
.
Id
===
50
)
{
x
.
bigShow
=
false
x
.
bigShow
=
false
if
(
x
.
Id
===
49
){
if
(
x
.
Id
===
49
)
{
x
.
bigShow
=
true
x
.
bigShow
=
true
}
else
if
(
x
.
Id
===
50
&&
this
.
EmployeeId
===
639
){
}
else
if
(
x
.
Id
===
50
&&
this
.
EmployeeId
===
639
)
{
x
.
bigShow
=
true
x
.
bigShow
=
true
}
}
}
else
{
}
else
{
x
.
bigShow
=
false
x
.
bigShow
=
false
}
}
}
else
if
(
x
.
Id
===
49
||
x
.
Id
===
50
){
}
else
if
(
x
.
Id
===
49
||
x
.
Id
===
50
)
{
x
.
bigShow
=
false
x
.
bigShow
=
false
}
else
{
}
else
{
// 5-5 仅茈、而巳。 14:32:06
// 5-5 仅茈、而巳。 14:32:06
...
@@ -249,9 +476,9 @@
...
@@ -249,9 +476,9 @@
}
else
{
}
else
{
x
.
bigShow
=
false
x
.
bigShow
=
false
}
}
}
else
if
(
x
.
Id
===
48
)
{
//76 77 稽核单据|| x.Id === 76 || x.Id === 77
}
else
if
(
x
.
Id
===
48
)
{
//76 77 稽核单据|| x.Id === 76 || x.Id === 77
// if (this.EmployeeId === 1725) {
// if (this.EmployeeId === 1725) {
x
.
bigShow
=
true
x
.
bigShow
=
true
// } else {
// } else {
// x.bigShow = false
// x.bigShow = false
// }
// }
...
@@ -260,68 +487,73 @@
...
@@ -260,68 +487,73 @@
x
.
bigShow
=
true
x
.
bigShow
=
true
}
}
}
}
if
(
x
.
Type
==
1
)
{
if
(
x
.
Type
==
1
)
{
this
.
collectList
.
push
(
x
);
this
.
collectList
.
push
(
x
);
}
else
if
(
x
.
Type
==
2
)
{
}
else
if
(
x
.
Type
==
2
)
{
this
.
payList
.
push
(
x
);
this
.
payList
.
push
(
x
);
}
else
if
(
x
.
Type
==
7
)
{
}
else
if
(
x
.
Type
==
7
)
{
this
.
GZList
.
push
(
x
);
this
.
GZList
.
push
(
x
);
}
else
if
(
x
.
Type
==
8
)
{
}
else
if
(
x
.
Type
==
8
)
{
this
.
ZRList
.
push
(
x
);
this
.
ZRList
.
push
(
x
);
}
}
});
});
}
}
this
.
GetList
=
this
.
collectList
;
this
.
GetList
=
this
.
collectList
;
if
(
this
.
GetList
.
length
<
1
)
{
if
(
this
.
GetList
.
length
<
1
)
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
}
if
(
this
.
$route
.
query
.
Type
)
{
if
(
this
.
$route
.
query
.
Type
)
{
this
.
tabData
(
this
.
$route
.
query
.
Type
);
this
.
tabData
(
this
.
$route
.
query
.
Type
);
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
}
}
,
,
mounted
()
{
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
DepartID
=
userInfo
.
DeptId
;
this
.
DepartID
=
userInfo
.
DeptId
;
this
.
EmployeeId
=
userInfo
.
Id
;
this
.
EmployeeId
=
userInfo
.
Id
;
this
.
templateID
=
this
.
$route
.
query
.
templateID
?
JSON
.
parse
(
this
.
$route
.
query
.
templateID
)
:
null
this
.
templateID
=
this
.
$route
.
query
.
templateID
?
JSON
.
parse
(
this
.
$route
.
query
.
templateID
)
:
null
this
.
OrderSource
=
this
.
$route
.
query
.
OrderSource
?
this
.
$route
.
query
.
OrderSource
:
null
this
.
OrderSource
=
this
.
$route
.
query
.
OrderSource
?
this
.
$route
.
query
.
OrderSource
:
null
this
.
showTab
=
this
.
$route
.
query
.
Type
?
this
.
$route
.
query
.
Type
:
0
;
this
.
showTab
=
this
.
$route
.
query
.
Type
?
this
.
$route
.
query
.
Type
:
0
;
this
.
tradeWay
=
this
.
$route
.
query
.
tradeWay
?
this
.
$route
.
query
.
tradeWay
:
0
;
this
.
tradeWay
=
this
.
$route
.
query
.
tradeWay
?
this
.
$route
.
query
.
tradeWay
:
0
;
this
.
platformAccount
=
this
.
$route
.
query
.
platformAccount
?
this
.
$route
.
query
.
platformAccount
:
0
;
this
.
platformAccount
=
this
.
$route
.
query
.
platformAccount
?
this
.
$route
.
query
.
platformAccount
:
0
;
this
.
searchVal
=
this
.
$route
.
query
.
searchTitle
?
this
.
$route
.
query
.
searchTitle
:
''
;
this
.
searchVal
=
this
.
$route
.
query
.
searchTitle
?
this
.
$route
.
query
.
searchTitle
:
''
;
// searchVal
// searchVal
if
(
this
.
$route
.
query
.
visaType
)
{
if
(
this
.
$route
.
query
.
visaType
)
{
this
.
visaShowTab
=
true
;
this
.
visaShowTab
=
true
;
}
}
if
(
this
.
showTab
==
1
)
{
if
(
this
.
showTab
==
1
)
{
this
.
GetList
=
this
.
collectList
;
this
.
GetList
=
this
.
collectList
;
}
else
if
(
this
.
showTab
==
3
)
{
}
else
if
(
this
.
showTab
==
3
)
{
this
.
GetList
=
this
.
GZList
;
this
.
GetList
=
this
.
GZList
;
}
else
if
(
this
.
showTab
==
2
)
{
}
else
if
(
this
.
showTab
==
2
)
{
this
.
GetList
=
this
.
payList
;
this
.
GetList
=
this
.
payList
;
}
}
else
if
(
this
.
showTab
==
4
)
{
else
if
(
this
.
showTab
==
4
){
this
.
GetList
=
this
.
ZRList
;
this
.
GetList
=
this
.
ZRList
;
}
}
if
(
this
.
$route
.
query
.
ReFinanceId
)
{
if
(
this
.
$route
.
query
.
ReFinanceId
)
{
this
.
ReFinanceId
=
this
.
$route
.
query
.
ReFinanceId
this
.
ReFinanceId
=
this
.
$route
.
query
.
ReFinanceId
}
}
this
.
active
=
parseInt
(
this
.
$route
.
query
.
Type
)
?
parseInt
(
this
.
$route
.
query
.
Type
):
1
;
this
.
active
=
parseInt
(
this
.
$route
.
query
.
Type
)
?
parseInt
(
this
.
$route
.
query
.
Type
)
:
1
;
this
.
orderObj
=
this
.
$route
.
query
.
orderObj
;
this
.
orderObj
=
this
.
$route
.
query
.
orderObj
;
this
.
Handmsg
=
this
.
$route
.
query
.
Handmsg
?
this
.
$route
.
query
.
Handmsg
:
this
.
Handmsg
;
this
.
Handmsg
=
this
.
$route
.
query
.
Handmsg
?
this
.
$route
.
query
.
Handmsg
:
this
.
Handmsg
;
this
.
czmsg
=
this
.
$route
.
query
.
czmsg
?
this
.
$route
.
query
.
czmsg
:
this
.
czmsg
;
this
.
czmsg
=
this
.
$route
.
query
.
czmsg
?
this
.
$route
.
query
.
czmsg
:
this
.
czmsg
;
this
.
isFrom
=
this
.
$route
.
query
.
isFrom
?
this
.
$route
.
query
.
isFrom
:
0
;
if
(
this
.
isFrom
==
1
){
this
.
active
=
2
;
this
.
tabData
(
2
);
}
this
.
Financial_post_GetList
();
this
.
Financial_post_GetList
();
},
components
:
{
},
components
:
{
"my-FlowChartModule"
:
myFlowChartModule
"my-FlowChartModule"
:
myFlowChartModule
}
}
}
}
</
script
>
</
script
>
src/pages/financial/financalDocument/FinancialDocuments.vue
View file @
7591e087
...
@@ -603,7 +603,7 @@
...
@@ -603,7 +603,7 @@
</span>
</span>
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex(),getPageList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex(),getPageList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"goUrlWeituo('ChoiceAddFinancialDocuments')"
>
{{
$t
(
'pub.addBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"goUrlWeituo('ChoiceAddFinancialDocuments')"
>
{{
$t
(
'pub.addBtn'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"goUrlWeituo('ChoiceAddFinancialDocuments')"
>
批量制单
</button>
<button
class=
"normalBtn"
@
click=
"goUrlWeituo('ChoiceAddFinancialDocuments'
,1
)"
>
批量制单
</button>
<button
class=
"normalBtn"
v-if=
"checkboxShow"
@
click=
"Financial_post_SetBatch"
>
{{
$t
(
'fnc.piltijiao'
)
}}
</button>
<button
class=
"normalBtn"
v-if=
"checkboxShow"
@
click=
"Financial_post_SetBatch"
>
{{
$t
(
'fnc.piltijiao'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"method5()"
>
{{
$t
(
'visa.v_daochu'
)
}}
</button>
<button
class=
"normalBtn"
@
click=
"method5()"
>
{{
$t
(
'visa.v_daochu'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"goUrlWeituo('WorkEntrustmentMy')"
>
{{
$t
(
'fnc.gzweituo'
)
}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"goUrlWeituo('WorkEntrustmentMy')"
>
{{
$t
(
'fnc.gzweituo'
)
}}
</button>
...
@@ -2451,11 +2451,21 @@
...
@@ -2451,11 +2451,21 @@
// }
// }
// })
// })
},
},
goUrlWeituo
(
path
)
{
goUrlWeituo
(
path
,
type
)
{
let
tempStr
=
'/financial/financalDocument/'
+
path
;
if
(
type
){
this
.
$router
.
push
({
let
tempStr
=
'/financial/financalDocument/'
+
path
;
path
:
tempStr
this
.
$router
.
push
({
});
path
:
tempStr
,
query
:{
isFrom
:
type
}
});
}
else
{
let
tempStr
=
'/financial/financalDocument/'
+
path
;
this
.
$router
.
push
({
path
:
tempStr
});
}
},
},
goEit
(
type
,
id
,
edit
,
Conditon
,
pageIndex
,
item
,
iscopy
=
1
)
{
//iscopy是否复制 现在只做type为1和2
goEit
(
type
,
id
,
edit
,
Conditon
,
pageIndex
,
item
,
iscopy
=
1
)
{
//iscopy是否复制 现在只做type为1和2
let
path
=
''
;
let
path
=
''
;
...
...
src/pages/financial/financalDocument/batchVoucher.vue
0 → 100644
View file @
7591e087
<
style
scoped
>
@import
"../css/cssReset.css"
;
.page_addFD
{
margin-top
:
20px
;
position
:
relative
;
height
:
1024px
;
}
.page_addFD
input
::-webkit-input-placeholder
{
/*WebKit browsers*/
color
:
#999999
;
}
.page_addFD
input
::-moz-input-placeholder
{
/*Mozilla Firefox*/
color
:
#999999
;
}
.page_addFD
input
::-ms-input-placeholder
{
/*Internet Explorer*/
color
:
#999999
;
}
.Receipt_box
{
padding
:
15px
;
color
:
#c94052
;
width
:
830px
;
position
:
relative
;
}
.page_form
{
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
60px
;
}
.Receipt_box
tr
th
{
color
:
#c94052
}
.Receipt_box.color_blur
tr
th
{
color
:
#106BAF
}
.Receipt_box.color_blur
{
color
:
#106BAF
;
background-color
:
white
;
}
.Receipt_box.color_blur
.rb_stit
span
{
display
:
inline-block
;
border-bottom
:
2px
solid
#106BAF
;
padding
:
0
20px
}
.rb_tit
{
font-size
:
18px
;
text-align
:
center
}
.rb_stit
{
font-size
:
14px
;
text-align
:
center
;
margin-top
:
10px
;
}
.rb_stit
span
{
display
:
inline-block
;
border-bottom
:
2px
solid
#C94052
;
padding
:
0
20px
}
.rb_top_row
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
align-items
:
center
;
margin-top
:
10px
}
.rb_top_row
span
._r_name
{
color
:
#333333
;
display
:
inline-block
;
}
.rb_top_row
span
._r_bold
{
font-weight
:
bold
}
.rb_top_row
._r_time
span
{
color
:
#333333
}
._r_mb5
{
margin-bottom
:
10px
;
}
.Receipt_table
{
width
:
100%
;
font-size
:
14px
;
text-align
:
center
}
.Receipt_table
th
{
font-weight
:
200
!important
}
.Receipt_table
tr
th
,
.Receipt_table
tr
td
{
background-color
:
white
;
position
:
relative
;
}
._r_mt10
{
margin-top
:
10px
;
}
.Receipt_box.color_blur
{
color
:
#106BAF
;
}
.Receipt_box.color_blur
.rb_stit
span
{
display
:
inline-block
;
border-bottom
:
2px
solid
#106BAF
;
padding
:
0
20px
}
td
{
padding
:
5px
;
height
:
34px
;
}
._border_b_1
{
border-bottom
:
1px
solid
#666666
!important
;
}
._flow_chart
{
position
:
absolute
;
display
:
inline-block
;
right
:
15px
;
top
:
7px
;
padding
:
5px
25px
;
font-size
:
12px
;
color
:
#FFFFFF
;
background-color
:
#E95252
;
border-radius
:
14px
;
cursor
:
pointer
;
}
._explain
{
padding
:
20px
0
10px
0
;
border-top
:
1px
dashed
#BFBFBF
;
background-color
:
white
;
margin-top
:
15px
}
._explain
>
p
{
color
:
#1273BC
;
font-size
:
12px
;
}
._explain
>
div
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
color
:
#333333
;
margin-top
:
10px
;
align-items
:
center
;
}
._explain
>
div
span
{
display
:
inline-block
;
}
._remark
p
{
color
:
#1273BC
;
font-size
:
12px
;
}
._remark
textarea
{
width
:
100%
;
height
:
100px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
border
:
1px
solid
rgba
(
220
,
220
,
220
,
1
);
border-radius
:
4px
;
margin-top
:
10px
;
padding
:
15px
;
}
._log_t
{
padding
:
10px
;
}
._submit
{
height
:
50px
;
padding
:
10px
20px
;
width
:
830px
;
position
:
absolute
;
bottom
:
-50px
;
left
:
0
;
display
:
flex
;
background-color
:
white
;
}
._submit
.btn-box
{
width
:
216px
;
}
._submit
.chosenNextBox
{
flex
:
1
;
font-size
:
12px
;
height
:
30px
;
line-height
:
30px
;
}
._submit
.chosenNextBox
.red
{
color
:
#C94052
;
margin-right
:
15px
;
}
._submit
.el-input__inner
{
width
:
300px
!important
;
}
._color_b
{
color
:
#333333
!important
;
font-size
:
12px
}
._font_size12
{
font-size
:
12px
!important
}
._addUpload_box
{
display
:
block
;
margin-top
:
15px
}
._addUpload_box
img
{
width
:
100%
;
height
:
100%
;
}
._addUpload_box
>
div
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
border-radius
:
2px
;
cursor
:
pointer
;
margin-bottom
:
10px
;
padding
:
5px
;
margin-right
:
10px
;
position
:
relative
;
}
._addUpload_box
>
div
:hover
{
background-color
:
#f5f5f5
;
}
._addFile_name
{
padding-left
:
15px
;
max-width
:
450px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
._addUpload_box
.icon-guanbi1
{
font-size
:
12px
;
color
:
white
;
display
:
inline-block
;
margin-left
:
15px
;
position
:
absolute
;
right
:
-6px
;
top
:
-9px
;
background-color
:
#f56c6c
;
border-radius
:
50%
;
height
:
20px
;
width
:
20px
;
text-align
:
center
;
line-height
:
20px
;
}
._addUpload_box
.icon-guanbi1
:hover
{
font-size
:
12px
;
color
:
#c94052
;
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
text-align
:
center
;
font-size
:
38px
;
color
:
green
;
line-height
:
75px
;
}
._show_img_box
{
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
.6
);
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999
;
text-align
:
center
;
}
._IsPublic
{
margin-left
:
0
;
margin-top
:
10px
;
}
._IsPublic
.el-radio__label
{
font-size
:
12px
;
}
._submit
.chosenNextBox
{
flex
:
1
;
font-size
:
12px
;
height
:
30px
;
line-height
:
30px
;
}
._submit
.chosenNextBox
.red
{
color
:
#C94052
;
margin-right
:
15px
;
}
._display_inline
{
display
:
inline
!important
;
}
._addUpload_tips
{
font-size
:
12px
;
color
:
#999999
;
}
._jump_page
{
cursor
:
pointer
;
text-decoration
:
underline
;
}
._jump_page
:hover
{
color
:
#c94052
;
}
._TCIDAndTCNUMList
{
display
:
flex
;
}
._TCIDAndTCNUMList
._TCIDAndTCNUMList_item
span
{
display
:
inline-block
;
padding-bottom
:
5px
;
}
._font_bold
{
font-weight
:
bold
;
}
._TCIDAndTCNUMList_item
{
max-width
:
160px
;
}
.page_addFD
._yewudanju
{
position
:
absolute
;
text-align
:
right
;
font-size
:
12px
;
right
:
15px
;
top
:
60px
;
}
.iconfont._delete_row
{
position
:
absolute
;
right
:
-30px
;
top
:
10px
;
cursor
:
pointer
;
}
.page_addFD
.el-radio
+
.el-radio
{
margin-left
:
20px
;
}
.page_addFD
.rb_top_row
input
{
font-size
:
12px
;
}
.batTable
th
{
height
:
34px
!important
;
}
.batchDelte
{
width
:
15px
;
height
:
15px
;
text-align
:
center
;
line-height
:
15px
;
background
:
red
;
border-radius
:
50%
;
color
:
#fff
;
position
:
absolute
;
right
:
-2px
;
top
:
-6px
;
cursor
:
pointer
;
}
</
style
>
<
template
>
<div
class=
"page_addFD"
v-loading=
'loading'
>
<div
class=
"page_form"
>
<div
class=
"Receipt_box color_blur"
>
<el-popover
popper-class=
"detailsIT_Journal"
width=
"600"
placement=
"right-start"
trigger=
"click"
>
<div
class=
"InfoChangeLog"
>
<div
class=
"changLog"
>
<p
class=
"_log_t"
>
{{
$t
(
'fnc.spliucheng'
)
}}
</p>
<my-FlowChartModule
:data=
"AuditListData"
></my-FlowChartModule>
</div>
</div>
<span
slot=
"reference"
class=
"_flow_chart"
>
{{
$t
(
'fnc.liuchengtu'
)
}}
</span>
</el-popover>
<p
class=
"rb_tit"
>
{{
BillName
}}
(
<el-select
filterable
v-model=
'msg.RB_Branch_Id'
ref=
'CostTypeId'
@
change=
"admin_get_DepartmentGetList(msg.RB_Branch_Id)"
class=
"w120 _border_b_1"
>
<el-option
v-for=
'item in CompanyList'
:label=
'item.SName'
:value=
'item.SId'
:key=
'item.SId'
:disabled=
"item.disabled"
>
</el-option>
</el-select>
)
</p>
<p
class=
"rb_stit"
>
<span>
{{
BillSonName
}}
</span>
</p>
<p
class=
"_yewudanju"
v-if=
"OrderSource==8"
>
{{
$t
(
'hotel.order_Number'
)
}}
:
<span
@
click=
"msg.OrderID>0?jumpPage('RegistrationList',GetDetail,8):''"
>
{{
msg
.
OrderID
==
0
?
$t
(
'fnc.no'
):
msg
.
OrderID
}}
</span>
</p>
<div
class=
"rb_top_row _r_mb5 ceshi"
>
<p>
{{
$t
(
'fnc.fkduixiang'
)
}}
:
<el-select
v-if=
'msg.TemplateId===90||msg.TemplateId===91'
filterable
v-model=
'msg.IsPublic'
placeholder=
"付款类型"
@
change=
"IsPublicChange"
class=
"w135 _border_b_1"
>
<el-option
label=
"虚拟账户"
:value=
'10'
:key=
'10'
v-if=
'msg.TemplateId===90||msg.TemplateId===91'
></el-option>
</el-select>
<el-select
v-else
filterable
v-model=
'msg.IsPublic'
placeholder=
"付款类型"
@
change=
"IsPublicChange"
class=
"w135 _border_b_1"
>
<el-option
:label=
"$t('fnc.gongzhang')"
:value=
'1'
:key=
'1'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
:label=
"$t('fnc.sizhang')"
:value=
'0'
:key=
'0'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
:label=
"$t('fnc.rmbxianjin')"
:value=
'2'
:key=
'2'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
:label=
"$t('fnc.wbxianjin')"
:value=
'3'
:key=
'3'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
:label=
"$t('fnc.zjinchi')"
:value=
'4'
:key=
'4'
v-if=
'msg.TemplateId===36 || msg.TemplateId===37 || msg.TemplateId===48 || msg.TemplateId===53|| msg.TemplateId===51|| msg.TemplateId===52'
>
</el-option>
<el-option
:label=
"$t('fnc.ptxnzhanghu')"
:value=
'5'
:key=
'5'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
:label=
"$t('fnc.djxnzhanghu')"
:value=
'6'
:key=
'6'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
:label=
"$t('fnc.szxiangdi')"
:value=
'7'
:key=
'7'
v-if=
'msg.TemplateId!==36 && msg.TemplateId!==37 && msg.TemplateId!==48 && msg.TemplateId !==53'
>
</el-option>
<el-option
label=
"原路退款"
:value=
'8'
:key=
'8'
v-if=
'msg.TemplateId===144'
>
</el-option>
<el-option
label=
"地接预支款"
:value=
'9'
:key=
'9'
v-if=
'msg.TemplateId===67||msg.TemplateId===74||msg.TemplateId===119'
></el-option>
<el-option
label=
"电商结算"
:value=
'11'
:key=
'11'
v-if=
'msg.TemplateId===121'
></el-option>
</el-select>
<el-select
v-if=
"!showDisable"
filterable
v-model=
'msg.ClientType'
:placeholder=
"$t('fnc.khleixing')"
@
change=
"financeinfo_post_GetClientAccountList(msg.ClientType)"
class=
"w135 _border_b_1"
>
<el-option
v-for=
'item in ClientTypeList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<template
v-if=
"msg.ClientType==7&&msg.IsPublic!=2&&msg.IsPublic!=3&&!showDisable"
>
<el-select
v-if=
"msg.IsLeader==1"
filterable
v-model=
'msg.ClientID'
:placeholder=
"$t('fnc.khmingcheng')"
@
change=
"GetClientAccountList(msg.ClientID)"
class=
"w135 _border_b_1"
>
<el-option
v-for=
'item in ClientAccountList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</
template
>
<
template
v-if=
"msg.ClientType!=7&&msg.IsPublic!=2&&msg.IsPublic!=3&&!showDisable"
>
<el-select
filterable
v-model=
'msg.ClientID'
:placeholder=
"$t('fnc.khmingcheng')"
@
change=
"GetClientAccountList(msg.ClientID)"
class=
"w135 _border_b_1"
>
<el-option
v-for=
'item in ClientAccountList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</
template
>
<
template
v-if=
"(msg.IsPublic==2||msg.IsPublic==3)&&msg.IsLeader==1"
>
<el-input
v-model=
'msg.RemitterName'
:placeholder=
"$t('system.ph_name')"
class=
"w135 _border_b_1"
>
</el-input>
</
template
>
</p>
<p><span
class=
""
>
{{$t('hotel.hotel_SerialNumber')}}.
</span>
{{GetDetail.FrID==0?$t('fnc.daishengcheng'):GetDetail.FrID}}
</p>
</div>
<div
class=
"rb_top_row _r_mb5"
>
<
template
v-if=
"msg.IsPublic!=2&&msg.IsPublic!=3&&(msg.ClientType==7&&msg.IsLeader==1)&&msg.IsPublic!=4"
>
<p>
{{
$t
(
'fnc.fkzhanghu'
)
}}
:
<el-select
filterable
v-model=
'msg.AccountNumber'
:placeholder=
"$t('fnc.qxzfkzh')"
class=
"w425 _border_b_1"
>
<el-option
v-for=
'item in ClientAccountListS'
:label=
'item.allName'
:value=
'item.allName'
:key=
'item.allName'
>
</el-option>
</el-select>
</p>
</
template
>
<
template
v-if=
"msg.ClientType!=7&&msg.IsPublic!=2&&msg.IsPublic!=3&&msg.IsPublic!=4"
>
<p>
{{
$t
(
'fnc.fkzhanghu'
)
}}
:
<el-select
filterable
v-model=
'msg.AccountNumber'
:placeholder=
"$t('fnc.qxzfkzh')"
class=
"w425 _border_b_1"
>
<el-option
v-for=
'item in ClientAccountListS'
:label=
'item.allName'
:value=
'item.allName'
:key=
'item.allName'
>
</el-option>
</el-select>
</p>
</
template
>
<
template
v-if=
"msg.ClientType==7&&msg.IsLeader==0&&msg.IsPublic!=4"
>
<p>
{{
$t
(
'fnc.ldmingcheng'
)
}}
:
<el-input
v-model=
'msg.RemitterName'
:placeholder=
"$t('system.ph_name')"
class=
"w425 _border_b_1"
>
</el-input>
</p>
</
template
>
<
template
v-if=
"(msg.IsPublic==2||msg.IsPublic==3)&&msg.IsLeader==1"
>
<p>
</p>
</
template
>
<p
v-if=
"GetDetail.IsPublic==4"
class=
"_r_name"
style=
"color: #fff;"
></p>
<p
class=
"_r_time"
>
<span>
{{yaer}}
</span>
{{$t('pub.year')}}
<span>
{{month}}
</span>
{{$t('pub.month')}}
<span>
{{dateS}}
</span>
{{$t('fnc.day')}}
<span>
{{timer}}
</span>
</p>
</div>
<table
class=
"Receipt_table"
border=
"1"
bordercolor=
"#106BAF"
style=
"border-collapse:collapse;"
>
<tr>
<th
rowspan=
"2"
width=
"150"
>
{{$t('fnc.fyshuoming')}}
</th>
<th
rowspan=
"2"
>
{{$t('restaurant.res_Number')}}
</th>
<th
rowspan=
"2"
>
{{$t('fnc.danjia')}}
</th>
<th
rowspan=
"2"
width=
"100"
>
{{$t('hotel.hotel_Currency')}}
</th>
<th
colspan=
"3"
>
{{$t('fnc.jine')}}
</th>
<th
rowspan=
"2"
>
{{$t('hotel.hotel_remark')}}
</th>
</tr>
<tr>
<th
width=
"88"
>
{{$t('fnc.yuanbi')}}
</th>
<th
width=
"50"
>
{{$t('hotel.hotel_CurrentRate')}}
</th>
<th
width=
"88"
>
{{$t('fnc.bweibi')}}
</th>
</tr>
<tr
class=
"addList1"
>
<td>
<el-select
v-if=
"!SelectState"
filterable
v-model=
'detailList.CostTypeId'
ref=
'CostTypeId'
:placeholder=
"$t('rule.qxzfyshuoming')"
@
change=
"getCostTypeName(detailList.CostTypeId), getRate(detailList.CostTypeId,detailList.CurrencyId,1)"
class=
"_border_b_1"
>
<el-option
v-for=
'item in GetCostTypeList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<el-select
v-if=
"SelectState"
filterable
v-model=
'detailList.CostTypeId'
ref=
'CostTypeId'
:placeholder=
"$t('rule.qxzfyshuoming')"
@
change=
"getCostTypeName(detailList.CostTypeId), getRate(detailList.CostTypeId,detailList.CurrencyId,1)"
class=
"_border_b_1"
>
<el-option
v-for=
'item in GetCostTypeList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
:disabled=
"SelectDisablsed!=item.ID"
>
</el-option>
</el-select>
</td>
<td>
<el-input
v-model=
"detailList.Number"
type=
"text"
@
keyup
.
native=
"checkInteger(detailList,'Number')"
@
change=
"Calculation(1)"
class=
"w80 _border_b_1"
></el-input>
</td>
<td>
<el-input
v-model=
"detailList.UnitPrice"
type=
"text"
:disabled=
"(msg.TemplateId == 43 || msg.TemplateId == 48 || msg.TemplateId == 56 || msg.TemplateId == 53) && !ZhuiJiaTK"
@
keyup
.
native=
"checkPrice(detailList,'UnitPrice',true)"
@
change=
"Calculation(1)"
class=
"w80 h34 _border_b_1"
></el-input>
</td>
<td>
<el-select
filterable
v-model=
'detailList.CurrencyId'
:placeholder=
"$t('rule.qxzbzhong')"
@
change=
"getRate(detailList.CostTypeId,detailList.CurrencyId,1)"
class=
" _border_b_1"
>
<el-option
v-for=
'item in coinGetList'
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</td>
<td>
<span
v-if=
"detailList.yTotalPrice && detailList.yTotalPrice!=''"
>
{{detailList.yTotalPrice.toFixed(2)}}
</span>
<span
v-else
>
{{detailList.yTotalPrice}}
</span>
</td>
<td>
<el-input
v-model=
"detailList.Rate"
type=
"text"
:disabled=
"true"
class=
"w80 _border_b_1"
></el-input>
</td>
<td>
{{detailList.bTotalPrice}}
</td>
<td>
<el-input
v-model=
"detailList.Remark"
type=
"textarea"
@
input=
"chages($event)"
class=
"w80 _border_b_1"
>
</el-input>
</td>
</tr>
<tr
v-if=
"msg.detailList.length<2"
>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
</tr>
<tr
v-if=
"msg.detailList.length<3"
>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
<td
height=
"26px"
></td>
</tr>
<tr>
<td>
{{$t('fnc.sfjine')}}
<br
/><span
class=
"_font_size12"
>
{{$t('fnc.daxie')}}
</span></td>
<td
colspan=
"3"
>
{{chinaAllPrice}}
</td>
<td>
{{$t('fnc.sfjine')}}
<br
/><span
class=
"_font_size12"
>
{{$t('fnc.xiaoxie')}}
</span></td>
<td
colspan=
"3"
>
{{allPriceTo}}
</td>
</tr>
<tr>
<td>
{{$t('fnc.yjfkuanriqi')}}
</td>
<td
colspan=
"7"
>
<el-date-picker
clearable
class=
"w190 _border_b_1"
v-model=
"msg.PayDate"
type=
"datetime"
:placeholder=
"$t('fnc.qxzrqshijian')"
align=
"right"
>
</el-date-picker>
</td>
</tr>
</table>
<div
class=
"rb_top_row _r_mt10"
>
<
template
v-for=
"(item,index) in newAuditList"
>
<p
:key=
"index"
>
{{
item
.
AuditDescription
}}
:
<span
class=
"_r_name"
></span>
</p>
</
template
>
<p>
业务员:
<span
class=
"_r_name _jump_page"
>
{{emplyeeName}}
</span>
</p>
</div>
<div>
<q-btn
label=
"新增"
color=
"accent q-px-md"
size=
"10px"
style=
"font-weight:400 !important;float:right;margin:20px 0 5px 0;"
@
click=
"addBatch"
/>
<table
class=
"Receipt_table batTable"
border=
"1"
bordercolor=
"#106BAF"
style=
"border-collapse: collapse;"
>
<tr>
<th
width=
"200"
>
关联部门
</th>
<th>
金额
</th>
<th>
备注
</th>
<th
width=
"200"
>
附件
</th>
</tr>
<tr
v-for=
"(sitem,sindex) in commonFinance"
:key=
"sindex"
>
<td>
<el-select
filterable
v-model=
"sitem.RB_Depart_Id"
@
change=
"getDepartInfo(sitem.RB_Depart_Id,sindex)"
class=
"w135 _border_b_1"
>
<el-option
v-for=
'item in departmentList'
:label=
'item.DeptName'
:value=
'item.DeptId'
:key=
'item.DeptId'
>
</el-option>
</el-select>
</td>
<td>
<el-input
class=
"w80 _border_b_1"
@
keyup
.
native=
"checkInteger(sitem,'YTotalPrice')"
v-model=
"sitem.YTotalPrice"
></el-input>
</td>
<td>
<el-input
type=
"textarea"
v-model=
"sitem.Remarks"
class=
"w80 _border_b_1"
></el-input>
</td>
<td>
<div
style=
"display:flex;"
>
<
template
v-for=
"(cItem,cIndex) in sitem.FileUrl"
>
<div
:key=
"cIndex"
v-if=
"cItem.Type==1"
class=
"iconfont "
style=
"font-size:30px;margin-right:10px;position:relative;"
:class=
"cItem.Url.substring(cItem.Url.lastIndexOf('.')+1,cItem.Url.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@
click=
"showUpLoadFile(cItem)"
>
<div
class=
"batchDelte"
style=
"line-height:6px;right:-5px;"
@
click
.
stop=
"deleFileDiv(sindex,cIndex)"
>
<i
class=
"iconfont icon-close"
></i>
</div>
</div>
<div
:key=
"cIndex"
v-if=
"cItem.Type==2"
>
<div
class=
"iconfont icon-excel"
style=
"width:40px;height:40px;margin-right:10px;position:relative;"
@
click=
"showUpLoadFile(cItem)"
>
<div
class=
"batchDelte"
@
click
.
stop=
"deleFileDiv(sindex,cIndex)"
>
<i
class=
"iconfont icon-close"
></i>
</div>
</div>
</div>
<div
:key=
"cIndex"
v-if=
"cItem.Type==3"
>
<div
style=
"width:40px;height:40px;position:relative;margin-right:10px;"
>
<img
:src=
"cItem.Url"
style=
"width:100%;height:100%;"
@
click=
"showUpLoadFile(cItem)"
>
<div
class=
"batchDelte"
@
click
.
stop=
"deleFileDiv(sindex,cIndex)"
>
<i
class=
"iconfont icon-close"
></i>
</div>
</div>
</div>
</
template
>
<el-upload
:http-request=
"uploadBatch"
style=
"border:1px solid;width:40px;height:40px;font-size:20px;line-height:40px;"
:data=
"{index:sindex}"
:show-file-list=
"false"
action=
""
>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</div>
<i
style=
"right:-20px;top:18px;"
@
click=
"deleBatch(sindex)"
class=
"_delete_row iconfont icon-img_delete_small"
></i>
</td>
</tr>
</table>
</div>
<div
style=
"display:none;"
>
<div
v-if=
"IsUploadPic===1"
>
<p>
{{$t('fnc.scfujian')}}
<span
class=
"_addUpload_tips"
>
{{$t('tips.wjdxbncgsz')}}
</span></p>
<div
class=
"_addUpload_box clearfix"
>
<
template
v-for=
"(file,fIndex) in saveMsg"
>
<div
v-if=
"file.Type==3"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<img
:src=
"file.Url?file.Url:file.Content"
@
click=
"showUpLoadFile(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type==1"
>
<div
class=
"iconfont "
:class=
"file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@
click=
"showUpLoadFile(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type==2"
>
<div
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
</
template
>
<div
class=
"_pic_upload"
>
<el-upload
drag
:http-request=
"uploadFileBtn"
:multiple=
"true"
:show-file-list=
"false"
action=
""
>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
<div
class=
"el-upload__text"
>
{{$t('active.ld_djscwj')}}
</div>
</el-upload>
</div>
</div>
</div>
<div
class=
"_submit"
>
<div
class=
"chosenNextBox"
>
<div
v-if=
'resultCode==11019 || ((EmployeeId===755 || EmployeeId===400) && (msg.RB_Branch_Id&& msg.RB_Branch_Id!=0))'
>
<label>
{{$t('fnc.xiayibu')}}:
<span
class=
"red"
>
{{msg.AuditDescription}}
</span></label>
<el-select
size=
"mini"
style=
"width:300px"
v-model=
"chosenPeople"
multiple
filterable
remote
reserve-keyword
:placeholder=
"$t('rule.qxzxybshren')"
:remote-method=
"remoteMethod"
:loading=
"loadingPeople"
>
<el-option
v-for=
"item in peopleData"
:key=
"item.empId"
:label=
"`${item.name}`"
:value=
"item.empId"
>
<span
style=
"float: left; font-size: 12px"
>
{{ item.name }}
</span>
<span
style=
"float: right; font-size: 12px; margin-right:20px;"
>
{{ item.departmentName }}
</span>
</el-option>
</el-select>
</div>
</div>
<q-btn
color=
"primary"
size=
"11px"
:label=
"$t('fnc.zancun')"
@
click=
"AddFinancial(1)"
style=
"marginRight:10px"
v-if=
"iscopy==1 && (GetDetail.Status==0||GetDetail.Status==3||msg.FrID==0)"
/>
<q-btn
color=
"primary"
size=
"11px"
v-if=
"iscopy==1"
:label=
"$t('fnc.tijiao')"
@
click=
"AddFinancial()"
style=
"marginRight:10px"
/>
<q-btn
color=
"primary"
size=
"11px"
v-if=
"iscopy==2"
label=
"复制"
@
click=
"AddFinancial()"
style=
"marginRight:10px"
/>
<q-btn
text-color=
"primary"
size=
"11px"
:label=
"$t('pub.returnBack')"
@
click=
"AuditOrRefund()"
/>
</div>
</div>
<div
v-if=
'picIsShow'
class=
"_show_img_box"
@
click=
"picIsShow=false,picObj=[]"
>
<div
style=
"position: absolute; width: 800px; height: 600px; left: 50%; top: 50%; margin-left: -400px; margin-top: -300px;"
>
<el-carousel
:initial-index=
initialIndex
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
style=
"height: 600px;overflow:auto;"
v-for=
"(item,index) in picObj"
:key=
"index"
>
<img
:src=
"item"
style=
""
/>
</el-carousel-item>
</el-carousel>
</div>
</div>
<div
style=
"display:flex;justify-content:end;margin-top:20px;"
>
<q-btn
label=
"保存"
color=
"accent q-px-md"
@
click=
"saveInfo()"
size=
"10px"
style=
"font-weight:400 !important;"
/>
</div>
</div>
</div>
<el-dialog
title=
"提示"
:visible
.
sync=
"maxmoneyTips"
width=
"420px"
>
<div
style=
"margin: 0px 0 15px 0;"
>
<p><span
style=
"color: #e6a23c;font-size: 16px;"
class=
"el-notification__icon el-icon-warning"
></span>
根据公司规定,每张付款单不能超过{{maxmoneyData}}元人民币。
</p>
<p
style=
"padding-left: 23px;margin-top: 10px;"
>
超过需额外制单,谢谢配合!
</p>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"maxmoneyTips = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"danger"
@
click=
"maxmoneyTips=false"
>
确 定
</el-button>
</span>
</el-dialog>
<q-dialog
v-model=
"costmode"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 700px;max-width:700px;"
>
<q-card-section>
<div
class=
"text-h6"
>
为规范财务管理工作,关于财务单据制单和报销,特作以下温馨提示
</div>
</q-card-section>
<q-card-section>
<div
class=
"text-"
>
1.正确选取财务单据的归属校区和部门。
<br>
2.与班级或活动相关的收支单据,应相关联。
<br>
3.支出单应当尽量选择公对公走账,如必须公对私请特殊备注说明原由,并经负责人同意。
<br>
4.财务单据请上传相关原始凭证附件(原则上不支持员工不代垫)。支出单据请提供合法票据(发票),凭票报销。报销单据应包含:平台商家订单信息、支付凭证(帐单详情.打款/转账凭条)、发票和合同等,且应在采购物品后的五个工作日内发起财务审核流程(超过五个工作日需重新报总经理同意)。如无法提供发票请特殊备注说明原因并单独制单。(物品类采购须在资产系统完成采购审批流程和入库流程)。
<br>
5.支出单请详细备注:使用校区及用途。
<br>
6.原则上凭发票报销,因特殊情况如发票后补,请及时补回发票,如跨月才提供发票应走借款程序,做特殊处理。
<br>
7.严禁虚构报销,不实报销。
<br>
8.大于5000元以上的支出须提供正规采购合同,并上传至附件。
</div>
</q-card-section>
<q-card-actions
align=
"right"
>
<q-btn
color=
"primary"
label=
"我知道了"
@
click=
"costmode = false"
/>
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<
script
>
import
myFlowChartModule
from
"../components/FlowChartModule.vue"
;
import
{
getDeptList
}
from
'../../../api/system/dept'
import
{
UploadSelfFile
}
from
'../../../api/common/common'
import
{
getSchoolDropdown
}
from
'../../../api/school/index'
export
default
{
data
()
{
return
{
maxmoneyData
:
0
,
detailCurrDis
:
false
,
Description
:
""
,
msg
:
{
FrID
:
0
,
ClientType
:
''
,
ClientID
:
''
,
RemitterName
:
''
,
AccountNumber
:
''
,
TradeDate
:
''
,
TCID
:
0
,
OrderID
:
0
,
OrderSource
:
0
,
TemplateId
:
0
,
Description
:
'132356'
,
detailList
:
[],
RB_Branch_Id
:
''
,
RB_Depart_Id
:
''
,
Status
:
1
,
URL
:
this
.
$route
.
query
.
path
,
vorcherInos
:
[],
IsPublic
:
''
,
Cmd
:
''
,
emList
:
[],
TCIDList
:
[],
Obj
:
{},
SourceID
:
0
,
TCIDAndTCNUMList
:
[],
IsLeader
:
1
,
PayDate
:
''
,
CallType
:
0
,
Type
:
0
,
GuestInfoList
:
[],
RB_BranchName
:
''
,
RB_DepartName
:
''
,
OrderSource
:
17
,
InvoiceType
:
1
,
InvoiceMoney
:
'0'
,
InvoiceRemark
:
''
,
EduCommissionEmp
:
''
,
RelevanceFrId
:
''
,
//增加关联单号
FinanceDepartList
:[]
//分摊数据
},
commonFinance
:[],
commonDetailList
:[],
detailList
:
{
ID
:
0
,
UnitPrice
:
''
,
UnitPriceTo
:
''
,
Number
:
''
,
Rate
:
''
,
CostTypeId
:
''
,
CurrencyId
:
''
,
Remark
:
''
,
CostTypeName
:
''
,
yTotalPrice
:
''
,
yTotalPriceTo
:
''
,
bTotalPrice
:
''
,
bTotalPriceTo
:
''
,
show
:
false
,
},
ClientTypeList
:
[],
ClientAccountList
:
[],
GetCostTypeList
:
[],
ClientAccountListS
:
[],
coinGetList
:
[],
yaer
:
''
,
month
:
''
,
dateS
:
''
,
AuditListData
:
{
AuditList
:
[]
},
newAuditList
:
[],
peopleData
:
[],
BillName
:
''
,
BillSonName
:
''
,
department
:
''
,
emplyeeName
:
''
,
allPrice
:
0
,
allPriceTo
:
''
,
allPriceTocalc
:
''
,
chinaAllPrice
:
this
.
$commonUtils
.
changeMoneyToChinese
(
this
.
allPrice
),
DepartIDs
:
'0'
,
GetDetail
:
{},
loading
:
false
,
returnCode
:
''
,
RB_Branch_id
:
''
,
departmentMsg
:
{
RB_Group_Id
:
'0'
,
RB_Branch_Id
:
'-1'
,
Status
:
'0'
,
ParentId
:
'-1'
,
Tier
:
'0'
,
},
companyMsg
:
{
RB_Group_Id
:
'0'
,
Status
:
0
,
},
departmentList
:
[],
getInvoiceList
:[],
CompanyList
:
[],
orderObj
:
null
,
IsUploadPic
:
0
,
headers
:
{
'Content-Type'
:
'application/octet-stream'
},
saveMsg
:
[],
picIsShow
:
false
,
picObj
:
[],
initialIndex
:
0
,
loadingPeople
:
false
,
chosenPeople
:
[],
OrderSource
:
null
,
timer
:
''
,
leaderType
:
1
,
resultCode
:
null
,
EmployeeId
:
0
,
describeList
:
[],
isFrompassenger
:
false
,
showDisable
:
false
,
editTemplateId
:
-
1
,
ZhuiJiaTK
:
false
,
SelectDisablsed
:
0
,
SelectState
:
false
,
XSTC
:
false
,
czmsg
:
{},
czmsgState
:
false
,
maxmoneyTips
:
false
,
schoolMsg
:
{
pageIndex
:
1
,
pageSize
:
999
,
rowsPerPage
:
12
,
SName
:
""
,
Status
:
'-1'
},
costmode
:
true
,
iscopy
:
1
,
//是否是复制 1是修改2为复制
isFrom
:
0
,
//1为批量制单
TopMoney
:
0
//费用说明金额
}
},
methods
:
{
deleteRow
(
i
,
obj
)
{
obj
.
show
=
false
;
this
.
msg
.
Description
=
this
.
Description
;
this
.
msg
.
detailList
.
splice
(
i
,
1
);
this
.
$forceUpdate
();
},
IsPublicChange
(
val
)
{
this
.
showDisable
=
false
;
this
.
msg
.
ClientType
=
''
;
this
.
msg
.
ClientID
=
''
;
this
.
msg
.
AccountNumber
=
''
;
this
.
ClientAccountListS
=
[];
if
(
val
==
8
||
val
==
9
)
{
this
.
showDisable
=
true
;
}
},
jumpPage
(
path
,
obj
,
type
)
{
//生成单据时连带信息跳转
if
(
type
==
1
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
TCIDList
:
obj
,
blank
:
'y'
}
})
}
else
if
(
type
==
2
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
ID
:
obj
,
blank
:
'y'
}
})
}
else
if
(
type
==
3
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
ID
:
obj
,
blank
:
'y'
}
})
}
else
if
(
type
==
4
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
OrderSource
:
obj
.
OrderSource
,
SourceID
:
obj
.
SourceID
,
blank
:
'y'
}
})
}
else
if
(
type
==
5
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
obj
[
0
].
TCID
,
OutBranchId
:
obj
.
RB_Branch_Id
,
blank
:
'y'
}
})
}
else
if
(
type
==
6
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
obj
,
OutBranchId
:
obj
.
RB_Branch_Id
,
'CloseIncomeBtn'
:
true
,
blank
:
'y'
}
})
}
else
if
(
type
==
7
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
isShow
:
false
,
blank
:
'y'
}
})
}
else
if
(
type
==
8
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
id
,
orderID
:
this
.
msg
.
OrderID
,
isShow
:
false
,
blank
:
'y'
}
})
}
else
if
(
type
==
9
)
{
this
.
$router
.
push
({
name
:
path
,
query
:
{
id
:
this
.
msg
.
OrderID
,
EmployeeId
:
this
.
EmployeeId
,
isOwn
:
false
,
blank
:
'y'
}
})
}
},
remoteMethod
(
query
)
{
if
(
query
!==
''
)
{
this
.
loadingPeople
=
true
this
.
apipost
(
'admin_Get_Chat_All_SelectEmpName'
,
{
EmName
:
query
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
peopleData
=
res
.
data
.
data
}
this
.
loadingPeople
=
false
},
err
=>
{})
}
else
{
this
.
peopleData
=
[];
}
},
showUpLoadFile
(
i
)
{
// 预览上传文件
if
(
i
.
Type
==
3
)
{
this
.
picObj
.
push
(
i
.
Url
);
this
.
picIsShow
=
true
;
}
else
{
if
(
i
.
Url
.
substring
(
i
.
Url
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Url
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
.
Url
)
}
else
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Url
)
}
}
},
deleteUploadFile
(
i
)
{
// 删除上传文件
this
.
saveMsg
.
splice
(
i
,
1
);
},
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
this
.
$t
(
'tips.wjdxbncgsz'
))
return
}
// 1 文档 2 数据 3 图片
let
typeArr
=
[{
stringArr
:
'GIF|JPG|JPEG|PNG|BMP'
,
type
:
3
},
{
stringArr
:
'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF'
,
type
:
1
},
]
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
'.'
)
+
1
,
file
.
file
.
name
.
length
).
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
'-1'
)
{
fileTypeNumber
=
x
.
type
;
typeOk
=
true
;
}
})
if
(
!
typeOk
)
return
this
.
$message
.
error
(
this
.
$t
(
'tips.qscWEfile'
));
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/Temporary/"
this
.
$message
.
info
(
this
.
$t
(
'tips.shangchuanzhong'
))
UploadSelfFile
(
'Temporary'
,
file
.
file
,
x
=>
{
if
(
x
.
Code
==
1
){
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
saveMsg
.
push
({
Content
:
x
.
FileUrl
,
ID
:
0
,
Type
:
fileTypeNumber
,
Url
:
x
.
FileUrl
,
})
this
.
$message
.
success
(
this
.
$t
(
'tips.scchenggong'
))
}
},
1
);
},
AuditOrRefund
()
{
this
.
$router
.
go
(
-
1
)
this
.
MsgBus
.
$emit
(
'msg'
);
},
handleInput2
(
e
)
{
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,1})
/g
)[
0
])
||
null
},
AddFinancial
(
z
)
{
//保存
if
(
z
)
{
this
.
msg
.
Status
=
0
;
}
else
{
this
.
msg
.
Status
=
1
;
if
(
this
.
msg
.
detailList
.
length
<
1
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qtxzsyxfyshuoming'
));
if
(
this
.
msg
.
PayDate
===
''
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzyjfkshijian'
));
}
if
(
this
.
msg
.
IsPublic
!=
8
&&
this
.
msg
.
IsPublic
!=
9
)
{
if
(
this
.
msg
.
ClientType
===
''
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzfkduixiang'
));
}
else
{
this
.
msg
.
ClientType
=
0
;
}
if
(
this
.
msg
.
RB_Branch_Id
===
''
)
return
this
.
$message
.
error
(
'请选择校区'
);
// IsPublic 2 现金 IsLeader 0 临时领队
if
(
this
.
msg
.
IsPublic
<
2
&&
this
.
IsLeader
===
1
)
{
if
(
this
.
msg
.
ClientID
===
''
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzkhmingcheng'
));
if
(
this
.
msg
.
AccountNumber
===
''
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzfkdzhanghu'
));
}
else
{
}
if
(
this
.
msg
.
InvoiceMoney
==
''
){
this
.
msg
.
InvoiceMoney
=
'0'
}
// if(this.msg.ClientID=='')return this.$message.error('请选择客户名称!');
// if(this.msg.IsPublic!=2 && this.IsLeader!=0){
// if(this.msg.AccountNumber=='')return this.$message.error('请选择付款账户!');
// }
if
(
this
.
msg
.
IsHave
==
0
&&
this
.
chosenPeople
.
length
==
0
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzxybsheren'
));
if
(
!
this
.
msg
.
RB_Depart_Id
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzzdbumen'
));
delete
this
.
msg
.
DetailList
;
delete
this
.
msg
.
VorcherInos
;
this
.
msg
.
vorcherInos
=
this
.
saveMsg
;
this
.
msg
.
emList
=
this
.
chosenPeople
;
if
(
this
.
orderObj
)
{
this
.
msg
.
VisaIds
=
this
.
orderObj
.
VisaIds
?
this
.
orderObj
.
VisaIds
:
''
;
//从电商过来的参数处理
this
.
msg
.
OrderSource
=
this
.
orderObj
.
OrderSource
?
this
.
orderObj
.
OrderSource
:
0
;
this
.
msg
.
OtherType
=
this
.
orderObj
.
OtherType
?
this
.
orderObj
.
OtherType
:
0
;
this
.
msg
.
ReFinanceId
=
this
.
orderObj
.
ReFinanceId
?
this
.
orderObj
.
ReFinanceId
:
0
;
this
.
msg
.
ReFinanceId2
=
this
.
orderObj
.
ReFinanceId2
?
this
.
orderObj
.
ReFinanceId2
:
0
;
this
.
msg
.
EduCommissionEmp
=
this
.
orderObj
.
EduCommissionEmp
?
this
.
orderObj
.
EduCommissionEmp
:
''
;
this
.
msg
.
ECOrderList
=
this
.
orderObj
.
ECOrderList
?
this
.
orderObj
.
ECOrderList
:
[];
}
// 2019-12-3 18:29:31 新增费用类型判断
let
riqi
=
false
this
.
msg
.
detailList
.
forEach
(
x
=>
{
if
(
!
riqi
&&
(
x
.
CostTypeName
==
'房费'
||
x
.
CostTypeName
==
'差旅费'
||
x
.
CostTypeName
==
'签证费'
||
x
.
CostTypeName
.
indexOf
(
'机票'
)
!==
-
1
))
{
riqi
=
true
}
delete
x
.
rate
;
});
if
(
riqi
)
{
var
today
=
new
Date
();
var
year
=
today
.
getFullYear
();
var
month
=
today
.
getMonth
();
var
date
=
today
.
getDate
();
var
weeks
=
[
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
]
var
temp
=
new
Date
(
year
,
month
,
date
+
3
)
var
today
=
Date
.
parse
(
new
Date
())
var
PayDate
=
this
.
msg
.
PayDate
var
startTime
=
Date
.
parse
(
temp
);
var
endTime
=
Date
.
parse
(
PayDate
);
if
(
endTime
>
startTime
)
{
this
.
$message
.
error
(
'房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!'
);
return
}
// else if (endTime
<
today
)
{
// this.$message.error('房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!');
// return
// }
}
// 判断付款金额与最大金额
if
(
Number
(
this
.
maxmoneyData
)
>
0
&&
(
Number
(
this
.
allPriceTocalc
)
>
Number
(
this
.
maxmoneyData
)))
{
this
.
maxmoneyTips
=
true
;
return
;
}
//旅客名单数据组装
if
(
!
this
.
$route
.
query
.
edit
)
{
this
.
msg
.
Type
=
this
.
$route
.
query
.
Type
}
if
(
this
.
orderObj
!=
null
&&
this
.
orderObj
.
OrderSource
===
10
)
{
let
guestInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"saveGuestInfo"
));
// return;
this
.
msg
.
GuestInfoList
=
[];
if
(
guestInfo
!=
null
&&
guestInfo
.
length
>
0
)
{
guestInfo
.
forEach
(
t
=>
{
this
.
msg
.
GuestInfoList
.
push
({
GuestId
:
t
.
Id
,
GuestName
:
""
})
})
}
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
TravelReplenish
)
{
this
.
msg
.
TravelReplenish
=
this
.
orderObj
.
TravelReplenish
}
this
.
loading
=
true
;
this
.
msg
.
Description
=
this
.
Description
;
// 财务收据
if
(
this
.
czmsg
&&
this
.
czmsg
.
ReFinanceId2
)
{
this
.
msg
.
ReFinanceId2
=
this
.
czmsg
.
ReFinanceId2
;
}
// 预付款冲抵 电商商品
if
(
this
.
czmsg
&&
this
.
czmsg
.
ReFinanceId
)
{
this
.
msg
.
ReFinanceId
=
this
.
czmsg
.
ReFinanceId
;
this
.
msg
.
OtherType
=
this
.
czmsg
.
OtherType
;
}
// 电商商品内部结算
if
(
this
.
czmsg
&&
this
.
czmsg
.
ReTCID
)
{
this
.
msg
.
OtherType
=
this
.
czmsg
.
OtherType
;
this
.
msg
.
ReTCID
=
this
.
czmsg
.
ReTCID
;
}
this
.
msg
.
GuestId
=
this
.
$route
.
query
.
GuestId
;
if
(
this
.
iscopy
==
2
){
//如果是复制赋值为0
this
.
msg
.
FrID
=
0
;
if
(
this
.
msg
.
vorcherInos
.
length
>
0
){
//如果是复制的话 收据ID 为0
this
.
msg
.
vorcherInos
.
forEach
(
x
=>
{
x
.
ID
=
0
})
}
}
this
.
apipost
(
'Financial_post_Set'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
//清除旅客名单数据
sessionStorage
.
removeItem
(
"saveGuestInfo"
);
sessionStorage
.
removeItem
(
"guoji"
);
// this.$store.commit('saveGuestInfo',[])
this
.
$confirm
(
this
.
$t
(
'tips.czcgsfjxzhidan'
),
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
this
.
$t
(
'fnc.jxzhidan'
),
cancelButtonText
:
this
.
$t
(
'fnc.nothanks'
),
type
:
'warning'
}).
then
(()
=>
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/addFinancialDocuments'
,
query
:
{
"id"
:
this
.
$route
.
query
.
id
,
"Name"
:
this
.
$route
.
query
.
Name
,
'InPay'
:
this
.
$route
.
query
.
InPay
,
"Type"
:
this
.
$route
.
query
.
Type
,
"orderObj"
:
this
.
$route
.
query
.
orderObj
,
'IsUploadPic'
:
this
.
$route
.
query
.
IsUploadPic
,
'companyID'
:
this
.
$route
.
query
.
companyID
,
'GuestId'
:
this
.
$route
.
query
.
GuestId
}
})
}).
catch
(()
=>
{
this
.
$router
.
push
({
path
:
'/financial/financalDocument/FinancialDocuments'
,
query
:
{
'Type'
:
this
.
$route
.
query
.
Type
,
'InPay'
:
this
.
$route
.
query
.
InPay
}
});
});
}
else
{
this
.
resultCode
=
res
.
data
.
resultCode
;
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
loading
=
false
;
},
err
=>
{})
},
FinancialFlowTemplate_post_GetProcessList
(
id
)
{
this
.
apipost
(
'FinancialFlowTemplate_post_GetProcessList'
,
{
ID
:
id
,
WorkFlowID
:
0
,
TemplateType
:
0
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
res
.
data
.
data
.
forEach
(
y
=>
{
y
.
contentTips
=
y
.
AuditDescription
+
(
y
.
AuditWay
==
"2"
?
this
.
$t
(
'fnc.huiqian'
)
:
this
.
$t
(
'fnc.huoqian'
))
})
this
.
AuditListData
.
AuditList
=
res
.
data
.
data
;
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AuditListData
.
AuditList
));
this
.
newAuditList
=
data
.
reverse
();
}
else
{}
},
err
=>
{})
},
showEdit
(
i
)
{
// 修改
this
.
$forceUpdate
();
this
.
msg
.
detailList
[
i
].
show
=
true
;
this
.
$set
(
this
.
msg
.
detailList
,
i
,
this
.
msg
.
detailList
[
i
]);
},
addList
(
t
,
i
)
{
// 添加
let
list
=
{};
if
(
t
==
2
&&
i
)
{
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
.
detailList
[
i
-
1
]));
}
else
{
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
detailList
));
}
if
(
list
.
yTotalPrice
&&
list
.
yTotalPrice
!=
''
)
{
list
.
yTotalPrice
=
list
.
yTotalPrice
.
toFixed
(
2
)
}
if
(
list
.
CostTypeId
==
''
)
return
if
(
list
.
Number
==
''
)
return
if
(
list
.
UnitPrice
==
''
)
return
if
(
list
.
CurrencyId
==
''
)
return
if
(
t
==
2
&&
i
)
{
list
.
show
=
false
;
this
.
msg
.
detailList
[
i
-
1
]
=
list
;
}
else
{
this
.
msg
.
detailList
.
push
(
list
);
}
let
allPrice
=
0
this
.
msg
.
detailList
.
forEach
(
x
=>
{
this
.
coinGetList
.
forEach
(
y
=>
{
if
(
y
.
ID
==
x
.
CurrencyId
)
{
x
.
currenName
=
y
.
Name
;
}
})
allPrice
=
allPrice
+
parseFloat
(
x
.
bTotalPrice
);
})
this
.
$forceUpdate
()
this
.
allPrice
=
allPrice
;
this
.
allPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
allPrice
*
100
)
/
100
)
this
.
allPriceTocalc
=
Math
.
round
(
this
.
allPrice
*
100
)
/
100
this
.
chinaAllPrice
=
this
.
$commonUtils
.
changeMoneyToChinese
(
this
.
allPrice
)
this
.
detailList
=
{
ID
:
0
,
UnitPrice
:
''
,
UnitPriceTo
:
''
,
Number
:
''
,
Rate
:
''
,
CostTypeId
:
''
,
CurrencyId
:
''
,
Remark
:
''
,
CostTypeName
:
''
,
yTotalPrice
:
''
,
yTotalPriceTo
:
''
,
bTotalPrice
:
''
,
bTotalPriceTo
:
''
,
show
:
false
,
}
},
chages
(
e
){
//处理输入框不能输入问题
this
.
$forceUpdate
()
},
Calculation
(
t
,
i
)
{
// 计算原币 本位币
let
numberC
=
0
;
let
price
=
0
;
let
rate
=
0
;
if
(
t
==
2
&&
i
)
{
numberC
=
parseFloat
(
this
.
msg
.
detailList
[
i
-
1
].
Number
);
price
=
parseFloat
(
this
.
msg
.
detailList
[
i
-
1
].
UnitPrice
);
rate
=
parseFloat
(
this
.
msg
.
detailList
[
i
-
1
].
Rate
);
if
(
price
==
0
)
{
price
=
''
;
this
.
msg
.
detailList
[
i
-
1
].
UnitPrice
=
''
;
}
if
(
numberC
&&
price
)
{
this
.
msg
.
detailList
[
i
-
1
].
UnitPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
price
*
100
)
/
100
)
this
.
msg
.
detailList
[
i
-
1
].
yTotalPrice
=
numberC
*
price
;
this
.
msg
.
detailList
[
i
-
1
].
yTotalPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
msg
.
detailList
[
i
-
1
]
.
yTotalPrice
*
100
)
/
100
);
if
(
!
isNaN
(
rate
))
{
let
num
=
(
numberC
*
price
)
*
rate
;
num
=
Math
.
round
(
num
*
100
)
/
100
;
this
.
msg
.
detailList
[
i
-
1
].
bTotalPrice
=
num
;
this
.
msg
.
detailList
[
i
-
1
].
bTotalPriceTo
=
this
.
$commonUtils
.
addCommas
(
num
)
}
}
}
else
{
numberC
=
parseFloat
(
this
.
detailList
.
Number
);
price
=
parseFloat
(
this
.
detailList
.
UnitPrice
);
rate
=
parseFloat
(
this
.
detailList
.
Rate
);
if
(
price
==
0
)
{
price
=
''
;
this
.
detailList
.
UnitPrice
=
''
;
}
if
(
numberC
&&
price
)
{
this
.
detailList
.
UnitPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
price
*
100
)
/
100
)
this
.
detailList
.
yTotalPrice
=
numberC
*
price
;
this
.
detailList
.
yTotalPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
detailList
.
yTotalPrice
*
100
)
/
100
);
if
(
!
isNaN
(
rate
))
{
let
num
=
(
numberC
*
price
)
*
rate
;
num
=
Math
.
round
(
num
*
100
)
/
100
;
this
.
detailList
.
bTotalPrice
=
num
;
this
.
detailList
.
bTotalPriceTo
=
this
.
$commonUtils
.
addCommas
(
num
)
}
}
}
this
.
commonDetailList
=
this
.
detailList
;
this
.
TopMoney
=
this
.
detailList
.
yTotalPriceTo
;
},
getCostTypeName
(
i
,
t
)
{
// 根据支出费用类型获取费用类型名称 列表展示用
this
.
GetCostTypeList
.
forEach
(
x
=>
{
if
(
x
.
ID
==
i
)
{
if
(
t
>=
0
)
{
this
.
msg
.
detailList
[
t
].
CostTypeName
=
x
.
Name
;
if
(
x
.
ID
===
56
)
{
this
.
msg
.
detailList
[
t
].
Remark
=
this
.
orderObj
.
TCNUMS
?
`地接费领取自动生成:
${
this
.
orderObj
.
TCNUMS
}
`
:
''
;
}
}
else
{
this
.
detailList
.
CostTypeName
=
x
.
Name
;
if
(
x
.
ID
===
56
)
{
this
.
detailList
.
Remark
=
this
.
orderObj
.
TCNUMS
?
`地接费领取自动生成:
${
this
.
orderObj
.
TCNUMS
}
`
:
''
;
}
}
}
})
},
getRate
(
cID
,
i
,
t
,
index
)
{
// 根据选择币种获取汇率
this
.
coinGetList
.
forEach
(
x
=>
{
if
(
x
.
ID
==
i
)
{
if
(
this
.
czmsgState
)
{
if
(
t
==
1
)
{
this
.
detailList
.
Rate
=
this
.
czmsg
.
Rate
;
this
.
detailList
.
currenName
=
x
.
Name
;
}
else
{
this
.
msg
.
detailList
[
index
].
Rate
=
this
.
czmsg
.
Rate
;
this
.
msg
.
detailList
[
index
].
currenName
=
x
.
Name
;
}
}
else
{
if
(
t
==
1
)
{
this
.
detailList
.
Rate
=
cID
===
57
?
x
.
PayRateHistory
:
x
.
PayRate
;
this
.
detailList
.
currenName
=
x
.
Name
;
}
else
{
this
.
msg
.
detailList
[
index
].
Rate
=
cID
===
57
?
x
.
PayRateHistory
:
x
.
PayRate
;
this
.
msg
.
detailList
[
index
].
currenName
=
x
.
Name
;
}
}
this
.
$forceUpdate
();
}
})
this
.
Calculation
(
t
,
index
+
1
)
},
financeinfo_post_GetClientTypeList
()
{
// 获取对象类型
this
.
apipost
(
'financeinfo_post_GetClientTypeList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ClientTypeList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
GetClientAccountList
(
i
)
{
//获取客户名称并且根据费用类型和付款对象获取客户账号
this
.
msg
.
AccountNumber
=
''
;
this
.
ClientAccountList
.
forEach
(
x
=>
{
if
(
x
.
ID
==
i
)
{
this
.
msg
.
RemitterName
=
x
.
Name
;
this
.
financeinfo_post_GetClientAccountList
(
this
.
msg
.
ClientType
,
x
.
ID
);
}
})
},
financeinfo_post_GetClientAccountList
(
t
,
i
)
{
//获取付款 对象类型 新增用
let
msg
=
{
ID
:
0
,
Type
:
t
,
ObjID
:
0
,
CardNum
:
''
}
if
(
i
>=
0
)
{
msg
.
ID
=
i
;
}
else
{
this
.
msg
.
ClientID
=
''
;
this
.
msg
.
AccountNumber
=
''
;
this
.
msg
.
RemitterName
=
''
;
this
.
msg
.
IsLeader
=
1
;
}
this
.
apipost
(
'financeinfo_post_GetClientAccountList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
let
ClientAccountList
=
[];
if
(
i
)
{
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
AccountHolder
+
+
`(
${
x
.
AccountAlias
}
)`
,
Nom
:
x
.
CardNum
,
OpenBankName
:
x
.
OpenBankName
,
allName
:
x
.
CardNum
+
" "
+
x
.
OpenBankName
,
ObjID
:
x
.
ObjID
,
}
ClientAccountList
.
push
(
obj
)
})
this
.
ClientAccountListS
=
ClientAccountList
;
}
else
{
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
AccountHolder
+
`(
${
x
.
AccountAlias
}
)`
,
Nom
:
x
.
CardNum
,
OpenBankName
:
x
.
OpenBankName
,
ObjID
:
x
.
ObjID
,
}
ClientAccountList
.
push
(
obj
)
})
this
.
ClientAccountList
=
ClientAccountList
;
}
}
},
err
=>
{})
},
financeinfo_post_GetClientAccountListEdit
(
t
)
{
//获取付款 对象类型 修改用
let
msg
=
{
Type
:
t
,
ObjID
:
0
,
CardNum
:
''
}
this
.
apipost
(
'financeinfo_post_GetClientAccountList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
let
ClientAccountList
=
[];
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
AccountHolder
+
`(
${
x
.
AccountAlias
}
)`
,
Nom
:
x
.
CardNum
,
OpenBankName
:
x
.
OpenBankName
,
ObjID
:
x
.
ObjID
,
}
if
(
x
.
ID
==
this
.
msg
.
ClientID
)
{
this
.
financeinfo_post_GetClientAccountList
(
this
.
msg
.
ClientType
,
x
.
ObjID
);
}
ClientAccountList
.
push
(
obj
)
})
this
.
ClientAccountList
=
ClientAccountList
;
}
},
err
=>
{})
},
Financial_post_GetCostTypeList
(
id
,
type
)
{
//获取支出费用类型
this
.
apipost
(
'Financial_post_GetCostTypeList'
,
{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetCostTypeList
=
res
.
data
.
data
;
if
(
type
)
{
this
.
msg
.
detailList
.
forEach
(
x
=>
{
this
.
GetCostTypeList
.
forEach
(
y
=>
{
if
(
y
.
ID
==
x
.
CostTypeId
)
{
x
.
CostTypeName
=
y
.
Name
;
}
})
})
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
CostType
)
{
this
.
getCostTypeName
(
this
.
detailList
.
CostTypeId
)
}
}
},
err
=>
{})
},
financeinfo_post_GetList
(
TCID
)
{
// 获取币种
this
.
apipost
(
'financeinfo_post_GetList'
,
{
Name
:
''
,
TCID
:
TCID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
coinGetList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
Financial_post_Get
(
id
,
tempId
)
{
//获取单据详情
this
.
loading
=
true
;
this
.
apipost
(
'Financial_post_Get'
,
{
ID
:
id
,
TempId
:
tempId
,
TCIDList
:
(
this
.
orderObj
&&
this
.
orderObj
.
TCIDList
)
?
this
.
orderObj
.
TCIDList
:
[]
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
editTemplateId
=
data
.
TemplateId
;
this
.
getCompany
();
data
.
IsLeader
=
1
;
this
.
msg
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
this
.
msg
.
ClientType
=
this
.
msg
.
ClientType
==
0
?
''
:
this
.
msg
.
ClientType
;
this
.
msg
.
ClientID
=
this
.
msg
.
ClientID
==
0
?
''
:
this
.
msg
.
ClientID
;
if
(
!
this
.
msg
.
InvoiceType
||
this
.
msg
.
InvoiceType
==
0
){
this
.
msg
.
InvoiceType
=
1
}
if
(
!
this
.
msg
.
InvoiceMoney
){
this
.
msg
.
InvoiceMoney
=
0
}
if
(
!
this
.
msg
.
InvoiceRemark
){
this
.
msg
.
InvoiceRemark
=
''
}
if
(
id
||
id
===
0
)
{
if
(
!
this
.
orderObj
&&
id
>
0
)
{
this
.
msg
.
RB_Branch_Id
=
this
.
msg
.
RB_Branch_Id
}
else
{
this
.
msg
.
RB_Branch_Id
=
this
.
getLocalStorage
().
School_Id
}
}
else
{
this
.
msg
.
RB_Branch_Id
=
this
.
msg
.
RB_Branch_Id
==
0
?
this
.
getLocalStorage
().
School_Id
:
this
.
msg
.
RB_Branch_Id
;
}
let
userInfo
=
this
.
getLocalStorage
()
if
(
!
this
.
$route
.
query
.
companyID
&&
userInfo
.
Group_Id
==
100000
&&
this
.
iscopy
==
1
){
this
.
msg
.
RB_Branch_Id
=
4
}
if
(
this
.
orderObj
){
//6.21号新加 校区的id
this
.
msg
.
RB_Branch_Id
=
this
.
orderObj
.
School_Id
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
companyIDList
&&
this
.
orderObj
.
companyIDList
.
length
>
0
)
{
this
.
msg
.
RB_Branch_Id
=
this
.
orderObj
.
companyIDList
[
0
];
}
else
if
(
this
.
$route
.
query
.
companyID
)
{
if
(
this
.
$route
.
query
.
companyID
!==
'undefined'
){
this
.
msg
.
RB_Branch_Id
=
parseInt
(
this
.
$route
.
query
.
companyID
);
}
else
{
this
.
msg
.
RB_Branch_Id
=
this
.
getLocalStorage
().
School_Id
;
}
}
this
.
admin_get_DepartmentGetList
(
this
.
msg
.
RB_Branch_Id
);
this
.
get_GetInvoiceTypeEnumList
()
this
.
msg
.
PayDate
=
this
.
msg
.
PayDate
;
this
.
msg
.
detailList
=
[];
this
.
FinancialFlowTemplate_post_GetProcessList
(
data
.
TemplateId
);
this
.
financeinfo_post_GetClientAccountListEdit
(
data
.
ClientType
);
this
.
Financial_post_GetCostTypeList
(
data
.
TemplateId
,
2
);
let
allPrice
=
0
data
.
DetailList
.
forEach
(
x
=>
{
// 20190815 新增领款单据重新生成自动带上计算后的金额
x
.
UnitPrice
=
this
.
$route
.
query
.
dijieEditMoney
?
this
.
$route
.
query
.
dijieEditMoney
:
x
.
UnitPrice
x
.
OriginalMoney
=
this
.
$route
.
query
.
dijieEditMoney
?
this
.
$route
.
query
.
dijieEditMoney
:
x
.
OriginalMoney
x
.
UnitPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
);
x
.
yTotalPrice
=
x
.
Number
*
x
.
UnitPrice
;
x
.
rate
=
x
.
Rate
;
let
num
=
(
x
.
Number
*
x
.
UnitPrice
)
*
x
.
Rate
;
num
=
Math
.
round
(
num
*
100
)
/
100
;
x
.
bTotalPrice
=
num
;
x
.
Money
=
Math
.
round
(
x
.
Money
*
100
)
/
100
;
x
.
yTotalPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
yTotalPrice
*
100
)
/
100
);
x
.
bTotalPriceTo
=
this
.
$commonUtils
.
addCommas
(
num
);
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
;
x
.
show
=
false
;
this
.
coinGetList
.
forEach
(
y
=>
{
if
(
y
.
ID
==
x
.
CurrencyId
)
{
x
.
currenName
=
y
.
Name
;
}
})
this
.
msg
.
detailList
.
push
(
x
);
allPrice
=
allPrice
+
parseFloat
(
x
.
bTotalPrice
);
});
this
.
allPrice
=
allPrice
;
this
.
allPriceTo
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
allPrice
*
100
)
/
100
)
this
.
allPriceTocalc
=
Math
.
round
(
this
.
allPrice
*
100
)
/
100
this
.
chinaAllPrice
=
this
.
$commonUtils
.
changeMoneyToChinese
(
this
.
allPrice
)
this
.
BillName
=
data
.
CompanyName
;
this
.
BillSonName
=
data
.
FinanceName
;
this
.
IsUploadPic
=
data
.
IsUploadPic
;
this
.
msg
.
IsPublic
=
data
.
IsPublic
;
this
.
GetDetail
=
data
;
if
(
this
.
orderObj
!=
null
&&
this
.
orderObj
.
OrderSource
===
10
)
{
}
else
{
this
.
Description
=
this
.
GetDetail
.
Description
;
}
if
(
this
.
orderObj
)
{
this
.
msg
.
OrderID
=
this
.
orderObj
.
OrderID
?
this
.
orderObj
.
OrderID
:
0
;
this
.
OrderSource
=
this
.
msg
.
OrderSource
=
this
.
orderObj
.
OrderSource
?
this
.
orderObj
.
OrderSource
:
0
;
this
.
msg
.
TCID
=
this
.
orderObj
.
TCID
?
this
.
orderObj
.
TCID
:
0
;
this
.
msg
.
TCIDList
=
this
.
orderObj
.
TCIDList
?
this
.
orderObj
.
TCIDList
:
[];
this
.
msg
.
Obj
=
this
.
orderObj
.
Obj
?
this
.
orderObj
.
Obj
:
''
;
this
.
msg
.
SourceID
=
this
.
orderObj
.
SourceID
?
this
.
orderObj
.
SourceID
:
0
;
this
.
msg
.
CallType
=
this
.
orderObj
.
CallType
?
this
.
orderObj
.
CallType
:
0
;
this
.
detailList
.
CostTypeId
=
this
.
orderObj
.
CostType
?
this
.
orderObj
.
CostType
:
''
;
this
.
detailList
.
UnitPrice
=
this
.
orderObj
.
Money
?
this
.
orderObj
.
Money
:
0
;
this
.
detailList
.
Number
=
this
.
orderObj
.
CostType
?
1
:
0
this
.
msg
.
OtherType
=
this
.
orderObj
.
OtherType
?
this
.
orderObj
.
OtherType
:
0
;
this
.
XSTC
=
this
.
orderObj
.
XSTC
?
true
:
false
if
(
!
JSON
.
parse
(
sessionStorage
.
getItem
(
"saveGuestInfo"
)))
{
this
.
Description
=
this
.
orderObj
.
laRemark
?
this
.
orderObj
.
laRemark
:
''
;
}
// 判断是否禁用费用说明
if
(
this
.
orderObj
.
SelectState
)
{
this
.
SelectState
=
true
;
this
.
SelectDisablsed
=
Number
(
this
.
orderObj
.
CostType
)
}
if
(
this
.
orderObj
.
CurrencyId
)
{
this
.
detailList
.
CurrencyId
=
Number
(
this
.
orderObj
.
CurrencyId
);
this
.
detailCurrDis
=
true
;
this
.
detailList
.
CostTypeId
=
this
.
orderObj
.
CostType
?
this
.
orderObj
.
CostType
:
''
;
this
.
getRate
(
this
.
detailList
.
CostTypeId
,
this
.
detailList
.
CurrencyId
,
1
)
this
.
addList
(
1
);
}
}
if
(
data
.
VorcherInos
)
{
data
.
VorcherInos
.
forEach
(
x
=>
{
x
.
Url
=
x
.
Content
;
this
.
saveMsg
.
push
(
x
);
})
}
if
(
this
.
msg
.
TCIDAndTCNUMList
==
null
)
{
this
.
msg
.
TCIDAndTCNUMList
=
[];
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
CostType
)
{
this
.
Calculation
(
1
)
}
this
.
msg
.
URL
=
this
.
$route
.
query
.
path
;
this
.
msg
.
Cmd
=
this
.
$route
.
query
.
Cmd
?
this
.
$route
.
query
.
Cmd
:
''
;
if
(
id
>
0
)
{
let
TCID
=
data
.
TCIDList
.
length
>
0
?
data
.
TCIDList
[
0
]
:
0
this
.
financeinfo_post_GetList
(
TCID
);
}
this
.
$forceUpdate
();
this
.
loading
=
false
;
if
(
this
.
$route
.
query
.
InPay
)
{
this
.
msg
.
Type
=
this
.
$route
.
query
.
InPay
;
}
if
(
this
.
isFrompassenger
)
{
this
.
setDocument
();
}
}
else
{
this
.
loading
=
false
;
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
admin_get_Depart_IdGetList
(
Bid
){
this
.
departmentList
.
forEach
(
x
=>
{
//给msg传部门名称
if
(
x
.
DeptId
==
Bid
){
this
.
msg
.
RB_DepartName
=
x
.
DeptName
;
}
})
},
admin_get_Depart_IdGetList2
(
bid
){
this
.
msg
.
InvoiceType
=
bid
this
.
$forceUpdate
()
},
admin_get_DepartmentGetList
(
Bid
,
T
)
{
if
(
Bid
==
0
)
{
this
.
chosenPeople
=
[];
}
this
.
CompanyList
.
forEach
(
x
=>
{
//给msg传校区的名字
if
(
x
.
SId
==
Bid
){
this
.
msg
.
RB_BranchName
=
x
.
SName
;
}
})
// this.msg.RB_Depart_Id = '';
// this.departmentMsg.RB_Branch_Id = Bid ? Bid : -1;
this
.
departmentMsg
.
RB_Branch_Id
=
-
1
;
this
.
msg
.
RB_Depart_Id
=
''
;
getDeptList
(
this
.
departmentMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
departmentList
=
res
.
Data
;
if
(
this
.
orderObj
&&
this
.
orderObj
.
companyIDList
&&
this
.
orderObj
.
companyIDList
.
length
>
0
)
{
}
else
{
this
.
msg
.
RB_Depart_Id
=
this
.
msg
.
RB_Depart_Id
?
this
.
msg
.
RB_Depart_Id
:
this
.
getLocalStorage
().
DeptId
;
this
.
msg
.
RB_DepartName
=
this
.
msg
.
RB_DepartName
?
this
.
msg
.
RB_DepartName
:
this
.
getLocalStorage
().
DeptName
;
}
}
}).
catch
(()
=>
{
})
},
get_GetInvoiceTypeEnumList
(){
this
.
apipost
(
'Financial_get_GetInvoiceTypeEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getInvoiceList
=
res
.
data
.
data
this
.
getInvoiceList
.
forEach
(
x
=>
{
x
.
Id
=
Number
(
x
.
Id
)
})
}
},
err
=>
{})
},
getCompany
()
{
//公司
getSchoolDropdown
({}).
then
(
res
=>
{
let
data
=
res
.
Data
;
data
.
forEach
(
x
=>
{
//给msg传校区的名字
if
(
x
.
SId
==
this
.
msg
.
RB_Branch_Id
){
this
.
msg
.
RB_BranchName
=
x
.
SName
;
}
})
let
Status
=
false
;
if
(
this
.
$route
.
query
.
companyID
!==
'-1'
&&
this
.
$route
.
query
.
companyID
!==
undefined
){
Status
=
true
;
data
.
forEach
(
x
=>
{
x
.
disabled
=
true
;
})
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
companyIDList
&&
this
.
orderObj
.
companyIDList
.
length
>
0
)
{
Status
=
true
;
this
.
orderObj
.
companyIDList
.
forEach
(
x
=>
{
data
.
forEach
(
y
=>
{
if
(
y
.
disabled
===
false
){
y
.
disabled
=
false
}
else
{
y
.
disabled
=
x
!==
y
.
Id
;
}
})
});
}
this
.
CompanyList
=
data
;
if
(
!
Status
){
let
id
=
0
;
if
(
this
.
$route
.
query
.
id
){
id
=
this
.
$route
.
query
.
id
;
}
else
{
id
=
this
.
editTemplateId
;
}
this
.
apipost
(
'FinancialFlowTemplate_post_GetTemplateBranch'
,
{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
resdata
=
res
.
data
.
data
;
if
(
resdata
.
IsGroupCommon
==
0
){
let
BranchList
=
resdata
.
BranchList
;
let
num
=
0
data
.
forEach
(
x
=>
{
x
.
disabled
=
true
;
let
thisId
=
this
.
getLocalStorage
().
Group_Id
BranchList
.
forEach
(
y
=>
{
if
(
x
.
SId
==
y
){
x
.
disabled
=
false
;
if
(
num
<
1
&&
!
this
.
$route
.
query
.
edit
)
{
this
.
msg
.
RB_Branch_Id
=
x
.
SId
}
if
(
thisId
===
x
.
SId
&&
!
this
.
$route
.
query
.
edit
)
{
this
.
msg
.
RB_Branch_Id
=
x
.
SId
}
num
=
num
+
1
}
})
})
this
.
CompanyList
=
data
;
}
}
},
err
=>
{})
}
}).
catch
(()
=>
{
})
},
//设置选中单据名单
setDocument
()
{
let
guojiSessions
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
"guoji"
));
if
(
guojiSessions
.
guojiArr
.
length
>
0
)
{
this
.
msg
.
detailList
.
push
({
ID
:
0
,
UnitPrice
:
''
,
UnitPriceTo
:
''
,
Number
:
guojiSessions
.
guojiArr
.
length
,
Rate
:
''
,
CostTypeId
:
52
,
CurrencyId
:
''
,
Remark
:
''
,
CostTypeName
:
''
,
yTotalPrice
:
''
,
yTotalPriceTo
:
''
,
bTotalPrice
:
''
,
bTotalPriceTo
:
''
,
show
:
false
,
});
}
if
(
guojiSessions
.
guoneiArr
.
length
>
0
)
{
this
.
msg
.
detailList
.
push
({
ID
:
0
,
UnitPrice
:
''
,
UnitPriceTo
:
''
,
Number
:
guojiSessions
.
guoneiArr
.
length
,
Rate
:
''
,
CostTypeId
:
66
,
CurrencyId
:
''
,
Remark
:
''
,
CostTypeName
:
''
,
yTotalPrice
:
''
,
yTotalPriceTo
:
''
,
bTotalPrice
:
''
,
bTotalPriceTo
:
''
,
show
:
false
,
});
}
if
(
guojiSessions
.
shuijinArr
.
length
>
0
)
{
this
.
msg
.
detailList
.
push
({
ID
:
0
,
UnitPrice
:
''
,
UnitPriceTo
:
''
,
Number
:
guojiSessions
.
shuijinArr
.
length
,
Rate
:
''
,
CostTypeId
:
80
,
CurrencyId
:
''
,
Remark
:
''
,
CostTypeName
:
''
,
yTotalPrice
:
''
,
yTotalPriceTo
:
''
,
bTotalPrice
:
''
,
bTotalPriceTo
:
''
,
show
:
false
,
});
}
if
(
this
.
orderObj
!=
null
&&
this
.
orderObj
.
OrderSource
===
4
&&
this
.
isFrompassenger
)
{
let
guojiSessions
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
"guoji"
));
let
guoji
=
''
,
guonei
=
''
,
guojizhongduan
=
''
,
shuijin
=
''
,
shengcang
=
''
;
guojiSessions
.
guojiArr
.
forEach
(
x
=>
{
guoji
+=
x
+
' '
})
guojiSessions
.
guoneiArr
.
forEach
(
x
=>
{
guonei
+=
x
+
' '
})
guojiSessions
.
gjzdArr
.
forEach
(
x
=>
{
guojizhongduan
+=
x
+
' '
})
guojiSessions
.
shuijinArr
.
forEach
(
x
=>
{
shuijin
+=
x
+
' '
})
guojiSessions
.
shengcangArr
.
forEach
(
x
=>
{
shengcang
+=
x
+
' '
})
var
gj
=
guoji
==
''
?
''
:
'国际机票:'
+
guoji
;
var
gn
=
guonei
==
''
?
''
:
'国内航段:'
+
guonei
;
var
gjzd
=
guojizhongduan
==
''
?
''
:
'国际中段:'
+
guojizhongduan
;
var
sj
=
shuijin
==
''
?
''
:
'税金:'
+
shuijin
;
var
sc
=
shengcang
==
''
?
''
:
'升舱:'
+
shengcang
;
if
(
gj
!=
''
)
{
gj
=
gj
+
`\n`
}
if
(
gn
!=
''
)
{
gn
=
gn
+
`\n`
}
if
(
gjzd
!=
''
)
{
gjzd
=
gjzd
+
`\n`
}
if
(
sj
!=
''
)
{
sj
=
sj
+
`\n`
}
this
.
Description
=
gj
+
gn
+
gjzd
+
sj
+
sc
}
},
MaxMoney
()
{
// 获取最大金额
this
.
apipost
(
'Financial_get_GetFinanceMoneyLimit'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
maxmoneyData
=
res
.
data
.
data
;
}
},
err
=>
{})
},
getDepartList
(){
let
departmentMsg
=
{
RB_Group_Id
:
'0'
,
RB_Branch_Id
:
'-1'
,
Status
:
'0'
,
ParentId
:
'-1'
,
Tier
:
'0'
}
getDeptList
(
departmentMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
departmentList
=
res
.
Data
;
console
.
log
(
res
,
'数据'
);
}
}).
catch
(()
=>
{
})
},
//点击新增
addBatch
(){
let
obj
=
{
RB_Depart_Id
:
''
,
//部门
RB_Branch_Id
:
''
,
//公司Id
RB_DepartName
:
''
,
//部门名称
RB_BranchName
:
''
,
//公司名称
Remarks
:
''
,
//备注
FileUrl
:[],
//附件
YTotalPrice
:
''
//金额
}
this
.
commonFinance
.
push
(
obj
);
},
//改变部门获取信息
getDepartInfo
(
id
,
index
){
let
obj
=
{}
obj
=
this
.
departmentList
.
find
((
item
)
=>
{
if
(
item
.
DeptId
===
id
){
this
.
commonFinance
[
index
].
RB_DepartName
=
item
.
DeptName
;
}
});
this
.
commonFinance
[
index
].
RB_Branch_Id
=
this
.
msg
.
RB_Branch_Id
;
this
.
CompanyList
.
forEach
(
x
=>
{
if
(
x
.
SId
==
this
.
msg
.
RB_Branch_Id
){
this
.
commonFinance
[
index
].
RB_BranchName
=
x
.
SName
;
}
})
},
//上传附件
uploadBatch
(
file
){
console
.
log
(
file
,
'file'
);
// 1 文档 2 数据 3 图片
let
typeArr
=
[{
stringArr
:
'GIF|JPG|JPEG|PNG|BMP'
,
type
:
3
},
{
stringArr
:
'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF'
,
type
:
1
},
]
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
'.'
)
+
1
,
file
.
file
.
name
.
length
).
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
'-1'
)
{
fileTypeNumber
=
x
.
type
;
typeOk
=
true
;
}
})
if
(
!
typeOk
)
return
this
.
$message
.
error
(
this
.
$t
(
'tips.qscWEfile'
));
UploadSelfFile
(
'Temporary'
,
file
.
file
,
x
=>
{
if
(
x
.
Code
==
1
){
this
.
commonFinance
[
file
.
data
.
index
].
fileType
=
fileTypeNumber
;
let
obj
=
{
Content
:
x
.
FileUrl
,
ID
:
0
,
Type
:
fileTypeNumber
,
Url
:
x
.
FileUrl
,
}
this
.
commonFinance
[
file
.
data
.
index
].
FileUrl
.
push
(
obj
);
}
},
1
);
},
//删除数据
deleBatch
(
index
){
this
.
commonFinance
.
splice
(
index
,
1
);
},
//删除文件
deleFileDiv
(
index1
,
index2
){
this
.
commonFinance
[
index1
].
FileUrl
.
splice
(
index2
,
1
);
},
saveInfo
(){
if
(
this
.
commonFinance
.
length
==
0
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请新增部门信息`
})
return
}
if
(
this
.
commonFinance
.
length
>
0
){
let
TotalMoney
=
0
;
for
(
let
i
=
0
;
i
<
this
.
commonFinance
.
length
;
i
++
){
if
(
this
.
commonFinance
[
i
].
RB_Depart_Id
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请选择第
${
i
+
1
}
条部门信息`
})
return
}
TotalMoney
+=
Number
(
this
.
commonFinance
[
i
].
YTotalPrice
)
}
if
(
TotalMoney
!=
this
.
TopMoney
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`部门总金额应跟费用总金额一致`
})
return
}
}
this
.
msg
.
FinanceDepartList
=
this
.
commonFinance
this
.
msg
.
detailList
.
push
(
this
.
commonDetailList
);
delete
this
.
msg
.
DetailList
;
this
.
apipost
(
'Financial_post_BatchSet'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
data
.
message
,
position
:
'top'
})
let
tempStr
=
'/financial/financalDocument/FinancialDocuments'
;
this
.
$router
.
push
({
path
:
tempStr
})
}
else
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
res
.
data
.
message
})
}
},
err
=>
{})
}
},
created
()
{
var
that
=
this
;
this
.
orderObj
=
this
.
$route
.
query
.
orderObj
?
JSON
.
parse
(
this
.
$route
.
query
.
orderObj
)
:
null
;
this
.
isFrompassenger
=
this
.
orderObj
?
this
.
orderObj
.
isFromPassenger
:
undefined
;
let
TCID
=
(
this
.
orderObj
&&
this
.
orderObj
.
TCIDList
&&
this
.
orderObj
.
TCIDList
.
length
>
0
)
?
this
.
orderObj
.
TCIDList
[
0
]
:
0
if
(
this
.
orderObj
!=
null
&&
this
.
orderObj
.
OrderSource
===
10
&&
this
.
isFrompassenger
==
undefined
)
{
that
.
Description
=
"旅客名单:"
;
that
.
describeList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"saveGuestInfo"
));
if
(
that
.
describeList
)
{
that
.
describeList
.
forEach
(
item
=>
{
that
.
Description
+=
item
.
GuestName
+
" "
;
})
}
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
OtherType
)
{
this
.
ZhuiJiaTK
=
true
}
this
.
apipost
(
'financeinfo_post_GetList'
,
{
Name
:
''
,
TCID
:
TCID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
coinGetList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
mounted
()
{
// 付款单新增或修改 获取最大金额
if
((
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
==
2
)
||
(
this
.
$route
.
query
.
Type
&&
this
.
$route
.
query
.
Type
==
2
))
{
this
.
MaxMoney
();
}
if
(
this
.
$route
.
query
.
iscopy
){
this
.
iscopy
=
this
.
$route
.
query
.
iscopy
//复制的值
}
let
userInfo
=
this
.
getLocalStorage
();
this
.
department
=
userInfo
.
DeptName
;
this
.
EmployeeId
=
userInfo
.
Id
;
this
.
emplyeeName
=
userInfo
.
AccountName
;
this
.
DepartIDs
=
this
.
msg
.
RB_Depart_Id
=
userInfo
.
DeptId
;
this
.
RB_Branch_id
=
this
.
departmentMsg
.
RB_Branch_Id
=
this
.
msg
.
RB_Branch_Id
=
userInfo
.
School_Id
;
this
.
companyMsg
.
RB_Group_Id
=
this
.
departmentMsg
.
RB_Group_Id
=
userInfo
.
Group_Id
;
this
.
IsUploadPic
=
this
.
$route
.
query
.
IsUploadPic
;
this
.
msg
.
Cmd
=
this
.
$route
.
query
.
Cmd
?
this
.
$route
.
query
.
Cmd
:
''
;
this
.
financeinfo_post_GetClientTypeList
();
const
myDate
=
new
Date
();
this
.
yaer
=
myDate
.
getFullYear
();
//获取完整的年份(4位,1970-????)
this
.
month
=
myDate
.
getMonth
()
+
1
;
//获取当前月份(0-11,0代表1月)
this
.
dateS
=
myDate
.
getDate
();
//获取当前日(1-31)
let
hour
=
myDate
.
getHours
()
<
10
?
"0"
+
myDate
.
getHours
()
:
myDate
.
getHours
();
let
minute
=
myDate
.
getMinutes
()
<
10
?
"0"
+
myDate
.
getMinutes
()
:
myDate
.
getMinutes
();
let
second
=
myDate
.
getSeconds
()
<
10
?
"0"
+
myDate
.
getSeconds
()
:
myDate
.
getSeconds
();
this
.
isFrom
=
this
.
$route
.
query
.
isFrom
?
this
.
$route
.
query
.
isFrom
:
0
;
this
.
timer
=
hour
+
':'
+
minute
+
':'
+
second
;
if
(
this
.
$route
.
query
.
edit
)
{
// 编辑
this
.
msg
.
FrID
=
this
.
$route
.
query
.
FrID
;
if
(
this
.
msg
.
FrID
>
0
){
this
.
costmode
=
false
}
this
.
Financial_post_Get
(
this
.
$route
.
query
.
FrID
,
0
);
}
else
{
if
(
this
.
$route
.
query
.
czmsg
)
{
this
.
czmsg
=
JSON
.
parse
(
this
.
$route
.
query
.
czmsg
);
if
(
this
.
czmsg
.
Rate
)
{
this
.
czmsgState
=
true
;
}
}
this
.
msg
.
TemplateId
=
this
.
$route
.
query
.
id
;
if
(
this
.
$route
.
query
.
id
==
90
||
this
.
$route
.
query
.
id
==
91
)
{
this
.
msg
.
IsPublic
=
10
;
}
this
.
Financial_post_GetCostTypeList
(
this
.
$route
.
query
.
id
);
this
.
BillName
=
userInfo
.
GroupName
;
this
.
BillSonName
=
this
.
$route
.
query
.
Name
;
this
.
FinancialFlowTemplate_post_GetProcessList
(
this
.
$route
.
query
.
id
);
this
.
Financial_post_Get
(
0
,
parseInt
(
this
.
$route
.
query
.
id
));
}
if
(
this
.
$route
.
query
.
Conditon
)
{
this
.
returnCode
=
this
.
$route
.
query
.
Conditon
;
}
// this.getDepartList();
},
components
:
{
"my-FlowChartModule"
:
myFlowChartModule
}
}
</
script
>
src/pages/financial/returnPassbook/ReturnperiodsList.vue
View file @
7591e087
...
@@ -99,8 +99,8 @@
...
@@ -99,8 +99,8 @@
@
click=
"goUrl(scope.row.Id)"
></i>
@
click=
"goUrl(scope.row.Id)"
></i>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"生成财务单据"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
v-if=
"scope.row.FinanceIds==''"
content=
"生成财务单据"
placement=
"top"
>
<i
class=
"iconfont icon-
sousuo
"
<i
class=
"iconfont icon-
add
"
@
click=
"setCommissionFinanace(scope.row.Id)"
></i>
@
click=
"setCommissionFinanace(scope.row.Id)"
></i>
</el-tooltip>
</el-tooltip>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
placement=
"top"
v-if=
'iscMaker==true'
>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"制单"
placement=
"top"
v-if=
'iscMaker==true'
>
...
...
src/router/routes.js
View file @
7591e087
...
@@ -532,6 +532,11 @@ const routes = [{
...
@@ -532,6 +532,11 @@ const routes = [{
component
:
()
=>
component
:
()
=>
import
(
"pages/financial/financalDocument/ChoiceAddFinancialDocuments.vue"
)
import
(
"pages/financial/financalDocument/ChoiceAddFinancialDocuments.vue"
)
},
},
{
path
:
"/financial/financalDocument/batchVoucher"
,
component
:
()
=>
import
(
"pages/financial/financalDocument/batchVoucher.vue"
)
},
{
{
path
:
"/financial/financalDocument/addReceivablesDocuments"
,
path
:
"/financial/financalDocument/addReceivablesDocuments"
,
component
:
()
=>
component
:
()
=>
...
...
src/utils/request.js
View file @
7591e087
...
@@ -13,7 +13,7 @@ axios.defaults.headers["Content-Type"] = "application/json;charset=UTF-8"; //app
...
@@ -13,7 +13,7 @@ axios.defaults.headers["Content-Type"] = "application/json;charset=UTF-8"; //app
const
service
=
axios
.
create
({
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
API
,
baseURL
:
process
.
env
.
API
,
timeout
:
15
000
timeout
:
60
000
});
});
// request拦截器
// request拦截器
...
...
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