|
@@ -634,9 +634,22 @@ let indexObj= {
|
|
|
}
|
|
|
return null;
|
|
|
},
|
|
|
+ getQuantityUnit:function () {
|
|
|
+ let features = projectObj.project.property.engineerFeatures;
|
|
|
+ if(features){
|
|
|
+ for(let f of features){
|
|
|
+ if(f.index == true && f.quantityUnit && f.quantityUnit!="") return f.quantityUnit;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ },
|
|
|
setHeaderUnit:function (setting,dataCode) {
|
|
|
let header = _.find(setting.header,{dataCode:dataCode});
|
|
|
let unit = this.getIndexUnit();
|
|
|
+ if(dataCode === 'quantity'){
|
|
|
+ let qunit = this.getQuantityUnit();
|
|
|
+ if(qunit) unit = qunit
|
|
|
+ }
|
|
|
if(!unit || !header )return;
|
|
|
header.headerName +=`(${unit})`
|
|
|
}
|