parent
43fc5dca5a
commit
1fdd48ee27
@ -1,42 +1,87 @@ |
|||||||
<form id="appointmentFrm" method="post"> |
<?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?>">
|
<input type="hidden" name="car_id" value="<?=$car_id?>">
|
||||||
<input name="_csrf" type="hidden" id="_csrf" value="<?=Yii::$app->request->csrfToken ?>">
|
<div class="form-group"> |
||||||
<table cellpadding="5" width="90%"> |
<label class="col-md-1 control-label">预约日期</label> |
||||||
<tbody> |
<div class="col-md-5"> |
||||||
<tr> |
<div class="input-group date"> |
||||||
<td width="75">预约日期</td> |
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
||||||
<td> |
<input type="text" name="pdate" class="form-control" value=""> |
||||||
<input class="easyui-datebox" type="text" id="pdate" name="pdate" value="" style="width:95%;"> |
</div> |
||||||
</td> |
</div> |
||||||
</tr> |
<label class="col-md-1 control-label">预约时间</label> |
||||||
<tr> |
<div class="col-md-5"> |
||||||
<td width="75">预约时间</td> |
<div class="input-group clockpicker" data-autoclose="true"> |
||||||
<td> |
<input type="text" name="ptime" class="form-control" value="09:30"> |
||||||
<select class="easyui-combo" name="ptime" id="ptime"> |
<span class="input-group-addon"><span class="fa fa-clock-o"></span></span> |
||||||
<option>09:00</option> |
</div> |
||||||
<option>09:30</option> |
</div> |
||||||
<option>10:00</option> |
</div> |
||||||
<option>10:30</option> |
<div class="form-group"> |
||||||
<option>11:00</option> |
<label class="col-md-1 control-label">备注</label> |
||||||
<option>11:30</option> |
<div class="col-md-11"> |
||||||
<option>13:30</option> |
<textarea name="remark" id="remark" class="form-control"></textarea> |
||||||
<option>14:00</option> |
</div> |
||||||
<option>14:30</option> |
</div> |
||||||
<option>15:00</option> |
<div> |
||||||
<option>15:30</option> |
<div class="row"> |
||||||
<option>16:00</option> |
<div class="col-md-5 col-md-offset-5"> |
||||||
<option>16:30</option> |
<button class="btn btn-primary btn-save" type="button"> |
||||||
<option>17:00</option> |
<strong>添 加</strong> |
||||||
<option>17:30</option> |
</button> |
||||||
</select> |
</div> |
||||||
</td> |
</div> |
||||||
</tr> |
</div> |
||||||
<tr> |
|
||||||
<td width="75">备注</td> |
|
||||||
<td> |
|
||||||
<textarea id="remark" name="remark" style="width:95%; height:100px;"></textarea> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
</form> |
</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