|
@@ -1425,6 +1425,7 @@ class CalcProgram {
|
|
|
else{
|
|
|
let fnArr = [];
|
|
|
if (treeNode.calcType == treeNodeCalcType.ctRationCalcProgram) {
|
|
|
+ // 量价、工料机类型的定额要求市场合价
|
|
|
if (treeNode.data.type == rationType.volumePrice || treeNode.data.type == rationType.gljRation){
|
|
|
delete treeNode.data.gljList;
|
|
|
let muf = treeNode.data.marketUnitFee ? treeNode.data.marketUnitFee : 0;
|
|
@@ -1434,9 +1435,17 @@ class CalcProgram {
|
|
|
treeNode.data.marketTotalFee = mtf;
|
|
|
treeNode.changed = true;
|
|
|
} ;
|
|
|
- }
|
|
|
- else{
|
|
|
- treeNode.data.gljList = me.project.ration_glj.getGljArrByRation(treeNode.data.ID);
|
|
|
+ };
|
|
|
+
|
|
|
+ // 工料机类型的定额、定额要算暂估费
|
|
|
+ if (treeNode.data.type != rationType.volumePrice){
|
|
|
+ if (treeNode.data.type == rationType.gljRation){
|
|
|
+ let glj = JSON.parse(JSON.stringify(treeNode.data));
|
|
|
+ glj.type = glj.subType;
|
|
|
+ treeNode.data.gljList = [glj];
|
|
|
+ }
|
|
|
+ else
|
|
|
+ treeNode.data.gljList = me.project.ration_glj.getGljArrByRation(treeNode.data.ID);
|
|
|
// 计算程序里没有暂估费的计算规则,会漏掉,所以这里要专门算。
|
|
|
calcTools.estimateFee(treeNode);
|
|
|
fnArr.push('estimate');
|