|
@@ -63,6 +63,10 @@ let indicativeInfoObj = {
|
|
|
let fuc = function () {
|
|
|
sheet.setRowCount(datas.length);
|
|
|
for(let col = 0, cLen = cols.length; col < cLen; col++){
|
|
|
+ //设置小数位数
|
|
|
+ if(cols[col]['dataCode'] === 'price'){
|
|
|
+ sheet.setFormatter(-1, col, MainTreeCol.getNumberFormatter(decimalObj.bills.totalPrice, true));
|
|
|
+ }
|
|
|
sheet.getRange(-1, col, -1, 1, GC.Spread.Sheets.SheetArea.viewport).hAlign(GC.Spread.Sheets.HorizontalAlign[cols[col]['hAlign']]);
|
|
|
sheet.getRange(-1, col, -1, 1, GC.Spread.Sheets.SheetArea.viewport).vAlign(GC.Spread.Sheets.VerticalAlign[cols[col]['vAlign']]);
|
|
|
for(let row = 0, rLen = datas.length; row < rLen; row++){
|
|
@@ -136,9 +140,9 @@ let indicativeInfoObj = {
|
|
|
materialDiff = this.fee(node, this.feeType.materialDiff),
|
|
|
machineDiff = this.fee(node, this.feeType.machineDiff),
|
|
|
rcjDiff = labourDiff + materialDiff + machineDiff;
|
|
|
- rst.push({name: '人材机价差', price: parseFloat(rcjDiff).toDecimal(decimalObj.bills.totalPrice), rate: '', perCentiare: ''});
|
|
|
- rst.push({name: '企业管理费', price: parseFloat(this.fee(node, this.feeType.manage)).toDecimal(decimalObj.bills.totalPrice), rate: '', perCentiare: ''});
|
|
|
- rst.push({name: '利润', price: parseFloat(this.fee(node, this.feeType.profit)).toDecimal(decimalObj.bills.totalPrice), rate: '', perCentiare: ''});
|
|
|
+ rst.push({name: ' 人材机价差', price: parseFloat(rcjDiff).toDecimal(decimalObj.bills.totalPrice), rate: '', perCentiare: ''});
|
|
|
+ rst.push({name: ' 企业管理费', price: parseFloat(this.fee(node, this.feeType.manage)).toDecimal(decimalObj.bills.totalPrice), rate: '', perCentiare: ''});
|
|
|
+ rst.push({name: ' 利润', price: parseFloat(this.fee(node, this.feeType.profit)).toDecimal(decimalObj.bills.totalPrice), rate: '', perCentiare: ''});
|
|
|
}
|
|
|
else if(this.isCSXM(node)){
|
|
|
rst.push(dxfy);
|