<@p.form action="csrdaypkgfee.aj" refreshId="list-page" class="ajaxfrm" method="post" stopRefresh=false id="queryForm" name="queryForm">
<input type="hidden" name="revMonth" value="${revMonth!}" />
<input type="hidden" name="csrId" value="${delivOrderInfoPo.csrId!}" />
<input type="hidden" name="companyId" value="${delivOrderInfoPo.companyId!}"/>
<input type="hidden" name="companyName" value="${delivOrderInfoPo.companyName!}"/>
<input type="hidden" name="whId" value="${delivOrderInfoPo.whId!}"/>
<input type="hidden" name="whName" value="${delivOrderInfoPo.whName!}"/>
<input type="hidden" name="actPkgFee" value="${actPkgFee!}" />
<div class="div-kuang">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="10">
<tbody>
<tr>
<td colspan="2" align="center">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td width="94">仓储公司:</td>
<td width="133"><label for="textfield"></label>
${delivOrderInfoPo.companyName!}</td>
<td width="57">仓库:</td>
<td width="67">${delivOrderInfoPo.whName!}</td>
<td width="57">日期:</td>
<td width="67">${revMonth!}</td>
<input type="hidden" value="${page.f.cataId!''}" id="atype" />
<td width="73">库房类型:</td>
<td width="93"><label for="select"></label>
<@p.select name="f[cataId]" source=shCataConfPo labelField="cataName" valueField="cataId" class="input-m" id="selectwhType" value="${page.f.cataId!''}">
<option value="">全部</option>
</@p.select>
</td>
<td width="82"><input type="submit" name="button2" id="button2" value="查询" /></td>
<td width="116">
<td width="116"><a href="javascript:exportExl()">导出Excel</a></td>
</tr>
</table>
</td>
</tr>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td><table width="740" border="1" align="right" cellpadding="0" cellspacing="0" class="txt-s">
<tr>
<td bgcolor="#EBEBEB">序号</td>
<td bgcolor="#EBEBEB">发货单号</td>
<td bgcolor="#EBEBEB">库房类别</td>
<td bgcolor="#EBEBEB">订单号</td>
<td bgcolor="#EBEBEB">包裹重量</td>
<td bgcolor="#EBEBEB">包裹费用</td>
<td bgcolor="#EBEBEB">发货时间</td>
</tr>
<#assign index = (page.pageNo-1)*page.pageRows+1 />
<#if list?exists>
<#list list as row>
<tr>
<td>${index + row_index}</td>
<td>${row.deliveryNo}</td>
<td>${row.cataName}</td>
<td>${row.orderNo}</td>
<td>${row.pkgWt}</td>
<td>${row.pkgFee}</td>
<td>${row.deliveryDate?string("yyyy-MM-dd HH:mm:ss")!'数据错误'}</td>
</tr>
</#list>
</#if>
</table></td>
</tr>
</table>
<div align="center" >
<tr>
<td colspan="2" align="center">
<#if list?? && (list?size>0)>
<@p.pagination value=page />
<#else>
没有查询到信息!
</#if></td>
</tr>
</div>
</tbody>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="10" class="txt-s">
<tr>
<td align="center">合计:${actPkgFee}</td>
</tr>
<tr>
<td align="center"><input type="button" name="button3" id="button3" value="关闭" οnclick="window.close()" /></td>
</tr>
</table>
</div>
</@p.form >
<script>
//使下拉查询之后回显
function onload(){
var atype=document.getElementById("atype").value;
var s = document.getElementById("selectwhType");
var ops = s.options;
for(var i=0;i<ops.length; i++){
var tempValue = ops[i].value;
if(tempValue == atype) //这里是你要选的值
{
ops[i].selected = true;
break;
}
}
}
window.οnlοad=onload();
function exportExl(){
var size = ${list?size};
if(size == 0){
alert("没有要导出的数据!");
return;
}
//拿到下拉表中选中的值
var cataId=document.getElementById("selectwhType").value;
window.location.href="exportcsrdaypkgfee.aj?csrId=${delivOrderInfoPo.csrId!}&companyId=${delivOrderInfoPo.companyId!}&companyName=${delivOrderInfoPo.companyName!}&whId=${delivOrderInfoPo.whId!}&whName=${delivOrderInfoPo.whName!}&actPkgFee=${actPkgFee}&revMonth=${revMonth}&cataId="+cataId;
}
</script>
js 使下拉回显
最新推荐文章于 2025-01-02 13:13:08 发布