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
54bc52f2
Commit
54bc52f2
authored
Apr 06, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2338a3bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
549 additions
and
550 deletions
+549
-550
TicketOrder.vue
src/components/SingleAirTicket/components/TicketOrder.vue
+549
-550
No files found.
src/components/SingleAirTicket/components/TicketOrder.vue
View file @
54bc52f2
<
style
scoped
>
<
style
scoped
>
.groupTourOrderByTuan_ico
{
.groupTourOrderByTuan_ico
{
margin-left
:
5px
;
margin-left
:
5px
;
}
.groupTourOrderByTuan_ico
>
i
{
display
:
inline-block
;
margin
:
0
5px
0
0
;
width
:
8px
;
height
:
8px
;
border-radius
:
2px
;
vertical-align
:
middle
;
}
}
.groupTourOrderByTuan_ico
>
i
{
.HotelWorkList
.has-gutter
tr
th
,
display
:
inline-block
;
.el-table
th
.is-leaf
{
margin
:
0
5px
0
0
;
background-color
:
#EAEAEA
!important
;
width
:
8px
;
}
height
:
8px
;
border-radius
:
2px
;
.HotelWorkList
.HW_hotelDialog
{
vertical-align
:
middle
;
width
:
900px
;
}
}
.HotelWorkList
.has-gutter
tr
th
,
.el-table
th
.is-leaf
{
.HotelWorkList
.Hw_tableOne
{
background-color
:
#EAEAEA
!important
;
width
:
100%
;
}
height
:
40px
;
background-color
:
#EAEAEA
;
.HotelWorkList
.HW_hotelDialog
{
}
width
:
900px
;
}
.HotelWorkList
.Hw_tableOne
th
{
text-align
:
center
;
.HotelWorkList
.Hw_tableOne
{
}
width
:
100%
;
height
:
40px
;
.HotelWorkList
.HotelWorkInput
.el-input
{
background-color
:
#EAEAEA
;
width
:
223px
;
}
}
.HotelWorkList
.Hw_tableOne
th
{
.HotelWorkList
.HworkInput
.el-input
{
text-align
:
center
;
width
:
210px
;
}
}
/
deep
/
.query-box
li
span
>
em
{
.HotelWorkList
.HotelWorkInput
.el-input
{
min-width
:
60px
;
width
:
223px
;
}
}
</
style
>
.HotelWorkList
.HworkInput
.el-input
{
width
:
210px
;
<
template
>
}
<div
class=
"HotelWorkList"
>
/
deep
/
.query-box
li
span
>
em
{
<div
class=
"query-box HotelWorkInput"
style=
"border-bottom: none;"
>
min-width
:
60px
;
<ul>
}
<li>
<span>
</
style
>
<em>
{{
$t
(
'OrderList.search.status'
)
}}
</em>
<el-select
v-model=
"msg.OrderStatus"
class=
"w200 HworkInput"
>
<
template
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('OrderList.orderStatus.normal')"
></el-option>
<div
class=
"HotelWorkList"
>
<el-option
v-for=
"item in OrderStatusType"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<div
class=
"query-box HotelWorkInput"
style=
"border-bottom: none;"
>
</el-select>
<ul>
</span>
<li>
</li>
<span>
<li
v-if=
"Title!='销售'"
>
<em>
{{
$t
(
'OrderList.search.status'
)
}}
</em>
<span>
<el-select
v-model=
"msg.OrderStatus"
class=
"w200 HworkInput"
>
<em>
业务员
</em>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('OrderList.orderStatus.normal')"
></el-option>
<el-select
filterable
v-model=
'msg.EnterID'
class=
"w200"
>
<el-option
v-for=
"item in OrderStatusType"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<el-option
:value=
"0"
label=
"不限"
></el-option>
</el-select>
<el-option
v-for=
'item in EmployeeList'
</span>
:label=
'item.EmName'
</li>
:value=
'item.EmployeeId'
<li
v-if=
"Title!='销售'"
>
:key=
'item.EmployeeId'
>
<span>
</el-option>
<em>
业务员
</em>
</el-select>
<el-select
filterable
v-model=
'msg.EnterID'
class=
"w200"
>
</span>
<el-option
:value=
"0"
label=
"不限"
></el-option>
</li>
<el-option
v-for=
'item in EmployeeList'
<li>
:label=
'item.EmName'
<span><em>
{{
$t
(
'OrderList.search.orderNum'
)
}}
</em>
:value=
'item.EmployeeId'
<el-input
clearable
type=
"Number"
v-model=
"msg.OrderNo"
:placeholder=
"$t('OrderList.search.orderNum')"
class=
"w200"
/>
:key=
'item.EmployeeId'
>
</span>
</el-option>
</li>
</el-select>
<!--
<li>
</span>
<span><em>
订单ID
</em>
</li>
<el-input
clearable
type=
"Number"
v-model=
"msg.OrderId"
placeholder=
"订单ID"
class=
"w200"
/>
<li>
</span>
<span><em>
{{
$t
(
'OrderList.search.orderNum'
)
}}
</em>
</li>
-->
<el-input
clearable
type=
"Number"
v-model=
"msg.OrderNo"
:placeholder=
"$t('OrderList.search.orderNum')"
class=
"w200"
/>
<!--
<li>
</span>
<span><em>
电话
</em>
</li>
<el-input
clearable
v-model=
"msg.Mobile"
placeholder=
"电话"
class=
"w200"
/>
<!--
<li>
</span>
<span><em>
订单ID
</em>
</li>
-->
<el-input
clearable
type=
"Number"
v-model=
"msg.OrderId"
placeholder=
"订单ID"
class=
"w200"
/>
<li>
</span>
<span><em>
客人姓名
</em>
</li>
-->
<el-input
clearable
v-model=
"msg.GuestName"
placeholder=
"客人姓名"
class=
"w200"
/>
<!--
<li>
</span>
<span><em>
电话
</em>
</li>
<el-input
clearable
v-model=
"msg.Mobile"
placeholder=
"电话"
class=
"w200"
/>
<li>
</span>
<span>
</li>
-->
<em>
完结时间
</em>
<li>
<el-date-picker
<span><em>
客人姓名
</em>
style=
"height: 34px;"
<el-input
clearable
v-model=
"msg.GuestName"
placeholder=
"客人姓名"
class=
"w200"
/>
value-format=
"yyyy-MM-dd"
</span>
v-model=
"Datelist"
</li>
type=
"daterange"
<li>
:range-separator=
"$t('OrderList.zhi')"
<span>
:start-placeholder=
"$t('OrderList.star')"
<em>
完结时间
</em>
:end-placeholder=
"$t('OrderList.end')"
@
change=
"getDates"
>
<el-date-picker
</el-date-picker>
style=
"height: 34px;"
</span>
value-format=
"yyyy-MM-dd"
</li>
v-model=
"Datelist"
<li>
type=
"daterange"
<span>
:range-separator=
"$t('OrderList.zhi')"
<em>
出发时间
</em>
:start-placeholder=
"$t('OrderList.star')"
<el-date-picker
:end-placeholder=
"$t('OrderList.end')"
@
change=
"getDates"
>
style=
"height: 34px;"
</el-date-picker>
value-format=
"yyyy-MM-dd"
</span>
v-model=
"DatelistUse"
</li>
type=
"daterange"
<li>
:range-separator=
"$t('OrderList.zhi')"
<span>
:start-placeholder=
"$t('OrderList.star')"
<em>
出发时间
</em>
:end-placeholder=
"$t('OrderList.end')"
@
change=
"getDatesUse"
>
<el-date-picker
</el-date-picker>
style=
"height: 34px;"
</span>
value-format=
"yyyy-MM-dd"
</li>
v-model=
"DatelistUse"
type=
"daterange"
:range-separator=
"$t('OrderList.zhi')"
<li>
:start-placeholder=
"$t('OrderList.star')"
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"msg.pageIndex=1,currentPage=1,GetList()"
/>
:end-placeholder=
"$t('OrderList.end')"
@
change=
"getDatesUse"
>
</li>
</el-date-picker>
</ul>
</span>
</div>
</li>
<!-- 统计版块 -->
<div
class=
"groupTourOrder_count"
>
<el-row
:gutter=
"20"
>
<li>
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"msg.pageIndex=1,currentPage=1,GetList()"
/>
<div
class=
"groupTourOrder_count_item HT_total"
>
</li>
<div>
</ul>
<i
class=
"iconfont icon-qian groupTourOrder_count_green"
></i>
</div>
<span>
{{
$t
(
'op.TotalMoney'
)
}}
</span>
<!-- 统计版块 -->
<div
class=
"groupTourOrder_count"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
<div
class=
"groupTourOrder_count_item HT_total"
>
<div>
<i
class=
"iconfont icon-qian groupTourOrder_count_green"
></i>
<span>
{{
$t
(
'op.TotalMoney'
)
}}
</span>
</div>
<p>
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'op.TotalMoney'
)
}}
:
{{
TotalMsg
.
Money
}}
</span>
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'salesModule.TotalIncome'
)
}}
:
{{
TotalMsg
.
Money
-
TotalMsg
.
PayMoney
}}
</span>
<span
class=
"color_red_order"
>
{{
$t
(
'op.Tocollected'
)
}}
:
{{
TotalMsg
.
DueinMoney
}}
</span>
</p>
</div>
</div>
</el-col>
<p>
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'op.TotalMoney'
)
}}
:
<div
class=
"groupTourOrder_count_item HT_total"
>
{{
TotalMsg
.
Money
}}
<div>
</span>
<i
class=
"iconfont icon-tongji1 groupTourOrder_count_blue"
></i>
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'salesModule.TotalIncome'
)
}}
:
<span>
{{
$t
(
'restaurant.res_Number'
)
}}
</span>
{{
TotalMsg
.
Money
-
TotalMsg
.
PayMoney
}}
</div>
</span>
<p>
<span
class=
"color_red_order"
>
{{
$t
(
'op.Tocollected'
)
}}
:
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'op.TotalRoomNum'
)
}}
:
{{
TotalMsg
.
DueinMoney
}}
{{
TotalMsg
.
NorNumber
}}
</span>
</span>
</p>
<span
class=
"color_red_order"
>
{{
$t
(
'op.CanCelRoomNum'
)
}}
:
</div>
{{
TotalMsg
.
CancelNum
}}
</el-col>
</span>
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
</p>
<div
class=
"groupTourOrder_count_item HT_total"
>
<div>
<i
class=
"iconfont icon-tongji1 groupTourOrder_count_blue"
></i>
<span>
{{
$t
(
'restaurant.res_Number'
)
}}
</span>
</div>
</div>
</el-col
>
<p
>
<!--
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
<span
class=
"groupTourOrder_count_green"
>
报名数:
<div
class=
"groupTourOrder_count_item HT_total"
>
{{
TotalMsg
.
NorNumber
}}
<
div
>
<
/span
>
<i
class=
"iconfont icon-tongji1 groupTourOrder_count_gray"
></i>
<span
class=
"color_red_order"
>
取消数:
<span>
{{
$t
(
'fnc.qtxtongji'
)
}}
</span>
{{
TotalMsg
.
CancelNum
}}
</
div
>
</
span
>
<
p>
</
p>
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'fnc.nbbaoming'
)
}}
:
</div>
{{
TotalMsg
.
totalERP
}}
</el-col>
</span
>
<!--
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
<span
class=
"color_red_order"
>
{{
$t
(
'fnc.B2BWAP'
)
}}
:
<div
class=
"groupTourOrder_count_item HT_total"
>
{{
TotalMsg
.
totalB2B
}}
<div>
</span
>
<i
class=
"iconfont icon-tongji1 groupTourOrder_count_gray"
></i
>
<
/p
>
<
span>
{{
$t
(
'fnc.qtxtongji'
)
}}
</span
>
</div>
</div>
</el-col>
-->
<p>
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
<span
class=
"groupTourOrder_count_green"
>
{{
$t
(
'fnc.nbbaoming'
)
}}
:
<div
class=
"groupTourOrder_count_item HT_totalFinacel"
>
{{
TotalMsg
.
totalERP
}}
<div>
</span>
<i
class=
"iconfont icon-tongji1 groupTourOrder_count_gray"
></i>
<span
class=
"color_red_order"
>
{{
$t
(
'fnc.B2BWAP'
)
}}
:
<span>
{{
$t
(
'fnc.cwdjshuoming'
)
}}
</span>
{{
TotalMsg
.
totalB2B
}}
</div>
</span>
<p>
</p>
<p><span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#3FC4FF"
></i><span>
{{
$t
(
'fnc.yidadan'
)
}}
</span></span>
</div>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#F1416C"
></i><span>
{{
$t
(
'fnc.yhcnyshenhe'
)
}}
</span></span>
</el-col>
-->
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#ff9800"
></i><span>
{{
$t
(
'fnc.ytongguo'
)
}}
</span></span></p>
<el-col
:span=
"5"
class=
"groupTourOrder_count_col"
>
</p>
<div
class=
"groupTourOrder_count_item HT_totalFinacel"
>
<div>
<i
class=
"iconfont icon-tongji1 groupTourOrder_count_gray"
></i>
<span>
{{
$t
(
'fnc.cwdjshuoming'
)
}}
</span>
</div>
</div>
</el-col>
<p>
<p><span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#3FC4FF"
></i><span>
{{
$t
(
'fnc.yidadan'
)
}}
</span></span>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#F1416C"
></i><span>
{{
$t
(
'fnc.yhcnyshenhe'
)
}}
</span></span>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#ff9800"
></i><span>
{{
$t
(
'fnc.ytongguo'
)
}}
</span></span></p>
</p>
</div>
</el-col>
</el-row>
</el-row>
</div>
<!--
<div
style=
"display: flex;justify-content: end;margin-bottom: 10px;"
>
<p><span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#3FC4FF"
></i><span>
{{
$t
(
'fnc.yidadan'
)
}}
</span></span>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#F1416C"
></i><span>
{{
$t
(
'fnc.yhcnyshenhe'
)
}}
</span></span>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#ff9800"
></i><span>
{{
$t
(
'fnc.ytongguo'
)
}}
</span></span></p>
</div>
-->
<OrderList
:pagesTitle=
"Title"
:OrderList=
"OrderList"
v-loading=
"loading"
@
success=
"msg.pageIndex=1,GetList()"
>
</OrderList>
<div
v-if=
"OrderList&&OrderList.length==0"
style=
"text-align: center;padding: 100px;"
>
暂无数据
</div>
<el-pagination
v-if=
"OrderList&&OrderList.length>0"
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
</div>
</div>
<!--
<div
style=
"display: flex;justify-content: end;margin-bottom: 10px;"
>
</
template
>
<p><span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#3FC4FF"
></i><span>
{{
$t
(
'fnc.yidadan'
)
}}
</span></span>
<
script
>
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#F1416C"
></i><span>
{{
$t
(
'fnc.yhcnyshenhe'
)
}}
</span></span>
import
OrderList
from
'./OrderList.vue'
;
<span
class=
"groupTourOrderByTuan_ico"
><i
style=
"background-color:#ff9800"
></i><span>
{{
$t
(
'fnc.ytongguo'
)
}}
</span></span></p>
export
default
{
</div>
-->
props
:[
'pagesTitle'
,
'dataObj'
],
<OrderList
:pagesTitle=
"Title"
:OrderList=
"OrderList"
v-loading=
"loading"
@
success=
"msg.pageIndex=1,GetList()"
>
</OrderList>
components
:
{
OrderList
},
<div
v-if=
"OrderList&&OrderList.length==0"
style=
"text-align: center;padding: 100px;"
>
暂无数据
</div>
data
()
{
<el-pagination
v-if=
"OrderList&&OrderList.length>0"
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
return
{
</el-pagination>
TotalMsg
:
null
,
MultipleChoiceList
:
[
//多选项目
{
</div>
Name
:
'机票'
,
</
template
>
Id
:
'1'
<
script
>
},
{
import
OrderList
from
'./OrderList.vue'
;
Name
:
'签证'
,
export
default
{
Id
:
'2'
props
:[
'pagesTitle'
,
'dataObj'
],
},
{
components
:
{
OrderList
},
Name
:
'地接'
,
data
()
{
Id
:
'3'
return
{
},
{
TotalMsg
:
null
,
Name
:
'套餐'
,
MultipleChoiceList
:
[
//多选项目
Id
:
'4'
{
},
{
Name
:
'机票'
,
Name
:
'其他'
,
Id
:
'1'
Id
:
'5'
},
{
}
Name
:
'签证'
,
],
Id
:
'2'
userInfo
:
{},
},
{
HotelList
:
[],
Name
:
'地接'
,
loading
:
false
,
Id
:
'3'
isShow
:
false
,
},
{
outerVisible
:
false
,
Name
:
'套餐'
,
//订单列表
Id
:
'4'
OrderList
:
[],
},
{
//默认高度
Name
:
'其他'
,
tableHeight
:
0
,
Id
:
'5'
msg
:{
}
// pageIndex: 1,
],
// pageSize: 5,
userInfo
:
{},
HotelList
:
[],
loading
:
false
,
isShow
:
false
,
outerVisible
:
false
,
//订单列表
OrderList
:
[],
//默认高度
tableHeight
:
0
,
msg
:{
// pageIndex: 1,
// pageSize: 5,
// OrderType: '1',
// OrderId: '',
// OrderNo: '',
// SurName: '',
// Name: '',
// OrderStatus: 0,
// StartTime: '',
// EndTime: '',
// OrderSTime: '',
// OrderETime: '',
// ProductName: '',
// Mobile: '',//电话
// IsSelectSale: 1,
// EnterID: 0,//业务员
pageIndex
:
1
,
// OrderType: '1',
pageSize
:
15
,
// OrderId: '',
OrderId
:
""
,
//订单id
// OrderNo: '',
GuestName
:
""
,
//客人姓名
// SurName: '',
GuestId
:
""
,
//客人id
// Name: '',
StartCityName
:
""
,
//出发城市
// OrderStatus: 0,
EndCityName
:
""
,
//到达城市
// StartTime: '',
EnterID
:
""
,
//业务员id
// EndTime: '',
TicketStatus
:
"0"
,
//出票状态
// OrderSTime: '',
VisaStatus
:
"0"
,
//出签状态
// OrderETime: '',
OrderStatus
:
"0"
,
//订单状态
// ProductName: '',
Q_IsCollect
:
"0"
,
//收款状态
// Mobile: '',//电话
StartTime
:
""
,
// IsSelectSale: 1,
EndTime
:
""
,
// EnterID: 0,//业务员
IsMyOrder
:
"1"
,
//我的订单
FinishSTime
:
""
,
//完结开始时间
pageIndex
:
1
,
FinishETime
:
""
,
//完结结束时间
pageSize
:
15
,
DepartSTime
:
""
,
//出发开始
OrderId
:
""
,
//订单id
DepartETime
:
""
,
//出发结束
GuestName
:
""
,
//客人姓名
GuestId
:
""
,
//客人id
StartCityName
:
""
,
//出发城市
EndCityName
:
""
,
//到达城市
EnterID
:
""
,
//业务员id
TicketStatus
:
"0"
,
//出票状态
VisaStatus
:
"0"
,
//出签状态
OrderStatus
:
"0"
,
//订单状态
Q_IsCollect
:
"0"
,
//收款状态
StartTime
:
""
,
EndTime
:
""
,
IsMyOrder
:
"1"
,
//我的订单
FinishSTime
:
""
,
//完结开始时间
FinishETime
:
""
,
//完结结束时间
DepartSTime
:
""
,
//出发开始
DepartETime
:
""
,
//出发结束
},
total
:
0
,
currentPage
:
1
,
OrderStatusType
:[
{
Name
:
this
.
$t
(
'OrderList.orderStatus.apply'
),
ID
:
'1'
},
{
Name
:
this
.
$t
(
'OrderList.orderStatus.check'
),
ID
:
'2'
},
{
Name
:
this
.
$t
(
'OrderList.orderStatus.cancel'
),
ID
:
'3'
},
{
Name
:
this
.
$t
(
'OrderList.orderStatus.sun'
),
ID
:
'4'
},
],
OrderStateType
:[
{
Name
:
'接机'
,
ID
:
'1'
},
{
Name
:
'送机'
,
ID
:
'2'
},
{
Name
:
'包车'
,
ID
:
'3'
},
],
orderType
:[
{
Name
:
this
.
$t
(
'OrderList.orderType.tour'
),
ID
:
'1'
},
{
Name
:
this
.
$t
(
'OrderList.orderType.guest'
),
ID
:
'2'
},
],
Datelist
:
''
,
DatelistUse
:
''
,
Title
:
''
,
EmployeeList
:[],
employeeMsg
:{
// 员工
GroupId
:
''
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
},
},
total
:
0
,
};
currentPage
:
1
,
},
OrderStatusType
:[
watch
:
{
{
Name
:
this
.
$t
(
'OrderList.orderStatus.apply'
),
ID
:
'1'
},
pagesTitle
(
val
,
oldval
){
{
Name
:
this
.
$t
(
'OrderList.orderStatus.check'
),
ID
:
'2'
},
this
.
Title
=
val
{
Name
:
this
.
$t
(
'OrderList.orderStatus.cancel'
),
ID
:
'3'
},
{
Name
:
this
.
$t
(
'OrderList.orderStatus.sun'
),
ID
:
'4'
},
],
OrderStateType
:[
{
Name
:
'接机'
,
ID
:
'1'
},
{
Name
:
'送机'
,
ID
:
'2'
},
{
Name
:
'包车'
,
ID
:
'3'
},
],
orderType
:[
{
Name
:
this
.
$t
(
'OrderList.orderType.tour'
),
ID
:
'1'
},
{
Name
:
this
.
$t
(
'OrderList.orderType.guest'
),
ID
:
'2'
},
],
Datelist
:
''
,
DatelistUse
:
''
,
Title
:
''
,
EmployeeList
:[],
employeeMsg
:{
// 员工
GroupId
:
''
,
BranchId
:
-
1
,
DepartmentId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
},
};
},
},
watch
:
{
dataObj
:{
pagesTitle
(
val
,
oldval
){
handler
(
val
,
oldVal
)
{
this
.
Title
=
val
this
.
msg
.
OrderType
=
val
.
tab
this
.
msg
.
OrderId
=
val
.
OrderId
this
.
GetList
()
},
},
dataObj
:{
deep
:
true
,
handler
(
val
,
oldVal
)
{
}
this
.
msg
.
OrderType
=
val
.
tab
},
this
.
msg
.
OrderId
=
val
.
OrderId
methods
:
{
this
.
GetList
()
getEmployee
()
{
//员工
},
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
deep
:
true
,
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
getDatesUse
(){
if
(
this
.
Datelist
){
this
.
msg
.
DepartSTime
=
this
.
Datelist
[
0
]
this
.
msg
.
DepartETime
=
this
.
Datelist
[
1
]
}
if
(
!
this
.
Datelist
){
this
.
msg
.
DepartSTime
=
''
this
.
msg
.
DepartETime
=
''
}
}
},
},
methods
:
{
getDates
(){
getEmployee
()
{
//员工
if
(
this
.
DatelistUse
){
this
.
apipost
(
'admin_get_EmployeeGetList'
,
this
.
employeeMsg
,
res
=>
{
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
this
.
EmployeeList
=
res
.
data
.
data
;
}
if
(
!
this
.
DatelistUse
){
}
this
.
msg
.
FinishSTime
=
''
},
err
=>
{})
this
.
msg
.
FinishETime
=
''
},
}
getDatesUse
(){
},
if
(
this
.
Datelist
){
setEdate
()
{
this
.
msg
.
DepartSTime
=
this
.
Datelist
[
0
]
return
this
.
addMoth
(
new
Date
().
Format
(
"yyyy-MM-dd"
),
1
)
this
.
msg
.
DepartETime
=
this
.
Datelist
[
1
]
},
}
if
(
!
this
.
Datelist
){
addMoth
(
d
,
m
)
{
this
.
msg
.
DepartSTime
=
''
let
ds
=
d
.
split
(
'-'
),
this
.
msg
.
DepartETime
=
''
_d
=
ds
[
2
]
-
0
;
}
let
nextM
=
new
Date
(
ds
[
0
],
ds
[
1
]
-
1
+
m
+
1
,
0
);
},
let
max
=
nextM
.
getDate
();
getDates
(){
d
=
new
Date
(
ds
[
0
],
ds
[
1
]
-
1
+
m
,
_d
>
max
?
max
:
_d
);
if
(
this
.
DatelistUse
){
return
d
.
toLocaleDateString
().
match
(
/
\d
+/g
).
join
(
'-'
)
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
},
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
getyMDOne
(){
}
if
(
!
this
.
DatelistUse
){
let
myDate
=
new
Date
()
this
.
msg
.
FinishSTime
=
''
let
myYear
=
myDate
.
getFullYear
();
//获取完整的年份(4位,1970-????)
this
.
msg
.
FinishETime
=
''
let
myMonth
=
myDate
.
getMonth
()
+
1
;
//获取当前月份(0-11,8代表1月)
}
let
myToday
=
myDate
.
getDate
();
//获取当前日(1-31)
},
myMonth
=
myMonth
>
9
?
myMonth
:
'0'
+
myMonth
setEdate
()
{
myToday
=
myToday
>
9
?
myToday
:
'0'
+
myToday
return
this
.
addMoth
(
new
Date
().
Format
(
"yyyy-MM-dd"
),
1
)
let
nowDate
=
myYear
+
'-'
+
myMonth
+
'-01'
},
return
nowDate
addMoth
(
d
,
m
)
{
},
let
ds
=
d
.
split
(
'-'
),
getyMDTwo
(){
_d
=
ds
[
2
]
-
0
;
let
myDate
=
new
Date
()
let
nextM
=
new
Date
(
ds
[
0
],
ds
[
1
]
-
1
+
m
+
1
,
0
);
let
myYear
=
myDate
.
getFullYear
();
//获取完整的年份(4位,1970-????)
let
max
=
nextM
.
getDate
();
let
myMonth
=
myDate
.
getMonth
()
+
1
;
//获取当前月份(0-11,8代表1月)
d
=
new
Date
(
ds
[
0
],
ds
[
1
]
-
1
+
m
,
_d
>
max
?
max
:
_d
);
let
myToday
=
myDate
.
getDate
();
//获取当前日(1-31)
return
d
.
toLocaleDateString
().
match
(
/
\d
+/g
).
join
(
'-'
)
myMonth
=
myMonth
>
9
?
myMonth
:
'0'
+
myMonth
},
myToday
=
myToday
>
9
?
myToday
:
'0'
+
myToday
getyMDOne
(){
let
nowDate
=
myYear
+
'-'
+
myMonth
+
'-'
+
myToday
let
myDate
=
new
Date
()
return
nowDate
let
myYear
=
myDate
.
getFullYear
();
//获取完整的年份(4位,1970-????)
},
let
myMonth
=
myDate
.
getMonth
()
+
1
;
//获取当前月份(0-11,8代表1月)
//获取酒店订单列表
let
myToday
=
myDate
.
getDate
();
//获取当前日(1-31)
GetList
()
{
myMonth
=
myMonth
>
9
?
myMonth
:
'0'
+
myMonth
this
.
loading
=
true
myToday
=
myToday
>
9
?
myToday
:
'0'
+
myToday
let
url
let
nowDate
=
myYear
+
'-'
+
myMonth
+
'-01'
// 销售 OP
return
nowDate
if
(
this
.
pagesTitle
==
'销售'
){
},
url
=
"/api/Order/GetGuestOrderStatisticsPageList"
getyMDTwo
(){
}
else
{
let
myDate
=
new
Date
()
// url = "CarSingle_post_GetAdminCarOrderPageList"
let
myYear
=
myDate
.
getFullYear
();
//获取完整的年份(4位,1970-????)
}
let
myMonth
=
myDate
.
getMonth
()
+
1
;
//获取当前月份(0-11,8代表1月)
this
.
crmapipost
(
url
,
this
.
msg
,
let
myToday
=
myDate
.
getDate
();
//获取当前日(1-31)
res
=>
{
myMonth
=
myMonth
>
9
?
myMonth
:
'0'
+
myMonth
if
(
res
.
data
.
resultCode
==
1
)
{
myToday
=
myToday
>
9
?
myToday
:
'0'
+
myToday
// console.log(res.data,'-----')
let
nowDate
=
myYear
+
'-'
+
myMonth
+
'-'
+
myToday
let
data
=
res
.
data
.
data
.
Data
.
pageData
return
nowDate
let
addList
=
function
(
arr
)
{
},
arr
.
forEach
((
item
)
=>
{
//获取酒店订单列表
item
.
More
=
""
;
GetList
()
{
item
.
actuallyReceived
=
false
;
this
.
loading
=
true
item
.
cost
=
false
;
let
url
item
.
selectedType
=
""
;
// 销售 OP
item
.
checkList
=
[];
if
(
this
.
pagesTitle
==
'销售'
){
item
.
MultipleChoiceList
=
[];
url
=
"/api/Order/GetGuestOrderStatisticsPageList"
item
.
MoreList
=
[
}
else
{
{
// url = "CarSingle_post_GetAdminCarOrderPageList"
Name
:
"取消订单"
,
}
Id
:
"1"
,
this
.
crmapipost
(
url
,
this
.
msg
,
show
:
res
=>
{
item
.
OrderStatus
!=
2
&&
if
(
res
.
data
.
resultCode
==
1
)
{
item
.
OrderStatus
!=
5
&&
// console.log(res.data,'-----')
item
.
OrderStatus
!=
6
let
data
=
res
.
data
.
data
.
Data
.
pageData
?
true
let
addList
=
function
(
arr
)
{
:
false
,
arr
.
forEach
((
item
)
=>
{
},
item
.
More
=
""
;
{
item
.
actuallyReceived
=
false
;
Name
:
"订单转交"
,
item
.
cost
=
false
;
Id
:
"2"
,
item
.
selectedType
=
""
;
show
:
true
,
item
.
checkList
=
[];
},
item
.
MultipleChoiceList
=
[];
{
item
.
MoreList
=
[
Name
:
"修改订单金额"
,
{
Id
:
"3"
,
Name
:
"取消订单"
,
show
:
Id
:
"1"
,
item
.
OrderStatus
!=
2
&&
show
:
item
.
OrderStatus
!=
5
&&
item
.
OrderStatus
!=
2
&&
item
.
OrderStatus
!=
6
&&
item
.
OrderStatus
!=
5
&&
(
item
.
TicketStatus
==
1
||
item
.
VisaStatus
==
1
)
item
.
OrderStatus
!=
6
?
true
?
true
:
false
,
:
false
,
},
},
{
{
Name
:
"修改出票状态"
,
Name
:
"订单转交"
,
Id
:
"4"
,
Id
:
"2"
,
show
:
show
:
true
,
item
.
OrderStatus
!=
2
&&
},
item
.
OrderStatus
!=
5
&&
{
item
.
OrderStatus
!=
6
&&
Name
:
"修改订单金额"
,
item
.
TicketStatus
<
3
Id
:
"3"
,
?
true
show
:
:
false
,
item
.
OrderStatus
!=
2
&&
},
item
.
OrderStatus
!=
5
&&
{
item
.
OrderStatus
!=
6
&&
Name
:
"修改出签状态"
,
(
item
.
TicketStatus
==
1
||
item
.
VisaStatus
==
1
)
Id
:
"5"
,
?
true
show
:
:
false
,
item
.
OrderStatus
!=
2
&&
},
item
.
OrderStatus
!=
5
&&
{
item
.
OrderStatus
!=
6
&&
Name
:
"修改出票状态"
,
item
.
VisaStatus
==
1
Id
:
"4"
,
?
true
show
:
:
false
,
item
.
OrderStatus
!=
2
&&
},
item
.
OrderStatus
!=
5
&&
{
item
.
OrderStatus
!=
6
&&
Name
:
"订单收损"
,
item
.
TicketStatus
<
3
Id
:
"8"
,
?
true
show
:
:
false
,
item
.
OrderStatus
!=
2
&&
},
item
.
OrderStatus
!=
6
{
?
true
Name
:
"修改出签状态"
,
:
false
,
Id
:
"5"
,
},
show
:
{
item
.
OrderStatus
!=
2
&&
Name
:
"收损完结"
,
item
.
OrderStatus
!=
5
&&
Id
:
"9"
,
item
.
OrderStatus
!=
6
&&
show
:
item
.
VisaStatus
==
1
(
item
.
OrderStatus
==
3
||
item
.
OrderStatus
==
4
)
&&
?
true
item
.
DueinMoney
==
0
:
false
,
?
true
},
:
false
,
{
},
Name
:
"订单收损"
,
{
Id
:
"8"
,
Name
:
'订单完结'
,
show
:
Id
:
'6'
,
item
.
OrderStatus
!=
2
&&
show
:
item
.
OrderStatus
==
1
&&
item
.
DueinMoney
==
0
?
item
.
OrderStatus
!=
6
true
:
false
?
true
},
:
false
,
{
},
Name
:
"操作日志"
,
{
Id
:
"7"
,
Name
:
"收损完结"
,
show
:
true
,
Id
:
"9"
,
},
show
:
{
(
item
.
OrderStatus
==
3
||
item
.
OrderStatus
==
4
)
&&
Name
:
"修改日期"
,
item
.
DueinMoney
==
0
Id
:
"10"
,
?
true
show
:
item
.
OrderType
&&
item
.
OrderType
.
indexOf
(
1
)
!=
-
1
?
true
:
false
,
:
false
,
}
},
];
{
});
Name
:
'订单完结'
,
};
Id
:
'6'
,
addList
(
data
);
show
:
item
.
OrderStatus
==
1
&&
item
.
DueinMoney
==
0
?
data
.
forEach
((
item
)
=>
{
true
:
false
if
(
item
.
OrderType
)
{
},
let
list
=
item
.
OrderType
&&
item
.
OrderType
.
split
(
","
);
{
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
)
{
Name
:
"操作日志"
,
for
(
let
i
=
0
;
i
<
this
.
MultipleChoiceList
.
length
;
i
++
)
{
Id
:
"7"
,
if
(
list
[
j
]
==
this
.
MultipleChoiceList
[
i
].
Id
)
{
show
:
true
,
item
.
MultipleChoiceList
.
push
(
},
JSON
.
parse
(
JSON
.
stringify
(
this
.
MultipleChoiceList
[
i
]))
{
);
Name
:
"修改日期"
,
Id
:
"10"
,
show
:
item
.
OrderType
&&
item
.
OrderType
.
indexOf
(
1
)
!=
-
1
?
true
:
false
,
}
];
});
};
addList
(
data
);
data
.
forEach
((
item
)
=>
{
if
(
item
.
OrderType
)
{
let
list
=
item
.
OrderType
&&
item
.
OrderType
.
split
(
","
);
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
)
{
for
(
let
i
=
0
;
i
<
this
.
MultipleChoiceList
.
length
;
i
++
)
{
if
(
list
[
j
]
==
this
.
MultipleChoiceList
[
i
].
Id
)
{
item
.
MultipleChoiceList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
MultipleChoiceList
[
i
]))
);
}
}
}
}
}
}
}
if
(
item
.
LossList
.
length
>
0
)
{
}
for
(
let
i
=
0
;
i
<
item
.
LossList
.
length
;
i
++
)
{
if
(
item
.
LossList
.
length
>
0
)
{
for
(
let
j
=
0
;
j
<
item
.
MultipleChoiceList
.
length
;
j
++
)
{
for
(
let
i
=
0
;
i
<
item
.
LossList
.
length
;
i
++
)
{
if
(
for
(
let
j
=
0
;
j
<
item
.
MultipleChoiceList
.
length
;
j
++
)
{
item
.
LossList
[
i
].
OrderType
==
if
(
item
.
MultipleChoiceList
[
j
].
Id
item
.
LossList
[
i
].
OrderType
==
)
{
item
.
MultipleChoiceList
[
j
].
Id
item
.
MultipleChoiceList
[
j
].
show
=
true
;
)
{
}
item
.
MultipleChoiceList
[
j
].
show
=
true
;
}
}
}
}
}
}
});
this
.
OrderList
=
res
.
data
.
data
.
Data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
Data
.
count
;
this
.
TotalMsg
=
res
.
data
.
data
.
StatModel
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
this
.
loading
=
false
},
err
=>
{
this
.
loading
=
false
}
);
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
GetList
();
},
com_onresize
()
{
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
var
contentsHeight
=
document
.
body
.
clientHeight
;
var
h
=
contentsHeight
-
50
-
180
-
40
;
if
(
h
<
110
)
{
return
;
}
}
//设置table的行高
});
this
.
tableHeight
=
h
;
this
.
OrderList
=
res
.
data
.
data
.
Data
.
pageData
;
},
this
.
total
=
res
.
data
.
data
.
Data
.
count
;
this
.
TotalMsg
=
res
.
data
.
data
.
StatModel
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
this
.
loading
=
false
},
err
=>
{
this
.
loading
=
false
}
);
},
},
created
()
{
handleCurrentChange
(
val
)
{
if
(
this
.
$route
.
query
.
OrderId
){
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
this
.
GetList
();
}
let
userInfo
=
this
.
getLocalStorage
();
this
.
employeeMsg
.
GroupId
=
userInfo
.
RB_Group_id
;
//集团ID
// this.msg.EnterID = userInfo.EmployeeId;
},
},
mounted
()
{
com_onresize
()
{
this
.
Title
=
this
.
pagesTitle
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
if
(
this
.
Title
!=
'销售'
){
var
contentsHeight
=
document
.
body
.
clientHeight
;
this
.
getEmployee
()
var
h
=
contentsHeight
-
50
-
180
-
40
;
}
if
(
h
<
110
)
{
this
.
Datelist
=
this
.
getyMDOne
()
return
;
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
GetList
();
//自适应高度调节
this
.
com_onresize
();
window
.
onresize
=
()
=>
{
this
.
com_onresize
();
}
}
//设置table的行高
this
.
tableHeight
=
h
;
},
},
};
},
created
()
{
</
script
>
if
(
this
.
$route
.
query
.
OrderId
){
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
<
style
>
}
let
userInfo
=
this
.
getLocalStorage
();
</
style
>
this
.
employeeMsg
.
GroupId
=
userInfo
.
RB_Group_id
;
//集团ID
// this.msg.EnterID = userInfo.EmployeeId;
\ No newline at end of file
},
mounted
()
{
this
.
Title
=
this
.
pagesTitle
if
(
this
.
Title
!=
'销售'
){
this
.
getEmployee
()
}
this
.
Datelist
=
this
.
getyMDOne
()
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
GetList
();
//自适应高度调节
this
.
com_onresize
();
window
.
onresize
=
()
=>
{
this
.
com_onresize
();
}
},
};
</
script
>
<
style
>
</
style
>
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