|
@@ -2460,7 +2460,7 @@ class CalcProgram {
|
|
|
// 先把会破坏金额比例关系的孩子排除:1.有目标金额的 2.满载的(孙子全满,没有分摊空间,所以实质上该孩子的金额已被锁死无法分摊)
|
|
|
for (let i = 0; i < treeNode.children.length; i++) {
|
|
|
let child = treeNode.children[i];
|
|
|
- if (!child.data.feesIndex['common']) continue; // 无计算金额的(如空清单)当它不存在
|
|
|
+ if (!child.data.feesIndex || !child.data.feesIndex['common']) continue; // 空白行清单、定额
|
|
|
|
|
|
child.data.tender_activeTotal = child.data.feesIndex['common'].totalFee;
|
|
|
|
|
@@ -2478,7 +2478,7 @@ class CalcProgram {
|
|
|
|
|
|
for (let i = 0; i < treeNode.children.length; i++) {
|
|
|
let child = treeNode.children[i];
|
|
|
- if (!child.data.feesIndex['common']) continue;
|
|
|
+ if (!child.data.feesIndex || !child.data.feesIndex['common']) continue; // 空白行清单、定额
|
|
|
if (!calcTools.hasTargetTotalFee(child)){
|
|
|
child.data.tender_activeTarget = (coe * child.data.tender_activeTotal).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
|
child.data.targetTotalFee = child.data.tender_activeTarget;
|