187 lines
12 KiB
HTML
187 lines
12 KiB
HTML
<div>
|
|
<div class="row">
|
|
<div class="col-md-2 padding-r-0">
|
|
<div class=" border-radius ">
|
|
<div class="margin-xs-r treeview attendance-staff">
|
|
<ul class="list-group text-center border-radius" v-if="reserveDiningManageInfo.catalogs && reserveDiningManageInfo.catalogs.length>0">
|
|
<!-- -->
|
|
<li class="list-group-item node-orgTree " v-for="(item,index) in reserveDiningManageInfo.catalogs" @click="swatchReserveCatalog(item)" :class="{'vc-node-selected':reserveDiningManageInfo.conditions.catalogId==item.catalogId}">
|
|
{{item.name}}
|
|
</li>
|
|
</ul>
|
|
<ul class="list-group text-center border-radius" v-else>
|
|
<!-- -->
|
|
<li class="list-group-item node-orgTree " @click="_addCatalog()">
|
|
<vc:i18n name="添加目录" namespace="reserveDiningManage"></vc:i18n>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-10">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="ibox ">
|
|
<div class="ibox-title">
|
|
<h5>
|
|
<vc:i18n name="查询条件" namespace="reserveDiningManage"></vc:i18n>
|
|
</h5>
|
|
<div class="ibox-tools" style="top:10px;">
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<div class="form-group">
|
|
<input type="text" :placeholder="vc.i18n('请选择商品ID','reserveDiningManage')" v-model="reserveDiningManageInfo.conditions.goodsId" class=" form-control">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<div class="form-group">
|
|
<input type="text" :placeholder="vc.i18n('请选择商品名称','reserveDiningManage')" v-model="reserveDiningManageInfo.conditions.goodsName" class=" form-control">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<select class="custom-select" v-model="reserveDiningManageInfo.conditions.state">
|
|
<option selected disabled value="">{{vc.i18n('请选择状态','reserveDiningManage')}}
|
|
</option>
|
|
<option value="1001">{{vc.i18n('未上架','reserveDiningManage')}}</option>
|
|
<option value="2002">{{vc.i18n('上架','reserveDiningManage')}}</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-1">
|
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryReserveDiningMethod()">
|
|
<i class="glyphicon glyphicon-search"></i> <span>
|
|
<vc:i18n name="查询" namespace="reserveDiningManage"></vc:i18n>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="ibox">
|
|
<div class="ibox-title">
|
|
<h5>
|
|
<vc:i18n name="预约就餐" namespace="reserveDiningManage"></vc:i18n>
|
|
</h5>
|
|
<div class="ibox-tools" style="top:10px;">
|
|
<button type="button" class="btn btn-white btn-sm" v-on:click="_doOwnerDining()">
|
|
<vc:i18n name="就餐统计" namespace="reserveDiningManage"></vc:i18n>
|
|
</button>
|
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="_doDining()">
|
|
<vc:i18n name="就餐" namespace="reserveDiningManage"></vc:i18n>
|
|
</button>
|
|
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddReserveDiningModal()">
|
|
<vc:i18n name="添加" namespace="reserveDiningManage"></vc:i18n>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">
|
|
<vc:i18n name='商品封面' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='名称(编号)' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='参数' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='预约方式' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='预约次数' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='预约数量' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='单价' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='有效期' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='开始预约时间' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='排序' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='状态' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
<th class="text-center">
|
|
<vc:i18n name='操作' namespace='reserveDiningManage'></vc:i18n>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="reserveDining in reserveDiningManageInfo.reserveDinings">
|
|
<td class="text-center" v-if="reserveDining.imgUrl">
|
|
<img style="width: 60px; height: 60px; border-radius: 5px;" v-bind:src="reserveDining.imgUrl"></img>
|
|
</td>
|
|
<td class="text-center" v-else>
|
|
<img style="width: 60px; height: 60px; border-radius: 5px;" src="/img/noPhoto.jpg">
|
|
</td>
|
|
<td class="text-center">{{reserveDining.goodsName}}({{reserveDining.goodsId}})
|
|
</td>
|
|
<td class="text-center">{{reserveDining.paramsName}}</td>
|
|
<td class="text-center">{{reserveDining.paramWay == '1'?'日':'周'}}</td>
|
|
|
|
<td class="text-center">{{reserveDining.maxQuantity}}</td>
|
|
<td class="text-center">{{reserveDining.hoursMaxQuantity}}</td>
|
|
<td class="text-center">{{reserveDining.price}}</td>
|
|
<td class="text-center">{{reserveDining.startDate}}~{{reserveDining.endDate}}
|
|
</td>
|
|
<td class="text-center">{{reserveDining.startTime}}</td>
|
|
<td class="text-center">{{reserveDining.sort}}</td>
|
|
<td class="text-center">{{reserveDining.state=='1001'?'未上线':'上线'}}</td>
|
|
<td class="text-center">
|
|
<div class="btn-group">
|
|
<button class="btn-white btn btn-xs" v-on:click="_openReserveDiningPersonModel(reserveDining)"><span>
|
|
<vc:i18n name='预约就餐' namespace='reserveDiningManage'></vc:i18n>
|
|
</span></button>
|
|
</div>
|
|
<div class="btn-group">
|
|
<button class="btn-white btn btn-xs" v-on:click="_openEditReserveDiningModel(reserveDining)"><span>
|
|
<vc:i18n name='修改' namespace='reserveDiningManage'></vc:i18n>
|
|
</span></button>
|
|
</div>
|
|
<div class="btn-group">
|
|
<button class="btn-white btn btn-xs" v-on:click="_openDeleteReserveDiningModel(reserveDining)"><span>
|
|
<vc:i18n name='删除' namespace='reserveDiningManage'></vc:i18n>
|
|
</span></button>
|
|
</div>
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="7">
|
|
<ul class="pagination float-right"></ul>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
<!-- 分页 -->
|
|
<vc:create path="frame/pagination"></vc:create>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<vc:create path="reserve/addReserveDiningPerson"></vc:create>
|
|
<vc:create path="reserve/deleteReserveDining"></vc:create>
|
|
|
|
|
|
</div> |