Commit 6e6b3411 by YG8999

管理系统房间添加上下架功能

parent c4613614
......@@ -125,6 +125,11 @@
<dict-tag :options="dict.type.store_room_status" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="房间上下架" align="center" prop="roomStat" width="100">
<template slot-scope="scope">
<dict-tag :options="dict.type.store_room_stat" :value="scope.row.roomStat"/>
</template>
</el-table-column>
<el-table-column label="房间单价" width="80" align="center" prop="price" />
<el-table-column label="套餐" align="center" prop="packIds" width="250">
<template slot-scope="scope">
......@@ -171,7 +176,7 @@
/>
<!-- 添加或修改房间对话框 -->
<el-dialog :title="title" :visible.sync="open" width="50%" append-to-body>
<el-dialog :title="title" :visible.sync="open" width="60%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="所属门店" prop="storeId">
<el-select v-model="form.storeId" placeholder="请选择所属门店">
......@@ -216,10 +221,10 @@
<el-form-item label="房间单价" prop="price" required>
<el-input v-model="form.price" placeholder="请输入房间单价(默认单位:元/小时)" />
</el-form-item>
<el-form-item label="房间状态" prop="status">
<el-radio-group v-model="form.status">
<el-form-item label="房间上下架" prop="roomStat">
<el-radio-group v-model="form.roomStat">
<el-radio
v-for="dict in dict.type.store_room_status"
v-for="dict in dict.type.store_room_stat"
:key="dict.value"
:label="dict.value"
>{{ dict.label }}
......@@ -295,7 +300,7 @@ export default {
components: {
RoomDevice,
},
dicts: ['store_room_status', 'store_room_type','indoor_facilities'],
dicts: ['store_room_status', 'store_room_type','indoor_facilities', 'store_room_stat'],
data() {
return {
// 遮罩层
......@@ -337,7 +342,7 @@ export default {
price: null,
doorLockCode: null,
electricControlCode: null,
password: null,
roomStat: null,
params1: null,
params2: null,
},
......@@ -440,7 +445,7 @@ export default {
images: null,
facilities: null,
info: null,
status: "0",
roomStat: '1',
price: null,
packIds:'',
doorLockCode: null,
......
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