|
|
@@ -2156,7 +2156,15 @@ class CalcProgram {
|
|
|
treeNode.data.targetTotalFee = (treeNode.data.targetUnitFee * treeNode.data.quantity).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
|
treeNode.changed = true;
|
|
|
}
|
|
|
- else{
|
|
|
+ else{ // 既没有目标金额也没有目标单价,此时要初始化使调价合价=原始综合合价,调价单价=原始综合单价。(交叉调价后,旧值会留下来)
|
|
|
+ if (treeNode.data.feesIndex.common.tenderUnitFee != treeNode.data.feesIndex.common.unitFee) {
|
|
|
+ treeNode.data.feesIndex.common.tenderUnitFee = treeNode.data.feesIndex.common.unitFee;
|
|
|
+ treeNode.changed = true;
|
|
|
+ };
|
|
|
+ if (treeNode.data.feesIndex.common.tenderTotalFee != treeNode.data.feesIndex.common.totalFee) {
|
|
|
+ treeNode.data.feesIndex.common.tenderTotalFee = treeNode.data.feesIndex.common.totalFee;
|
|
|
+ treeNode.changed = true;
|
|
|
+ };
|
|
|
return;
|
|
|
}
|
|
|
};
|