|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div>
|
3
|
3
|
<el-form :inline="true" :model="listQuery" class="form-listQuery">
|
4
|
4
|
<el-form-item class="filter-item" label="房型编号">
|
5
|
|
- <el-input v-model="listQuery.roomNo" placeholder="房型编号"/>
|
|
5
|
+ <el-input v-model="listQuery.id" placeholder="房型编号"/>
|
6
|
6
|
</el-form-item>
|
7
|
7
|
<el-form-item class="filter-item" label="房型名称">
|
8
|
8
|
<el-input v-model="listQuery.roomName" placeholder="房型名称"/>
|
|
@@ -16,7 +16,7 @@
|
16
|
16
|
<el-option label="已下架" value="2"/>
|
17
|
17
|
</el-select>
|
18
|
18
|
</el-form-item>
|
19
|
|
- <el-form-item class="filter-item" label="预订日期从">
|
|
19
|
+ <!-- <el-form-item class="filter-item" label="预订日期从">
|
20
|
20
|
<el-date-picker
|
21
|
21
|
v-model="listQuery.beginTime"
|
22
|
22
|
type="date"
|
|
@@ -28,7 +28,7 @@
|
28
|
28
|
type="date"
|
29
|
29
|
placeholder="年-月-日">
|
30
|
30
|
</el-date-picker>
|
31
|
|
- </el-form-item>
|
|
31
|
+ </el-form-item> -->
|
32
|
32
|
<el-form-item>
|
33
|
33
|
<el-button type="info" class="filter-item" @click="handleFilter">清空</el-button>
|
34
|
34
|
<el-button type="primary" @click="search">查询</el-button>
|
|
@@ -53,17 +53,28 @@
|
53
|
53
|
<el-table-column
|
54
|
54
|
type="selection"
|
55
|
55
|
width="55"/>
|
56
|
|
- <el-table-column prop="roomNo" label="编号" align="center"/>
|
|
56
|
+ <el-table-column prop="id" label="编号" align="center"/>
|
57
|
57
|
<el-table-column prop="roomName" label="房屋名称" align="center">
|
58
|
58
|
<template slot-scope="scope" >
|
59
|
|
- <a :title="scope.row.roomName" @click="clickTitle(scope.row.id)" style="color: #009FCC">
|
60
|
|
- {{ scope.row.roomName}}
|
61
|
|
- </a>
|
|
59
|
+ <a v-if="scope.row.roomStatus==='1'">
|
|
60
|
+ <span :title="scope.row.roomName" @click="clickTitle(scope.row.id)" style="color: #009FCC">
|
|
61
|
+ {{ scope.row.roomName}}
|
|
62
|
+ </span>
|
|
63
|
+ </a>
|
|
64
|
+ <a v-if="scope.row.roomStatus==='2'">
|
|
65
|
+ <span :title="scope.row.roomName" @click="clickTitle(scope.row.id)" style="color:#BDBDBD">
|
|
66
|
+ {{ scope.row.roomName}}
|
|
67
|
+ </span>
|
|
68
|
+ </a>
|
62
|
69
|
</template>
|
63
|
70
|
</el-table-column>
|
64
|
71
|
<el-table-column prop="sort" label="权重" align="center"/>
|
65
|
72
|
<el-table-column prop="price" label="房型价格" align="center"/>
|
66
|
|
- <el-table-column prop="roomStatus" label="上架状态" align="center"><template slot-scope="scope">{{ scope.row.roomStatus=='1'?'已上架':'已下架' }}</template></el-table-column>
|
|
73
|
+ <el-table-column prop="roomStatus" label="上架状态" align="center">
|
|
74
|
+ <template slot-scope="scope">
|
|
75
|
+ <span v-if="scope.row.roomStatus==='1'">已上架</span>
|
|
76
|
+ <span v-if="scope.row.roomStatus==='2'" style="color:#BDBDBD">已下架</span>
|
|
77
|
+ </template></el-table-column>
|
67
|
78
|
<el-table-column prop="editUser" label="编辑人" align="center"/>
|
68
|
79
|
<el-table-column prop="createDate" label="时间" align="center"><template slot-scope="scope">{{ formatDate(scope.row.updateDate) }}</template></el-table-column>
|
69
|
80
|
|
|
@@ -78,7 +89,6 @@
|
78
|
89
|
@size-change="handleSizeChange"
|
79
|
90
|
@current-change="handleCurrentChange"/>
|
80
|
91
|
</div>
|
81
|
|
-
|
82
|
92
|
</div>
|
83
|
93
|
|
84
|
94
|
</template>
|
|
@@ -200,9 +210,15 @@ export default {
|
200
|
210
|
clickTitle(ids){
|
201
|
211
|
this.$router.push({ name: 'grogshop-grogshopRoomEdit', query: { id: ids}})
|
202
|
212
|
},
|
203
|
|
- enditRoom(){
|
204
|
|
- const ids = this.deleteIds
|
|
213
|
+ enditRoom(statusId){
|
|
214
|
+ const ids = this.deleteIds
|
|
215
|
+ if (ids.length < 1) {
|
|
216
|
+ this.$message.error('请选择一行数据进行修改!')
|
|
217
|
+ return
|
|
218
|
+ }
|
|
219
|
+
|
205
|
220
|
this.listQuery.roomStatusIds = ids
|
|
221
|
+ this.listQuery.roomStatus = statusId
|
206
|
222
|
this.$store.dispatch('HotelRoomRoomStatus', this.listQuery).then((res) => {
|
207
|
223
|
this.$message({
|
208
|
224
|
message: '成功',
|