|  | @@ -32,7 +32,7 @@ var rationCoeOprObj = {
 | 
	
		
			
				|  |  |          me.sheet.bind(GC.Spread.Sheets.Events.EditStarting, me.onEditStarting);
 | 
	
		
			
				|  |  |          me.sheet.bind(GC.Spread.Sheets.Events.EditEnded, me.onEditEnded);
 | 
	
		
			
				|  |  |          //右键
 | 
	
		
			
				|  |  | -        me.onContextmenuOpr();
 | 
	
		
			
				|  |  | +        //me.onContextmenuOpr();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      isDef: function (v) {
 | 
	
	
		
			
				|  | @@ -40,18 +40,18 @@ var rationCoeOprObj = {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      onContextmenuOpr: function () {
 | 
	
		
			
				|  |  | -        let me = rationCoeOprObj;
 | 
	
		
			
				|  |  | +        let raCoe = rationCoeOprObj;
 | 
	
		
			
				|  |  |          $.contextMenu({
 | 
	
		
			
				|  |  |              selector: '#rdSpread',
 | 
	
		
			
				|  |  |              build: function($triggerElement, e){
 | 
	
		
			
				|  |  |                  //控制允许右键菜单在哪个位置出现
 | 
	
		
			
				|  |  | -                let sheet = me.sheet;
 | 
	
		
			
				|  |  | +                let sheet = raCoe.sheet;
 | 
	
		
			
				|  |  |                  let offset = $("#rdSpread").offset(),
 | 
	
		
			
				|  |  |                      x = e.pageX - offset.left,
 | 
	
		
			
				|  |  |                      y = e.pageY - offset.top;
 | 
	
		
			
				|  |  |                  let target = sheet.hitTest(x, y);
 | 
	
		
			
				|  |  |                  if(sheet.getParent().getActiveSheetIndex() === 2 && target.hitTestType === 3 && typeof target.row !== 'undefined' && typeof target.col !== 'undefined'){//在表格内
 | 
	
		
			
				|  |  | -                    let currentCache = me.isDef(me.cache["_Coe_" + me.curRation.ID])  ? me.cache["_Coe_" + me.curRation.ID] : [];
 | 
	
		
			
				|  |  | +                    let currentCache = raCoe.isDef(raCoe.cache["_Coe_" + raCoe.curRation.ID])  ? raCoe.cache["_Coe_" + raCoe.curRation.ID] : [];
 | 
	
		
			
				|  |  |                      sheet.setActiveCell(target.row, target.col);
 | 
	
		
			
				|  |  |                      //控制按钮是否可用
 | 
	
		
			
				|  |  |                      let upDis = false,
 | 
	
	
		
			
				|  | @@ -63,10 +63,10 @@ var rationCoeOprObj = {
 | 
	
		
			
				|  |  |                          refDis = true;
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      else {
 | 
	
		
			
				|  |  | -                        if(!me.isDef(currentCache[target.row - 1])){
 | 
	
		
			
				|  |  | +                        if(!raCoe.isDef(currentCache[target.row - 1])){
 | 
	
		
			
				|  |  |                              upDis = true;
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                        if(!me.isDef(currentCache[target.row + 1])){
 | 
	
		
			
				|  |  | +                        if(!raCoe.isDef(currentCache[target.row + 1])){
 | 
	
		
			
				|  |  |                              downDis = true;
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
	
		
			
				|  | @@ -74,13 +74,13 @@ var rationCoeOprObj = {
 | 
	
		
			
				|  |  |                          callback: function(){},
 | 
	
		
			
				|  |  |                          items: {
 | 
	
		
			
				|  |  |                              "upMove": {name: "上移", disabled: upDis, icon: "fa-arrow-up", callback: function (key, opt) {
 | 
	
		
			
				|  |  | -                                me.upMove(currentCache[target.row], currentCache[target.row - 1], {row: target.row - 1, col: target.col});
 | 
	
		
			
				|  |  | +                                raCoe.upMove(currentCache[target.row], currentCache[target.row - 1], {row: target.row - 1, col: target.col});
 | 
	
		
			
				|  |  |                              }},
 | 
	
		
			
				|  |  |                              "downMove": {name: "下移", disabled: downDis, icon: "fa-arrow-down", callback: function (key, opt) {
 | 
	
		
			
				|  |  | -                                me.downMove(currentCache[target.row], currentCache[target.row + 1], {row: target.row + 1, col: target.col});
 | 
	
		
			
				|  |  | +                                raCoe.downMove(currentCache[target.row], currentCache[target.row + 1], {row: target.row + 1, col: target.col});
 | 
	
		
			
				|  |  |                              }},
 | 
	
		
			
				|  |  |                              "ref": {name: "添加到本节其他定额", disabled: refDis, icon: "fa-arrow-left", callback: function (key, opt) {
 | 
	
		
			
				|  |  | -                                me.updateSectionRation(rationOprObj.currentRations["_SEC_ID_" + rationOprObj.currentSectionId], currentCache[target.row], function (updateArr) {
 | 
	
		
			
				|  |  | +                                raCoe.updateSectionRation(rationOprObj.currentRations["_SEC_ID_" + rationOprObj.currentSectionId], currentCache[target.row], function (updateArr) {
 | 
	
		
			
				|  |  |                                      for(let i = 0, len = updateArr.length; i < len; i++){
 | 
	
		
			
				|  |  |                                          let ration = updateArr[i];
 | 
	
		
			
				|  |  |                                          let rationCoeList = updateArr[i].rationCoeList;
 | 
	
	
		
			
				|  | @@ -90,7 +90,7 @@ var rationCoeOprObj = {
 | 
	
		
			
				|  |  |                                                  newNo = rationCoeList[j].no + 1;
 | 
	
		
			
				|  |  |                                              }
 | 
	
		
			
				|  |  |                                          }
 | 
	
		
			
				|  |  | -                                        let theCache = me.cache["_Coe_" + ration.ID];
 | 
	
		
			
				|  |  | +                                        let theCache = raCoe.cache["_Coe_" + ration.ID];
 | 
	
		
			
				|  |  |                                          if(theCache !== undefined && theCache !== null){
 | 
	
		
			
				|  |  |                                              let newCoe = {};
 | 
	
		
			
				|  |  |                                              for(let attr in currentCache[target.row]){
 |