修复部分页面的日期控件

dev
曾超新 5 years ago
parent f37dadb897
commit f178f0e490
  1. 11
      frontend/views/car/search.php
  2. 2
      frontend/views/database/invalid-index.php
  3. 11
      frontend/views/finance/receipt.php
  4. 18
      frontend/views/finance/receipt2.php
  5. 14
      frontend/views/phone-center/usercall-index.php

@ -33,13 +33,13 @@
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker1">初登日期</label> <label for="datepicker1">初登日期</label>
<div class="input-group" id="datepicker1"> <div class="input-group" id="datepicker1">
<input type="text" class="form-control" id="register_date" name="register_date" autocomplete="off" /> <input type="text" class="form-control date" id="register_date" name="register_date" autocomplete="off" />
</div> </div>
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker2">保险日期</label> <label for="datepicker2">保险日期</label>
<div class="input-group" id="datepicker2"> <div class="input-group" id="datepicker2">
<input type="text" class="form-control" id="insurer_date" name="insurer_date" autocomplete="off" /> <input type="text" class="form-control date" id="insurer_date" name="insurer_date" autocomplete="off" />
</div> </div>
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
@ -112,6 +112,13 @@
$(function() { $(function() {
search(); search();
$('.date').datepicker({
todayBtn: "linked",
keyboardNavigation: false,
forceParse: false,
calendarWeeks: true,
autoclose: true
});
}); });
</script> </script>
<?php $this->endBlock(); ?> <?php $this->endBlock(); ?>

@ -128,7 +128,7 @@ use \common\libs\MyLib;
forceParse: false, forceParse: false,
autoclose: true autoclose: true
}); });
$('.btn-assign-return').click(function() { $('.btn-assign-return').click(function() {
layer.confirm('是否确认收回操作?', { layer.confirm('是否确认收回操作?', {
btn: ['确认','取消'], //按钮 btn: ['确认','取消'], //按钮

@ -47,11 +47,11 @@ use \common\libs\MyLib;
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="name">出单日期</label> <label for="name">出单日期</label>
<input type="text" id="name" name="name" class="form-control"> <input type="text" id="name" name="name" class="form-control date" autocomplete="off">
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="name">回单日期</label> <label for="name">回单日期</label>
<input type="text" id="name" name="name" class="form-control"> <input type="text" id="name" name="name" class="form-control date" autocomplete="off">
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="name">保险公司</label> <label for="name">保险公司</label>
@ -152,6 +152,13 @@ use \common\libs\MyLib;
$(function() { $(function() {
search(); search();
$('.date').datepicker({
todayBtn: "linked",
keyboardNavigation: false,
forceParse: false,
calendarWeeks: true,
autoclose: true
});
}); });
</script> </script>
<?php $this->endBlock(); ?> <?php $this->endBlock(); ?>

@ -38,18 +38,18 @@ use \common\libs\MyLib;
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="name">出单日期</label> <label for="name">出单日期</label>
<div class="input-group"> <div class="input-group input-daterange">
<input type="text" id="begin_date" name="begin_date" class="form-control date"> <input type="text" id="begin_date" name="begin_date" class="form-control" autocomplete="off">
<div class="input-group-addon">-</div> <div class="input-group-addon">-</div>
<input type="text" id="end_date" name="end_date" class="form-control date"> <input type="text" id="end_date" name="end_date" class="form-control" autocomplete="off">
</div> </div>
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="name">回单日期</label> <label for="name">回单日期</label>
<div class="input-group"> <div class="input-group input-daterange">
<input type="text" id="r_begin_date" name="r_begin_date" class="form-control date"> <input type="text" id="r_begin_date" name="r_begin_date" class="form-control" autocomplete="off">
<div class="input-group-addon">-</div> <div class="input-group-addon">-</div>
<input type="text" id="r_end_date" name="r_end_date" class="form-control date"> <input type="text" id="r_end_date" name="r_end_date" class="form-control" autocomplete="off">
</div> </div>
</div> </div>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
@ -136,6 +136,12 @@ use \common\libs\MyLib;
$(function() { $(function() {
search(); search();
$('.input-daterange').datepicker({
keyboardNavigation: false,
forceParse: false,
autoclose: true
});
}); });
</script> </script>
<?php $this->endBlock(); ?> <?php $this->endBlock(); ?>

@ -26,7 +26,7 @@ use \common\libs\MyLib;
<?php } ?> <?php } ?>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker">通话时间</label> <label for="datepicker">通话时间</label>
<div class="input-group" id="datepicker"> <div class="input-group input-daterange" id="datepicker">
<input type="text" class="form-control" id="begin_date" name="begin_date" value="<?=date('Y-m-d')?>" autocomplete="off" /> <input type="text" class="form-control" id="begin_date" name="begin_date" value="<?=date('Y-m-d')?>" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon"></span>
<input type="text" class="form-control" id="end_date" name="end_date" value="<?=date('Y-m-d')?>" autocomplete="off" /> <input type="text" class="form-control" id="end_date" name="end_date" value="<?=date('Y-m-d')?>" autocomplete="off" />
@ -64,7 +64,6 @@ use \common\libs\MyLib;
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script> <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/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> <script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/assets/js/plugins/layer/laydate/laydate.js"></script>
<script> <script>
var o = {}; var o = {};
function opFormatter(value, row, index) { function opFormatter(value, row, index) {
@ -101,13 +100,10 @@ use \common\libs\MyLib;
$(function() { $(function() {
search(); search();
laydate({ $('.input-daterange').datepicker({
elem:'#begin_date', keyboardNavigation: false,
format: 'YYYY-MM-DD' forceParse: false,
}); autoclose: true
laydate({
elem:'#end_date',
format: 'YYYY-MM-DD'
}); });
}); });
</script> </script>

Loading…
Cancel
Save