|
@@ -55,6 +55,77 @@
|
|
|
},100);
|
|
|
}
|
|
|
});
|
|
|
+ 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
|
|
|
+ $("#verifyFee").val(hf);
|
|
|
+ $("#verifyRate").val(rate);
|
|
|
+ }
|
|
|
+ if(af !=''){
|
|
|
+ $("#consultFee").val(af)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ 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
|
|
|
+ $("#verifyFee").val(hf);
|
|
|
+ $("#verifyRate").val(rate);
|
|
|
+ }
|
|
|
+ if(af !=''){
|
|
|
+ $("#consultFee").val(af)
|
|
|
+ }
|
|
|
+ $("#buildingFee").val("");
|
|
|
+ $("#installFee").val("");
|
|
|
+ $("#buildingRate").val("");
|
|
|
+ $("#installRate").val("");
|
|
|
+ }
|
|
|
+
|
|
|
+ function getInstallFee() {
|
|
|
+ var af = $("#approvalFee").val();
|
|
|
+ //安装
|
|
|
+ var inf = $("#installFee").val();
|
|
|
+ if(inf != ''&& af !=''){
|
|
|
+ var hf = parseInt(af)-parseInt(inf);
|
|
|
+ var rate = Math.round(parseInt(inf) / parseInt(af) * 100) / 100 * 100
|
|
|
+ $("#installRate").val(rate);
|
|
|
+ $("#buildingFee").val(hf);
|
|
|
+ bf = hf;
|
|
|
+ var bRate = Math.round(parseInt(hf) / parseInt(af) * 100) / 100 * 100
|
|
|
+ $("#buildingRate").val(bRate);
|
|
|
+ }
|
|
|
+ if(inf == ''|| af ==''){
|
|
|
+ $("#installRate").val("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function getBuildingFee() {
|
|
|
+ var af = $("#approvalFee").val();
|
|
|
+ //土建
|
|
|
+ var bf = $("#buildingFee").val();
|
|
|
+ if(bf != ''&& af !=''){
|
|
|
+ var hf = parseInt(af)-parseInt(bf);
|
|
|
+ var rate = Math.round(parseInt(bf) / parseInt(af) * 100) / 100 * 100
|
|
|
+ $("#buildingRate").val(rate);
|
|
|
+ $("#installFee").val(hf);
|
|
|
+ inf = hf;
|
|
|
+ var inRate = Math.round(parseInt(hf) / parseInt(af) * 100) / 100 * 100
|
|
|
+ $("#installRate").val(inRate);
|
|
|
+ }
|
|
|
+ if(bf == ''|| af ==''){
|
|
|
+ $("#buildingRate").val("");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
function insertTitle(tValue){
|
|
|
var files = $("#attachment_file")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
@@ -136,13 +207,13 @@
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>送审价(元):</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <form:input id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control required layui-input" readonly="true"/>
|
|
|
+ <form:input id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control required layui-input" readonly="true" onchange="getFee()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>审定价(元):</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <form:input id="approvalFee" path="projectReportData.approvalFee" htmlEscape="false" class="form-control required layui-input" readonly="true"/>
|
|
|
+ <form:input id="approvalFee" path="projectReportData.approvalFee" htmlEscape="false" class="form-control required layui-input" readonly="true" onchange="getApprovalFee()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
@@ -172,13 +243,25 @@
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label">土建造价(元):</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <form:input id="buildingFee" path="projectReportData.buildingFee" htmlEscape="false" class="form-control layui-input" readonly="true"/>
|
|
|
+ <form:input id="buildingFee" path="projectReportData.buildingFee" htmlEscape="false" class="form-control layui-input" readonly="true" onchange="getBuildingFee()"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label">安装造价(元):</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <form:input id="installFee" path="projectReportData.installFee" htmlEscape="false" class="form-control layui-input" readonly="true"/>
|
|
|
+ <form:input id="installFee" path="projectReportData.installFee" htmlEscape="false" class="form-control layui-input" readonly="true" onchange="getInstallFee()"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">土建比例(%):</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:input id="buildingRate" path="projectReportData.buildingRate" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">安装比例(%):</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:input id="installRate" path="projectReportData.installRate" htmlEscape="false" class="form-control layui-input number" readonly="true"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|