|
@@ -664,39 +664,49 @@
|
|
|
}
|
|
|
|
|
|
function getFee() {
|
|
|
+ //送审价
|
|
|
var rf = $("#reviewFee").val();
|
|
|
+ //审定价
|
|
|
var af = $("#approvalFee").val();
|
|
|
- if(rf != ''&& af !=''){
|
|
|
- var hf = parseInt(rf)-parseInt(af);
|
|
|
- var rate = Math.round(parseInt(hf) / parseInt(rf) * 100) / 100 * 100
|
|
|
- rate = rate.toFixed(2);
|
|
|
- hf = hf.toFixed(2);
|
|
|
- $("#verifyFee").val(hf);
|
|
|
- $("#verifyRate").val(rate);
|
|
|
+ if(rf != '' && rf != '0.00' && af !='' && af !='0.00'){
|
|
|
+ var hf = (af*100-rf*100)/100;
|
|
|
+ var rate = parseFloat(hf) / parseFloat(rf) * 100
|
|
|
+ $("#verifyFee").val(hf.toFixed(2));
|
|
|
+ $("#verifyRate").val(rate.toFixed(2));
|
|
|
}
|
|
|
if(af !=''){
|
|
|
- af = af.toFixed(2);
|
|
|
$("#consultFee").val(af)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ function getAttachment() {
|
|
|
+ var projectSort = $("#projectSort").val();
|
|
|
+ //0为非打包项目
|
|
|
+ if(projectSort == 0){
|
|
|
+ var reviewFee = $("#reviewFee").val();
|
|
|
+ $("#upTable").load(location.href+"&reviewFee="+reviewFee + " #upTable");
|
|
|
+ $("#gistdata_upTable").load(location.href+"&reviewFee="+reviewFee + " #gistdata_upTable");
|
|
|
+ $("#upTable_other").load(location.href+"&reviewFee="+reviewFee + " #upTable_other");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
function getApprovalFee() {
|
|
|
+ //送审价
|
|
|
var rf = $("#reviewFee").val();
|
|
|
+ //审定价
|
|
|
var af = $("#approvalFee").val();
|
|
|
//土建
|
|
|
var bf = $("#buildingFee").val();
|
|
|
//安装
|
|
|
var inf = $("#installFee").val();
|
|
|
- if(rf != ''&& af !=''){
|
|
|
- var hf = parseInt(rf)-parseInt(af);
|
|
|
- var rate = Math.round(parseInt(hf) / parseInt(rf) * 100) / 100 * 100
|
|
|
- hf = hf.toFixed(2)
|
|
|
- rate = rate.toFixed(2)
|
|
|
- $("#verifyFee").val(hf);
|
|
|
- $("#verifyRate").val(rate);
|
|
|
+ if(rf != '' && rf != '0.00' && af !='' && af !='0.00'){
|
|
|
+ //计算审核增减额
|
|
|
+ var hf = (af*100-rf*100)/100;
|
|
|
+ var rate = parseFloat(hf) / parseFloat(rf) * 100
|
|
|
+ $("#verifyFee").val(hf.toFixed(2));
|
|
|
+ $("#verifyRate").val(rate.toFixed(2));
|
|
|
}
|
|
|
if(af !=''){
|
|
|
- af = af.toFixed(2)
|
|
|
$("#consultFee").val(af)
|
|
|
}
|
|
|
$("#buildingFee").val("");
|
|
@@ -1586,7 +1596,7 @@
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label">送审价(元):</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <form:input id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control layui-input" onchange="getFee()"/>
|
|
|
+ <form:input id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control layui-input" onchange="getFee()" onblur="getAttachment()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|