|
@@ -2336,7 +2336,7 @@
|
|
|
// 反向调价
|
|
// 反向调价
|
|
|
calcTenderReverse(treeNode, tender) {
|
|
calcTenderReverse(treeNode, tender) {
|
|
|
if (tender == tenderTypes.ttReverseRation) {
|
|
if (tender == tenderTypes.ttReverseRation) {
|
|
|
- if (treeNode.data.feesIndex.common.tenderUnitFee != treeNode.data.feesIndex.common.unitFee) {
|
|
|
|
|
|
|
+ if (treeNode.data.feesIndex.common && treeNode.data.feesIndex.common.tenderUnitFee != treeNode.data.feesIndex.common.unitFee) {
|
|
|
treeNode.data.feesIndex.common.tenderUnitFee = treeNode.data.feesIndex.common.unitFee;
|
|
treeNode.data.feesIndex.common.tenderUnitFee = treeNode.data.feesIndex.common.unitFee;
|
|
|
treeNode.changed = true;
|
|
treeNode.changed = true;
|
|
|
}
|
|
}
|
|
@@ -2347,11 +2347,11 @@
|
|
|
treeNode.data.targetTotalFee = (treeNode.data.targetUnitFee * treeNode.data.quantity).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
treeNode.data.targetTotalFee = (treeNode.data.targetUnitFee * treeNode.data.quantity).toDecimal(decimalObj.decimal('totalPrice', treeNode));
|
|
|
treeNode.changed = true;
|
|
treeNode.changed = true;
|
|
|
} else { // 既没有目标金额也没有目标单价,此时要初始化使调价合价=原始综合合价,调价单价=原始综合单价。
|
|
} else { // 既没有目标金额也没有目标单价,此时要初始化使调价合价=原始综合合价,调价单价=原始综合单价。
|
|
|
- if (treeNode.data.feesIndex.common.tenderUnitFee != treeNode.data.feesIndex.common.unitFee) {
|
|
|
|
|
|
|
+ if (treeNode.data.feesIndex.common && treeNode.data.feesIndex.common.tenderUnitFee != treeNode.data.feesIndex.common.unitFee) {
|
|
|
treeNode.data.feesIndex.common.tenderUnitFee = treeNode.data.feesIndex.common.unitFee;
|
|
treeNode.data.feesIndex.common.tenderUnitFee = treeNode.data.feesIndex.common.unitFee;
|
|
|
treeNode.changed = true;
|
|
treeNode.changed = true;
|
|
|
};
|
|
};
|
|
|
- if (treeNode.data.feesIndex.common.tenderTotalFee != treeNode.data.feesIndex.common.totalFee) {
|
|
|
|
|
|
|
+ if (treeNode.data.feesIndex.common && treeNode.data.feesIndex.common.tenderTotalFee != treeNode.data.feesIndex.common.totalFee) {
|
|
|
treeNode.data.feesIndex.common.tenderTotalFee = treeNode.data.feesIndex.common.totalFee;
|
|
treeNode.data.feesIndex.common.tenderTotalFee = treeNode.data.feesIndex.common.totalFee;
|
|
|
treeNode.changed = true;
|
|
treeNode.changed = true;
|
|
|
};
|
|
};
|