<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<#include "../../common/metas.ftl">
<#include "../../common/tags.ftl">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content=" , ,优购网,B网络营销系统,商品管理" />
<meta name="Description" content=" , ,B网络营销系统-商品管理" />
<title>B网络营销系统-商品管理-优购网</title>
<script type="text/javascript">
$(document).ready(
function() {
$("#datepicker_start").dateDisplay();
$("#datepicker_end").dateDisplay();
$("listProperties").display('properties');
});
function detail(id) {
tb_show('在线异常收款详细信息', '${BasePath}/finance/income/alreadyincome/detailOnlineException.sc?KeepThis=true&TB_iframe=true&id=' + id, false);
}
function query() {
if(Date.parse($("#datepicker_start").val().replace("-","/"))>Date.parse($("#datepicker_end").val().replace("-","/"))){
alert("开始时间不能大于结束时间!");
return;
}
$("#alreadyIncomeForm").submit();
}
function del(id) {
if(!confirm("您确认作废数据吗?")) {
return;
}
$.ajax({
type: "get",
url: "${BasePath}/finance/income/alreadyincome/delete.sc?id=" + id,
success: function(){
alert( "作废成功!" );
//window.location.reload();
$('#alreadyIncome').submit();
}
});
<li style="width: 350px">
<span class="text_details">收款日期:</span>
<input type="text" size="9" id="datepicker_start" name="startDate" value="${startDate?default('')}" readonly/>
> <#--value="${startDate?default('')}"-->
<input type="text" size="9" id="datepicker_end" name="endDate" value="${endDate?default('')}" readonly/>
</li>
<li>
<span class="text_details">单据状态:</span>
<select style="width: 125px" name="approvalStatus" >
<option value="999" selected="selected">
全部
</option>
<#list onlineStatus as ver>
<option value="${ver.value}" <#if ai.approvalStatus??><#if ai.approvalStatus==ver.value>selected</#if></#if>>
${ver}
</option>
</#list>
</select>
</li>
<li style="margin-left:50px;width:270px">
<a href="#" οnclick="query();" class="btn-sh">搜 索</a>
<a href="#" class="btn-sh" οnclick="resetForm();">清 空</a>
</li>
</ul>
</div>
</form>
<hr style="clear: both;border:0" color="#ffffff" size="0"/>
<div class="list-position" style="overflow:auto">
<#assign exprotTitle="">
<#if startDate?? && startDate!="">
<#assign exprotTitle=exprotTitle+"‖"+startDate>
</#if>
<#if endDate?? && endDate!="">
<#assign exprotTitle=exprotTitle+"‖"+endDate>
</#if>
<#if exprotTitle=="">
<#assign exprotTitle="全部">
<#else>
<#assign exprotTitle=exprotTitle?substring(1, exprotTitle?length)>
</#if>
<@ex.table title="" action="${BasePath}/finance/income/alreadyincome/toOnlineExceptionIndex.sc"
view="compact"
filterable="false"
retrieveRowsCallback="limit"
filterRowsCallback="limit"
sortable="true"
tableId="alreadyIncome"
items="lstAlreadyIncome" var="pre">
<@ex.exportXls fileName="在线异常收款【${exprotTitle}】.xls"></@ex.exportXls>
<@ex.exportCsv fileName="在线异常收款【${exprotTitle}】.csv"></@ex.exportCsv>
<@ex.exportPdf fileName="在线异常收款【${exprotTitle}】.pdf"></@ex.exportPdf>
<@ex.row>
<@ex.column property="orderNo" title="订单号"/>
<@ex.column property="customerName" title="客户名称"/>
<@ex.column property="payPerson" title="付款人"/>
<@ex.column property="incomeDate" cell="date" title="付款日期"/>
<@ex.column property="orderAmount" cell="currency" title="付款金额" calc="total" calcTitle= "本页汇总:" style="color:red;font-weight:bold;"/>
<@ex.column property="incomedAmount" cell="currency" title="收款金额" calc="total" style="color:red;font-weight:bold;"/>
<@ex.column property="onlinePayStyleName" title="收款方式"/>
<@ex.column property="approvalStatus" title="审核状态" viewsDenied= "xls,pdf,csv">
<#list onlineStatus as ver>
<#if pre.approvalStatus??><#if pre.approvalStatus==ver.value>${ver}</#if></#if>
</#list>
</@ex.column>
<@ex.column alias="edit" title="操作" sortable="false" viewsDenied= "xls,pdf,csv">
<#assign auditAble =1>
<#if pre.approvalStatus ?? && pre.approvalStatus==1>
<#list permissions as permission>
<#if submit==permission>
<#assign auditAble =2>
<input type="button" οnclick="detail('${pre.id}');" value="审批"/>
</#if>
</#list>
<#if auditAble==1>
<input type="button" value="审批" disabled/>
</#if>
<#else>
<input type="button" οnclick="detail('${pre.id}');" value="查看"/>
</#if>
</@ex.column>
</@ex.row>
</@ex.table>
</div>
</div>
</body>
</html>