|
@@ -2161,8 +2161,7 @@ class CalcProgram {
|
|
|
}
|
|
|
|
|
|
// 清单部分抽取出来,供分摊清单公用。
|
|
|
- // commonCalcType:1 叶子清单汇总定额的费用类别; 2 父清单汇总子清单的费用类别。
|
|
|
- // 3: 分摊:叶子清单汇总定额的费用类别。4: 清单单价锁定。
|
|
|
+ // commonCalcType:1 叶子清单汇总定额的费用类别; 2 父清单汇总子清单的费用类别。3: 分摊:叶子清单汇总定额的费用类别。
|
|
|
innerCalcBill(treeNode, commonCalcType, tender = tenderTypes.ttCalc) {
|
|
|
let me = this;
|
|
|
treeNode.data.programID = null;
|
|
@@ -2274,14 +2273,14 @@ class CalcProgram {
|
|
|
bttf = (btuf.toDecimal(decimalObj.bills.unitPrice) * btq).toDecimal(decimalObj.process);
|
|
|
}
|
|
|
}
|
|
|
- else if (commonCalcType == 4){ // 清单单价锁定
|
|
|
- if (treeNode.data.feesIndex && treeNode.data.feesIndex[ft.type]) {
|
|
|
- buf = parseFloatPlus(treeNode.data.feesIndex[ft.type].unitFee).toDecimal(decimalObj.bills.unitPrice);
|
|
|
- btuf = parseFloatPlus(treeNode.data.feesIndex[ft.type].tenderUnitFee).toDecimal(decimalObj.bills.unitPrice);
|
|
|
- btf = (bq * buf).toDecimal(decimalObj.bills.totalPrice);
|
|
|
- bttf = (btq * btuf).toDecimal(decimalObj.bills.totalPrice);
|
|
|
- }
|
|
|
- }
|
|
|
+ // else if (commonCalcType == 4){ // 清单单价锁定改走innerCalcBillCustom方法
|
|
|
+ // if (treeNode.data.feesIndex && treeNode.data.feesIndex[ft.type]) {
|
|
|
+ // buf = parseFloatPlus(treeNode.data.feesIndex[ft.type].unitFee).toDecimal(decimalObj.bills.unitPrice);
|
|
|
+ // btuf = parseFloatPlus(treeNode.data.feesIndex[ft.type].tenderUnitFee).toDecimal(decimalObj.bills.unitPrice);
|
|
|
+ // btf = (bq * buf).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ // bttf = (btq * btuf).toDecimal(decimalObj.bills.totalPrice);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
ftObj.totalFee = btf.toDecimal(decimalObj.bills.totalPrice);
|
|
|
ftObj.tenderTotalFee = bttf.toDecimal(decimalObj.bills.totalPrice);
|