|
|
@@ -541,7 +541,11 @@ var projectObj = {
|
|
|
} else {
|
|
|
if (node.sourceType === project.Bills.getSourceType()) {
|
|
|
if(fieldName == "maxPrice"){
|
|
|
- value = scMathUtil.roundToString(value,getDecimal("totalPrice", node))
|
|
|
+ if(value == null){
|
|
|
+ value = "";
|
|
|
+ }else {
|
|
|
+ value = scMathUtil.roundToString(value,getDecimal("unitPrice", node))
|
|
|
+ }
|
|
|
}
|
|
|
project.Bills.updateField(node.source, fieldName, value, false);
|
|
|
} else if (node.sourceType === project.Ration.getSourceType()) {
|
|
|
@@ -961,9 +965,9 @@ var projectObj = {
|
|
|
|
|
|
// 综合单价、综合合价,小数部分应补0对齐。 CSL
|
|
|
// if (col.data.field.hasSubStr("common")){
|
|
|
- if (col.data.field.hasSubStr(".totalFee")||col.data.field.hasSubStr("maxPrice"))
|
|
|
+ if (col.data.field.hasSubStr(".totalFee"))
|
|
|
col.data.formatter = MainTreeCol.getNumberFormatter(decimalObj.ration.totalPrice, true);
|
|
|
- else if (col.data.field.hasSubStr(".unitFee"))
|
|
|
+ else if (col.data.field.hasSubStr(".unitFee")||col.data.field.hasSubStr("maxPrice"))
|
|
|
col.data.formatter = MainTreeCol.getNumberFormatter(decimalObj.ration.unitPrice, true);
|
|
|
// }
|
|
|
|