parent
43fc5dca5a
commit
1fdd48ee27
@ -1,42 +1,87 @@ |
|||||||
<form id="appointmentFrm" method="post"> |
<?php |
||||||
<input type="hidden" name="car_id" value="<?=$car_id?>">
|
use \common\libs\MyLib; |
||||||
<input name="_csrf" type="hidden" id="_csrf" value="<?=Yii::$app->request->csrfToken ?>">
|
?> |
||||||
<table cellpadding="5" width="90%"> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<tbody> |
<link href="/assets/css/plugins/clockpicker/clockpicker.css" rel="stylesheet"> |
||||||
<tr> |
<?php $this->endBlock(); ?> |
||||||
<td width="75">预约日期</td> |
|
||||||
<td> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
<input class="easyui-datebox" type="text" id="pdate" name="pdate" value="" style="width:95%;"> |
<div class="ibox float-e-margins"> |
||||||
</td> |
<div class="ibox-content"> |
||||||
</tr> |
<div class="row"> |
||||||
<tr> |
<div class="col-md-12"> |
||||||
<td width="75">预约时间</td> |
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
<td> |
<input type="hidden" name="car_id" value="<?=$car_id?>">
|
||||||
<select class="easyui-combo" name="ptime" id="ptime"> |
<div class="form-group"> |
||||||
<option>09:00</option> |
<label class="col-md-1 control-label">预约日期</label> |
||||||
<option>09:30</option> |
<div class="col-md-5"> |
||||||
<option>10:00</option> |
<div class="input-group date"> |
||||||
<option>10:30</option> |
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||||
<option>11:00</option> |
<input type="text" name="pdate" class="form-control" value=""> |
||||||
<option>11:30</option> |
</div> |
||||||
<option>13:30</option> |
</div> |
||||||
<option>14:00</option> |
<label class="col-md-1 control-label">预约时间</label> |
||||||
<option>14:30</option> |
<div class="col-md-5"> |
||||||
<option>15:00</option> |
<div class="input-group clockpicker" data-autoclose="true"> |
||||||
<option>15:30</option> |
<input type="text" name="ptime" class="form-control" value="09:30"> |
||||||
<option>16:00</option> |
<span class="input-group-addon"><span class="fa fa-clock-o"></span></span> |
||||||
<option>16:30</option> |
</div> |
||||||
<option>17:00</option> |
</div> |
||||||
<option>17:30</option> |
</div> |
||||||
</select> |
<div class="form-group"> |
||||||
</td> |
<label class="col-md-1 control-label">备注</label> |
||||||
</tr> |
<div class="col-md-11"> |
||||||
<tr> |
<textarea name="remark" id="remark" class="form-control"></textarea> |
||||||
<td width="75">备注</td> |
</div> |
||||||
<td> |
</div> |
||||||
<textarea id="remark" name="remark" style="width:95%; height:100px;"></textarea> |
<div> |
||||||
</td> |
<div class="row"> |
||||||
</tr> |
<div class="col-md-5 col-md-offset-5"> |
||||||
</tbody> |
<button class="btn btn-primary btn-save" type="button"> |
||||||
</table> |
<strong>添 加</strong> |
||||||
</form> |
</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<?php $this->beginBlock('footer_js'); ?> |
||||||
|
<script src="/assets/js/plugins/clockpicker/clockpicker.js"></script> |
||||||
|
<script type="text/javascript" language="javascript"> |
||||||
|
$(function () { |
||||||
|
$('.input-group.date').datepicker({ |
||||||
|
todayBtn: "linked", |
||||||
|
keyboardNavigation: false, |
||||||
|
forceParse: false, |
||||||
|
calendarWeeks: true, |
||||||
|
autoclose: true |
||||||
|
}); |
||||||
|
$('.clockpicker').clockpicker(); |
||||||
|
//提交按钮 |
||||||
|
$(".btn-save").click(function(){ |
||||||
|
parent.layer.confirm('是否确认提交?', { |
||||||
|
btn: ['确认','取消'], //按钮 |
||||||
|
shade: false //不显示遮罩 |
||||||
|
}, function(){ |
||||||
|
var params = $("#theFrm").serialize(); |
||||||
|
$.post('/appointment/save',params,function(obj){ |
||||||
|
if(obj.success) { |
||||||
|
parent.layer.msg('保存成功'); |
||||||
|
parent.refreshList(); |
||||||
|
layer_close(); |
||||||
|
} else { |
||||||
|
parent.layer.msg(data.msg); |
||||||
|
} |
||||||
|
},'json'); |
||||||
|
}, function(){ |
||||||
|
// |
||||||
|
}); |
||||||
|
}); |
||||||
|
}) |
||||||
|
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
||||||
|
@ -0,0 +1,55 @@ |
|||||||
|
<?php |
||||||
|
use \common\libs\MyLib; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<link href="/assets/css/plugins/clockpicker/clockpicker.css" rel="stylesheet"> |
||||||
|
<?php $this->endBlock(); ?> |
||||||
|
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
|
<div class="ibox float-e-margins"> |
||||||
|
<div class="ibox-content"> |
||||||
|
<table id="listTable"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th data-field="op_man">操作者</th> |
||||||
|
<th data-field="op_time">操作时间</th> |
||||||
|
<th data-field="remark">操作内容</th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
</table> |
||||||
|
</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> |
||||||
|
var o = {}; |
||||||
|
|
||||||
|
function refreshList() { |
||||||
|
$('#listTable').bootstrapTable('refresh'); |
||||||
|
} |
||||||
|
|
||||||
|
function search() { |
||||||
|
$('#listTable').bootstrapTable('destroy'); |
||||||
|
$('#listTable').bootstrapTable({ |
||||||
|
url: "/car/history-json", |
||||||
|
pagination: true, |
||||||
|
sidePagination: 'server', |
||||||
|
multipleSelectRow: true, |
||||||
|
queryParams: function(params) { |
||||||
|
o['car_id'] = '<?=$car_id?>';
|
||||||
|
o['limit'] = params['limit']; |
||||||
|
o['offset'] = params['offset']; |
||||||
|
return o; |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
$(function() { |
||||||
|
search(); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@ |
|||||||
|
<?php |
||||||
|
use \common\libs\MyLib; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<link href="/assets/css/plugins/clockpicker/clockpicker.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-md-12"> |
||||||
|
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
|
<input type="hidden" name="car_id" value="<?=$car_id?>">
|
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-1 control-label">名称</label> |
||||||
|
<div class="col-md-5"> |
||||||
|
<input type="text" name="name" class="form-control" value=""> |
||||||
|
</div> |
||||||
|
<label class="col-md-1 control-label">电话</label> |
||||||
|
<div class="col-md-5"> |
||||||
|
<input type="text" name="phone" class="form-control" value=""> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-1 control-label">证件类型</label> |
||||||
|
<div class="col-md-5"> |
||||||
|
<select name="id_type" class="form-control"> |
||||||
|
<option value="身份证">身份证</option> |
||||||
|
<option value="营业执照">营业执照</option> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
<label class="col-md-1 control-label">证件号码</label> |
||||||
|
<div class="col-md-5"> |
||||||
|
<input type="text" name="id_number" class="form-control" value=""> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-1 control-label">关系</label> |
||||||
|
<div class="col-md-5"> |
||||||
|
<select name="type" class="form-control"> |
||||||
|
<option value="其他联系人">其他联系人</option> |
||||||
|
<option value="车主">车主</option> |
||||||
|
<option value="被保险人">被保险人</option> |
||||||
|
<option value="投保人">投保人</option> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-5 col-md-offset-5"> |
||||||
|
<button class="btn btn-primary btn-save" type="button"> |
||||||
|
<strong>添 加</strong> |
||||||
|
</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<?php $this->beginBlock('footer_js'); ?> |
||||||
|
<script src="/assets/js/plugins/clockpicker/clockpicker.js"></script> |
||||||
|
<script type="text/javascript" language="javascript"> |
||||||
|
$(function () { |
||||||
|
//提交按钮 |
||||||
|
$(".btn-save").click(function(){ |
||||||
|
parent.layer.confirm('是否确认提交?', { |
||||||
|
btn: ['确认','取消'], //按钮 |
||||||
|
shade: false //不显示遮罩 |
||||||
|
}, function(){ |
||||||
|
var params = $("#theFrm").serialize(); |
||||||
|
$.post('/car/linkman-save',params,function(data){ |
||||||
|
parent.layer.msg(data.msg); |
||||||
|
if(data.success) { |
||||||
|
parent.location.reload(); |
||||||
|
layer_close(); |
||||||
|
} |
||||||
|
},'json'); |
||||||
|
}, function(){ |
||||||
|
// |
||||||
|
}); |
||||||
|
}); |
||||||
|
}) |
||||||
|
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
Loading…
Reference in new issue