|
@@ -386,7 +386,7 @@ let executeObj = {
|
|
|
},
|
|
|
HJ: function () {
|
|
|
let me = this;
|
|
|
- let p = me.treeNode.data.calcBase ? me.treeNode.data.calcBase : 0;
|
|
|
+ let p = me.treeNode.data.calcBaseValue ? me.treeNode.data.calcBaseValue : 0;
|
|
|
let q = me.treeNode.data.quantity ? me.treeNode.data.quantity : 1;
|
|
|
let u = (p / q).toDecimal(decimalObj.decimal('unitPrice', me.treeNode));
|
|
|
return u;
|
|
@@ -739,6 +739,7 @@ class CalcProgram {
|
|
|
else if (treeNode.calcType == treeNodeCalcType.ctCommonUnitFee){
|
|
|
delete treeNode.data.gljList;
|
|
|
if (treeNode.data.calcBase) treeNode.data.calcBase = null; // 不能直接删除该属性,否则无法冲掉库中已存储的值
|
|
|
+ if (treeNode.data.calcBaseValue) treeNode.data.calcBaseValue = null; // 不能直接删除该属性,否则无法冲掉库中已存储的值
|
|
|
if (treeNode.data.programID) treeNode.data.programID = null;
|
|
|
|
|
|
let uf = (treeNode.data.feesIndex && treeNode.data.feesIndex.common && treeNode.data.feesIndex.common.unitFee) ? treeNode.data.feesIndex.common.unitFee : 0;
|
|
@@ -764,7 +765,7 @@ class CalcProgram {
|
|
|
|
|
|
let f = treeNode.data.feeRate ? treeNode.data.feeRate : 100;
|
|
|
let q = treeNode.data.quantity ? treeNode.data.quantity : 0;
|
|
|
- let b = treeNode.data.calcBaseValue;
|
|
|
+ let b = treeNode.data.calcBaseValue ? treeNode.data.calcBaseValue : 0;
|
|
|
let uf = (b * f * q / 100).toDecimal(decimalObj.bills.unitPrice);
|
|
|
let tuf = uf;
|
|
|
let tf = (me.project.projSetting.billsCalcMode === leafBillGetFeeType.rationPrice) ? (b * f / 100).toDecimal(decimalObj.bills.totalPrice) : (uf * q).toDecimal(decimalObj.bills.totalPrice);
|
|
@@ -906,6 +907,7 @@ class CalcProgram {
|
|
|
subType: node.data.subType,
|
|
|
quantity: node.data.quantity,
|
|
|
calcBase: node.data.calcBase,
|
|
|
+ calcBaseValue: node.data.calcBaseValue,
|
|
|
programID: node.data.programID,
|
|
|
marketUnitFee: node.data.marketUnitFee,
|
|
|
marketTotalFee: node.data.marketTotalFee,
|