Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
67f5e3b8
Commit
67f5e3b8
authored
Mar 06, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d44147ed
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1318 additions
and
1281 deletions
+1318
-1281
FinancialOrder.vue
src/components/DomesticModule/FinancialOrder.vue
+224
-191
FinancialOrderNew.vue
src/components/DomesticModule/FinancialOrderNew.vue
+230
-200
OrderDataStati.vue
src/components/DomesticModule/OrderDataStati.vue
+11
-12
OrderDetails.vue
src/components/DomesticModule/OrderDetails.vue
+3
-2
OrderToday.vue
src/components/DomesticModule/OrderToday.vue
+849
-874
SettlementOrder.vue
src/components/DomesticModule/SettlementOrder.vue
+1
-2
No files found.
src/components/DomesticModule/FinancialOrder.vue
View file @
67f5e3b8
<
style
>
<
style
>
@import
url('../../assets/css/domestic/SettlementOrder.css')
;
@import
url('../../assets/css/domestic/SettlementOrder.css')
;
.page_SettlementOrder
td
._hover
span
{
.page_SettlementOrder
td
._hover
span
{
border-bottom
:
1px
solid
#333
;
border-bottom
:
1px
solid
#333
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.page_SettlementOrder
td
._hover
:hover
span
{
.page_SettlementOrder
td
._hover
:hover
span
{
border-bottom
:
1px
dotted
#333
;
border-bottom
:
1px
dotted
#333
;
}
}
.sett_popover
{
.sett_popover
{
max-height
:
300px
;
max-height
:
300px
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.page_FinancialOrder
{
.page_FinancialOrder
{
padding
:
25px
0
;
padding
:
25px
0
;
}
}
.page_FinancialOrder
>
p
{
.page_FinancialOrder
>
p
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
padding-left
:
10px
;
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#000000
;
color
:
#000000
;
}
}
._VorcherInos_img
{
._VorcherInos_img
{
width
:
45px
;
width
:
45px
;
height
:
45px
;
height
:
45px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
._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
;
overflow
:
auto
}
.page_FinancialOrder
.icon-excel
{
._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
;
overflow
:
auto
}
.page_FinancialOrder
.icon-excel
{
font-size
:
30px
;
font-size
:
30px
;
text-align
:
center
;
text-align
:
center
;
color
:
#41D2A1
;
color
:
#41D2A1
;
}
}
.page_FinancialOrder
.allMoney
{
.page_FinancialOrder
.allMoney
{
text-align
:
right
!important
;
text-align
:
right
!important
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.page_FinancialOrder
._color_red
{
.page_FinancialOrder
._color_red
{
color
:
#e95252
;
color
:
#e95252
;
}
}
.page_FinancialOrder
._color_green
{
.page_FinancialOrder
._color_green
{
color
:
#2BBB7E
;
color
:
#2BBB7E
;
}
}
.page_FinancialOrder
._bg_color_red
{
.page_FinancialOrder
._bg_color_red
{
background-color
:
#e95252
;
background-color
:
#e95252
;
}
}
.page_FinancialOrder
._bg_color_green
{
.page_FinancialOrder
._bg_color_green
{
background-color
:
#2BBB7E
;
background-color
:
#2BBB7E
;
}
}
.page_FinancialOrder
._shouzhi
{
.page_FinancialOrder
._shouzhi
{
width
:
15px
;
width
:
15px
;
height
:
15px
;
height
:
15px
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
._jump_page
{
._jump_page
{
cursor
:
pointer
;
cursor
:
pointer
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
._jump_page
:hover
{
._jump_page
:hover
{
color
:
#c94052
;
color
:
#c94052
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne page_SettlementOrder page_FinancialOrder"
>
<div
class=
"flexOne page_SettlementOrder page_FinancialOrder"
>
<p>
{{
Name
}}
</p>
<p>
{{
Name
}}
</p>
<div
class=
"_content"
>
<div
class=
"_content"
>
<table
class=
"_content_tab singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading =
'loading'
>
<table
class=
"_content_tab singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
'loading'
>
<tr>
<tr>
<th>
财务单号
</th>
<th>
财务单号
</th>
<th>
交易日期
</th>
<th>
交易日期
</th>
...
@@ -81,57 +109,57 @@
...
@@ -81,57 +109,57 @@
<th>
状态
</th>
<th>
状态
</th>
</tr>
</tr>
<template
v-for=
"(item,index) in dataList"
>
<template
v-for=
"(item,index) in dataList"
>
<tr
v-if=
"type&&item.Type==type&&(item.Status==2||(item.Status==1&&item.TradeDate))"
>
<tr
:key=
"index"
v-if=
"type&&item.Type==type&&(item.Status==2||(item.Status==1&&item.TradeDate))"
>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{
item
.
FrID
}}
</span></td>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{
item
.
FrID
}}
</span></td>
<td>
{{
item
.
TradeDate
}}
</td>
<td>
{{
item
.
TradeDate
}}
</td>
<td>
{{
item
.
Type
==
1
?
'收入'
:
'支出'
}}
</td>
<td>
{{
item
.
Type
==
1
?
'收入'
:
'支出'
}}
</td>
<td>
<td>
<span
v-for=
"(son,sIndex) in item.DetailList
"
>
{{
son
.
CostTypeName
}}
</span>
<span
v-for=
"(son,sIndex) in item.DetailList"
:key=
"sIndex
"
>
{{
son
.
CostTypeName
}}
</span>
</td>
</td>
<td>
{{
item
.
TicketNum
}}
</td>
<td>
{{
item
.
TicketNum
}}
</td>
<td
width=
"600"
>
<td
width=
"600"
>
<span
v-for=
"(son,sIndex) in item.DetailList
"
>
{{
son
.
Remark
}}
</span>
<span
v-for=
"(son,sIndex) in item.DetailList"
:key=
"sIndex
"
>
{{
son
.
Remark
}}
</span>
</td>
</td>
<td>
{{
item
.
Money
}}
</td>
<td>
{{
item
.
Money
}}
</td>
<td>
<td>
<span>
{{
item
.
EmName
}}
</span><br
/>
<span>
{{
item
.
EmName
}}
</span><br
/>
<span>
{{
item
.
CreateDate
}}
</span>
<span>
{{
item
.
CreateDate
}}
</span>
</td>
</td>
<td>
<td>
<template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)
"
></i>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)"
:key=
"sIndex
"
></i>
</
template
>
</
template
>
<
template
v-if=
"son.Type==3"
>
<
template
v-if=
"son.Type==3"
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
:key=
"sIndex"
/
>
</
template
>
</
template
>
</template>
</template>
</td>
</td>
<td>
{{item.StatusStr}}
</td>
<td>
{{item.StatusStr}}
</td>
</tr>
</tr>
<tr
v-else
>
<tr
:key=
"index"
v-else
>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{item.FrID}}
</span></td>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{item.FrID}}
</span></td>
<td>
{{item.TradeDate}}
</td>
<td>
{{item.TradeDate}}
</td>
<td>
{{item.Type==1?'收入':'支出'}}
</td>
<td>
{{item.Type==1?'收入':'支出'}}
</td>
<td>
<td>
<span
v-for=
"(son,sIndex) in item.DetailList
"
>
{{son.CostTypeName}}
</span>
<span
v-for=
"(son,sIndex) in item.DetailList"
:key=
"sIndex
"
>
{{son.CostTypeName}}
</span>
</td>
</td>
<td>
{{item.TicketNum}}
</td>
<td>
{{item.TicketNum}}
</td>
<td
width=
"600"
>
<td
width=
"600"
>
<span
v-for=
"(son,sIndex) in item.DetailList
"
>
{{son.Remark}}
</span>
<span
v-for=
"(son,sIndex) in item.DetailList"
:key=
"sIndex
"
>
{{son.Remark}}
</span>
</td>
</td>
<td>
{{item.Money}}
</td>
<td>
{{item.Money}}
</td>
<td>
<td>
<span>
{{ item.EmName }}
</span><br
/>
<span>
{{ item.EmName }}
</span><br
/>
<span>
{{ item.CreateDate }}
</span>
<span>
{{ item.CreateDate }}
</span>
</td>
</td>
<td>
<td>
<
template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<
template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)
"
></i>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)"
:key=
"sIndex
"
></i>
</
template
>
</
template
>
<
template
v-if=
"son.Type==3"
>
<
template
v-if=
"son.Type==3"
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
>
<img
:key=
"sIndex"
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
/
>
</
template
>
</
template
>
</template>
</template>
</td>
</td>
...
@@ -144,7 +172,6 @@
...
@@ -144,7 +172,6 @@
</tr>
</tr>
</table>
</table>
<div
v-if=
'picIsShow'
class=
"viewBigPicLayer"
@
click=
"picIsShow=false,picObj=[]"
>
<div
v-if=
'picIsShow'
class=
"viewBigPicLayer"
@
click=
"picIsShow=false,picObj=[]"
>
<!-- <i class="el-icon-circle-close-outline clolseViewBigPicLayer" @click="picIsShow=false,picObj=[]"></i> -->
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
v-for=
"(item,index) in picObj"
:key=
"index"
>
<el-carousel-item
v-for=
"(item,index) in picObj"
:key=
"index"
>
<div
class=
"inlineDiv ownScrollbarStyle"
><img
:src=
"item"
/></div>
<div
class=
"inlineDiv ownScrollbarStyle"
><img
:src=
"item"
/></div>
...
@@ -156,83 +183,89 @@
...
@@ -156,83 +183,89 @@
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
dataList
:
[],
dataList
:
[],
loading
:
true
,
loading
:
true
,
picIsShow
:
false
,
picIsShow
:
false
,
picObj
:
[],
picObj
:
[],
Money
:
0
,
Money
:
0
,
Name
:
''
,
Name
:
''
,
type
:
null
,
type
:
null
,
}
}
},
},
created
(){
created
()
{
if
(
this
.
$route
.
query
.
type
)
{
if
(
this
.
$route
.
query
.
type
)
{
this
.
type
=
this
.
$route
.
query
.
type
;
this
.
type
=
this
.
$route
.
query
.
type
;
}
}
if
(
this
.
$route
.
query
.
OrderSource
==
4
)
{
if
(
this
.
$route
.
query
.
OrderSource
==
4
)
{
this
.
Name
=
'机票款'
;
this
.
Name
=
'机票款'
;
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
10
)
{
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
10
)
{
this
.
Name
=
'签证款'
;
this
.
Name
=
'签证款'
;
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
9
)
{
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
9
)
{
this
.
Name
=
'国内票务款'
;
this
.
Name
=
'国内票务款'
;
}
}
},
},
mounted
(){
mounted
()
{
this
.
getList
();
this
.
getList
();
},
},
methods
:{
methods
:
{
goUrl
(
path
,
id
)
{
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/'
+
path
,
path
:
'/'
+
path
,
query
:
{
id
:
id
,
blank
:
'y'
,
tab
:
id
+
'单据详情'
}
query
:
{
id
:
id
,
blank
:
'y'
,
tab
:
id
+
'单据详情'
}
})
})
},
},
showUpLoadFile
(
i
){
// 预览上传文件
showUpLoadFile
(
i
)
{
// 预览上传文件
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
.
Content
)
this
.
previewPDF
(
i
.
Content
)
}
else
{
}
else
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Content
)
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Content
)
}
}
},
},
showImg
(
obj
)
{
showImg
(
obj
)
{
obj
.
forEach
(
x
=>
{
obj
.
forEach
(
x
=>
{
if
(
x
.
Type
==
3
)
{
if
(
x
.
Type
==
3
)
{
this
.
picObj
.
push
(
x
.
Content
)
this
.
picObj
.
push
(
x
.
Content
)
}
}
})
})
this
.
picIsShow
=
true
;
this
.
picIsShow
=
true
;
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
let
msg
=
{
let
msg
=
{
OrderResource
:
this
.
$route
.
query
.
OrderSource
,
OrderResource
:
this
.
$route
.
query
.
OrderSource
,
SourceID
:
this
.
$route
.
query
.
SourceID
,
SourceID
:
this
.
$route
.
query
.
SourceID
,
}
}
this
.
apipost
(
'Financial_post_GetTicketFinanceList'
,
msg
,
r
=>
{
this
.
apipost
(
'Financial_post_GetTicketFinanceList'
,
msg
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
if
(
r
.
data
.
resultCode
==
1
)
{
if
(
this
.
total
>
0
)
{
if
(
this
.
total
>
0
)
{
this
.
noData
=
false
;
this
.
noData
=
false
;
}
else
{
}
else
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
}
this
.
dataList
=
r
.
data
.
data
;
this
.
dataList
=
r
.
data
.
data
;
let
Money
=
0
;
let
Money
=
0
;
this
.
dataList
.
forEach
(
x
=>
{
this
.
dataList
.
forEach
(
x
=>
{
if
((
this
.
type
&&
this
.
type
==
x
.
Type
&&
(
x
.
Status
==
2
||
(
x
.
Status
==
1
&&
x
.
TradeDate
)))
||
this
.
type
==
null
){
if
((
this
.
type
&&
this
.
type
==
x
.
Type
&&
(
x
.
Status
==
2
||
(
x
.
Status
==
1
&&
x
.
TradeDate
)))
||
this
.
type
==
null
)
{
Money
=
x
.
Money
+
Money
;
Money
=
x
.
Money
+
Money
;
}
}
})
})
this
.
Money
=
Money
;
this
.
Money
=
Money
;
this
.
loading
=
false
;
this
.
loading
=
false
;
}
else
{
}
else
{
this
.
$message
.
error
(
r
.
data
.
message
);
this
.
$message
.
error
(
r
.
data
.
message
);
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
},
null
)
},
null
)
},
},
}
}
}
}
</
script
>
</
script
>
src/components/DomesticModule/FinancialOrderNew.vue
View file @
67f5e3b8
<
style
>
<
style
>
@import
url('../../assets/css/domestic/SettlementOrder.css')
;
@import
url('../../assets/css/domestic/SettlementOrder.css')
;
.page_SettlementOrder
td
._hover
span
{
.page_SettlementOrder
td
._hover
span
{
border-bottom
:
1px
solid
#333
;
border-bottom
:
1px
solid
#333
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.page_SettlementOrder
td
._hover
:hover
span
{
.page_SettlementOrder
td
._hover
:hover
span
{
border-bottom
:
1px
dotted
#333
;
border-bottom
:
1px
dotted
#333
;
}
}
.sett_popover
{
.sett_popover
{
max-height
:
300px
;
max-height
:
300px
;
overflow
:
auto
;
overflow
:
auto
;
}
}
.page_FinancialOrder
{
.page_FinancialOrder
{
padding
:
25px
0
;
padding
:
25px
0
;
}
}
.page_FinancialOrder
>
p
{
.page_FinancialOrder
>
p
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
padding-left
:
10px
;
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#000000
;
color
:
#000000
;
}
}
._VorcherInos_img
{
._VorcherInos_img
{
width
:
45px
;
width
:
45px
;
height
:
45px
;
height
:
45px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
._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
;
overflow
:
auto
}
.page_FinancialOrder
.icon-excel
{
._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
;
overflow
:
auto
}
.page_FinancialOrder
.icon-excel
{
font-size
:
30px
;
font-size
:
30px
;
text-align
:
center
;
text-align
:
center
;
color
:
#41D2A1
;
color
:
#41D2A1
;
}
}
.page_FinancialOrder
.allMoney
{
.page_FinancialOrder
.allMoney
{
text-align
:
right
!important
;
text-align
:
right
!important
;
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.page_FinancialOrder
._color_red
{
.page_FinancialOrder
._color_red
{
color
:
#e95252
;
color
:
#e95252
;
}
}
.page_FinancialOrder
._color_green
{
.page_FinancialOrder
._color_green
{
color
:
#2BBB7E
;
color
:
#2BBB7E
;
}
}
.page_FinancialOrder
._bg_color_red
{
.page_FinancialOrder
._bg_color_red
{
background-color
:
#e95252
;
background-color
:
#e95252
;
}
}
.page_FinancialOrder
._bg_color_green
{
.page_FinancialOrder
._bg_color_green
{
background-color
:
#2BBB7E
;
background-color
:
#2BBB7E
;
}
}
.page_FinancialOrder
._shouzhi
{
.page_FinancialOrder
._shouzhi
{
width
:
15px
;
width
:
15px
;
height
:
15px
;
height
:
15px
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.page_SettlementOrder
p
._flex_
{
.page_SettlementOrder
p
._flex_
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
._jump_page
{
._jump_page
{
cursor
:
pointer
;
cursor
:
pointer
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
._jump_page
:hover
{
._jump_page
:hover
{
color
:
#c94052
;
color
:
#c94052
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne page_SettlementOrder page_FinancialOrder"
>
<div
class=
"flexOne page_SettlementOrder page_FinancialOrder"
>
<p
class=
"_flex_"
><span>
{{
Name
}}
</span><button
type=
"button"
class=
"normalBtn"
@
click=
"downMuban()"
>
导出
</button></p>
<p
class=
"_flex_"
><span>
{{
Name
}}
</span><button
type=
"button"
class=
"normalBtn"
@
click=
"downMuban()"
>
导出
</button></p>
<div
class=
"_content"
>
<div
class=
"_content"
>
<table
class=
"_content_tab singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading =
'loading'
>
<table
class=
"_content_tab singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
'loading'
>
<tr>
<tr>
<th>
财务单号
</th>
<th>
财务单号
</th>
<th>
单据类型
</th>
<th>
单据类型
</th>
...
@@ -84,49 +113,49 @@
...
@@ -84,49 +113,49 @@
<th>
状态
</th>
<th>
状态
</th>
</tr>
</tr>
<template
v-for=
"(item,index) in dataList"
>
<template
v-for=
"(item,index) in dataList"
>
<tr
v-if=
"type&&item.Type==type&&(item.Status==2||(item.Status==1&&item.TradeDate))"
>
<tr
:key=
"index"
v-if=
"type&&item.Type==type&&(item.Status==2||(item.Status==1&&item.TradeDate))"
>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{
item
.
FrID
}}
</span></td>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{
item
.
FrID
}}
</span></td>
<td>
{{
item
.
Type
==
1
?
'收入'
:
'支出'
}}
</td>
<td>
{{
item
.
Type
==
1
?
'收入'
:
'支出'
}}
</td>
<td>
<td>
<span
v-for=
"(son,sIndex) in item.DetailList
"
>
{{
son
.
CostTypeName
}}
</span>
<span
v-for=
"(son,sIndex) in item.DetailList"
:key=
"sIndex
"
>
{{
son
.
CostTypeName
}}
</span>
</td>
</td>
<td>
{{
item
.
TradeDate
}}
</td>
<td>
{{
item
.
TradeDate
}}
</td>
<td>
{{
item
.
Money
}}
</td>
<td>
{{
item
.
Money
}}
</td>
<td>
<td>
<span>
{{
item
.
EmName
}}
</span><br
/>
<span>
{{
item
.
EmName
}}
</span><br
/>
<span>
{{
item
.
CreateDate
}}
</span>
<span>
{{
item
.
CreateDate
}}
</span>
</td>
</td>
<td>
<td>
<template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)
"
></i>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)"
:key=
"sIndex
"
></i>
</
template
>
</
template
>
<
template
v-if=
"son.Type==3"
>
<
template
v-if=
"son.Type==3"
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
:key=
"sIndex"
/
>
</
template
>
</
template
>
</template>
</template>
</td>
</td>
<td>
{{item.StatusStr}}
</td>
<td>
{{item.StatusStr}}
</td>
</tr>
</tr>
<tr
v-else
>
<tr
v-else
:key=
"index"
>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{item.FrID}}
</span></td>
<td><span
class=
"_jump_page"
@
click=
"goUrl('FinancialDocumentsDetail',item.FrID)"
>
{{item.FrID}}
</span></td>
<td>
{{item.Type==1?'收入':'支出'}}
</td>
<td>
{{item.Type==1?'收入':'支出'}}
</td>
<td>
<td>
<span
v-for=
"(son,sIndex) in item.DetailList
"
>
{{son.CostTypeName}}
</span>
<span
v-for=
"(son,sIndex) in item.DetailList"
:key=
"sIndex
"
>
{{son.CostTypeName}}
</span>
</td>
</td>
<td>
{{item.TradeDate}}
</td>
<td>
{{item.TradeDate}}
</td>
<td>
{{item.Money}}
</td>
<td>
{{item.Money}}
</td>
<td>
<td>
<span>
{{ item.EmName }}
</span><br
/>
<span>
{{ item.EmName }}
</span><br
/>
<span>
{{ item.CreateDate }}
</span>
<span>
{{ item.CreateDate }}
</span>
</td>
</td>
<td>
<td>
<
template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<
template
v-for=
"(son,sIndex) in item.VorcherInos"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<template
v-if=
"son.Type==1||son.Type==2"
>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)
"
></i>
<i
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(son)"
:key=
"sIndex
"
></i>
</
template
>
</
template
>
<
template
v-if=
"son.Type==3"
>
<
template
v-if=
"son.Type==3"
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
>
<img
class=
"_VorcherInos_img"
@
click=
"showImg(item.VorcherInos)"
:src=
"son.Content"
alt=
""
:key=
"sIndex"
/
>
</
template
>
</
template
>
</template>
</template>
</td>
</td>
...
@@ -138,11 +167,7 @@
...
@@ -138,11 +167,7 @@
<td
:colspan=
"9"
class=
"allMoney PingFangSC"
:class=
"Money>0?'_color_red':'_color_green'"
>
{{Money}}
</td>
<td
:colspan=
"9"
class=
"allMoney PingFangSC"
:class=
"Money>0?'_color_red':'_color_green'"
>
{{Money}}
</td>
</tr>
</tr>
</table>
</table>
<!-- <div v-if='picIsShow' class="_show_img_box" @click="picIsShow=false,picObj=''">
<img :src="picObj" style="margin-top: 80px;"/>
</div> -->
<div
v-if=
'picIsShow'
class=
"viewBigPicLayer"
@
click=
"picIsShow=false,picObj=[]"
>
<div
v-if=
'picIsShow'
class=
"viewBigPicLayer"
@
click=
"picIsShow=false,picObj=[]"
>
<!-- <i class="el-icon-circle-close-outline clolseViewBigPicLayer" @click="picIsShow=false,picObj=[]"></i> -->
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
v-for=
"(item,index) in picObj"
:key=
"index"
>
<el-carousel-item
v-for=
"(item,index) in picObj"
:key=
"index"
>
<div
class=
"inlineDiv ownScrollbarStyle"
><img
:src=
"item"
/></div>
<div
class=
"inlineDiv ownScrollbarStyle"
><img
:src=
"item"
/></div>
...
@@ -152,96 +177,101 @@
...
@@ -152,96 +177,101 @@
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
dataList
:
[],
dataList
:
[],
loading
:
true
,
loading
:
true
,
picIsShow
:
false
,
picIsShow
:
false
,
picObj
:
[],
picObj
:
[],
Money
:
0
,
Money
:
0
,
Name
:
''
,
Name
:
''
,
type
:
null
,
type
:
null
,
}
}
},
},
created
(){
created
()
{
if
(
this
.
$route
.
query
.
type
)
{
if
(
this
.
$route
.
query
.
type
)
{
this
.
type
=
this
.
$route
.
query
.
type
;
this
.
type
=
this
.
$route
.
query
.
type
;
}
}
if
(
this
.
$route
.
query
.
OrderSource
==
4
)
{
if
(
this
.
$route
.
query
.
OrderSource
==
4
)
{
this
.
Name
=
'机票款'
;
this
.
Name
=
'机票款'
;
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
10
)
{
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
10
)
{
this
.
Name
=
'签证款'
;
this
.
Name
=
'签证款'
;
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
9
)
{
}
else
if
(
this
.
$route
.
query
.
OrderSource
==
9
)
{
this
.
Name
=
'国内票务期数:'
+
this
.
$route
.
query
.
term
;
this
.
Name
=
'国内票务期数:'
+
this
.
$route
.
query
.
term
;
}
}
},
},
mounted
(){
mounted
()
{
this
.
getList
();
this
.
getList
();
},
},
methods
:{
methods
:
{
goUrl
(
path
,
id
)
{
goUrl
(
path
,
id
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/'
+
path
,
path
:
'/'
+
path
,
query
:
{
id
:
id
,
blank
:
'y'
,
tab
:
id
+
'单据详情'
}
query
:
{
id
:
id
,
blank
:
'y'
,
tab
:
id
+
'单据详情'
}
})
})
},
},
downMuban
()
{
downMuban
()
{
let
msg
=
{
let
msg
=
{
OrderResource
:
this
.
$route
.
query
.
OrderSource
,
OrderResource
:
this
.
$route
.
query
.
OrderSource
,
SourceID
:
this
.
$route
.
query
.
SourceID
,
SourceID
:
this
.
$route
.
query
.
SourceID
,
Type
:
this
.
$route
.
query
.
type
Type
:
this
.
$route
.
query
.
type
}
}
this
.
GetLocalFile
(
"Financial_post_OutToExcelDomesticTicketFinanceList"
,
msg
,
"期数"
+
this
.
$route
.
query
.
term
+
".xls"
);
this
.
GetLocalFile
(
"Financial_post_OutToExcelDomesticTicketFinanceList"
,
msg
,
"期数"
+
this
.
$route
.
query
.
term
+
".xls"
);
},
},
showUpLoadFile
(
i
){
// 预览上传文件
showUpLoadFile
(
i
)
{
// 预览上传文件
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
.
Content
)
this
.
previewPDF
(
i
.
Content
)
}
else
{
}
else
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Content
)
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Content
)
}
}
},
},
showImg
(
obj
)
{
showImg
(
obj
)
{
obj
.
forEach
(
x
=>
{
obj
.
forEach
(
x
=>
{
if
(
x
.
Type
==
3
)
{
if
(
x
.
Type
==
3
)
{
this
.
picObj
.
push
(
x
.
Content
)
this
.
picObj
.
push
(
x
.
Content
)
}
}
})
})
this
.
picIsShow
=
true
;
this
.
picIsShow
=
true
;
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
let
msg
=
{
let
msg
=
{
OrderResource
:
this
.
$route
.
query
.
OrderSource
,
OrderResource
:
this
.
$route
.
query
.
OrderSource
,
SourceID
:
this
.
$route
.
query
.
SourceID
,
SourceID
:
this
.
$route
.
query
.
SourceID
,
Type
:
this
.
$route
.
query
.
type
,
Type
:
this
.
$route
.
query
.
type
,
Term
:
this
.
$route
.
query
.
term
,
Term
:
this
.
$route
.
query
.
term
,
}
}
this
.
apipost
(
'Financial_post_GetDomesticTicketFinanceList'
,
msg
,
r
=>
{
this
.
apipost
(
'Financial_post_GetDomesticTicketFinanceList'
,
msg
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
if
(
r
.
data
.
resultCode
==
1
)
{
this
.
total
=
r
.
data
.
data
.
count
;
this
.
total
=
r
.
data
.
data
.
count
;
if
(
this
.
total
>
0
)
{
if
(
this
.
total
>
0
)
{
this
.
noData
=
false
;
this
.
noData
=
false
;
}
else
{
}
else
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
}
this
.
dataList
=
r
.
data
.
data
;
this
.
dataList
=
r
.
data
.
data
;
let
Money
=
0
;
let
Money
=
0
;
this
.
dataList
.
forEach
(
x
=>
{
this
.
dataList
.
forEach
(
x
=>
{
if
((
this
.
type
&&
this
.
type
==
x
.
Type
&&
(
x
.
Status
==
2
||
(
x
.
Status
==
1
&&
x
.
TradeDate
)))
||
this
.
type
==
null
){
if
((
this
.
type
&&
this
.
type
==
x
.
Type
&&
(
x
.
Status
==
2
||
(
x
.
Status
==
1
&&
x
.
TradeDate
)))
||
this
.
type
==
null
)
{
Money
=
x
.
Money
+
Money
;
Money
=
x
.
Money
+
Money
;
}
}
})
})
this
.
Money
=
Money
;
this
.
Money
=
Money
;
this
.
loading
=
false
;
this
.
loading
=
false
;
}
else
{
}
else
{
this
.
$message
.
error
(
r
.
data
.
message
);
this
.
$message
.
error
(
r
.
data
.
message
);
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
},
null
)
},
null
)
},
},
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
src/components/DomesticModule/OrderDataStati.vue
View file @
67f5e3b8
...
@@ -64,14 +64,13 @@
...
@@ -64,14 +64,13 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
Year
:
new
Date
().
getFullYear
(),
Year
:
new
Date
().
getFullYear
(),
Month
:
new
Date
().
getMonth
()
+
1
,
Month
:
new
Date
().
getMonth
()
+
1
,
date
:
new
Date
().
getDate
(),
date
:
new
Date
().
getDate
(),
IsInter
:
-
1
,
//月统计[0-国内,1-国际]
IsInter
:
-
1
,
//月统计[0-国内,1-国际]
YearS
:
new
Date
().
getFullYear
(),
YearS
:
new
Date
().
getFullYear
(),
MonthS
:
''
,
MonthS
:
''
,
IsInters
:
-
1
,
//年统计[0-国内,1-国际]
IsInters
:
-
1
,
//年统计[0-国内,1-国际]
clientHeight
:
''
,
clientHeight
:
''
,
yearList
:
[],
yearList
:
[],
MonthList
:
[],
MonthList
:
[],
...
@@ -266,7 +265,7 @@
...
@@ -266,7 +265,7 @@
let
msg
=
{
let
msg
=
{
Year
:
this
.
YearS
,
Year
:
this
.
YearS
,
Month
:
''
,
Month
:
''
,
IsInter
:
this
.
IsInters
IsInter
:
this
.
IsInters
}
}
this
.
apipost
(
'Domestic_Ticket_post_GetProfitList'
,
msg
,
r
=>
{
this
.
apipost
(
'Domestic_Ticket_post_GetProfitList'
,
msg
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
if
(
r
.
data
.
resultCode
==
1
)
{
...
...
src/components/DomesticModule/OrderDetails.vue
View file @
67f5e3b8
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
<th>
航班
</th>
<th>
航班
</th>
<th>
航段
</th>
<th>
航段
</th>
</tr>
</tr>
<tr
v-for=
"(i,d) in item.FlightList"
>
<tr
v-for=
"(i,d) in item.FlightList"
:key=
"d"
>
<td>
{{
i
.
AirlineName
}}
</td>
<td>
{{
i
.
AirlineName
}}
</td>
<td>
{{
i
.
FlightNo
}}
</td>
<td>
{{
i
.
FlightNo
}}
</td>
<td>
{{
i
.
Leg
}}
</td>
<td>
{{
i
.
Leg
}}
</td>
...
@@ -337,4 +337,5 @@
...
@@ -337,4 +337,5 @@
},
},
}
}
}
}
</
script
>
</
script
>
src/components/DomesticModule/OrderToday.vue
View file @
67f5e3b8
...
@@ -5,26 +5,10 @@
...
@@ -5,26 +5,10 @@
<div
class=
'flexOne page_OrderToday'
>
<div
class=
'flexOne page_OrderToday'
>
<div
class=
'query-box'
>
<div
class=
'query-box'
>
<ul>
<ul>
<!--
<li>
<span>
<em>
期数
</em>
<el-date-picker
class=
"w210"
v-model=
"msg.Term"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
>
</el-date-picker>
</span>
</li>
-->
<li>
<li>
<span>
<span>
<em>
制单日期
</em>
<em>
制单日期
</em>
<el-date-picker
<el-date-picker
class=
"h34"
v-model=
"transactionDate"
@
change=
"timeAdd()"
type=
"daterange"
class=
"h34"
v-model=
"transactionDate"
@
change=
"timeAdd()"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-date-picker>
</span>
</span>
...
@@ -32,12 +16,9 @@
...
@@ -32,12 +16,9 @@
<li>
<li>
<span>
<span>
<em>
航空公司
</em>
<em>
航空公司
</em>
<el-select
filterable
@
change=
"flight_post_GetAirportNameList(msg.AirlineId,1)"
v-model=
'msg.AirlineId'
>
<el-select
filterable
@
change=
"flight_post_GetAirportNameList(msg.AirlineId,1)"
v-model=
'msg.AirlineId'
>
<el-option
label=
'不限'
value=
''
></el-option>
<el-option
label=
'不限'
value=
''
></el-option>
<el-option
v-for=
'item in airlineList'
<el-option
v-for=
'item in airlineList'
:label=
'item.AlName'
:value=
'item.AirLineId'
:key=
'item.AirLineId'
>
:label=
'item.AlName'
:value=
'item.AirLineId'
:key=
'item.AirLineId'
>
</el-option>
</el-option>
</el-select>
</el-select>
</span>
</span>
...
@@ -46,9 +27,7 @@
...
@@ -46,9 +27,7 @@
<span>
<span>
<em>
航班号
</em>
<em>
航班号
</em>
<el-select
filterable
v-model=
'msg.FlightNo'
>
<el-select
filterable
v-model=
'msg.FlightNo'
>
<el-option
v-for=
'item in AirportNameList'
<el-option
v-for=
'item in AirportNameList'
:label=
'item.Flight_number'
:value=
'item.Flight_number'
:label=
'item.Flight_number'
:value=
'item.Flight_number'
:key=
'item.Flight_number'
>
:key=
'item.Flight_number'
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -65,9 +44,9 @@
...
@@ -65,9 +44,9 @@
</span>
</span>
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"结算"
@
click=
"goUrl('SettlementOrder')"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"结算"
@
click=
"goUrl('SettlementOrder')"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"查询"
@
click=
"resetPageIndex(),getList(1)"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"查询"
@
click=
"resetPageIndex(),getList(1)"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"addShow=true,text='新增',initAddMsg()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"addShow=true,text='新增',initAddMsg()"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -93,14 +72,12 @@
...
@@ -93,14 +72,12 @@
<th>
操作人
</th>
<th>
操作人
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
<tr
v-for=
"(item,index) in DataList.list
"
>
<tr
v-for=
"(item,index) in DataList.list"
:key=
"index
"
>
<td
>
{{
item
.
ID
}}
</td>
<td
>
{{
item
.
ID
}}
</td>
<td
class=
"_hover"
>
<td
class=
"_hover"
>
<el-popover
<el-popover
placement=
"bottom"
width=
"220"
trigger=
"click"
>
placement=
"bottom"
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
width=
"220"
cellpadding=
"0"
>
trigger=
"click"
>
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th
width=
"70"
></th>
<th
width=
"70"
></th>
<th>
数量
</th>
<th>
数量
</th>
...
@@ -122,11 +99,9 @@
...
@@ -122,11 +99,9 @@
</el-popover>
</el-popover>
</td>
</td>
<td
class=
"_hover"
>
<td
class=
"_hover"
>
<el-popover
<el-popover
placement=
"bottom"
width=
"220"
trigger=
"click"
>
placement=
"bottom"
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
width=
"220"
cellpadding=
"0"
>
trigger=
"click"
>
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th
width=
"70"
></th>
<th
width=
"70"
></th>
<th>
单价(含税)
</th>
<th>
单价(含税)
</th>
...
@@ -148,11 +123,9 @@
...
@@ -148,11 +123,9 @@
</el-popover>
</el-popover>
</td>
</td>
<td
class=
"_hover"
>
<td
class=
"_hover"
>
<el-popover
<el-popover
placement=
"bottom"
width=
"220"
trigger=
"click"
>
placement=
"bottom"
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
width=
"220"
cellpadding=
"0"
>
trigger=
"click"
>
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th
width=
"70"
></th>
<th
width=
"70"
></th>
<th>
成本单价
</th>
<th>
成本单价
</th>
...
@@ -177,32 +150,33 @@
...
@@ -177,32 +150,33 @@
<td>
{{
item
.
ClientName
}}
</td>
<td>
{{
item
.
ClientName
}}
</td>
<td>
{{
item
.
TravelTime
}}
</td>
<td>
{{
item
.
TravelTime
}}
</td>
<td
colspan=
"3"
class=
"_hover"
>
<td
colspan=
"3"
class=
"_hover"
>
<el-popover
<el-popover
placement=
"bottom"
width=
"450"
trigger=
"click"
>
placement=
"bottom"
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
width=
"450"
cellpadding=
"0"
>
trigger=
"click"
>
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th>
航空公司
</th>
<th>
航空公司
</th>
<th>
航班
</th>
<th>
航班
</th>
<th>
航段
</th>
<th>
航段
</th>
</tr>
</tr>
<tr
v-for=
"(i,d) in item.FlightList
"
>
<tr
v-for=
"(i,d) in item.FlightList"
:key=
"d
"
>
<td>
{{
i
.
AirlineName
}}
</td>
<td>
{{
i
.
AirlineName
}}
</td>
<td>
{{
i
.
FlightNo
}}
</td>
<td>
{{
i
.
FlightNo
}}
</td>
<td>
{{
i
.
Leg
}}
</td>
<td>
{{
i
.
Leg
}}
</td>
</tr>
</tr>
</table>
</table>
<span
slot=
"reference"
>
{{
item
.
FlightList
[
0
].
AirlineName
+
' — '
+
item
.
FlightList
[
0
].
FlightNo
+
' — '
+
item
.
FlightList
[
0
].
Leg
}}
</span>
<span
slot=
"reference"
>
{{
item
.
FlightList
[
0
].
AirlineName
+
' — '
+
item
.
FlightList
[
0
].
FlightNo
+
' — '
+
item
.
FlightList
[
0
].
Leg
}}
</span>
</el-popover>
</el-popover>
</td>
</td>
<td>
{{
item
.
EmName
}}
</td>
<td>
{{
item
.
EmName
}}
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改"
placement=
"top"
>
<el-button
type=
"primary"
class=
"iconfont icon-xiugai"
@
click=
"editCurency(item.ID),addShow=true,text='修改'"
circle
></el-button>
<el-button
type=
"primary"
class=
"iconfont icon-xiugai"
@
click=
"editCurency(item.ID),addShow=true,text='修改'"
circle
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-button
type=
"danger"
class=
"iconfont icon-shanchu"
@
click=
"financeinfoRemove(item.ID)"
circle
></el-button>
<el-button
type=
"danger"
class=
"iconfont icon-shanchu"
@
click=
"financeinfoRemove(item.ID)"
circle
>
</el-button>
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
...
@@ -212,13 +186,8 @@
...
@@ -212,13 +186,8 @@
{{
$t
(
'system.content_noData'
)
}}
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
<div>
<div>
<el-pagination
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
background
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
...
@@ -229,54 +198,37 @@
...
@@ -229,54 +198,37 @@
</el-col>
</el-col>
<el-col
:span=
"4"
class=
"_add_saveBtn"
>
<el-col
:span=
"4"
class=
"_add_saveBtn"
>
<button
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('addMsg')"
>
{{
$t
(
'pub.saveBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"initAddMsg(),resetForm('addMsg'),addShow=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"initAddMsg(),resetForm('addMsg'),addShow=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-form
class=
"_info_box clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"110px"
>
<el-form
class=
"_info_box clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"110px"
>
<el-row>
<el-row>
<!--
<el-col
:span=
"6"
:gutter=
"35"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"期数"
prop=
"TermDate"
>
<el-date-picker
v-model=
"addMsg.TermDate"
type=
"date"
:default-value=
"addMsg.OutTicketDate"
value-format=
"yyyy-MM-dd"
:disabled=
"text=='修改'?true:false"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
-->
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"出票日期"
prop=
"OutTicketDate"
>
<el-form-item
label=
"出票日期"
prop=
"OutTicketDate"
>
<el-date-picker
<el-date-picker
v-model=
"addMsg.OutTicketDate"
type=
"date"
:default-value=
"addMsg.OutTicketDate"
v-model=
"addMsg.OutTicketDate"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
>
type=
"date"
:default-value=
"addMsg.OutTicketDate"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"客户名称"
prop=
"ClientName"
>
<el-form-item
label=
"客户名称"
prop=
"ClientName"
>
<el-input
v-model=
"addMsg.ClientName"
class=
""
></el-input>
<el-input
v-model=
"addMsg.ClientName"
class=
""
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"行程日期"
prop=
"TravelTime"
>
<el-form-item
label=
"行程日期"
prop=
"TravelTime"
>
<el-input
v-model=
"addMsg.TravelTime"
class=
""
></el-input>
<el-input
v-model=
"addMsg.TravelTime"
class=
""
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
v-for=
"(list,index) in addMsg.FlightList"
:key=
"index"
>
<el-row
v-for=
"(list,index) in addMsg.FlightList"
:key=
"index"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"航空公司"
>
<el-form-item
label=
"航空公司"
>
<el-select
filterable
v-model=
'list.AirlineId'
@
change=
"flight_post_GetAirportNameList(list.AirlineId,2,index)"
>
<el-select
filterable
v-model=
'list.AirlineId'
@
change=
"flight_post_GetAirportNameList(list.AirlineId,2,index)"
>
<el-option
label=
'不限'
value=
'-1'
></el-option>
<el-option
label=
'不限'
value=
'-1'
></el-option>
<el-option
v-for=
'i in list.airlineList'
<el-option
v-for=
'i in list.airlineList'
:label=
'i.AlName'
:value=
'i.AirLineId'
:key=
'i.AirLineId'
>
:label=
'i.AlName'
:value=
'i.AirLineId'
:key=
'i.AirLineId'
>
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -284,9 +236,7 @@
...
@@ -284,9 +236,7 @@
<el-col
:span=
"6"
:gutter=
"35"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"航班号"
>
<el-form-item
label=
"航班号"
>
<el-select
filterable
v-model=
'list.FlightNo'
>
<el-select
filterable
v-model=
'list.FlightNo'
>
<el-option
v-for=
'i in list.AirportNameList'
<el-option
v-for=
'i in list.AirportNameList'
:label=
'i.Flight_number'
:value=
'i.Flight_number'
:label=
'i.Flight_number'
:value=
'i.Flight_number'
:key=
'i.Flight_number'
>
:key=
'i.Flight_number'
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -294,7 +244,7 @@
...
@@ -294,7 +244,7 @@
</el-col>
</el-col>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-col
:span=
"6"
:gutter=
"35"
>
<el-form-item
label=
"航段"
>
<el-form-item
label=
"航段"
>
<el-input
v-model=
"list.Leg"
class=
""
></el-input>
<el-input
v-model=
"list.Leg"
class=
""
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
:gutter=
"35"
v-if=
"index==0"
>
<el-col
:span=
"6"
:gutter=
"35"
v-if=
"index==0"
>
...
@@ -305,7 +255,7 @@
...
@@ -305,7 +255,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"18"
:gutter=
"110"
>
<el-col
:span=
"18"
:gutter=
"110"
>
<div
class=
"add_table_box"
>
<div
class=
"add_table_box"
>
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
>
<table
class=
"add_table singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
...
@@ -318,11 +268,14 @@
...
@@ -318,11 +268,14 @@
<th>
利润
</th>
<th>
利润
</th>
</tr>
</tr>
<template
v-for=
"(p,pi) in addMsg.PriceList"
>
<template
v-for=
"(p,pi) in addMsg.PriceList"
>
<tr
v-if=
"p.Type==1
"
>
<tr
v-if=
"p.Type==1"
:key=
"pi
"
>
<td>
成人
</td>
<td>
成人
</td>
<td><input
onkeypress=
'return( /[\d]/.test(String.fromCharCode(event.keyCode)))'
type=
"number"
v-model=
"p.Number"
size=
"mini"
@
change=
"calculation(1,pi)"
placeholder=
"0"
/></td>
<td><input
onkeypress=
'return( /[\d]/.test(String.fromCharCode(event.keyCode)))'
type=
"number"
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Price"
size=
"mini"
@
change=
"calculation(1,pi)"
placeholder=
"¥0.00"
/></td>
v-model=
"p.Number"
size=
"mini"
@
change=
"calculation(1,pi)"
placeholder=
"0"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Cost"
size=
"mini"
@
change=
"calculation(1,pi)"
placeholder=
"¥0.00"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Price"
size=
"mini"
@
change=
"calculation(1,pi)"
placeholder=
"¥0.00"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Cost"
size=
"mini"
@
change=
"calculation(1,pi)"
placeholder=
"¥0.00"
/></td>
<td>
{{
p
.
allCost
}}
</td>
<td>
{{
p
.
allCost
}}
</td>
<td>
{{
p
.
cAllCost
}}
</td>
<td>
{{
p
.
cAllCost
}}
</td>
<td
:class=
"p.profit>=0?'_zhengshu':'_fushu'"
>
{{
p
.
profit
}}
<td
:class=
"p.profit>=0?'_zhengshu':'_fushu'"
>
{{
p
.
profit
}}
...
@@ -332,11 +285,14 @@
...
@@ -332,11 +285,14 @@
</p>
</p>
</td>
</td>
</tr>
</tr>
<tr
v-if=
"p.Type==2
"
>
<tr
v-if=
"p.Type==2"
:key=
"pi
"
>
<td>
儿童
</td>
<td>
儿童
</td>
<td><input
onkeypress=
'return( /[\d]/.test(String.fromCharCode(event.keyCode)))'
type=
"number"
v-model=
"p.Number"
size=
"mini"
@
change=
"calculation(2,pi)"
placeholder=
"0"
/></td>
<td><input
onkeypress=
'return( /[\d]/.test(String.fromCharCode(event.keyCode)))'
type=
"number"
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Price"
size=
"mini"
@
change=
"calculation(2,pi)"
placeholder=
"¥0.00"
/></td>
v-model=
"p.Number"
size=
"mini"
@
change=
"calculation(2,pi)"
placeholder=
"0"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Cost"
size=
"mini"
@
change=
"calculation(2,pi)"
placeholder=
"¥0.00"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Price"
size=
"mini"
@
change=
"calculation(2,pi)"
placeholder=
"¥0.00"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Cost"
size=
"mini"
@
change=
"calculation(2,pi)"
placeholder=
"¥0.00"
/></td>
<td>
{{
p
.
allCost
}}
</td>
<td>
{{
p
.
allCost
}}
</td>
<td>
{{
p
.
cAllCost
}}
</td>
<td>
{{
p
.
cAllCost
}}
</td>
<td
:class=
"p.profit>=0?'_zhengshu':'_fushu'"
>
{{
p
.
profit
}}
<td
:class=
"p.profit>=0?'_zhengshu':'_fushu'"
>
{{
p
.
profit
}}
...
@@ -346,11 +302,14 @@
...
@@ -346,11 +302,14 @@
</p>
</p>
</td>
</td>
</tr>
</tr>
<tr
v-if=
"p.Type==3
"
>
<tr
v-if=
"p.Type==3"
:key=
"pi
"
>
<td>
婴儿
</td>
<td>
婴儿
</td>
<td><input
onkeypress=
'return( /[\d]/.test(String.fromCharCode(event.keyCode)))'
type=
"number"
v-model=
"p.Number"
size=
"mini"
@
change=
"calculation(3,pi)"
placeholder=
"0"
/></td>
<td><input
onkeypress=
'return( /[\d]/.test(String.fromCharCode(event.keyCode)))'
type=
"number"
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Price"
size=
"mini"
@
change=
"calculation(3,pi)"
placeholder=
"¥0.00"
/></td>
v-model=
"p.Number"
size=
"mini"
@
change=
"calculation(3,pi)"
placeholder=
"0"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Cost"
size=
"mini"
@
change=
"calculation(3,pi)"
placeholder=
"¥0.00"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Price"
size=
"mini"
@
change=
"calculation(3,pi)"
placeholder=
"¥0.00"
/></td>
<td><input
@
keydown=
"handleInput2"
type=
"number"
v-model=
"p.Cost"
size=
"mini"
@
change=
"calculation(3,pi)"
placeholder=
"¥0.00"
/></td>
<td>
{{
p
.
allCost
}}
</td>
<td>
{{
p
.
allCost
}}
</td>
<td>
{{
p
.
cAllCost
}}
</td>
<td>
{{
p
.
cAllCost
}}
</td>
<td
:class=
"p.profit>=0?'_zhengshu':'_fushu'"
>
{{
p
.
profit
}}
<td
:class=
"p.profit>=0?'_zhengshu':'_fushu'"
>
{{
p
.
profit
}}
...
@@ -370,164 +329,172 @@
...
@@ -370,164 +329,172 @@
<el-dialog
title=
"结算订单"
:visible
.
sync=
"dialogFormVisible"
custom-class=
"orderTodayJsBox"
>
<el-dialog
title=
"结算订单"
:visible
.
sync=
"dialogFormVisible"
custom-class=
"orderTodayJsBox"
>
<el-form
label-width=
"80px"
>
<el-form
label-width=
"80px"
>
<el-form-item
label=
"结算期数"
>
<el-form-item
label=
"结算期数"
>
<el-date-picker
<el-date-picker
v-model=
"TermDate"
type=
"date"
:default-value=
"addMsg.OutTicketDate"
value-format=
"yyyy-MM-dd"
v-model=
"TermDate"
type=
"date"
:default-value=
"addMsg.OutTicketDate"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
>
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
size=
"mini"
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
size=
"mini"
type=
"primary"
class=
"otCancleBtn"
@
click=
"dialogFormVisible = false,jiesuan()"
>
确 定
</el-button>
<el-button
size=
"mini"
type=
"primary"
class=
"otCancleBtn"
@
click=
"dialogFormVisible = false,jiesuan()"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
msg
:{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
OrderID
:
''
,
OrderID
:
''
,
AirlineId
:
''
,
AirlineId
:
''
,
FlightNo
:
''
,
FlightNo
:
''
,
ClientName
:
''
,
ClientName
:
''
,
ParentId
:
0
,
ParentId
:
0
,
Term
:
''
,
Term
:
''
,
sDate
:
''
,
sDate
:
''
,
eDate
:
''
eDate
:
''
},
},
addMsg
:{
addMsg
:
{
TermDate
:
''
,
TermDate
:
''
,
ID
:
0
,
ID
:
0
,
OutTicketDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
OutTicketDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
TravelTime
:
''
,
TravelTime
:
''
,
ClientName
:
''
,
ClientName
:
''
,
AirlineId
:
''
,
AirlineId
:
''
,
FlightNo
:
''
,
FlightNo
:
''
,
Leg
:
''
,
Leg
:
''
,
PriceList
:[
PriceList
:
[{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
1
,
//1-成人2-儿童3-婴儿
Type
:
1
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
},
},
{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
2
,
//1-成人2-儿童3-婴儿
Type
:
2
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
},
},
{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
3
,
//1-成人2-儿童3-婴儿
Type
:
3
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
}
}
],
],
Num
:
0
,
Num
:
0
,
FlightList
:[
FlightList
:
[{
{
ID
:
0
,
ID
:
0
,
AirlineId
:
'-1'
,
AirlineId
:
'-1'
,
FlightNo
:
''
,
FlightNo
:
''
,
Leg
:
''
,
Leg
:
''
,
airlineList
:
[],
airlineList
:[],
AirportNameList
:
[],
AirportNameList
:[],
}],
}
},
],
FlightList
:
{
},
ID
:
0
,
FlightList
:{
AirlineId
:
'-1'
,
ID
:
0
,
FlightNo
:
''
,
AirlineId
:
'-1'
,
Leg
:
''
,
FlightNo
:
''
,
airlineList
:
[],
Leg
:
''
,
AirportNameList
:
[],
airlineList
:[],
},
AirportNameList
:[],
transactionDate
:
[],
},
airlineList
:
[],
transactionDate
:[],
AirportNameList
:
[],
airlineList
:[],
DataList
:
[],
AirportNameList
:[],
total
:
0
,
DataList
:[],
currentPage
:
1
,
total
:
0
,
loading
:
true
,
currentPage
:
1
,
text
:
''
,
loading
:
true
,
addShow
:
false
,
text
:
''
,
noData
:
false
,
addShow
:
false
,
cCostPrice
:
0
,
noData
:
false
,
cUnitPrice
:
0
,
cCostPrice
:
0
,
eCostPrice
:
0
,
cUnitPrice
:
0
,
eUnitPrice
:
0
,
eCostPrice
:
0
,
yCostPrice
:
0
,
eUnitPrice
:
0
,
yUnitPrice
:
0
,
yCostPrice
:
0
,
cLirun
:
0
,
yUnitPrice
:
0
,
eLirun
:
0
,
cLirun
:
0
,
yLirun
:
0
,
eLirun
:
0
,
dialogFormVisible
:
false
,
yLirun
:
0
,
dialogFormVisible
:
false
,
formLabelWidth
:
'120px'
,
formLabelWidth
:
'120px'
,
goPath
:
''
,
goPath
:
''
,
TermDate
:
''
,
TermDate
:
''
,
rules
:
{
//表单必填验证
rules
:
{
//表单必填验证
ClientName
:
[
ClientName
:
[{
{
required
:
true
,
message
:
'请填写客户名称'
,
trigger
:
'blur'
}
required
:
true
,
],
message
:
'请填写客户名称'
,
TravelTime
:
[
trigger
:
'blur'
{
required
:
true
,
message
:
'请填写行程日期'
,
trigger
:
'blur'
}
}],
],
TravelTime
:
[{
AirlineId
:
[
required
:
true
,
{
required
:
true
,
message
:
'请选择航空公司'
,
trigger
:
'change'
}
message
:
'请填写行程日期'
,
],
trigger
:
'blur'
Leg
:
[
}],
{
required
:
true
,
message
:
'请输入航段'
,
trigger
:
'blur'
}
AirlineId
:
[{
],
required
:
true
,
FlightNo
:
[
message
:
'请选择航空公司'
,
{
required
:
true
,
message
:
'请输选择航班'
,
trigger
:
'change'
}
trigger
:
'change'
],
}],
OutTicketDate
:
[
Leg
:
[{
{
required
:
true
,
message
:
'请输选出票日期'
,
trigger
:
'change'
}
required
:
true
,
]
message
:
'请输入航段'
,
}
trigger
:
'blur'
}
}],
},
mounted
(){
FlightNo
:
[{
required
:
true
,
message
:
'请输选择航班'
,
trigger
:
'change'
}],
OutTicketDate
:
[{
required
:
true
,
message
:
'请输选出票日期'
,
trigger
:
'change'
}]
}
}
},
mounted
()
{
this
.
getList
();
this
.
getList
();
this
.
getAirlineList
();
this
.
getAirlineList
();
},
methods
:{
},
deleteAir
(
i
,
pi
,
t
){
methods
:
{
if
(
pi
>=
0
){
deleteAir
(
i
,
pi
,
t
)
{
if
(
pi
>=
0
)
{
let
count
=
0
;
let
count
=
0
;
this
.
addMsg
.
PriceList
.
forEach
(
x
=>
{
this
.
addMsg
.
PriceList
.
forEach
(
x
=>
{
if
(
x
.
Type
===
t
)
{
if
(
x
.
Type
===
t
)
{
count
=
count
+
1
count
=
count
+
1
}
}
})
})
if
(
count
==
1
)
return
if
(
count
==
1
)
return
this
.
addMsg
.
PriceList
.
splice
(
pi
,
1
);
this
.
addMsg
.
PriceList
.
splice
(
pi
,
1
);
}
else
{
}
else
{
if
(
pi
)
return
if
(
pi
)
return
this
.
addMsg
.
FlightList
.
splice
(
i
,
1
);
this
.
addMsg
.
FlightList
.
splice
(
i
,
1
);
}
}
},
},
timeAdd
(){
// 日期格式
timeAdd
()
{
// 日期格式
if
(
!
this
.
transactionDate
)
{
if
(
!
this
.
transactionDate
)
{
this
.
msg
.
sDate
=
''
;
this
.
msg
.
sDate
=
''
;
this
.
msg
.
eDate
=
''
;
this
.
msg
.
eDate
=
''
;
return
return
...
@@ -535,108 +502,122 @@ export default {
...
@@ -535,108 +502,122 @@ export default {
this
.
msg
.
sDate
=
this
.
transactionDate
[
0
];
this
.
msg
.
sDate
=
this
.
transactionDate
[
0
];
this
.
msg
.
eDate
=
this
.
transactionDate
[
1
];
this
.
msg
.
eDate
=
this
.
transactionDate
[
1
];
},
},
compare
(
property
)
{
compare
(
property
)
{
return
function
(
a
,
b
)
{
return
function
(
a
,
b
)
{
var
value1
=
a
[
property
];
var
value1
=
a
[
property
];
var
value2
=
b
[
property
];
var
value2
=
b
[
property
];
return
value1
-
value2
;
return
value1
-
value2
;
}
}
},
},
addAir
(
t
)
{
addAir
(
t
)
{
if
(
t
!=
0
)
{
if
(
t
!=
0
)
{
let
msg
=
{
let
msg
=
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
t
,
Type
:
t
,
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
}
}
this
.
addMsg
.
PriceList
.
push
(
msg
);
this
.
addMsg
.
PriceList
.
push
(
msg
);
this
.
addMsg
.
PriceList
.
sort
(
this
.
compare
(
'Type'
))
this
.
addMsg
.
PriceList
.
sort
(
this
.
compare
(
'Type'
))
}
else
{
}
else
{
this
.
addMsg
.
FlightList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
FlightList
)));
this
.
addMsg
.
FlightList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
FlightList
)));
}
}
},
},
jiesuan
(){
jiesuan
()
{
if
(
!
this
.
TermDate
){
if
(
!
this
.
TermDate
)
{
return
this
.
$message
.
error
(
'请选择结算日期'
)
;
return
this
.
$message
.
error
(
'请选择结算日期'
);
}
this
.
apipost
(
'Domestic_Ticket_post_CheckBiLL'
,
{
TermDate
:
this
.
TermDate
,
sDate
:
this
.
msg
.
sDate
,
eDate
:
this
.
msg
.
eDate
},
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
this
.
$router
.
push
({
name
:
this
.
goPath
,
query
:
{
'Term'
:
this
.
TermDate
,
'blank'
:
'y'
}
}
this
.
apipost
(
'Domestic_Ticket_post_CheckBiLL'
,{
TermDate
:
this
.
TermDate
,
sDate
:
this
.
msg
.
sDate
,
eDate
:
this
.
msg
.
eDate
},
r
=>
{
});
if
(
r
.
data
.
resultCode
==
1
){
this
.
$router
.
push
({
name
:
this
.
goPath
,
query
:{
'Term'
:
this
.
TermDate
,
'blank'
:
'y'
}});
this
.
getList
();
this
.
getList
();
}
else
{
}
else
{
this
.
$message
.
error
(
r
.
data
.
message
);
this
.
$message
.
error
(
r
.
data
.
message
);
}
}
},
null
)
},
null
)
},
},
flight_post_GetAirportNameList
(
id
,
t
,
i
,
num
)
{
flight_post_GetAirportNameList
(
id
,
t
,
i
,
num
)
{
if
(
!
num
)
{
if
(
!
num
)
{
if
(
t
===
1
)
{
if
(
t
===
1
)
{
this
.
msg
.
FlightNo
=
''
;
this
.
msg
.
FlightNo
=
''
;
}
else
{
}
else
{
this
.
addMsg
.
FlightList
[
i
].
FlightNo
=
''
;
this
.
addMsg
.
FlightList
[
i
].
FlightNo
=
''
;
}
}
if
(
!
id
)
return
if
(
!
id
)
return
if
(
t
===
1
)
{
if
(
t
===
1
)
{
this
.
msg
.
FlightNo
=
''
;
this
.
msg
.
FlightNo
=
''
;
}
else
{
}
else
{
this
.
addMsg
.
FlightList
[
i
].
FlightNo
=
''
;
this
.
addMsg
.
FlightList
[
i
].
FlightNo
=
''
;
}
}
}
}
this
.
apipost
(
'flight_post_GetAirportNameList'
,{
airlineID
:
id
},
r
=>
{
this
.
apipost
(
'flight_post_GetAirportNameList'
,
{
if
(
r
.
data
.
resultCode
==
1
){
airlineID
:
id
if
(
t
===
1
){
},
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
if
(
t
===
1
)
{
this
.
AirportNameList
=
r
.
data
.
data
;
this
.
AirportNameList
=
r
.
data
.
data
;
}
else
{
}
else
{
this
.
addMsg
.
FlightList
[
i
].
AirportNameList
=
r
.
data
.
data
;
this
.
addMsg
.
FlightList
[
i
].
AirportNameList
=
r
.
data
.
data
;
}
}
}
}
},
null
)
},
null
)
},
},
goUrl
(
path
)
{
goUrl
(
path
)
{
this
.
dialogFormVisible
=
true
;
this
.
dialogFormVisible
=
true
;
this
.
goPath
=
path
;
this
.
goPath
=
path
;
return
return
},
},
Domestic_Ticket_post_Set
(){
// 保存
Domestic_Ticket_post_Set
()
{
// 保存
this
.
apipost
(
'Domestic_Ticket_post_Set'
,
this
.
addMsg
,
res
=>
{
this
.
apipost
(
'Domestic_Ticket_post_Set'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
this
.
getList
();
this
.
initAddMsg
();
this
.
initAddMsg
();
this
.
addShow
=
false
;
this
.
addShow
=
false
;
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
},
null
)
},
null
)
},
},
handleInput2
(
e
)
{
// input验证
handleInput2
(
e
)
{
// input验证
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,1})
/g
)[
0
])
||
null
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,1})
/g
)[
0
])
||
null
},
},
calculation
(
t
,
i
)
{
//计算
calculation
(
t
,
i
)
{
//计算
let
AdultNumber
=
this
.
addMsg
.
PriceList
[
i
].
Number
?
parseFloat
(
this
.
addMsg
.
PriceList
[
i
].
Number
):
0
;
let
AdultNumber
=
this
.
addMsg
.
PriceList
[
i
].
Number
?
parseFloat
(
this
.
addMsg
.
PriceList
[
i
].
Number
)
:
0
;
let
AdultPrice
=
this
.
addMsg
.
PriceList
[
i
].
Price
?
parseFloat
(
this
.
addMsg
.
PriceList
[
i
].
Price
):
0
;
let
AdultPrice
=
this
.
addMsg
.
PriceList
[
i
].
Price
?
parseFloat
(
this
.
addMsg
.
PriceList
[
i
].
Price
)
:
0
;
let
AdultCost
=
this
.
addMsg
.
PriceList
[
i
].
Cost
?
parseFloat
(
this
.
addMsg
.
PriceList
[
i
].
Cost
):
0
;
let
AdultCost
=
this
.
addMsg
.
PriceList
[
i
].
Cost
?
parseFloat
(
this
.
addMsg
.
PriceList
[
i
].
Cost
)
:
0
;
this
.
addMsg
.
PriceList
[
i
].
allCost
=
AdultNumber
*
AdultPrice
;
this
.
addMsg
.
PriceList
[
i
].
allCost
=
AdultNumber
*
AdultPrice
;
this
.
addMsg
.
PriceList
[
i
].
cAllCost
=
AdultNumber
*
AdultCost
;
this
.
addMsg
.
PriceList
[
i
].
cAllCost
=
AdultNumber
*
AdultCost
;
this
.
addMsg
.
PriceList
[
i
].
profit
=
this
.
addMsg
.
PriceList
[
i
].
allCost
-
this
.
addMsg
.
PriceList
[
i
].
cAllCost
;
this
.
addMsg
.
PriceList
[
i
].
profit
=
this
.
addMsg
.
PriceList
[
i
].
allCost
-
this
.
addMsg
.
PriceList
[
i
].
cAllCost
;
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
deletInstitutions
(
id
){
//删除
deletInstitutions
(
id
)
{
//删除
this
.
apipost
(
"Domestic_Ticket_post_Remove"
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
"Domestic_Ticket_post_Remove"
,
{
if
(
res
.
data
.
resultCode
==
1
)
{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
();
this
.
getList
();
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{});
},
err
=>
{});
},
},
financeinfoRemove
(
id
){
//删除 提示
financeinfoRemove
(
id
)
{
//删除 提示
this
.
$confirm
(
'是否删除?删除后后不可恢复!'
,
'提示'
,
{
this
.
$confirm
(
'是否删除?删除后后不可恢复!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -650,213 +631,209 @@ export default {
...
@@ -650,213 +631,209 @@ export default {
});
});
});
});
},
},
getAirlineList
(
n
)
{
//获取航空公司*
getAirlineList
(
n
)
{
//获取航空公司*
this
.
apipost
(
"airline_post_GetList"
,{},
res
=>
{
this
.
apipost
(
"airline_post_GetList"
,
{},
res
=>
{
if
(
n
)
{
if
(
n
)
{
this
.
addMsg
.
FlightList
.
forEach
((
x
,
index
)
=>
{
this
.
addMsg
.
FlightList
.
forEach
((
x
,
index
)
=>
{
x
.
airlineList
=
res
.
data
.
data
;
x
.
airlineList
=
res
.
data
.
data
;
this
.
$forceUpdate
();
this
.
$forceUpdate
();
this
.
flight_post_GetAirportNameList
(
x
.
AirlineId
,
2
,
index
,
66
);
this
.
flight_post_GetAirportNameList
(
x
.
AirlineId
,
2
,
index
,
66
);
})
})
}
else
{
}
else
{
this
.
airlineList
=
res
.
data
.
data
;
this
.
airlineList
=
res
.
data
.
data
;
this
.
addMsg
.
FlightList
[
0
].
airlineList
=
res
.
data
.
data
;
this
.
addMsg
.
FlightList
[
0
].
airlineList
=
res
.
data
.
data
;
this
.
FlightList
.
airlineList
=
res
.
data
.
data
;
this
.
FlightList
.
airlineList
=
res
.
data
.
data
;
}
}
},
err
=>
{});
},
err
=>
{});
},
},
editCurency
(
id
){
// 修改根据ID 获取信息
editCurency
(
id
)
{
// 修改根据ID 获取信息
this
.
apipost
(
'Domestic_Ticket_post_Get'
,{
ID
:
id
},
res
=>
{
this
.
apipost
(
'Domestic_Ticket_post_Get'
,
{
if
(
res
.
data
.
resultCode
==
1
)
{
ID
:
id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
this
.
UnitPrice
=
data
.
TotalPrice
;
this
.
UnitPrice
=
data
.
TotalPrice
;
this
.
CostPrice
=
data
.
TotalCost
;
this
.
CostPrice
=
data
.
TotalCost
;
this
.
allPeople
=
parseInt
(
data
.
AdultNumber
)
+
parseInt
(
data
.
ChirdNumber
)
+
parseInt
(
data
.
BabyNumber
);
this
.
allPeople
=
parseInt
(
data
.
AdultNumber
)
+
parseInt
(
data
.
ChirdNumber
)
+
parseInt
(
data
.
BabyNumber
);
this
.
addMsg
=
data
;
this
.
addMsg
=
data
;
this
.
addMsg
.
PriceList
.
forEach
((
x
,
index
)
=>
{
this
.
addMsg
.
PriceList
.
forEach
((
x
,
index
)
=>
{
this
.
calculation
(
1
,
index
)
this
.
calculation
(
1
,
index
)
})
})
this
.
getAirlineList
(
2
);
this
.
getAirlineList
(
2
);
}
else
{
}
else
{
this
.
tips
(
res
.
data
.
message
,
'error'
);
this
.
tips
(
res
.
data
.
message
,
'error'
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
initAddMsg
(){
// 取消修改、新增
initAddMsg
()
{
// 取消修改、新增
this
.
addMsg
=
{
this
.
addMsg
=
{
TermDate
:
''
,
TermDate
:
''
,
ID
:
this
.
addMsg
.
ID
,
ID
:
this
.
addMsg
.
ID
,
OutTicketDate
:
new
Date
().
toLocaleDateString
().
replace
(
'/'
,
'-'
).
replace
(
'/'
,
'-'
),
OutTicketDate
:
new
Date
().
toLocaleDateString
().
replace
(
'/'
,
'-'
).
replace
(
'/'
,
'-'
),
TravelTime
:
''
,
TravelTime
:
''
,
ClientName
:
''
,
ClientName
:
''
,
AirlineId
:
''
,
AirlineId
:
''
,
FlightNo
:
''
,
FlightNo
:
''
,
Leg
:
''
,
Leg
:
''
,
PriceList
:[
PriceList
:
[{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
1
,
//1-成人2-儿童3-婴儿
Type
:
1
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
},
},
{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
2
,
//1-成人2-儿童3-婴儿
Type
:
2
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
},
},
{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
3
,
//1-成人2-儿童3-婴儿
Type
:
3
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
}
}
],
],
Num
:
0
,
Num
:
0
,
Term
:
''
,
Term
:
''
,
FlightList
:[
FlightList
:
[{
{
ID
:
0
,
ID
:
0
,
AirlineId
:
'-1'
,
AirlineId
:
'-1'
,
FlightNo
:
''
,
FlightNo
:
''
,
Leg
:
''
,
Leg
:
''
,
airlineList
:
this
.
addMsg
.
FlightList
[
0
].
airlineList
,
airlineList
:
this
.
addMsg
.
FlightList
[
0
].
airlineList
,
AirportNameList
:
[]
AirportNameList
:[]
}]
}
]
};
};
this
.
cCostPrice
=
0
;
this
.
cCostPrice
=
0
;
this
.
cUnitPrice
=
0
;
this
.
cUnitPrice
=
0
;
this
.
eCostPrice
=
0
;
this
.
eCostPrice
=
0
;
this
.
eUnitPrice
=
0
;
this
.
eUnitPrice
=
0
;
this
.
yCostPrice
=
0
;
this
.
yCostPrice
=
0
;
this
.
yUnitPrice
=
0
;
this
.
yUnitPrice
=
0
;
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
getList
(
t
)
{
//获取列表
getList
(
t
)
{
//获取列表
if
(
this
.
msg
.
OrderID
==
''
)
{
if
(
this
.
msg
.
OrderID
==
''
)
{
this
.
msg
.
OrderID
=
0
;
this
.
msg
.
OrderID
=
0
;
}
}
if
(
this
.
msg
.
AirlineId
==
''
)
{
if
(
this
.
msg
.
AirlineId
==
''
)
{
this
.
msg
.
AirlineId
=
0
;
this
.
msg
.
AirlineId
=
0
;
}
}
this
.
loading
=
true
this
.
loading
=
true
this
.
apipost
(
'Domestic_Ticket_post_GetPageList'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'Domestic_Ticket_post_GetPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
let
data
=
res
.
data
.
data
.
pageData
;
let
data
=
res
.
data
.
data
.
pageData
;
if
(
this
.
total
>
0
)
{
if
(
this
.
total
>
0
)
{
this
.
noData
=
false
;
this
.
noData
=
false
;
}
else
{
}
else
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
}
this
.
DataList
=
data
;
this
.
DataList
=
data
;
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
!
t
)
{
if
(
!
t
)
{
this
.
msg
.
OrderID
=
''
;
this
.
msg
.
OrderID
=
''
;
this
.
msg
.
AirlineId
=
''
;
this
.
msg
.
AirlineId
=
''
;
}
else
{
}
else
{
if
(
this
.
msg
.
OrderID
==
0
)
{
if
(
this
.
msg
.
OrderID
==
0
)
{
this
.
msg
.
OrderID
=
''
;
this
.
msg
.
OrderID
=
''
;
}
}
if
(
this
.
msg
.
AirlineId
==
0
)
{
if
(
this
.
msg
.
AirlineId
==
0
)
{
this
.
msg
.
AirlineId
=
''
;
this
.
msg
.
AirlineId
=
''
;
}
}
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
!
t
)
{
if
(
!
t
)
{
this
.
msg
.
OrderID
=
''
;
this
.
msg
.
OrderID
=
''
;
this
.
msg
.
AirlineId
=
''
;
this
.
msg
.
AirlineId
=
''
;
}
else
{
}
else
{
if
(
this
.
msg
.
OrderID
==
0
)
{
if
(
this
.
msg
.
OrderID
==
0
)
{
this
.
msg
.
OrderID
=
''
;
this
.
msg
.
OrderID
=
''
;
}
}
if
(
this
.
msg
.
AirlineId
==
0
)
{
if
(
this
.
msg
.
AirlineId
==
0
)
{
this
.
msg
.
AirlineId
=
''
;
this
.
msg
.
AirlineId
=
''
;
}
}
}
}
}
}
},
err
=>
{})
},
err
=>
{})
},
},
initAddMsg
(){
//初始化添加、修改数据
initAddMsg
()
{
//初始化添加、修改数据
let
newMsg
=
{
let
newMsg
=
{
TermDate
:
''
,
TermDate
:
''
,
OrderID
:
0
,
OrderID
:
0
,
OutTicketDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
OutTicketDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
TravelTime
:
''
,
TravelTime
:
''
,
ClientName
:
''
,
ClientName
:
''
,
AirlineId
:
''
,
AirlineId
:
''
,
FlightNo
:
''
,
FlightNo
:
''
,
Leg
:
''
,
Leg
:
''
,
PriceList
:[
PriceList
:
[{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
1
,
//1-成人2-儿童3-婴儿
Type
:
1
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
},
},
{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
2
,
//1-成人2-儿童3-婴儿
Type
:
2
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
},
},
{
{
ID
:
0
,
ID
:
0
,
Number
:
''
,
Number
:
''
,
Cost
:
''
,
Cost
:
''
,
Price
:
''
,
Price
:
''
,
Type
:
3
,
//1-成人2-儿童3-婴儿
Type
:
3
,
//1-成人2-儿童3-婴儿
allCost
:
''
,
allCost
:
''
,
cAllCost
:
''
,
cAllCost
:
''
,
profit
:
''
profit
:
''
}
}
],
],
Term
:
''
,
Term
:
''
,
FlightList
:[
FlightList
:
[{
{
ID
:
0
,
ID
:
0
,
AirlineId
:
'-1'
,
AirlineId
:
'-1'
,
FlightNo
:
''
,
FlightNo
:
''
,
Leg
:
''
,
Leg
:
''
,
airlineList
:
this
.
addMsg
.
FlightList
[
0
].
airlineList
,
airlineList
:
this
.
addMsg
.
FlightList
[
0
].
airlineList
,
AirportNameList
:
[]
AirportNameList
:[]
}],
}
}
],
this
.
cCostPrice
=
0
;
}
this
.
cUnitPrice
=
0
;
this
.
cCostPrice
=
0
;
this
.
eCostPrice
=
0
;
this
.
cUnitPrice
=
0
;
this
.
eUnitPrice
=
0
;
this
.
eCostPrice
=
0
;
this
.
yCostPrice
=
0
;
this
.
eUnitPrice
=
0
;
this
.
yUnitPrice
=
0
;
this
.
yCostPrice
=
0
;
this
.
yUnitPrice
=
0
;
this
.
addMsg
=
newMsg
;
this
.
addMsg
=
newMsg
;
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
submitForm
(
addMsg
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
Domestic_Ticket_post_Set
()
this
.
Domestic_Ticket_post_Set
()
...
@@ -865,22 +842,22 @@ export default {
...
@@ -865,22 +842,22 @@ export default {
}
}
});
});
},
},
resetPageIndex
()
{
//查询初始化页码
resetPageIndex
()
{
//查询初始化页码
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
this
.
currentPage
=
1
},
},
handleCurrentChange
(
val
)
{
//翻页功能按钮
handleCurrentChange
(
val
)
{
//翻页功能按钮
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
this
.
getList
();
},
},
tips
(
msg
,
type
)
{
tips
(
msg
,
type
)
{
this
.
$message
({
this
.
$message
({
message
:
msg
,
message
:
msg
,
duration
:
2000
,
duration
:
2000
,
type
:
type
type
:
type
});
});
},
},
closeChangeMachie
(
done
)
{
closeChangeMachie
(
done
)
{
done
();
done
();
this
.
resetForm
(
'addMsg'
);
this
.
resetForm
(
'addMsg'
);
},
},
...
@@ -889,7 +866,5 @@ export default {
...
@@ -889,7 +866,5 @@ export default {
this
.
$refs
[
formName
].
resetFields
();
this
.
$refs
[
formName
].
resetFields
();
},
},
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
src/components/DomesticModule/SettlementOrder.vue
View file @
67f5e3b8
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<th>
操作人
</th>
<th>
操作人
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
<tr
v-for=
"(item,index) in dataList"
>
<tr
v-for=
"(item,index) in dataList"
:key=
"index"
>
<td>
{{
item
.
IsInter
==
0
?
"国内机票"
:
"国际机票"
}}
</td>
<td>
{{
item
.
IsInter
==
0
?
"国内机票"
:
"国际机票"
}}
</td>
<td>
{{
item
.
Term
}}
</td>
<td>
{{
item
.
Term
}}
</td>
<td>
¥
{{
item
.
Money
}}
</td>
<td>
¥
{{
item
.
Money
}}
</td>
...
@@ -91,7 +91,6 @@
...
@@ -91,7 +91,6 @@
<span>
{{
item
.
PayMoney
}}
</span>
<span>
{{
item
.
PayMoney
}}
</span>
</td>
</td>
<td
:class=
"Math.abs(item.Money-item.InCome)>0?'_color_red':''"
>
<td
:class=
"Math.abs(item.Money-item.InCome)>0?'_color_red':''"
>
<!-- ¥
{{
Math
.
abs
(
item
.
Money
-
item
.
InCome
)
}}
-->
<span
v-if=
"item.Money > item.InCome"
>
{{
(
item
.
Money
-
item
.
InCome
).
toFixed
(
2
)
}}
</span>
<span
v-if=
"item.Money > item.InCome"
>
{{
(
item
.
Money
-
item
.
InCome
).
toFixed
(
2
)
}}
</span>
<span
v-else
>
0
</span>
<span
v-else
>
0
</span>
</td>
</td>
...
...
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