|  | @@ -1361,13 +1361,13 @@ $(document).ready(() => {
 | 
	
		
			
				|  |  |              for (const node of sortData) {
 | 
	
		
			
				|  |  |                  if (node.children && node.children.length > 0) continue;
 | 
	
		
			
				|  |  |                  if (node.quantity) {
 | 
	
		
			
				|  |  | -                    if (ZhCalc.sub(node.quantity, node.end_gather_qty) > 0) {
 | 
	
		
			
				|  |  | +                    if (ZhCalc.sub(ZhCalc.add(node.quantity, node.end_qc_qty), node.end_gather_qty) > 0) {
 | 
	
		
			
				|  |  |                          const data = JSON.parse(JSON.stringify(node));
 | 
	
		
			
				|  |  |                          data.visible = true;
 | 
	
		
			
				|  |  |                          this.searchResult.push(data);
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  } else if (node.total_price) {
 | 
	
		
			
				|  |  | -                    if (ZhCalc.sub(node.total_price, node.end_gather_tp) > 0) {
 | 
	
		
			
				|  |  | +                    if (ZhCalc.sub(ZhCalc.add(node.total_price, node.end_qc_tp), node.end_gather_tp) > 0) {
 | 
	
		
			
				|  |  |                          const data = JSON.parse(JSON.stringify(node));
 | 
	
		
			
				|  |  |                          data.visible = true;
 | 
	
		
			
				|  |  |                          this.searchResult.push(data);
 | 
	
	
		
			
				|  | @@ -1400,7 +1400,7 @@ $(document).ready(() => {
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                          if (checkEmpty) {
 | 
	
		
			
				|  |  |                              if (sd.quantity) {
 | 
	
		
			
				|  |  | -                                if (!sd.end_gather_qty || ZhCalc.sub(sd.quantity, sd.end_gather_qty) > 0) match = true;
 | 
	
		
			
				|  |  | +                                if (!sd.end_gather_qty || ZhCalc.sub(ZhCalc(sd.quantity, ad.end_qc_qty), sd.end_gather_qty) > 0) match = true;
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                          if (keyword && keyword !== '' && sd.name && sd.name.indexOf(keyword) === -1) match = false;
 | 
	
	
		
			
				|  | @@ -1661,7 +1661,6 @@ $(document).ready(() => {
 | 
	
		
			
				|  |  |              toast('附件信息获取失败', 'error');
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      $('body').on('click', '#btn-att a', function () {
 | 
	
		
			
				|  |  |          const content = $(this).attr('content');
 | 
	
		
			
				|  |  |          const fid = $('#showAttachment').attr('file-id');
 | 
	
	
		
			
				|  | @@ -1780,8 +1779,8 @@ $(document).ready(() => {
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      // 显示层次
 | 
	
		
			
				|  |  |      (function (select, sheet) {
 | 
	
		
			
				|  |  | -        if (!sheet.zh_tree) return;
 | 
	
		
			
				|  |  |          $(select).click(function () {
 | 
	
		
			
				|  |  | +            if (!sheet.zh_tree) return;
 | 
	
		
			
				|  |  |              const tag = $(this).attr('tag');
 | 
	
		
			
				|  |  |              const tree = sheet.zh_tree;
 | 
	
		
			
				|  |  |              switch (tag) {
 |