Browse Source
新增详情功能 新增含有销售订单receivablesVoucherDetail.html详情页面 新增不含有销售订单receivablesVoucherNoSalesDetail.html详情页面dev
liuxiaoxu
7 months ago
8 changed files with 445 additions and 30 deletions
@ -0,0 +1,207 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('收款凭据详情(销售订单)')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
<th:block th:include="include :: bootstrap-editable-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-receivables-edit" th:object="${financialReceivables}"> |
|||
<input name="financialReceivablesId" th:field="*{financialReceivablesId}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">应收单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="financialReceivablesCode" th:field="*{financialReceivablesCode}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">收款状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="receivablesClosingStatus" class="form-control m-b" th:with="type=${@dict.getType('receivables_closing_status')}" readonly disabled> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{receivablesClosingStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="salesOrderCode" th:field="*{salesOrderCode}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">贷方科目:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="creditAccount" th:field="*{creditAccount}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">贷方明细:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="creditDetail" th:field="*{creditDetail}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">开户银行:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="openBank" th:field="*{openBank}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">开户账号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="openAccount" th:field="*{openAccount}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">客户ID:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="customerId" th:field="*{customerId}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">合同编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="contractNumber" th:field="*{contractNumber}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">币种:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="currencyType" class="form-control m-b" th:with="type=${@dict.getType('sys_common_currency')}" readonly disabled> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{currencyType}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">不含税金额:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="priceExcludingTax" th:field="*{priceExcludingTax}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">含税金额:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="priceIncludesTax" th:field="*{priceIncludesTax}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">付款条件:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="paymentCondition" th:field="*{paymentCondition}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">发货状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="financialDeliverStatus" class="form-control m-b" th:with="type=${@dict.getType('financial_deliver_status')}" readonly disabled> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{financialDeliverStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">业务员:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="businessMembers" th:field="*{businessMembers}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="container"> |
|||
<!-- 收款记录 --> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<h3 class="mb-4">收款记录</h3> |
|||
<table id="bootstrap-receivablesRecords-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<th:block th:include="include :: bootstrap-table-editable-js" /> |
|||
<script th:inline="javascript"> |
|||
var financialReceivables = [[${financialReceivables}]]; |
|||
var prefix = ctx + "financial/receivables"; |
|||
$("#form-receivables-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/receivablesVoucherDetail", $('#form-receivables-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
$("input[name='receivablesDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='operatingTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
/*根据收款编号对应的收款明细*/ |
|||
$(function() { |
|||
var options = { |
|||
id:"bootstrap-receivablesRecords-table", |
|||
url: prefix + "/getReceivablesRecords", |
|||
modalName: "收款记录", |
|||
showColumns: false, |
|||
pagination: false, |
|||
showToggle: false, |
|||
showRefresh:false, |
|||
showSearch:false, |
|||
queryParams:queryParams, |
|||
columns: [ |
|||
{ |
|||
title: '财务应收账款记录id', |
|||
field: 'receivablesRecordsId', |
|||
visible: false |
|||
}, |
|||
{ |
|||
title: '操作时间', |
|||
field: 'operatingTime', |
|||
}, |
|||
{ |
|||
title: '摘要', |
|||
field: 'receivablesAbstract', |
|||
}, |
|||
{ |
|||
title: '收款金额', |
|||
field: 'receivablesPrice', |
|||
formatter: function(value, row, index) { |
|||
// 格式化收款金额为保留两位小数的字符串 |
|||
return parseFloat(value).toFixed(2); |
|||
} |
|||
}, |
|||
{ |
|||
title: '收款日期', |
|||
field: 'receivablesDate', |
|||
}, |
|||
{ |
|||
title: '收款备注', |
|||
field: 'receivablesRemark', |
|||
}, |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}) |
|||
function queryParams(params) { |
|||
var curParams = { |
|||
// 传递参数查询参数 |
|||
financialReceivablesCode: financialReceivables.financialReceivablesCode |
|||
}; |
|||
return curParams; |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,172 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('创建收款凭据(非销售订单)')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
<th:block th:include="include :: bootstrap-editable-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-receivables-edit" th:object="${financialReceivables}"> |
|||
<input name="financialReceivablesId" th:field="*{financialReceivablesId}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">应收单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="financialReceivablesCode" th:field="*{financialReceivablesCode}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">收款状态:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="receivablesClosingStatus" class="form-control m-b" th:with="type=${@dict.getType('receivables_closing_status')}" readonly disabled> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{receivablesClosingStatus}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">贷方科目:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="creditAccount" th:field="*{creditAccount}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">贷方明细:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="creditDetail" th:field="*{creditDetail}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">开户银行:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="openBank" th:field="*{openBank}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">开户账号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="openAccount" th:field="*{openAccount}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">合同编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="contractNumber" th:field="*{contractNumber}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">币种:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="currencyType" class="form-control m-b" th:with="type=${@dict.getType('sys_common_currency')}" readonly disabled> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{currencyType}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">不含税金额:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="priceExcludingTax" th:field="*{priceExcludingTax}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">含税金额:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="priceIncludesTax" th:field="*{priceIncludesTax}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">付款条件:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="paymentCondition" th:field="*{paymentCondition}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="container"> |
|||
<!-- 收款记录 --> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<h3 class="mb-4">收款记录</h3> |
|||
<table id="bootstrap-receivablesRecords-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<th:block th:include="include :: bootstrap-table-editable-js" /> |
|||
<script th:inline="javascript"> |
|||
var financialReceivables = [[${financialReceivables}]]; |
|||
var prefix = ctx + "financial/receivables"; |
|||
$("#form-receivables-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/receivablesVoucherDetail", $('#form-receivables-edit').serialize()); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
$("input[name='receivablesDate']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
$("input[name='operatingTime']").datetimepicker({ |
|||
format: "yyyy-mm-dd", |
|||
minView: "month", |
|||
autoclose: true |
|||
}); |
|||
|
|||
/*根据收款编号对应的收款明细*/ |
|||
$(function() { |
|||
var options = { |
|||
id:"bootstrap-receivablesRecords-table", |
|||
url: prefix + "/getReceivablesRecords", |
|||
modalName: "收款记录", |
|||
showColumns: false, |
|||
pagination: false, |
|||
showToggle: false, |
|||
showRefresh:false, |
|||
showSearch:false, |
|||
queryParams:queryParams, |
|||
columns: [ |
|||
{ |
|||
title: '财务应收账款记录id', |
|||
field: 'receivablesRecordsId', |
|||
visible: false |
|||
}, |
|||
{ |
|||
title: '操作时间', |
|||
field: 'operatingTime', |
|||
}, |
|||
{ |
|||
title: '摘要', |
|||
field: 'receivablesAbstract', |
|||
}, |
|||
{ |
|||
title: '收款金额', |
|||
field: 'receivablesPrice', |
|||
formatter: function(value, row, index) { |
|||
// 格式化收款金额为保留两位小数的字符串 |
|||
return parseFloat(value).toFixed(2); |
|||
} |
|||
}, |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}) |
|||
function queryParams(params) { |
|||
var curParams = { |
|||
// 传递参数查询参数 |
|||
financialReceivablesCode: financialReceivables.financialReceivablesCode |
|||
}; |
|||
return curParams; |
|||
} |
|||
|
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue