|
|
|
@ -188,6 +188,35 @@ use common\models\PriceT; |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="ibox float-e-margins"> |
|
|
|
|
<div class="ibox-title"> |
|
|
|
|
<h5>礼券信息</h5> |
|
|
|
|
<div class="ibox-tools"> |
|
|
|
|
<a class="btn btn-primary btn-xs edit-btn" data-id="0" href="javascript:void(0);" onclick="$('#giftTable').bootstrapTable('refresh');"> |
|
|
|
|
<i class="fa fa-refresh"></i> 刷新 |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="ibox-content"> |
|
|
|
|
<table id="giftTable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th width="50" data-field="id">ID</th> |
|
|
|
|
<th data-field="code">礼券编号</th> |
|
|
|
|
<th data-field="name">礼品</th> |
|
|
|
|
<th data-field="car_no">车牌号</th> |
|
|
|
|
<th data-field="car_frame_no">车架号</th> |
|
|
|
|
<th data-field="input_date">发放日期</th> |
|
|
|
|
<th data-field="end_date">有效期日期</th> |
|
|
|
|
<th data-field="submit_user">提单人</th> |
|
|
|
|
<th data-field="use_date">使用日期1</th> |
|
|
|
|
<th data-field="status">状态</th> |
|
|
|
|
<th data-field="username">操作员</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="ibox float-e-margins"> |
|
|
|
|
<div class="ibox-title"> |
|
|
|
|
<h5>其他信息</h5> |
|
|
|
@ -257,6 +286,20 @@ use common\models\PriceT; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
function searchGifts() { |
|
|
|
|
$('#giftTable').bootstrapTable('destroy'); |
|
|
|
|
$('#giftTable').bootstrapTable({ |
|
|
|
|
url: "/gift/ticket-use-json", |
|
|
|
|
pagination: true, |
|
|
|
|
sidePagination: 'server', |
|
|
|
|
queryParams: function(params) { |
|
|
|
|
o['order_id'] = '<?=$order_info->id?>';
|
|
|
|
|
o['limit'] = params['limit']; |
|
|
|
|
o['offset'] = params['offset']; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
//保存订单 |
|
|
|
|
function saveOrder(status_id) { |
|
|
|
|
var params = $('#orderFrm').serialize(); |
|
|
|
@ -287,6 +330,7 @@ use common\models\PriceT; |
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
|
|
searchOps(); |
|
|
|
|
searchGifts(); |
|
|
|
|
$('.btn-return').click(function(){ |
|
|
|
|
var remark = $('#return_remark').val(); |
|
|
|
|
if(remark === '') { |
|
|
|
|