parent
71a4fc3f82
commit
ddd4e9212b
@ -0,0 +1,63 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace common\models; |
||||||
|
|
||||||
|
use Yii; |
||||||
|
|
||||||
|
/** |
||||||
|
* This is the model class for table "car_log_t". |
||||||
|
* |
||||||
|
* @property integer $id |
||||||
|
* @property integer $car_id |
||||||
|
* @property string $op_man |
||||||
|
* @property integer $op_time |
||||||
|
* @property string $group_name |
||||||
|
* @property integer $type |
||||||
|
* @property string $remark |
||||||
|
* @property string $info |
||||||
|
* @property string $created_at |
||||||
|
* @property string $updated_at |
||||||
|
*/ |
||||||
|
class GiftUseLogT extends \common\models\Base |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @inheritdoc |
||||||
|
*/ |
||||||
|
public static function tableName() |
||||||
|
{ |
||||||
|
return 'gift_use_log_t'; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @inheritdoc |
||||||
|
*/ |
||||||
|
public function rules() |
||||||
|
{ |
||||||
|
return [ |
||||||
|
[['gift_use_id', 'op_man', 'op_time'], 'required'], |
||||||
|
[['gift_use_id', 'op_time','type'], 'integer'], |
||||||
|
[['created_at', 'updated_at'], 'safe'], |
||||||
|
[['op_man'], 'string', 'max' => 50], |
||||||
|
[['group_name', 'remark','info'], 'string', 'max' => 100], |
||||||
|
]; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @inheritdoc |
||||||
|
*/ |
||||||
|
public function attributeLabels() |
||||||
|
{ |
||||||
|
return [ |
||||||
|
'id' => 'ID', |
||||||
|
'gift_use_id' => 'Gift Use ID', |
||||||
|
'op_man' => 'Op Man', |
||||||
|
'op_time' => 'Op Time', |
||||||
|
'group_name' => 'Group Name', |
||||||
|
'type' => 'Type', |
||||||
|
'remark' => 'Remark', |
||||||
|
'info' => 'Info', |
||||||
|
'created_at' => 'Created At', |
||||||
|
'updated_at' => 'Updated At', |
||||||
|
]; |
||||||
|
} |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,172 +0,0 @@ |
|||||||
<?php |
|
||||||
use \common\libs\MyLib; |
|
||||||
?> |
|
||||||
<?php $this->beginBlock('header_css'); ?> |
|
||||||
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
|
||||||
<?php $this->endBlock(); ?> |
|
||||||
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight"> |
|
||||||
<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="$('#listTable').bootstrapTable('refresh');"> |
|
||||||
<i class="fa fa-refresh"></i> 刷新 |
|
||||||
</a> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="ibox-content"> |
|
||||||
<form role="form" class="form-horizontal" onsubmit="return search();"> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="control-label col-md-1">礼券编号</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<input type="text" id="code" name="code" class="form-control"> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">车牌</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<input type="text" id="car_no" name="car_no" class="form-control"> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">车架号</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<input type="text" id="frame_no" name="frame_no" class="form-control"> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">发动机号</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<input type="text" id="engine_no" name="engine_no" class="form-control"> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="control-label col-md-1">状态</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<select name="status" class="form-control"> |
|
||||||
<option value="0" >全部</option> |
|
||||||
<option value="4">未出库</option> |
|
||||||
<option value="5">已出库</option> |
|
||||||
</select> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">分类</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<select name="type_id" class="form-control"> |
|
||||||
<option value="0">---请选择---</option> |
|
||||||
<?php |
|
||||||
foreach($type_items as $item) { |
|
||||||
echo '<option value="'.$item->id.'"'; |
|
||||||
echo '>'.$item->name.'</option>'; |
|
||||||
} |
|
||||||
?> |
|
||||||
</select> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">业务工号</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<input type="text" id="username" name="username" class="form-control"> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">商业保单号</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<input type="text" id="insurer1_no" name="insurer1_no" class="form-control"> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="control-label col-md-1">提单日期</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<div class="input-daterange input-group" id="datepicker"> |
|
||||||
<input type="text" class="input-sm form-control" id="s_start_date" name="s_start_date" autocomplete="off" value="" /> |
|
||||||
<span class="input-group-addon">到</span> |
|
||||||
<input type="text" class="input-sm form-control" id="s_end_date" name="s_end_date" autocomplete="off" value="" /> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<label class="control-label col-md-1">正本日期</label> |
|
||||||
<div class="col-md-2"> |
|
||||||
<div class="input-daterange input-group" id="datepicker"> |
|
||||||
<input type="text" class="input-sm form-control" id="p_start_date" name="p_start_date" autocomplete="off" value="" /> |
|
||||||
<span class="input-group-addon">到</span> |
|
||||||
<input type="text" class="input-sm form-control" id="p_end_date" name="p_end_date" autocomplete="off" value="" /> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="col-md-3"> |
|
||||||
<button type="submit" class="btn btn-primary">搜索</button> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
<div class="row"> |
|
||||||
<div class="col-md-12"> |
|
||||||
<table id="listTable"> |
|
||||||
<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="use_total">发放日期</th> |
|
||||||
<th data-field="use_total">有效期日期</th> |
|
||||||
<th data-field="use_total">提单人</th> |
|
||||||
<th data-field="use_total">使用日期</th> |
|
||||||
<th data-field="use_total">状态</th> |
|
||||||
<th data-field="use_total">操作员</th> |
|
||||||
<th data-formatter="opFormatter">操作</th> |
|
||||||
</tr> |
|
||||||
</thead> |
|
||||||
</table> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
|
|
||||||
<?php $this->beginBlock('footer_js'); ?> |
|
||||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
|
||||||
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
|
||||||
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
|
||||||
<script> |
|
||||||
function opFormatter(value, row, index) { |
|
||||||
var opStr = []; |
|
||||||
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
|
||||||
if(row.use_num > row.finish_num) { |
|
||||||
opStr.push('<i class="fa fa-edit" title="出库"></i>'); |
|
||||||
} else { |
|
||||||
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
|
||||||
} |
|
||||||
opStr.push('</a>'); |
|
||||||
|
|
||||||
return opStr.join(' '); |
|
||||||
} |
|
||||||
function refreshList() { |
|
||||||
$('#listTable').bootstrapTable('refresh'); |
|
||||||
} |
|
||||||
|
|
||||||
function search() { |
|
||||||
$('#listTable').bootstrapTable('destroy'); |
|
||||||
$('#listTable').bootstrapTable({ |
|
||||||
url: "/gift/gift-use-json", |
|
||||||
pagination: true, |
|
||||||
sidePagination: 'server', |
|
||||||
queryParams: function(params) { |
|
||||||
params.code = $('#code').val(); |
|
||||||
params.car_no = $('#car_no').val(); |
|
||||||
params.frame_no = $('#frame_no').val(); |
|
||||||
params.engine_no = $('#engine_no').val(); |
|
||||||
params.status = $('#status').val(); |
|
||||||
params.type_id = $('#type_id').val(); |
|
||||||
params.username = $('#username').val(); |
|
||||||
params.insurer1_no = $('#insurer1_no').val(); |
|
||||||
params.s_start_date = $('#s_start_date').val(); |
|
||||||
params.s_end_date = $('#s_end_date').val(); |
|
||||||
params.p_start_date = $('#p_start_date').val(); |
|
||||||
params.p_end_date = $('#p_end_date').val(); |
|
||||||
return params; |
|
||||||
} |
|
||||||
}); |
|
||||||
return false; |
|
||||||
} |
|
||||||
|
|
||||||
$(function() { |
|
||||||
$('.input-daterange').datepicker({ |
|
||||||
keyboardNavigation: false, |
|
||||||
forceParse: false, |
|
||||||
autoclose: true |
|
||||||
}); |
|
||||||
search(); |
|
||||||
}); |
|
||||||
</script> |
|
||||||
<?php $this->endBlock(); ?> |
|
@ -0,0 +1,142 @@ |
|||||||
|
<?php |
||||||
|
use \common\libs\MyLib; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
|
<div class="ibox float-e-margins"> |
||||||
|
<div class="ibox-content"> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-sm-12"> |
||||||
|
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
|
<input type="hidden" name="id" value="<?=intval($info->id)?>">
|
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-2 control-label">编号</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->code?></p>
|
||||||
|
</div> |
||||||
|
<label class="col-sm-2 control-label">车牌号</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->car_no?></p>
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-2 control-label">车架号</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->order->car_frame_no?></p>
|
||||||
|
</div> |
||||||
|
<label class="col-sm-2 control-label">发动机号</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->order->engine_no?></p>
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-2 control-label">商业保单号</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->order->insurer1_no?></p>
|
||||||
|
</div> |
||||||
|
<label class="col-sm-2 control-label">有效期时间</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->end_date?></p>
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-2 control-label">共使用数</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->typeNew->use_num?></p>
|
||||||
|
</div> |
||||||
|
<label class="col-sm-2 control-label">剩余使用次数</label> |
||||||
|
<div class="col-sm-4"> |
||||||
|
<p class="form-control-static"><?=$info->typeNew->use_num - $info->finished_num?></p>
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-sm-2 control-label">备注</label> |
||||||
|
<div class="col-sm-8"> |
||||||
|
<textarea name="remark" class="form-control"></textarea> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<?php if($info->typeNew->use_num > $info->finished_num) {?> |
||||||
|
<div> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-sm-5 col-sm-offset-5"> |
||||||
|
<button class="btn btn-primary btn-save" type="button"> |
||||||
|
<strong>提 交</strong> |
||||||
|
</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<?php } ?> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ibox float-e-margins"> |
||||||
|
<div class="ibox-title"> |
||||||
|
<h5>操作记录</h5> |
||||||
|
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th data-field="id">序号</th> |
||||||
|
<th data-field="op_man">操作者</th> |
||||||
|
<th data-field="op_time">操作时间</th> |
||||||
|
<th data-field="info">操作内容</th> |
||||||
|
<th data-field="remark">备注</th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
</table> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<?php $this->beginBlock('footer_js'); ?> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
|
<script type="text/javascript" language="javascript"> |
||||||
|
function search() { |
||||||
|
$('#listTable').bootstrapTable('destroy'); |
||||||
|
$('#listTable').bootstrapTable({ |
||||||
|
url: "/gift/history-log-json", |
||||||
|
pagination: true, |
||||||
|
sidePagination: 'server', |
||||||
|
queryParams: function(params) { |
||||||
|
params.id = <?=$info->id?>;
|
||||||
|
return params; |
||||||
|
} |
||||||
|
}); |
||||||
|
return false; |
||||||
|
} |
||||||
|
$(function () { |
||||||
|
search(); |
||||||
|
//提交按钮 |
||||||
|
$(".btn-save").click(function(){ |
||||||
|
parent.layer.confirm('是否确认提交?', { |
||||||
|
btn: ['确认','取消'], //按钮 |
||||||
|
shade: false //不显示遮罩 |
||||||
|
}, function(){ |
||||||
|
var params = $("#theFrm").serialize(); |
||||||
|
params += '&status=2'; |
||||||
|
$.post('/gift/use-save',params,function(obj){ |
||||||
|
parent.layer.msg(obj.msg); |
||||||
|
if(obj.success) { |
||||||
|
parent.refreshList(); |
||||||
|
layer_close(); |
||||||
|
} |
||||||
|
},'json'); |
||||||
|
}, function(){ |
||||||
|
// |
||||||
|
}); |
||||||
|
}); |
||||||
|
}) |
||||||
|
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
@ -0,0 +1,169 @@ |
|||||||
|
<?php |
||||||
|
use \common\libs\MyLib; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
|
<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="$('#listTable').bootstrapTable('refresh');"> |
||||||
|
<i class="fa fa-refresh"></i> 刷新 |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ibox-content"> |
||||||
|
<form role="form" class="form-inline" onsubmit="return search();"> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="code">礼券编号</label> |
||||||
|
<input type="text" id="code" name="code" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="car_no">车牌</label> |
||||||
|
<input type="text" id="car_no" name="car_no" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="frame_no">车架号</label> |
||||||
|
<input type="text" id="frame_no" name="frame_no" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="engine_no">发动机号</label> |
||||||
|
<input type="text" id="engine_no" name="engine_no" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="status">状态</label> |
||||||
|
<select name="status" id="status" class="form-control"> |
||||||
|
<option value="0" >全部</option> |
||||||
|
<option value="1">未使用</option> |
||||||
|
<option value="2">使用中</option> |
||||||
|
<option value="3">使用完</option> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="type_id">分类</label> |
||||||
|
<select name="type_id" id="type_id" class="form-control"> |
||||||
|
<option value="0">---请选择---</option> |
||||||
|
<?php |
||||||
|
foreach($type_items as $item) { |
||||||
|
echo '<option value="'.$item->id.'"'; |
||||||
|
echo '>'.$item->name.'</option>'; |
||||||
|
} |
||||||
|
?> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="username">业务工号</label> |
||||||
|
<input type="text" id="username" name="username" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="insurer1_no">商业保单号</label> |
||||||
|
<input type="text" id="insurer1_no" name="insurer1_no" class="form-control"> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="datepicker1">提单日期</label> |
||||||
|
<div class="input-daterange input-group" id="datepicker1"> |
||||||
|
<input type="text" class="input-sm form-control" id="s_start_date" name="s_start_date" autocomplete="off" value="" /> |
||||||
|
<span class="input-group-addon">到</span> |
||||||
|
<input type="text" class="input-sm form-control" id="s_end_date" name="s_end_date" autocomplete="off" value="" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group" style="margin-bottom: 8px;"> |
||||||
|
<label for="datepicker2">正本日期</label> |
||||||
|
<div class="input-daterange input-group" id="datepicker2"> |
||||||
|
<input type="text" class="input-sm form-control" id="p_start_date" name="p_start_date" autocomplete="off" value="" /> |
||||||
|
<span class="input-group-addon">到</span> |
||||||
|
<input type="text" class="input-sm form-control" id="p_end_date" name="p_end_date" autocomplete="off" value="" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<button type="submit" class="btn btn-primary mb-8">搜索</button> |
||||||
|
</form> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-12"> |
||||||
|
<table id="listTable"> |
||||||
|
<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> |
||||||
|
<th data-formatter="opFormatter">操作</th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
</table> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
<?php $this->beginBlock('footer_js'); ?> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> |
||||||
|
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> |
||||||
|
<script> |
||||||
|
function opFormatter(value, row, index) { |
||||||
|
var opStr = []; |
||||||
|
opStr.push('<a href="javascript:void(0);" onclick="edit(' + row.id + ')">'); |
||||||
|
if(row.use_num > row.finish_num) { |
||||||
|
opStr.push('<i class="fa fa-edit" title="出库"></i>'); |
||||||
|
} else { |
||||||
|
opStr.push('<i class="fa fa-file-o" title="详情"></i>'); |
||||||
|
} |
||||||
|
opStr.push('</a>'); |
||||||
|
|
||||||
|
return opStr.join(' '); |
||||||
|
} |
||||||
|
function edit(id) { |
||||||
|
title = '礼品核销'; |
||||||
|
layer_show(title, '/gift/ticket-use-edit?id='+id); |
||||||
|
} |
||||||
|
function refreshList() { |
||||||
|
$('#listTable').bootstrapTable('refresh'); |
||||||
|
} |
||||||
|
|
||||||
|
function search() { |
||||||
|
$('#listTable').bootstrapTable('destroy'); |
||||||
|
$('#listTable').bootstrapTable({ |
||||||
|
url: "/gift/ticket-use-json", |
||||||
|
pagination: true, |
||||||
|
sidePagination: 'server', |
||||||
|
queryParams: function(params) { |
||||||
|
params.code = $('#code').val(); |
||||||
|
params.car_no = $('#car_no').val(); |
||||||
|
params.frame_no = $('#frame_no').val(); |
||||||
|
params.engine_no = $('#engine_no').val(); |
||||||
|
params.status = $('#status').val(); |
||||||
|
params.type_id = $('#type_id').val(); |
||||||
|
params.username = $('#username').val(); |
||||||
|
params.insurer1_no = $('#insurer1_no').val(); |
||||||
|
params.s_start_date = $('#s_start_date').val(); |
||||||
|
params.s_end_date = $('#s_end_date').val(); |
||||||
|
params.p_start_date = $('#p_start_date').val(); |
||||||
|
params.p_end_date = $('#p_end_date').val(); |
||||||
|
return params; |
||||||
|
} |
||||||
|
}); |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
$(function() { |
||||||
|
$('.input-daterange').datepicker({ |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
autoclose: true |
||||||
|
}); |
||||||
|
search(); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
<?php $this->endBlock(); ?> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue