<div class="fs_main clearfix">
|
<div class="event_fill sa_event_fill">
|
<form id="myform">
|
<table style="width: 95%">
|
<tr>
|
<th width="85%">
|
<div class="fill_item">
|
<label>出库单号:</label>
|
<input type="text" id="order_code" name="order_code" class="name"/>
|
</div>
|
<div class="fill_item">
|
<label>出库类型:</label>
|
<input class="cbx pri" type="checkbox" value="1"/><em class="totxt">备件申领</em>
|
<input class="cbx pri" type="checkbox" value="2"/><em class="totxt">其他</em>
|
|
</div>
|
<div class="fill_item">
|
<label>工单名称:</label>
|
<input type="text" id="order_name" name="order_name" class="name"/>
|
</div>
|
<div class="fill_item">
|
<label>关联工单:</label>
|
<input type="text" id="order_code_A" name="order_code_A" class="name"/>
|
</div>
|
|
|
[#if type == "cksq"]
|
<div class="fill_item">
|
<label>状态:</label>
|
[@select id="state" source=Constants.SPARE_PART_DELIVERY_STATE_MAP /]
|
</div>
|
[#elseif type == "cksh"]
|
<div class="fill_item">
|
<label>状态:</label>
|
<select id="state" class="mysel">
|
<option value="">请选择</option>
|
<option value="3">审核通过</option>
|
<option value="4">审核不通过</option>
|
</select>
|
</div>
|
[#else]
|
[/#if]
|
|
<div id="selectDay">
|
<div class="fill_item">
|
<label>开始时间:</label> [@datepicker id="start_time" value="${start_time}" class="general" length=8 /]
|
</div>
|
<div class="fill_item">
|
<label>结束时间:</label> [@datepicker id="end_time" class="general" length=8 value="${end_time}" /]
|
</div>
|
</div>
|
</th>
|
<td width="15%">
|
<a class="retrievebtn" id="reset">重置</a>
|
<a class="retrievebtn focus" href="javascript:checkSel();">查询</a>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
</div>
|
<script>
|
$(function(){
|
showNoData('report');
|
});
|
|
//无数据显示
|
function showNoData(containerId) {
|
var strHrml = '<div id="noDailyReport" style="position:relative;width:100%;height:400px">';
|
strHrml = strHrml + '<span class="nodata"></span>';
|
strHrml = strHrml + '</div>';
|
$('#'+containerId).html(strHrml);
|
}
|
|
function checkSel(){
|
var start_time = $("#start_time").val();
|
var end_time = $("#end_time").val();
|
if(start_time>end_time) {
|
window.top.popupTips("开始时间不能晚于结束时间");
|
return ;
|
}
|
query();
|
}
|
|
function getDays(day1,day2){
|
var newDay1 = new Date(day1.substring(0,4),day1.substring(4,6)-1,day1.substring(6,8));
|
var newDay2 = new Date(day2.substring(0,4),day2.substring(4,6)-1,day2.substring(6,8));
|
return parseInt(Math.abs(newDay2-newDay1)/1000/60/60/24);
|
}
|
|
|
|
|
</script>
|