Commit f50467e2 authored by youjie's avatar youjie

no message

parent 5dd93d0b
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
:height="tableHeight"> :height="tableHeight">
<el-table-column fixed label="酒店名称" min-width="180"> <el-table-column fixed label="酒店名称" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="text-decoration: underline;cursor:pointer" @click="GotoHotel(scope.row.HotelId)"> <!-- @click="GotoHotel(scope.row.HotelId)" -->
<div style="text-decoration: underline;cursor:pointer" @click="showHotelDetailHandler(scope.row.HotelId)">
{{scope.row.HotelName}}</div> {{scope.row.HotelName}}</div>
<div>{{scope.row.TotalInventory}}</div> <div>{{scope.row.TotalInventory}}</div>
</template> </template>
...@@ -247,21 +248,28 @@ ...@@ -247,21 +248,28 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 暂存购物车 --> <!-- 暂存购物车 -->
<el-dialog custom-class="w800" title="酒店信息" :visible.sync="showOrderPreview" center> <el-dialog custom-class="w800" title="酒店信息" :visible.sync="showOrderPreview" center @close="removeEditor">
<TableOperation :editorType="editorType" :HotelRow="orderSubmitObj" :hotelInfor="orderSubmitItemObj" @close="close"></TableOperation> <TableOperation :editorType="editorType" :HotelRow="orderSubmitObj" :hotelInfor="orderSubmitItemObj" @close="close"></TableOperation>
</el-dialog> </el-dialog>
<!-- 购物车 --> <!-- 购物车 -->
<ListCar v-if="rightCarOpen" @close="close" @success="success" @editor="editor"></ListCar> <ListCar v-if="rightCarOpen" @close="close" @success="success" @editor="editor"></ListCar>
<!-- 酒店详情信息 -->
<el-dialog custom-class="w700" title="酒店详情" :visible.sync="showHotelDetails" center @close="close">
<hotelDetails :hotelId="HotelDetailId"></hotelDetails>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import SamplePriceList from './components/SamplePriceList' import SamplePriceList from './components/SamplePriceList'
import TableOperation from './components/TableOperation' import TableOperation from './components/TableOperation'
import ListCar from './components/ListCar' import ListCar from './components/ListCar'
import hotelDetails from './components/hotelDetails'
export default { export default {
components: { SamplePriceList,TableOperation,ListCar }, components: { SamplePriceList,TableOperation,ListCar,hotelDetails },
data() { data() {
return { return {
showHotelDetails: false,
HotelDetailId: 0,
editorType:0, editorType:0,
rightCarOpen: false, rightCarOpen: false,
HotelLength: 0, HotelLength: 0,
...@@ -374,6 +382,14 @@ ...@@ -374,6 +382,14 @@
}; };
}, },
methods: { methods: {
removeEditor(){
localStorage.removeItem('editor')
},
// 酒店信息详情
showHotelDetailHandler(hotelId){
this.HotelDetailId = hotelId
this.showHotelDetails = true
},
// 编辑购物车 // 编辑购物车
editor(x){ editor(x){
let state = true let state = true
...@@ -411,6 +427,7 @@ ...@@ -411,6 +427,7 @@
this.showOrderPreview = false this.showOrderPreview = false
this.rightCarOpen = false this.rightCarOpen = false
this.showHotelDetails = false
localStorage.removeItem("editor") localStorage.removeItem("editor")
}, },
// 加入购物车 // 加入购物车
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment