|
@@ -29,12 +29,12 @@ var gljOprObj = {
|
|
|
{headerName: "规格型号", headerWidth: 120, dataCode: "specs", dataType: "String", hAlign: "left"},
|
|
|
{headerName: "单位", headerWidth: 45, dataCode: "unit", dataType: "String", hAlign: "center"},
|
|
|
{headerName: "类型", headerWidth: 45, dataCode: "shortName", dataType: "String", hAlign: "center"},
|
|
|
- {headerName: "定额消耗量", headerWidth: 80, dataCode: "rationItemQuantity", dataType: "Number", hAlign: "right",formatter:"0.000",tofix:3}, // dataType: "Number", formatter: "0.00"
|
|
|
- {headerName: "自定义消耗量", headerWidth: 80, dataCode: "customQuantity", dataType: "Number", hAlign: "right",formatter:"0.000",tofix:3},
|
|
|
- {headerName: "消耗量", headerWidth: 80, dataCode: "quantity", dataType: "Number", hAlign: "right",formatter:"0.000",tofix:3},
|
|
|
- {headerName: "基价单价", headerWidth: 80, dataCode: "basePrice", dataType: "Number", hAlign: "right",formatter:"0.00"},
|
|
|
- {headerName: "调整基价", headerWidth: 80, dataCode: "adjustPrice", dataType: "Number", hAlign: "right",formatter:"0.00"},
|
|
|
- {headerName: "市场单价", headerWidth: 80, dataCode: "marketPrice", dataType: "Number", hAlign: "right",formatter:"0.00"},
|
|
|
+ {headerName: "定额消耗量", headerWidth: 80, dataCode: "rationItemQuantity", dataType: "Number", hAlign: "right",decimalField:"glj.quantity"}, // dataType: "Number", formatter: "0.00"
|
|
|
+ {headerName: "自定义消耗量", headerWidth: 80, dataCode: "customQuantity", dataType: "Number", hAlign: "right",decimalField:"glj.quantity"},
|
|
|
+ {headerName: "消耗量", headerWidth: 80, dataCode: "quantity", dataType: "Number", hAlign: "right",decimalField:"glj.quantity"},
|
|
|
+ {headerName: "基价单价", headerWidth: 80, dataCode: "basePrice", dataType: "Number", hAlign: "right",decimalField:"glj.unitPrice"},
|
|
|
+ {headerName: "调整基价", headerWidth: 80, dataCode: "adjustPrice", dataType: "Number", hAlign: "right",decimalField:"glj.unitPrice"},
|
|
|
+ {headerName: "市场单价", headerWidth: 80, dataCode: "marketPrice", dataType: "Number", hAlign: "right",decimalField:"glj.unitPrice"},
|
|
|
{headerName: "是否暂估", headerWidth: 65, dataCode: "isEstimate", dataType: "String", hAlign: "center",vAlign:"center",cellType:"checkBox"}
|
|
|
],
|
|
|
view: {
|
|
@@ -605,9 +605,10 @@ var gljOprObj = {
|
|
|
if(glj){
|
|
|
ration_gljs[i].basePrice=glj.unit_price.base_price;
|
|
|
ration_gljs[i].marketPrice=glj.unit_price.market_price;
|
|
|
- ration_gljs[i].adjustPrice=glj.adjust_price;
|
|
|
+ //ration_gljs[i].adjustPrice=glj.adjust_price;
|
|
|
ration_gljs[i].isEstimate=glj.is_evaluate;
|
|
|
ration_gljs[i].isAdd=glj.unit_price.is_add;
|
|
|
+ ration_gljs[i].adjustPrice=projectObj.project.projectGLJ.getAdjustPrice(glj);
|
|
|
var connect_index = this.getIndex(glj,['code','name','specs','unit','type'])
|
|
|
if(mixRatioMap.hasOwnProperty(connect_index)){
|
|
|
var mixRatios = this.getMixRationShowDatas(mixRatioMap[connect_index],projectGljs);
|
|
@@ -1240,9 +1241,26 @@ $(function(){
|
|
|
data.addItems = items;
|
|
|
return data;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
})
|
|
|
|
|
|
+function getDecimal(fieldID,node) {
|
|
|
+ if(node){
|
|
|
+ return decimalObj.decimal(fieldID,node);
|
|
|
+ }else if(fieldID.indexOf(".")){
|
|
|
+ var keyArray = fieldID.split(".");
|
|
|
+ return decimalObj[keyArray[0]][keyArray[1]];
|
|
|
+ }else {
|
|
|
+ return decimalObj.decimal(fieldID);
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
-
|
|
|
+function getFormatter(decimal) {
|
|
|
+ var pre = "0.";
|
|
|
+ if(decimal<=0){
|
|
|
+ return "0";
|
|
|
+ }
|
|
|
+ for(i=0;i<decimal;i++){
|
|
|
+ pre += "0"
|
|
|
+ }
|
|
|
+ return pre;
|
|
|
+}
|