|
@@ -796,6 +796,7 @@ let calcTools = {
|
|
|
quantity: treeNode.data.quantity,
|
|
quantity: treeNode.data.quantity,
|
|
|
calcBase: treeNode.data.calcBase,
|
|
calcBase: treeNode.data.calcBase,
|
|
|
calcBaseValue: treeNode.data.calcBaseValue,
|
|
calcBaseValue: treeNode.data.calcBaseValue,
|
|
|
|
|
+ tenderCalcBaseValue: treeNode.data.tenderCalcBaseValue,
|
|
|
programID: treeNode.data.programID,
|
|
programID: treeNode.data.programID,
|
|
|
marketUnitFee: treeNode.data.marketUnitFee,
|
|
marketUnitFee: treeNode.data.marketUnitFee,
|
|
|
marketTotalFee: treeNode.data.marketTotalFee,
|
|
marketTotalFee: treeNode.data.marketTotalFee,
|
|
@@ -840,7 +841,7 @@ let calcTools = {
|
|
|
if (this.isBill(treeNode)) // 清单只有一个工程量,没有调整后工程量。
|
|
if (this.isBill(treeNode)) // 清单只有一个工程量,没有调整后工程量。
|
|
|
return this.uiNodeQty(treeNode)
|
|
return this.uiNodeQty(treeNode)
|
|
|
else{
|
|
else{
|
|
|
- let qCoe = (treeNode.data.rationQuantityCoe == undefined || treeNode.data.rationQuantityCoe == 0) ? 1 : treeNode.data.rationQuantityCoe;
|
|
|
|
|
|
|
+ let qCoe = (treeNode.data.rationQuantityCoe == undefined || treeNode.data.rationQuantityCoe == null || treeNode.data.rationQuantityCoe == 0) ? 1 : treeNode.data.rationQuantityCoe;
|
|
|
treeNode.data.tenderQuantity = (this.uiNodeQty(treeNode) * qCoe).toDecimal(decimalObj.decimal("quantity", treeNode));
|
|
treeNode.data.tenderQuantity = (this.uiNodeQty(treeNode) * qCoe).toDecimal(decimalObj.decimal("quantity", treeNode));
|
|
|
return treeNode.data.tenderQuantity;
|
|
return treeNode.data.tenderQuantity;
|
|
|
}
|
|
}
|
|
@@ -1902,11 +1903,11 @@ class CalcProgram {
|
|
|
calcItem.unitFee = (eval(calcItem.compiledExpr) * feeRate * 0.01).toDecimal(decimalObj.decimal('unitPrice', treeNode));
|
|
calcItem.unitFee = (eval(calcItem.compiledExpr) * feeRate * 0.01).toDecimal(decimalObj.decimal('unitPrice', treeNode));
|
|
|
calcItem.totalFee = (calcItem.unitFee * calcTools.uiNodeQty(treeNode)).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
calcItem.totalFee = (calcItem.unitFee * calcTools.uiNodeQty(treeNode)).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
|
|
|
|
|
|
- if (tender == tenderTypes.ttCalc) {
|
|
|
|
|
|
|
+ // if (tender == tenderTypes.ttCalc) {
|
|
|
let tExpr = analyzer.getCompiledTenderExpr(calcItem.compiledExpr);
|
|
let tExpr = analyzer.getCompiledTenderExpr(calcItem.compiledExpr);
|
|
|
calcItem.tenderUnitFee = (eval(tExpr) * feeRate * 0.01).toDecimal(decimalObj.decimal('unitPrice', treeNode));
|
|
calcItem.tenderUnitFee = (eval(tExpr) * feeRate * 0.01).toDecimal(decimalObj.decimal('unitPrice', treeNode));
|
|
|
calcItem.tenderTotalFee = (calcItem.tenderUnitFee * treeNode.data.tenderQuantity).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
calcItem.tenderTotalFee = (calcItem.tenderUnitFee * treeNode.data.tenderQuantity).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
|
- };
|
|
|
|
|
|
|
+ // };
|
|
|
|
|
|
|
|
if (calcItem.fieldName) {
|
|
if (calcItem.fieldName) {
|
|
|
fnArr.push(calcItem.fieldName);
|
|
fnArr.push(calcItem.fieldName);
|