|
@@ -159,13 +159,13 @@
|
|
var ShenDingJia = parseFloat($("#ShenDingJia").val());
|
|
var ShenDingJia = parseFloat($("#ShenDingJia").val());
|
|
|
|
|
|
//如果质量复核中的送审价和目前上报中的送审价不同,则需要将送审价对应的同步按钮展示出来
|
|
//如果质量复核中的送审价和目前上报中的送审价不同,则需要将送审价对应的同步按钮展示出来
|
|
- if (projectReportDataReviewFee.toFixed(2) !== SongShenJia.toFixed(2)) {
|
|
|
|
|
|
+ if (projectReportDataReviewFee.toFixed(4) !== SongShenJia.toFixed(4)) {
|
|
parent.layer.msg("当前送审价和质量复核中的送审价不同,请先进行同步!", {icon: 5});
|
|
parent.layer.msg("当前送审价和质量复核中的送审价不同,请先进行同步!", {icon: 5});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
//如果质量复核中的审定价和目前上报中的审定价不同,则需要将审定价对应的同步按钮展示出来
|
|
//如果质量复核中的审定价和目前上报中的审定价不同,则需要将审定价对应的同步按钮展示出来
|
|
- if(projectReportDataApprovalFee.toFixed(2) !== ShenDingJia.toFixed(2)){
|
|
|
|
|
|
+ if(projectReportDataApprovalFee.toFixed(4) !== ShenDingJia.toFixed(4)){
|
|
parent.layer.msg("当前审定价和质量复核中的审定价不同,请先进行同步!", {icon: 5});
|
|
parent.layer.msg("当前审定价和质量复核中的审定价不同,请先进行同步!", {icon: 5});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -176,7 +176,7 @@
|
|
var identification = '${identification}'
|
|
var identification = '${identification}'
|
|
console.log(identification)
|
|
console.log(identification)
|
|
if(identification && "projectReported" === identification){
|
|
if(identification && "projectReported" === identification){
|
|
- if(ziXunBDE.toFixed(2) !== ShenDingJia.toFixed(2)){
|
|
|
|
|
|
+ if(ziXunBDE.toFixed(4) !== ShenDingJia.toFixed(4)){
|
|
parent.layer.msg("咨询标的额和审定价不同,请调整!", {icon: 5});
|
|
parent.layer.msg("咨询标的额和审定价不同,请调整!", {icon: 5});
|
|
return ;
|
|
return ;
|
|
}
|
|
}
|
|
@@ -319,6 +319,7 @@
|
|
var SongShenJia = $("#SongShenJia").val();
|
|
var SongShenJia = $("#SongShenJia").val();
|
|
//审定价
|
|
//审定价
|
|
var ShenDingJia = $("#ShenDingJia").val();
|
|
var ShenDingJia = $("#ShenDingJia").val();
|
|
|
|
+ JingHeJianValue()
|
|
|
|
|
|
//如果质量复核中的送审价和目前上报中的送审价不同,则需要将送审价对应的同步按钮展示出来
|
|
//如果质量复核中的送审价和目前上报中的送审价不同,则需要将送审价对应的同步按钮展示出来
|
|
if(projectReportDataReviewFee == SongShenJia){
|
|
if(projectReportDataReviewFee == SongShenJia){
|
|
@@ -954,14 +955,14 @@
|
|
var ShenDingJia = parseFloat($("#ShenDingJia").val());
|
|
var ShenDingJia = parseFloat($("#ShenDingJia").val());
|
|
|
|
|
|
//如果质量复核中的送审价和目前上报中的送审价不同,则需要将送审价对应的同步按钮展示出来
|
|
//如果质量复核中的送审价和目前上报中的送审价不同,则需要将送审价对应的同步按钮展示出来
|
|
- if(projectReportDataReviewFee.toFixed(2) === SongShenJia.toFixed(2)){
|
|
|
|
|
|
+ if(projectReportDataReviewFee.toFixed(4) === SongShenJia.toFixed(4)){
|
|
$('.songShenJiaSpanDiv').hide();
|
|
$('.songShenJiaSpanDiv').hide();
|
|
}else{
|
|
}else{
|
|
$('.songShenJiaSpanDiv').show();
|
|
$('.songShenJiaSpanDiv').show();
|
|
}
|
|
}
|
|
|
|
|
|
//如果质量复核中的审定价和目前上报中的审定价不同,则需要将审定价对应的同步按钮展示出来
|
|
//如果质量复核中的审定价和目前上报中的审定价不同,则需要将审定价对应的同步按钮展示出来
|
|
- if(projectReportDataApprovalFee.toFixed(2) === ShenDingJia.toFixed(2)){
|
|
|
|
|
|
+ if(projectReportDataApprovalFee.toFixed(4) === ShenDingJia.toFixed(4)){
|
|
$('.shenDingJiaSpanDiv').hide();
|
|
$('.shenDingJiaSpanDiv').hide();
|
|
}else{
|
|
}else{
|
|
$('.shenDingJiaSpanDiv').show();
|
|
$('.shenDingJiaSpanDiv').show();
|
|
@@ -970,8 +971,8 @@
|
|
if(SongShenJia !='' && ShenDingJia != ''){
|
|
if(SongShenJia !='' && ShenDingJia != ''){
|
|
//审核增减额
|
|
//审核增减额
|
|
var JingHeJianE = parseFloat(ShenDingJia) - parseFloat(SongShenJia);
|
|
var JingHeJianE = parseFloat(ShenDingJia) - parseFloat(SongShenJia);
|
|
- // 使用 toFixed(2) 保留两位小数并四舍五入
|
|
|
|
- var JingHeJianEFormatted = JingHeJianE.toFixed(2);
|
|
|
|
|
|
+ // 使用 toFixed(4) 保留两位小数并四舍五入
|
|
|
|
+ var JingHeJianEFormatted = JingHeJianE.toFixed(4);
|
|
$("#JingHeJianE").val(JingHeJianEFormatted);
|
|
$("#JingHeJianE").val(JingHeJianEFormatted);
|
|
//审核增减率
|
|
//审核增减率
|
|
if(parseFloat(ShenDingJia) == 0.00 || parseFloat(SongShenJia) == 0.00 ){
|
|
if(parseFloat(ShenDingJia) == 0.00 || parseFloat(SongShenJia) == 0.00 ){
|
|
@@ -1151,6 +1152,15 @@
|
|
obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
|
|
obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
|
|
obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
|
|
obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function numFor4(obj){
|
|
|
|
+ obj.value = obj.value.replace(/[^\d.]/g, ""); // 清除"数字"和"."以外的字符
|
|
|
|
+ obj.value = obj.value.replace(/^\./g, ""); // 验证第一个字符是数字,防止以"."开头
|
|
|
|
+ obj.value = obj.value.replace(/\.{2,}/g, "."); // 只保留第一个".",清除多余的
|
|
|
|
+ obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", "."); // 确保只存在一个小数点
|
|
|
|
+ obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d{4}).*$/, '$1$2.$3'); // 只能输入小数点后 4 位
|
|
|
|
+ }
|
|
|
|
+
|
|
function numGCGN(obj){
|
|
function numGCGN(obj){
|
|
var GCGMValue = $("#GCGMValue").val();
|
|
var GCGMValue = $("#GCGMValue").val();
|
|
if(50 != GCGMValue){
|
|
if(50 != GCGMValue){
|
|
@@ -1506,7 +1516,7 @@
|
|
<div class="layui-item layui-col-sm6 lw6">
|
|
<div class="layui-item layui-col-sm6 lw6">
|
|
<label class="layui-form-label double-line" title="注:指咨询项目编审后的最终造价, 其中工程结算项目填审定价,标底编制填招标控制价, 工程造价全过程管理填工程投资总额或审定价。"><span class="require-item">*咨询标的额(万元):</span></label>
|
|
<label class="layui-form-label double-line" title="注:指咨询项目编审后的最终造价, 其中工程结算项目填审定价,标底编制填招标控制价, 工程造价全过程管理填工程投资总额或审定价。"><span class="require-item">*咨询标的额(万元):</span></label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
- <form:input path="ZiXunBDE" placeholder="请输入咨询表的额" htmlEscape="false" onkeyup="num(this)" class="form-control judgment layui-input number" onchange="ZiXunBDEChange()"/>
|
|
|
|
|
|
+ <form:input path="ZiXunBDE" placeholder="请输入咨询表的额" htmlEscape="false" onkeyup="numFor4(this)" class="form-control judgment layui-input number" onchange="ZiXunBDEChange()"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw6">
|
|
<div class="layui-item layui-col-sm6 lw6">
|
|
@@ -1516,14 +1526,14 @@
|
|
<div class="layui-item layui-col-sm6 lw6" id="heTongJiaDiv">
|
|
<div class="layui-item layui-col-sm6 lw6" id="heTongJiaDiv">
|
|
<label class="layui-form-label double-line">合同价(万元):</label>
|
|
<label class="layui-form-label double-line">合同价(万元):</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
- <form:input path="HeTongJia" placeholder="请输入合同价" htmlEscape="false" onkeyup="num(this)" class="form-control layui-input number"/>
|
|
|
|
|
|
+ <form:input path="HeTongJia" placeholder="请输入合同价" htmlEscape="false" onkeyup="numFor4(this)" class="form-control layui-input number"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw6" id="songShenJiaDiv">
|
|
<div class="layui-item layui-col-sm6 lw6" id="songShenJiaDiv">
|
|
<label class="layui-form-label double-line">送审价(万元):</label>
|
|
<label class="layui-form-label double-line">送审价(万元):</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
- <form:input path="SongShenJia" placeholder="请输入送审价" htmlEscape="false" onkeyup="num(this)" class="form-control layui-input number" onchange="JingHeJianValue()"/>
|
|
|
|
|
|
+ <form:input path="SongShenJia" placeholder="请输入送审价" htmlEscape="false" onkeyup="numFor4(this)" class="form-control layui-input number" onchange="JingHeJianValue()"/>
|
|
<span class="input-group-btn songShenJiaSpanDiv">
|
|
<span class="input-group-btn songShenJiaSpanDiv">
|
|
<a href="javascript:void(0)" style="height: 40px;line-height: 40px;" class="form-status" type="button" onclick="synchronizationSSJ()">同步</a>
|
|
<a href="javascript:void(0)" style="height: 40px;line-height: 40px;" class="form-status" type="button" onclick="synchronizationSSJ()">同步</a>
|
|
</span>
|
|
</span>
|
|
@@ -1535,7 +1545,7 @@
|
|
<label class="layui-form-label double-line">审定价(万元):</label>
|
|
<label class="layui-form-label double-line">审定价(万元):</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
- <form:input path="ShenDingJia" placeholder="请输入审定价" htmlEscape="false" onkeyup="num(this)" class="form-control layui-input number" onchange="JingHeJianValue()"/>
|
|
|
|
|
|
+ <form:input path="ShenDingJia" placeholder="请输入审定价" htmlEscape="false" onkeyup="numFor4(this)" class="form-control layui-input number" onchange="JingHeJianValue()"/>
|
|
<span class="input-group-btn shenDingJiaSpanDiv">
|
|
<span class="input-group-btn shenDingJiaSpanDiv">
|
|
<a href="javascript:void(0)" style="height: 40px;line-height: 40px;" class="form-status" type="button" onclick="synchronizationSDJ()">同步</a>
|
|
<a href="javascript:void(0)" style="height: 40px;line-height: 40px;" class="form-status" type="button" onclick="synchronizationSDJ()">同步</a>
|
|
</span>
|
|
</span>
|