|
|
@@ -182,7 +182,13 @@ let calcTools = {
|
|
|
'tenderUnitFee': 0,
|
|
|
'tenderTotalFee': 0
|
|
|
};
|
|
|
- treeNode.data.fees.push(fee);
|
|
|
+
|
|
|
+ let newArr = treeNode.data.fees.filter(function (ele) {return ele.fieldName == fieldName});
|
|
|
+ if (newArr.length > 0)
|
|
|
+ fee = newArr[0]
|
|
|
+ else
|
|
|
+ treeNode.data.fees.push(fee);
|
|
|
+
|
|
|
treeNode.data.feesIndex[fieldName] = fee;
|
|
|
treeNode.updateData.fees = _.cloneDeep(treeNode.data.fees);
|
|
|
treeNode.changed = true;
|