Pārlūkot izejas kodu

管理后台-未来7天排座:新增预定方式字段

panyong 3 gadi atpakaļ
vecāks
revīzija
2c51f17c13

+ 7 - 0
htmldev/manage/src/views/business/place/set/details.vue

@@ -46,6 +46,12 @@
                     @input="form.place_user_max=form.place_user_max.replace(/[^\d]/g, '').replace(/^0*/, '')"
                     clearable></el-input>
         </el-form-item>
+        <el-form-item label="预定方式:" required>
+          <el-select v-model="form.place_pre_type">
+            <el-option label="整桌预定" :value="0"></el-option>
+            <el-option label="座位预定" :value="1"></el-option>
+          </el-select>
+        </el-form-item>
         <el-form-item prop="place_price"
                       :rules="formRules.numPot2"
                       label="单价(元):">
@@ -160,6 +166,7 @@ export default {
         place_name: '', // 座位名称
         place_desc: '', // 座位描述
         place_user_max: '', // 最多到店人数
+        place_pre_type: 0, // 预定方式
         place_price: '', // 座位价格(单位为分)
         place_latest_time: '', // 最晚到店时间,回传后端时间格式要求2021-05-23 21:15:00
         place_max_time: '', // 最晚保留时间

+ 5 - 0
htmldev/manage/src/views/business/place/set/index.vue

@@ -40,6 +40,11 @@
       <el-table-column label="ID" prop="id" width="80"></el-table-column>
       <el-table-column label="座位名称" prop="place_name"></el-table-column>
       <el-table-column label="说明" prop="place_desc"></el-table-column>
+      <el-table-column label="预定方式">
+        <template slot-scope="scope">
+          <p>{{ ['整桌预定', '座位预定'][scope.row.place_pre_type] }}</p>
+        </template>
+      </el-table-column>
       <el-table-column label="总数量" prop="place_num" width="80"></el-table-column>
       <el-table-column label="已预定" prop="place_pre_num" width="80"></el-table-column>
       <el-table-column label="单桌人数" prop="place_user_max" width="80"></el-table-column>

+ 1 - 1
htmldev/manage/src/views/business/pms/goods/index.vue

@@ -164,7 +164,7 @@
       </el-table-column>
       <el-table-column label="是否售罄">
         <template slot-scope="scope">
-          <p>{{ ['否', '是'][scope.row.is_sell_out] }}</p>
+          <p>{{ ['供应中', '售罄'][scope.row.is_sell_out] }}</p>
         </template>
       </el-table-column>
       <el-table-column label="是否上架" width="100">