|  | @@ -8,7 +8,7 @@ contentOprObj.buildSheet($("#jobSpread")[0]);
 | 
	
		
			
				|  |  |  characterOprObj.buildSheet($("#itemSpread")[0]);
 | 
	
		
			
				|  |  |  $("#tzjnrCon").hide();
 | 
	
		
			
				|  |  |  $("#subSpread").show();
 | 
	
		
			
				|  |  | -var subSpread = sheetCommonObj.createSpread($("#subSpread")[0], 7);
 | 
	
		
			
				|  |  | +var subSpread = sheetCommonObj.createSpread($("#subSpread")[0], 5);
 | 
	
		
			
				|  |  |  subSpread.getSheet(4).name('JSCX');
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  pageCCOprObj.active = false;
 | 
	
	
		
			
				|  | @@ -93,26 +93,6 @@ $("#linkJSCX").click(function(){        // 计算程序
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -$("#linkFXSM").click(function(){
 | 
	
		
			
				|  |  | -    $("#tzjnrCon").hide();
 | 
	
		
			
				|  |  | -    $("#subSpread").show();
 | 
	
		
			
				|  |  | -    pageCCOprObj.active = false;
 | 
	
		
			
				|  |  | -    refreshSubSpread();
 | 
	
		
			
				|  |  | -    subSpread.setActiveSheetIndex(5);
 | 
	
		
			
				|  |  | -    // for test
 | 
	
		
			
				|  |  | -    subSpread.getActiveSheet().setValue(0, 0, "分项说明");
 | 
	
		
			
				|  |  | -});
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -$("#linkDESM").click(function(){
 | 
	
		
			
				|  |  | -    $("#tzjnrCon").hide();
 | 
	
		
			
				|  |  | -    $("#subSpread").show();
 | 
	
		
			
				|  |  | -    pageCCOprObj.active = false;
 | 
	
		
			
				|  |  | -    refreshSubSpread();
 | 
	
		
			
				|  |  | -    subSpread.setActiveSheetIndex(6);
 | 
	
		
			
				|  |  | -    // for test
 | 
	
		
			
				|  |  | -    subSpread.getActiveSheet().setValue(0, 0, "定额说明");
 | 
	
		
			
				|  |  | -});
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  //特征及内容
 | 
	
		
			
				|  |  |  $("#linkTZJNR").click(function () {
 | 
	
		
			
				|  |  |      $("#subSpread").hide();
 | 
	
	
		
			
				|  | @@ -141,4 +121,41 @@ function refreshSubSpread(){
 | 
	
		
			
				|  |  |      else{
 | 
	
		
			
				|  |  |          subSpread.refresh();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +let subViewObj = {
 | 
	
		
			
				|  |  | +    linkTabClick: function () {
 | 
	
		
			
				|  |  | +        $("#subItems").children().hide();
 | 
	
		
			
				|  |  | +        $($(this).attr('href')).show();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    loadComments: function (node) {
 | 
	
		
			
				|  |  | +        let select = node;
 | 
	
		
			
				|  |  | +        if (select && select.sourceType === projectObj.project.Bills.getSourceType()) {
 | 
	
		
			
				|  |  | +            $('#fxComments>textarea').val(select.data.comments).removeAttr('readOnly');
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +            $('#fxComments>textarea').val('').attr('readOnly', true);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (select && select.sourceType === projectObj.project.Ration.getSourceType()) {
 | 
	
		
			
				|  |  | +            $('#rationComments>textarea').val(select.data.comments).removeAttr('readOnly');
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +            $('#rationComments>textarea').val('').attr('readOnly', true);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    saveComments: function (node) {
 | 
	
		
			
				|  |  | +        let select = node;
 | 
	
		
			
				|  |  | +        if (select.sourceType === projectObj.project.Bills.getSourceType()) {
 | 
	
		
			
				|  |  | +            let text = $('#fxComments>textarea').val();
 | 
	
		
			
				|  |  | +            if (select.data.comments !== text) {
 | 
	
		
			
				|  |  | +                projectObj.project.Bills.updateField(select.source, 'comments', text);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        } else if (select.sourceType === projectObj.project.Ration.getSourceType()) {
 | 
	
		
			
				|  |  | +            let text = $('#rationComments>textarea').val();
 | 
	
		
			
				|  |  | +            if (select.data.comments !== text) {
 | 
	
		
			
				|  |  | +                projectObj.project.Ration.updateField(select.source, 'comments', text);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +$("#linkFXSM").click(subViewObj.linkTabClick);
 | 
	
		
			
				|  |  | +$("#linkDESM").click(subViewObj.linkTabClick);
 |