Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HotelProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
HotelProject
Commits
367be858
Commit
367be858
authored
Feb 12, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2f0abf77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
214 additions
and
209 deletions
+214
-209
HotelOrder.vue
src/components/assetsman/HotelOrder.vue
+214
-209
No files found.
src/components/assetsman/HotelOrder.vue
View file @
367be858
<
style
>
<
style
>
.commonMoreTable
{
.commonMoreTable
{
width
:
100%
;
width
:
100%
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#000000
;
color
:
#000000
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
}
}
.commonMoreTable
{
.commonMoreTable
{
width
:
100%
;
width
:
100%
;
/* min-width: 1500px; */
/* min-width: 1500px; */
...
@@ -14,13 +15,14 @@
...
@@ -14,13 +15,14 @@
}
}
.commonMoreTable
tr
th
{
.commonMoreTable
tr
th
{
color
:
#000000
;
color
:
#000000
;
height
:
50px
;
height
:
50px
;
font-family
:
"muil"
;
font-family
:
"muil"
;
font-size
:
14px
;
font-size
:
14px
;
text-align
:
left
;
text-align
:
left
;
text-indent
:
15px
;
text-indent
:
15px
;
}
}
.commonMoreTable
tr
td
{
.commonMoreTable
tr
td
{
min-height
:
60px
;
min-height
:
60px
;
height
:
auto
;
height
:
auto
;
...
@@ -29,14 +31,16 @@
...
@@ -29,14 +31,16 @@
font-size
:
12px
;
font-size
:
12px
;
border
:
1px
solid
#E2E4EB
;
border
:
1px
solid
#E2E4EB
;
}
}
.HotelOderName
{
margin-right
:
10px
;
.HotelOderName
{
margin-right
:
10px
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"HotelOrder"
>
<div
class=
"HotelOrder"
>
<div
class=
"routerTitle"
>
<div
class=
"routerTitle"
>
<span
class=
"pageTitle"
>
酒店订单
</span>
<span
class=
"pageTitle"
title=
"酒店订单"
>
ホテル注文
</span>
<span
@
click=
"morequery = !morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
<span
@
click=
"morequery = !morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
class=
"f12 cd6"
>
<span
style=
"margin-right:5px"
>
上位検索
</span>
<span
style=
"margin-right:5px"
>
上位検索
</span>
...
@@ -48,7 +52,8 @@
...
@@ -48,7 +52,8 @@
<div
class=
"padContent"
>
<div
class=
"padContent"
>
<ul
v-show=
"morequery"
class=
"queryul"
>
<ul
v-show=
"morequery"
class=
"queryul"
>
<li>
<li>
<el-select
size=
"small"
v-model=
"msg.HotelId"
placeholder=
"ホテル"
clearable
filterable
@
change=
"getRoomIdList(msg.HotelId)"
>
<el-select
size=
"small"
v-model=
"msg.HotelId"
placeholder=
"ホテル"
clearable
filterable
@
change=
"getRoomIdList(msg.HotelId)"
>
<el-option
label=
"决断"
:value=
"0"
></el-option>
<el-option
label=
"决断"
:value=
"0"
></el-option>
<el-option
v-for=
"item in HotelList"
:key=
"item.SID"
:label=
"item.SHotelName"
:value=
"item.SID"
>
<el-option
v-for=
"item in HotelList"
:key=
"item.SID"
:label=
"item.SHotelName"
:value=
"item.SID"
>
</el-option>
</el-option>
...
@@ -75,38 +80,38 @@
...
@@ -75,38 +80,38 @@
</el-select>
</el-select>
</li>
</li>
<li>
<li>
<el-date-picker
size=
"mini"
v-model=
"msg.StartTime"
:picker-options=
"beforeCheck"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"入居開始日時"
>
<el-date-picker
size=
"mini"
v-model=
"msg.StartTime"
:picker-options=
"beforeCheck"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"入居開始日時"
>
</el-date-picker>
</el-date-picker>
</li>
</li>
<li>
<li>
<el-date-picker
size=
"mini"
v-model=
"msg.EndTime"
:picker-options=
"afterCheck"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"入居終了日時"
>
<el-date-picker
size=
"mini"
v-model=
"msg.EndTime"
:picker-options=
"afterCheck"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"入居終了日時"
>
</el-date-picker>
</el-date-picker>
</li>
</li>
</ul>
</ul>
<table
class=
"commonMoreTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<table
class=
"commonMoreTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<tr>
<th>
酒店名称/星级
</th>
<th
title=
"订单号"
>
注文番号
</th>
<th>
订单号
</th>
<th
title=
"酒店信息"
>
ホテル情報
</th>
<th>
房型名称
</th>
<th
title=
"订房数量"
>
注文数
</th>
<th>
房间数量
</th>
<th
title=
"总金额"
>
総額
</th>
<th>
总金额
</th>
<th
title=
"入住信息"
>
入居情報
</th>
<th>
入住日期
</th>
<th
title=
"联系信息"
>
連絡先情報
</th>
<th>
退房日期
</th>
<th
title=
"订单状态 "
>
注文状態
</th>
<th>
邮箱
</th>
<th
title=
"创建人/创建时间"
>
作成者/作成時間
</th>
<th>
手机号码
</th>
<th
title=
"操作"
>
操作
</th>
<th>
订单来源
</th>
<th>
订单状态
</th>
<th>
预计到店时间
</th>
<th>
创建人/创建时间
</th>
<th>
操作
</th>
</tr>
</tr>
<tbody
v-for=
"(item,index) in dataList"
:key=
"index"
>
<tbody
v-for=
"(item,index) in dataList"
:key=
"index"
>
<tr>
<tr>
<td
rowspan=
"2"
>
{{
item
.
OrderId
}}
</td>
<td
rowspan=
"2"
>
<td
rowspan=
"2"
>
{{
item
.
SHotelName
}}
/
{{
item
.
SHotelStar
}}
<span
class=
"colorRed"
>
{{
item
.
SHotelName
}}
</span>
<br
/>
型の名称:
<span
title=
"房型信息"
class=
"colorRed"
>
{{
item
.
RoomName
}}
</span>
<br
/>
星:
<span
title=
"酒店星级"
class=
"colorRed"
>
{{
item
.
SHotelStar
}}
星
</span>
</td>
</td>
<td>
{{
item
.
OrderId
}}
</td>
<td>
{{
item
.
RoomName
}}
</td>
<td>
{{
item
.
RoomNum
}}
</td>
<td>
{{
item
.
RoomNum
}}
</td>
<td>
<td>
<el-popover
width=
"300"
trigger=
"click"
>
<el-popover
width=
"300"
trigger=
"click"
>
...
@@ -125,32 +130,40 @@
...
@@ -125,32 +130,40 @@
</span>
</span>
</el-popover>
</el-popover>
</td>
</td>
<td>
{{
item
.
CheckInDate
}}
</td>
<td>
{{
item
.
CheckOutDate
}}
</td>
<td>
{{
item
.
Email
}}
</td>
<td>
{{
item
.
Mobile
}}
</td>
<td>
<td>
{{
item
.
OrderForm
==
1
?
'同行'
:
'直客'
}}
入居期日:
<span
title=
"入住日期"
class=
"colorRed"
>
{{
item
.
CheckInDate
}}
</span>
<br
/>
チェックアウト日時:
<span
title=
"退房日期"
class=
"colorRed"
>
{{
item
.
CheckOutDate
}}
</span>
<br
/>
お店まで時間を取る予定です:
<span
title=
"预计到店时间"
class=
"colorRed"
>
{{
item
.
PredictTime
}}
</span>
</td>
<td>
邮箱:
{{
item
.
Email
}}
<br
/>
电话:
{{
item
.
Mobile
}}
</td>
</td>
<td>
<td>
<!--
{{
item
.
OrderForm
==
1
?
'同行'
:
'直客'
}}
-->
{{
item
.
OrderStatus
==
1
?
'正常'
:
'取消'
}}
{{
item
.
OrderStatus
==
1
?
'正常'
:
'取消'
}}
</td>
</td>
<td>
{{
item
.
PredictTime
}}
</td>
<td>
<td>
{{
item
.
EmName
}}
/
{{
item
.
CreateTime
}}
{{
item
.
EmName
}}
/
{{
item
.
CreateTime
}}
</td>
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"キャンセル"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"キャンセル"
placement=
"top"
>
<img
@
click=
"DeleteOrder(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/qx.png"
alt=
""
/>
<img
@
click=
"DeleteOrder(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/qx.png"
alt=
""
/>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"キャンセル"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"キャンセル"
placement=
"top"
>
<img
@
click=
"OperationCaozuo(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/czrz.png"
alt=
""
/>
<img
@
click=
"OperationCaozuo(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/czrz.png"
alt=
""
/>
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"13"
>
<td
colspan=
"13"
>
旅客名单:
<span
class=
"HotelOderName"
v-for=
"(subItem,subIndex) in item.GuestList"
:key=
"subIndex"
>
{{
subItem
.
Name
}}
</span>
旅客名单:
<span
class=
"HotelOderName"
v-for=
"(subItem,subIndex) in item.GuestList"
:key=
"subIndex"
>
{{
subItem
.
Name
}}
</span>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -161,20 +174,9 @@
...
@@ -161,20 +174,9 @@
</div>
</div>
<!-- 操作日志 -->
<!-- 操作日志 -->
<el-dialog
<el-dialog
title=
"操作日志"
:visible
.
sync=
"caozuoState"
top=
"0"
width=
"600px"
>
title=
"操作日志"
<table
style=
"min-width:100%"
class=
"myTable miniTable"
v-loading=
"loading2"
border=
"0"
cellspacing=
"0"
:visible
.
sync=
"caozuoState"
cellpadding=
"0"
>
top=
"0"
width=
"600px"
>
<table
style=
"min-width:100%"
class=
"myTable miniTable"
v-loading=
"loading2"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<thead>
<thead>
<th
width=
'200'
>
内容
</th>
<th
width=
'200'
>
内容
</th>
<th>
创建人
</th>
<th>
创建人
</th>
...
@@ -193,13 +195,8 @@
...
@@ -193,13 +195,8 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<el-pagination
<el-pagination
@
current-change=
"currentChange1"
background
:page-size=
"opMsg.pageSize"
layout=
"prev, pager, next"
@
current-change=
"currentChange1"
:total=
"total1"
>
background
:page-size=
"opMsg.pageSize"
layout=
"prev, pager, next"
:total=
"total1"
>
</el-pagination>
</el-pagination>
</el-dialog>
</el-dialog>
<!-- -->
<!-- -->
...
@@ -217,33 +214,33 @@
...
@@ -217,33 +214,33 @@
morequery
:
false
,
morequery
:
false
,
total
:
0
,
total
:
0
,
//酒店下拉数据
//酒店下拉数据
HotelList
:[],
HotelList
:
[],
//房型下拉数据
//房型下拉数据
RoomTypeList
:[],
RoomTypeList
:
[],
//操作日志数据
//操作日志数据
OperationList
:[],
OperationList
:
[],
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
HotelId
:
0
,
HotelId
:
0
,
RoomId
:
0
,
RoomId
:
0
,
RoomType
:
''
,
RoomType
:
''
,
StartTime
:
""
,
StartTime
:
""
,
EndTime
:
""
,
EndTime
:
""
,
OrderStatus
:
0
,
OrderStatus
:
0
,
},
},
caozuoState
:
false
,
caozuoState
:
false
,
loading2
:
false
,
loading2
:
false
,
//根据hotelid获取roomid
//根据hotelid获取roomid
roomIdList
:[],
roomIdList
:
[],
isShowRoom
:
false
,
isShowRoom
:
false
,
total1
:
0
,
total1
:
0
,
//操作日志msg
//操作日志msg
opMsg
:{
opMsg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
5
,
pageSize
:
5
,
SourceId
:
''
,
SourceId
:
''
,
Type
:
1
Type
:
1
},
},
beforeCheck
:
{
beforeCheck
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
...
@@ -278,13 +275,13 @@
...
@@ -278,13 +275,13 @@
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
this
.
getList
();
},
},
currentChange1
(
val
){
currentChange1
(
val
)
{
this
.
opMsg
.
pageIndex
=
val
;
this
.
opMsg
.
pageIndex
=
val
;
this
.
Operation
();
this
.
Operation
();
},
},
//获取酒店下拉数据
//获取酒店下拉数据
getHotelList
()
{
getHotelList
()
{
let
msg
=
{
let
msg
=
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
100
,
pageSize
:
100
,
};
};
...
@@ -298,21 +295,21 @@
...
@@ -298,21 +295,21 @@
});
});
},
},
//获取房型数据
//获取房型数据
getRoomIdList
(
HotelId
){
getRoomIdList
(
HotelId
)
{
if
(
HotelId
>
0
)
{
if
(
HotelId
>
0
)
{
this
.
isShowRoom
=
true
this
.
isShowRoom
=
true
}
else
{
}
else
{
this
.
isShowRoom
=
false
this
.
isShowRoom
=
false
}
}
let
msg
=
{
let
msg
=
{
HotelId
:
HotelId
,
HotelId
:
HotelId
,
RoomType
:
0
,
RoomType
:
0
,
RoomStatus
:
0
RoomStatus
:
0
}
}
this
.
apipost
(
"scm_get_GetSCMHotelRoomDropList"
,
msg
,
this
.
apipost
(
"scm_get_GetSCMHotelRoomDropList"
,
msg
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'ressss'
)
console
.
log
(
res
,
'ressss'
)
this
.
roomIdList
=
res
.
data
.
data
;
this
.
roomIdList
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
...
@@ -330,10 +327,10 @@
...
@@ -330,10 +327,10 @@
});
});
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
"scm_get_GetSCMHotelOrderPageList"
,
this
.
msg
,
this
.
apipost
(
"scm_get_GetSCMHotelOrderPageList"
,
this
.
msg
,
res
=>
{
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
...
@@ -352,14 +349,16 @@
...
@@ -352,14 +349,16 @@
})
})
},
},
//删除订单
//删除订单
DeleteOrder
(
item
){
DeleteOrder
(
item
)
{
this
.
$confirm
(
"この部屋のタイプを削除しますか?"
,
"ヒント"
,
{
this
.
$confirm
(
"この部屋のタイプを削除しますか?"
,
"ヒント"
,
{
confirmButtonText
:
"を選択します"
,
confirmButtonText
:
"を選択します"
,
cancelButtonText
:
"キャンセル"
,
cancelButtonText
:
"キャンセル"
,
type
:
"warning"
type
:
"warning"
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
apipost
(
"scm_post_DelSCMHotelOrder"
,
{
OrderId
:
item
.
OrderId
},
this
.
apipost
(
"scm_post_DelSCMHotelOrder"
,
{
OrderId
:
item
.
OrderId
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
this
.
getList
();
...
@@ -372,19 +371,19 @@
...
@@ -372,19 +371,19 @@
this
.
$message
.
info
(
"削除しました"
);
this
.
$message
.
info
(
"削除しました"
);
});
});
},
},
OperationCaozuo
(
item
){
OperationCaozuo
(
item
)
{
this
.
caozuoState
=
true
;
this
.
caozuoState
=
true
;
this
.
opMsg
.
SourceId
=
item
.
OrderId
;
this
.
opMsg
.
SourceId
=
item
.
OrderId
;
this
.
Operation
();
this
.
Operation
();
},
},
//获取操作日志
//获取操作日志
Operation
(){
Operation
()
{
this
.
loading2
=
true
;
this
.
loading2
=
true
;
this
.
apipost
(
"scm_get_GetSCMOrderLogPageList"
,
this
.
opMsg
,
this
.
apipost
(
"scm_get_GetSCMOrderLogPageList"
,
this
.
opMsg
,
res
=>
{
res
=>
{
this
.
loading2
=
false
;
this
.
loading2
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'resssss'
);
console
.
log
(
res
,
'resssss'
);
this
.
OperationList
=
res
.
data
.
data
.
pageData
;
this
.
OperationList
=
res
.
data
.
data
.
pageData
;
this
.
total1
=
res
.
data
.
data
.
count
;
this
.
total1
=
res
.
data
.
data
.
count
;
}
else
{
}
else
{
...
@@ -395,10 +394,16 @@
...
@@ -395,10 +394,16 @@
}
}
}
}
};
};
</
script
>
</
script
>
<
style
>
<
style
>
.HotelOrder
{
.HotelOrder
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
.HotelOrder
.colorRed
{
color
:
red
;
}
</
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