|  | @@ -272,29 +272,31 @@ class revisePriceCalc {
 | 
	
		
			
				|  |  |          const said = this.ctx.session.sessionUser.accountId;
 | 
	
		
			
				|  |  |          billsTree.calculateAll(node => {
 | 
	
		
			
				|  |  |              if (node.children && node.children.length > 0) return;
 | 
	
		
			
				|  |  | -            const priceDiff = helper.sub(node.unit_price, node.pre_unit_price);
 | 
	
		
			
				|  |  | -            if (!priceDiff) return;
 | 
	
		
			
				|  |  | +            // const priceDiff = helper.sub(node.unit_price, node.pre_unit_price);
 | 
	
		
			
				|  |  | +            // if (!priceDiff) return;
 | 
	
		
			
				|  |  |              if (node.cur_id && (node.cur_contract_qty || node.cur_qc_qty)) {
 | 
	
		
			
				|  |  | -                node.cur_contract_tp = helper.mul(node.cur_contract_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | -                node.cur_qc_tp = helper.mul(node.cur_qc_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | -                node.cur_positive_qc_tp = helper.mul(node.cur_positive_qc_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | -                node.cur_negative_qc_tp = helper.mul(node.cur_negative_qc_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | -                if (node.cur_times === stage.times && node.cur_order === 0) {
 | 
	
		
			
				|  |  | -                    result.ubData.push({
 | 
	
		
			
				|  |  | -                        id: node.cur_id,
 | 
	
		
			
				|  |  | -                        contract_tp: node.cur_contract_tp, qc_tp: node.cur_qc_tp,
 | 
	
		
			
				|  |  | -                        positive_qc_tp: node.cur_positive_qc_tp, negative_qc_tp: node.cur_negative_qc_tp,
 | 
	
		
			
				|  |  | -                    });
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | -                    result.ibData.push({
 | 
	
		
			
				|  |  | -                        tid: stage.tid, sid: stage.id, said,
 | 
	
		
			
				|  |  | -                        lid: node.id, times: stage.times, order: 0,
 | 
	
		
			
				|  |  | -                        contract_qty: node.cur_contract_qty, contract_tp: node.cur_contract_tp,
 | 
	
		
			
				|  |  | -                        qc_qty: node.cur_qc_qty, qc_tp: node.cur_qc_tp,
 | 
	
		
			
				|  |  | -                        positive_qc_qty: node.cur_positive_qc_qty, positive_qc_tp: node.cur_positive_qc_tp,
 | 
	
		
			
				|  |  | -                        negative_qc_qty: node.cur_negative_qc_qty, negative_qc_tp: node.cur_negative_qc_tp,
 | 
	
		
			
				|  |  | -                        postil: node.cur_postil,
 | 
	
		
			
				|  |  | -                    });
 | 
	
		
			
				|  |  | +                const cur_contract_tp = helper.mul(node.cur_contract_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | +                const cur_qc_tp = helper.mul(node.cur_qc_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | +                const cur_positive_qc_tp = helper.mul(node.cur_positive_qc_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | +                const cur_negative_qc_tp = helper.mul(node.cur_negative_qc_qty, node.unit_price, decimal.tp);
 | 
	
		
			
				|  |  | +                if (cur_contract_tp !== node.cur_contract_tp || cur_qc_tp !== node.cur_qc_tp || cur_positive_qc_tp !== node.cur_positive_qc_tp || cur_negative_qc_tp !== node.cur_positive_qc_tp) {
 | 
	
		
			
				|  |  | +                    if (node.cur_times === stage.times && node.cur_order === 0) {
 | 
	
		
			
				|  |  | +                        result.ubData.push({
 | 
	
		
			
				|  |  | +                            id: node.cur_id,
 | 
	
		
			
				|  |  | +                            contract_tp: cur_contract_tp, qc_tp: cur_qc_tp,
 | 
	
		
			
				|  |  | +                            positive_qc_tp: cur_positive_qc_tp, negative_qc_tp: cur_negative_qc_tp,
 | 
	
		
			
				|  |  | +                        });
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        result.ibData.push({
 | 
	
		
			
				|  |  | +                            tid: stage.tid, sid: stage.id, said,
 | 
	
		
			
				|  |  | +                            lid: node.id, times: stage.times, order: 0,
 | 
	
		
			
				|  |  | +                            contract_qty: node.cur_contract_qty, contract_tp: cur_contract_tp,
 | 
	
		
			
				|  |  | +                            qc_qty: node.cur_qc_qty, qc_tp: cur_qc_tp,
 | 
	
		
			
				|  |  | +                            positive_qc_qty: node.cur_positive_qc_qty, positive_qc_tp: cur_positive_qc_tp,
 | 
	
		
			
				|  |  | +                            negative_qc_qty: node.cur_negative_qc_qty, negative_qc_tp: cur_negative_qc_tp,
 | 
	
		
			
				|  |  | +                            postil: node.cur_postil,
 | 
	
		
			
				|  |  | +                        });
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (node.pre_id && (node.pre_contract_qty || node.pre_qc_qty)) {
 |