|
@@ -227,20 +227,43 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //计数计算方法
|
|
|
function getBudlingFees() {
|
|
|
+ $("#unitFees").val('');
|
|
|
$("#buildingPercent").val('');
|
|
|
$("#buildingUnitFees").val('');
|
|
|
+ $("#installPercent").val('');
|
|
|
+ $("#installUnitFees").val('');
|
|
|
var totalFee = $("#totalFees").val();
|
|
|
var budFee = $("#buildingFees").val();
|
|
|
+ var insFee = $("#installFees").val();
|
|
|
var count = $("#buildingScale").val();
|
|
|
if(totalFee != '') {
|
|
|
var p = Math.round(parseInt(budFee) / parseInt(totalFee) * 100 * 100) / 100;
|
|
|
+ var ins = Math.round(parseInt(insFee) / parseInt(totalFee) * 100 * 100) / 100;
|
|
|
}
|
|
|
if(count != '') {
|
|
|
var pp = Math.round(parseInt(budFee) / parseInt(count) * 100) / 100 * 10000;
|
|
|
+ var insFe = Math.round(parseInt(insFee) / parseInt(count) * 100) / 100 * 10000;
|
|
|
+ }
|
|
|
+ if(count != '' && totalFee != '') {
|
|
|
+ var cFee = Math.round(parseInt(totalFee) / parseInt(count) * 100) / 100 * 10000;
|
|
|
+ }
|
|
|
+ if(!isNaN(cFee)){
|
|
|
+ $("#unitFees").val(cFee);
|
|
|
+ }
|
|
|
+ if(!isNaN(p)){
|
|
|
+ $("#buildingPercent").val(p);
|
|
|
+ }
|
|
|
+ if(!isNaN(pp)){
|
|
|
+ $("#buildingUnitFees").val(pp);
|
|
|
+ }
|
|
|
+ if(!isNaN(ins)){
|
|
|
+ $("#installPercent").val(ins);
|
|
|
+ }
|
|
|
+ if(!isNaN(insFe)){
|
|
|
+ $("#installUnitFees").val(insFe);
|
|
|
}
|
|
|
- $("#buildingPercent").val(p);
|
|
|
- $("#buildingUnitFees").val(pp);
|
|
|
}
|
|
|
|
|
|
function getInstallFees() {
|
|
@@ -759,7 +782,7 @@
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
|
<label class="layui-form-label double-line">建筑面积或规模:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input path="buildingScale" htmlEscape="false" class="form-control layui-input number" onchange="getFee()"/>
|
|
|
+ <form:input path="buildingScale" htmlEscape="false" class="form-control layui-input number" onchange="getBudlingFees()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
@@ -783,7 +806,7 @@
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
|
<label class="layui-form-label double-line">咨询标的额(万元):</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input path="totalFees" htmlEscape="false" id="totalFees" class="form-control layui-input number" onchange="getFee()"/>
|
|
|
+ <form:input path="totalFees" htmlEscape="false" id="totalFees" class="form-control layui-input number" onchange="getBudlingFees()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
@@ -795,7 +818,7 @@
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
|
<label class="layui-form-label double-line">其中安装造价(万元):</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input path="installFees" htmlEscape="false" id="installFees" class="form-control layui-input" onchange="getInstallFees()"/>
|
|
|
+ <form:input path="installFees" htmlEscape="false" id="installFees" class="form-control layui-input" onchange="getBudlingFees()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|