|
@@ -901,6 +901,8 @@ class CalcProgram {
|
|
|
let data = {
|
|
|
ID: node.data.ID,
|
|
|
projectID: me.project.ID(),
|
|
|
+ /* subType、quantity、calcBase、programID、marketUnitFee等等字段较为特殊,它们的改变一定会触发计算并导致计算
|
|
|
+ 结果的变化,从而引发保存动作。将这些字段放在该位置跟计算结果一起保存,可减少前端跟后端的通讯频率。 */
|
|
|
subType: node.data.subType,
|
|
|
quantity: node.data.quantity,
|
|
|
calcBase: node.data.calcBase,
|
|
@@ -908,7 +910,9 @@ class CalcProgram {
|
|
|
marketUnitFee: node.data.marketUnitFee,
|
|
|
marketTotalFee: node.data.marketTotalFee,
|
|
|
fees: node.data.fees,
|
|
|
- isFromDetail:node.data.isFromDetail
|
|
|
+ isFromDetail:node.data.isFromDetail,
|
|
|
+ feeRate: node.data.feeRate,
|
|
|
+ feeRateID: node.data.feeRateID
|
|
|
};
|
|
|
let newData = {'updateType': 'ut_update', 'updateData': data};
|
|
|
me.project.push(node.sourceType, [newData]);
|