Commit c493ae49 authored by agping's avatar agping

时间优化

parent f229cd48
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<div class="panel-heading breadcrumb"> <div class="panel-heading breadcrumb">
<li> <li>
<span class="manager-title ld-Marheight"></span> <span class="manager-title ld-Marheight"></span>
<!--<input id="count_time2" class="form-control ld-Marheight" placeholder="请选择" style="width: 150px;float: left;">--> <!--<input id="count_time2" class="form-control ld-Marheight timepicker timepicker-default" placeholder="请选择" style="width: 150px;float: left;">-->
<input type="month" id="count_time" class="form-control ld-Marheight" placeholder="请选择" style="width: 150px;float: left;"/> <input id="count_time" class="form-control ld-Marheight" placeholder="请选择" style="width: 150px;float: left;" autocomplete="off"/>
<a class="btn btn-info is-print ld-Marheight" style="margin-left: 20px;">打印</a> <a class="btn btn-info is-print ld-Marheight" style="margin-left: 20px;">打印</a>
<!--<a class="btn btn-info is-close ld-Marheight" style="margin-left: 20px;">导出excel</a>--> <!--<a class="btn btn-info is-close ld-Marheight" style="margin-left: 20px;">导出excel</a>-->
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<div class="panel-body manager-daily-detail"> <div class="panel-body manager-daily-detail">
<!--办公室--> <!--办公室-->
<div class="table-responsive" style="font-size: 12px;"> <div class="table-responsive" style="font-size: 12px;width: 960px;">
<table class="table table-striped table-bordered table-bordered1 table-hover table-condensed"> <table class="table table-striped table-bordered table-bordered1 table-hover table-condensed">
<thead> <thead>
<tr class="maintable-tr-bar"> <tr class="maintable-tr-bar">
......
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
<td style="height: 800px;padding-left: 20px;"> <td style="height: 800px;padding-left: 20px;">
<form id="form_search"> <form id="form_search">
<span class="fore-span ld-Marheight">计入月份:</span> <span class="fore-span ld-Marheight">计入月份:</span>
<input type="month" id="comit_time_start" class="form-control ld-Marheight" placeholder="请选择" style="width: 150px;float: left;"/> <input id="comit_time_start" class="form-control ld-Marheight" placeholder="请选择" style="width: 150px;float: left;" autocomplete="off"/>
<!--<input id="comit_time_start" class="form-control btn4 ld-Marheight" type="text" placeholder="请选择" <!--<input id="comit_time_start" class="form-control btn4 ld-Marheight" type="text" placeholder="请选择"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })"> --> onClick="WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })"> -->
......
...@@ -32,25 +32,29 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html', ...@@ -32,25 +32,29 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
}, },
event: function() { event: function() {
var that = bargain; var that = bargain;
// $('#count_time2').datetimepicker({ $('#count_time').datetimepicker({
// format:'yyyy-mm', format:'yyyy-mm',
// startView: 3, startView: 3,
// maxViewMode: 1, maxViewMode: 1,
// minViewMode:1, minViewMode:1,
// autoclose : true, autoclose : true,
// minView : 3 , minView : 3 ,
// onChange : function() { } endDate :new Date(),
// }); keyboardNavigation : false,
}).on('changeDate', function(ev){
bargain.getList();
});;
var _doc = $(document); var _doc = $(document);
//门店成本 时间搜索 //门店成本 时间搜索
_doc.on('input', '#count_time', function() { // _doc.on('input', '#count_time', function() {
if(!($('#count_time').val())){ // if(!($('#count_time').val())){
alert('时间不能为空!'); // alert('时间不能为空!');
return // return
} // }
bargain.getList(); // bargain.getList();
}); // });
//点击详情 //点击详情
$(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面 $(document).on('click','.checkCost',function(e){//点击审核按钮 调整审核页面
var id = e.target.dataset.id; var id = e.target.dataset.id;
......
...@@ -25,9 +25,21 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css', ...@@ -25,9 +25,21 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
var _doc = $(document); var _doc = $(document);
//搜索 //搜索
$(document).on('input','#comit_time_start',function(e){ // $(document).on('input','#comit_time_start',function(e){
that.getList(1); // that.getList(1);
}); // });
$('#comit_time_start').datetimepicker({
format:'yyyy-mm',
startView: 3,
maxViewMode: 1,
minViewMode:1,
autoclose : true,
minView : 3 ,
endDate :new Date(),
keyboardNavigation : false,
}).on('changeDate', function(ev){
that.getList();
});;
//重置搜索条件 //重置搜索条件
$(document).on('click','#reset',function(e){ $(document).on('click','#reset',function(e){
that.resetAll(); that.resetAll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment