|
@@ -153,8 +153,15 @@ INTERFACE_IMPORT = (() => {
|
|
|
}
|
|
}
|
|
|
if (bill.qtyFormula && bill.qtyFormula !== '') {
|
|
if (bill.qtyFormula && bill.qtyFormula !== '') {
|
|
|
let formula = getValue(item, ['CostComposition', 'Formula', '_Formulas']);
|
|
let formula = getValue(item, ['CostComposition', 'Formula', '_Formulas']);
|
|
|
|
|
+ let ratio = getValue(item, ['CostComposition', 'Formula', '_Ratio']);
|
|
|
if (formula !== undefined && formula !== null && formula !== '') {
|
|
if (formula !== undefined && formula !== null && formula !== '') {
|
|
|
bill.calcBase = formula; // 这个formula在后期还要处理的
|
|
bill.calcBase = formula; // 这个formula在后期还要处理的
|
|
|
|
|
+ if (ratio && ratio !== '') {
|
|
|
|
|
+ let dRation = parseFloat(ratio);
|
|
|
|
|
+ if (!isNaN(dRation) && dRation != 1) {
|
|
|
|
|
+ bill.calcBase = `(${formula} * ${dRation})`; // 如果有费率且不等于1,还需要调整基数公式
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (item._ProvisionalType == '0') bill.specialProvisional = '材料暂估';
|
|
if (item._ProvisionalType == '0') bill.specialProvisional = '材料暂估';
|