|
@@ -48,19 +48,19 @@
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label" style="top: -4.5px">搜索</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" name="store_name" class="layui-input" placeholder="订单号,账号,昵称,编号">
|
|
|
+ <input id="store_name" type="text" name="store_name" class="layui-input" placeholder="订单号,账号,昵称,编号">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label" style="top: -4.5px">商品名称</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" name="product_name" class="layui-input" placeholder="商品名称">
|
|
|
+ <input type="text" id="product_name" name="product_name" class="layui-input" placeholder="商品名称">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label" style="top: -4.5px">所有场次</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <select name="auction_id">
|
|
|
+ <select id="auction_id" name="auction_id">
|
|
|
<option value=" ">全部</option>
|
|
|
{volist name='auction' id='vo'}
|
|
|
<option value="{$vo.id}">{$vo.nickname}</option>
|
|
@@ -71,7 +71,7 @@
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label" style="top: -4.5px">所有场馆</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <select name="gu_id">
|
|
|
+ <select id="gu_id" name="gu_id">
|
|
|
<option value=" ">全部</option>
|
|
|
{volist name='gu' id='vo'}
|
|
|
<option value="{$vo.id}">{$vo.name}</option>
|
|
@@ -90,19 +90,21 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <label class="layui-form-label">创建时间:</label>
|
|
|
- <div class="layui-input-block" data-type="data" v-cloak="">
|
|
|
- <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList"
|
|
|
- @click="setData(item)"
|
|
|
- :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}
|
|
|
- </button>
|
|
|
- <button class="layui-btn layui-btn-sm" type="button" ref="time"
|
|
|
- @click="setData({value:'zd',is_zd:true})"
|
|
|
- :class="{'layui-btn-primary':where.data!='zd'}">自定义
|
|
|
- </button>
|
|
|
- <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
|
|
|
- v-show="showtime==true" ref="date_time">{$year.0} - {$year.1}
|
|
|
- </button>
|
|
|
+ <div class="layui-col-lg12">
|
|
|
+ <label class="layui-form-label">创建时间:</label>
|
|
|
+ <div class="layui-input-block" data-type="data" v-cloak="">
|
|
|
+ <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList"
|
|
|
+ @click="setData(item)"
|
|
|
+ :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}
|
|
|
+ </button>
|
|
|
+ <button class="layui-btn layui-btn-sm" type="button" ref="time"
|
|
|
+ @click="setData({value:'zd',is_zd:true})"
|
|
|
+ :class="{'layui-btn-primary':where.data!='zd'}">自定义
|
|
|
+ </button>
|
|
|
+ <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
|
|
|
+ v-show="showtime==true" ref="date_time">{$year.0} - {$year.1}
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<button @click="excel" type="button"
|
|
|
class="layui-btn layui-btn-warm layui-btn-sm export" type="button">
|
|
@@ -316,12 +318,22 @@
|
|
|
showtime: false,
|
|
|
},
|
|
|
watch: {
|
|
|
- 'where.store_name': function () {
|
|
|
+ 'where.status': function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ },
|
|
|
+ 'where.data': function () {
|
|
|
+ this.where.excel = 0;
|
|
|
+ this.getBadge();
|
|
|
+ layList.reload(this.where, true);
|
|
|
+ },
|
|
|
+ 'where.type': function () {
|
|
|
this.where.excel = 0;
|
|
|
this.getBadge();
|
|
|
layList.reload(this.where, true);
|
|
|
},
|
|
|
- 'where.product_name': function () {
|
|
|
+ 'where.pay_type': function () {
|
|
|
this.where.excel = 0;
|
|
|
this.getBadge();
|
|
|
layList.reload(this.where, true);
|
|
@@ -354,7 +366,14 @@
|
|
|
this.getBadge();
|
|
|
},
|
|
|
excel: function () {
|
|
|
- console.log(11111);
|
|
|
+ var store_name = $('#store_name').val();
|
|
|
+ var product_name = $('#product_name').val();
|
|
|
+ var auction_id = $('#auction_id').val();
|
|
|
+ var gu_id = $('#gu_id').val();
|
|
|
+ this.where['store_name'] = store_name;
|
|
|
+ this.where['product_name'] = product_name;
|
|
|
+ this.where['auction_id'] = auction_id;
|
|
|
+ this.where['gu_id'] = gu_id;
|
|
|
this.where.excel = 1;
|
|
|
location.href = layList.U({c: 'Auction.auction_order', a: 'list', q: this.where});
|
|
|
this.where.excel = 0;
|