|
@@ -145,7 +145,8 @@ var projectObj = {
|
|
|
calc.calcNode(node, true);
|
|
|
nodes = getNodes(node);
|
|
|
project.Bills.updateNodes(nodes, true);
|
|
|
- } else if (node.sourceType === projectObj.project.VolumePrice.getSourceType()) {
|
|
|
+ }
|
|
|
+ else if (node.sourceType === projectObj.project.VolumePrice.getSourceType()) {
|
|
|
project.beginUpdate('VolumePrice_QuantityChange');
|
|
|
project.VolumePrice.updateField(node.source, fieldName, value, false);
|
|
|
calc.calcNode(node.parent, true);
|
|
@@ -153,14 +154,15 @@ var projectObj = {
|
|
|
project.Bills.updateNodes(nodes, false);
|
|
|
project.endUpdate();
|
|
|
nodes.push(node);
|
|
|
- } else if (node.sourceType === projectObj.project.Ration.getSourceType()) {
|
|
|
+ }
|
|
|
+ else if (node.sourceType === projectObj.project.Ration.getSourceType()) {
|
|
|
project.beginUpdate('Ration_QuantityChange');
|
|
|
calcFees.setFee(node.data, fieldName, value);
|
|
|
node.data.gljList = project.ration_glj.getGljArrByRation(node.data.ID);
|
|
|
// calcProgram.calculate的传参必须是cacheNode类型,故无法将计算放在Ration模块中。
|
|
|
project.calcProgram.calculate(node);
|
|
|
- project.Ration.updateRation(node.source, false);
|
|
|
- calc.calcNode(node.parent, true);
|
|
|
+ project.Ration.updateRation(node.source, false); // 加入待存储队列
|
|
|
+ calc.calcNode(node.parent, true); //
|
|
|
nodes = getNodes(node.parent);
|
|
|
project.Bills.updateNodes(nodes, false);
|
|
|
project.endUpdate();
|