|  | @@ -34,6 +34,25 @@ function getExprInfo (field) {
 | 
	
		
			
				|  |  |  function transExpr(expr) {
 | 
	
		
			
				|  |  |      return expr.replace('=', '').replace('%', '/100');
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +const checkOption = {
 | 
	
		
			
				|  |  | +    sibling: { enable: 1 },
 | 
	
		
			
				|  |  | +    empty_code: { enable: 1 },
 | 
	
		
			
				|  |  | +    calc: {
 | 
	
		
			
				|  |  | +        enable: 1,
 | 
	
		
			
				|  |  | +        fields: ['sgfh_qty', 'qtcl_qty', 'sjcl_qty', 'quantity'],
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    zero: { enable: 1 },
 | 
	
		
			
				|  |  | +    tp: {
 | 
	
		
			
				|  |  | +        enable: 1,
 | 
	
		
			
				|  |  | +        fields: [
 | 
	
		
			
				|  |  | +            {qty: 'sgfh_qty', tp: 'sgfh_tp'},
 | 
	
		
			
				|  |  | +            {qty: 'sjcl_qty', tp: 'sjcl_tp'},
 | 
	
		
			
				|  |  | +            {qty: 'qtcl_qty', tp: 'qtcl_tp'},
 | 
	
		
			
				|  |  | +            {qty: 'quantity', tp: 'total_price'},
 | 
	
		
			
				|  |  | +            {qty: 'deal_qty', tp: 'deal_tp'},
 | 
	
		
			
				|  |  | +        ],
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  $(document).ready(function() {
 | 
	
		
			
				|  |  |      let stdXmj, stdGcl, dealBills, searchLedger;
 | 
	
	
		
			
				|  | @@ -101,7 +120,7 @@ $(document).ready(function() {
 | 
	
		
			
				|  |  |          selector: '#check-list',
 | 
	
		
			
				|  |  |          relaSpread: ledgerSpread,
 | 
	
		
			
				|  |  |          storeKey: 'ledger-check-' + getTenderId(),
 | 
	
		
			
				|  |  | -        checkType: ledgerCheckType,
 | 
	
		
			
				|  |  | +        checkType: getCheckType(checkOption),
 | 
	
		
			
				|  |  |          afterLocated:  function () {
 | 
	
		
			
				|  |  |              posOperationObj.loadCurPosData();
 | 
	
		
			
				|  |  |          },
 | 
	
	
		
			
				|  | @@ -3394,25 +3413,7 @@ $(document).ready(function() {
 | 
	
		
			
				|  |  |              ledgerPos: pos,
 | 
	
		
			
				|  |  |              checkList: checkList,
 | 
	
		
			
				|  |  |              decimal: tenderInfo.decimal,
 | 
	
		
			
				|  |  | -            checkOption: {
 | 
	
		
			
				|  |  | -                sibling: { enable: 1 },
 | 
	
		
			
				|  |  | -                empty_code: { enable: 1 },
 | 
	
		
			
				|  |  | -                calc: {
 | 
	
		
			
				|  |  | -                    enable: 1,
 | 
	
		
			
				|  |  | -                    fields: ['sgfh_qty', 'qtcl_qty', 'sjcl_qty', 'quantity'],
 | 
	
		
			
				|  |  | -                },
 | 
	
		
			
				|  |  | -                zero: { enable: 1 },
 | 
	
		
			
				|  |  | -                tp: {
 | 
	
		
			
				|  |  | -                    enable: 1,
 | 
	
		
			
				|  |  | -                    fields: [
 | 
	
		
			
				|  |  | -                        {qty: 'sgfh_qty', tp: 'sgfh_tp'},
 | 
	
		
			
				|  |  | -                        {qty: 'sjcl_qty', tp: 'sjcl_tp'},
 | 
	
		
			
				|  |  | -                        {qty: 'qtcl_qty', tp: 'qtcl_tp'},
 | 
	
		
			
				|  |  | -                        {qty: 'quantity', tp: 'total_price'},
 | 
	
		
			
				|  |  | -                        {qty: 'deal_qty', tp: 'deal_tp'},
 | 
	
		
			
				|  |  | -                    ],
 | 
	
		
			
				|  |  | -                },
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +            checkOption: checkOption,
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          check2Viewing({
 | 
	
		
			
				|  |  |              extra: ZhCalc.div(ledgerTree.datas.length + pos.datas.length, 10000, 0),
 |