|  | @@ -166,6 +166,7 @@ class YbpImportTree {
 | 
	
		
			
				|  |  |          const setting = this.setting;
 | 
	
		
			
				|  |  |          const compareData = { kind: node.kind };
 | 
	
		
			
				|  |  |          const hasUp = (!node.children || node.children.length === 0) && defaultMerge.indexOf(compareData.kind) < 0;
 | 
	
		
			
				|  |  | +        // const hasUp = (!node.children || node.children.length === 0) &&(defaultMerge.indexOf(compareData.kind) < 0 ||  (this.importType === YbpImportType.flow));
 | 
	
		
			
				|  |  |          const isXmj = defaultMerge.indexOf(compareData.kind) >= 0;
 | 
	
		
			
				|  |  |          compareData.code = isXmj ? node.code || '' : '';
 | 
	
		
			
				|  |  |          compareData.b_code = isXmj ? '' : node.code || '';
 | 
	
	
		
			
				|  | @@ -192,7 +193,7 @@ class YbpImportTree {
 | 
	
		
			
				|  |  |                  this.children.push(cur);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              this.datas.push(cur);
 | 
	
		
			
				|  |  | -            cur.dgn_qty1 = isXmj ? node.quantity || 1 : 0;
 | 
	
		
			
				|  |  | +            cur.dgn_qty1 = isXmj ? node.quantity || 0 : 0;
 | 
	
		
			
				|  |  |              cur.dgn_qty2 = isXmj ? node.quantity2 || 0 : 0;
 | 
	
		
			
				|  |  |              cur.quantity = isXmj ? 0 : node.quantity || 0;
 | 
	
		
			
				|  |  |              cur.total_fee = node.fees ? node.fees.marketCommon.totalFee : 0;
 | 
	
	
		
			
				|  | @@ -201,7 +202,7 @@ class YbpImportTree {
 | 
	
		
			
				|  |  |              cur.features = node.itemCharacterText || '';
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              if (isXmj) {
 | 
	
		
			
				|  |  | -                cur.dgn_qty1 = this.helper.add(cur.dgn_qty1, node.quantity || 1);
 | 
	
		
			
				|  |  | +                cur.dgn_qty1 = this.helper.add(cur.dgn_qty1, node.quantity || 0);
 | 
	
		
			
				|  |  |                  cur.dgn_qty2 = this.helper.add(cur.dgn_qty2, node.quantity2 || 0);
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  cur.quantity = this.helper.add(cur.quantity, node.quantity || 0);
 |