|
@@ -399,7 +399,7 @@ class revisePriceCalc {
|
|
const self = this;
|
|
const self = this;
|
|
billsTree.calculateAll(node => {
|
|
billsTree.calculateAll(node => {
|
|
if (node.children && node.children.length > 0) return;
|
|
if (node.children && node.children.length > 0) return;
|
|
- if (node.cur_id && (node.cur_contract_qty || node.cur_qc_qty || node.cur_ex_stage_qty1)) {
|
|
|
|
|
|
+ if (node.cur_id && (node.cur_contract_qty || node.cur_qc_qty || node.cur_ex_stage_qty1 || node.cur_qc_minus_qty)) {
|
|
const cur_contract_tp = calcType === 'up'
|
|
const cur_contract_tp = calcType === 'up'
|
|
? helper.mul(node.cur_contract_qty, node.unit_price, decimal.tp)
|
|
? helper.mul(node.cur_contract_qty, node.unit_price, decimal.tp)
|
|
: self._calcContractTpByTp(node, decimal);
|
|
: self._calcContractTpByTp(node, decimal);
|
|
@@ -488,7 +488,7 @@ class revisePriceCalc {
|
|
const self = this;
|
|
const self = this;
|
|
billsTree.calculateAll(node => {
|
|
billsTree.calculateAll(node => {
|
|
if (node.children && node.children.length > 0) return;
|
|
if (node.children && node.children.length > 0) return;
|
|
- if (node.cur_id && (node.cur_contract_qty || node.cur_qc_qty)) {
|
|
|
|
|
|
+ if (node.cur_id && (node.cur_contract_qty || node.cur_qc_qty || node.cur_qc_minus_qty || node.cur_ex_stage_qty1)) {
|
|
const cur_contract_tp = calcType === 'up'
|
|
const cur_contract_tp = calcType === 'up'
|
|
? helper.mul(node.cur_contract_qty, node.unit_price, decimal.tp)
|
|
? helper.mul(node.cur_contract_qty, node.unit_price, decimal.tp)
|
|
: self._calcContractTpByTp(node, decimal);
|
|
: self._calcContractTpByTp(node, decimal);
|