1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /**
- * Created by Syusuke on 2017/3/17.
- */
- //---------------------------------------------------页面跳转
- var params = {}
- $("#dinge").click(function(){
- $(this).attr('href', "/rationLibEditor/rationLib" + "?params=" + JSON.stringify(params))
- })
- $("#gongliao").click(function(){
- $(this).attr('href', "/rationLibEditor/gongliao" + "?params=" + JSON.stringify(params))
- });
- var rationOprObj = {
- rationSpread : null,
- rationGLJSpread: null,
- spSetting_ration: {
- spType:"Ration",
- header:[
- {headerName:"编码",headerWidth:120,data:"rationCode"},
- {headerName:"名称",headerWidth:400,data:"rationName"},
- {headerName:"单位",headerWidth:120,data:"unit"},
- {headerName:"基价",headerWidth:120,data:"basePrice"},
- {headerName:"显示名称(以%s表示参数)",headerWidth:450,data:"caption"},
- {headerName:"取费专业",headerWidth:120,data:"feeType"}
- ],
- view:{
- comboBox:[
- {row:-1,col:2,rowCount:-1,colCount:1}
- ],
- lockedCells:[
- {row:-1,col:3,rowCount:-1, colCount:1}
- ]
- }
- },
- spSetting_rationGLJ: {
- spType:"RationGLJ",
- header:[
- {headerName:"编码",headerWidth:160},
- {headerName:"名称",headerWidth:400},
- {headerName:"单位",headerWidth:160},
- {headerName:"单位基价",headerWidth:160},
- {headerName:"定额消耗",headerWidth:160},
- {headerName:"类型",headerWidth:160},
- {headerName:"操作",headerWidth:130}
- ],
- view:{
- comboBox:[],
- lockedCells:[
- {row:-1,col:1,rowCount:-1, colCount:1},
- {row:-1,col:2,rowCount:-1, colCount:1},
- {row:-1,col:3,rowCount:-1, colCount:1},
- {row:-1,col:5,rowCount:-1, colCount:1},
- {row:-1,col:6,rowCount:-1, colCount:1}
- ]
- }
- },
- mkRationItemSpread: function() {
- var me = this;
- me.rationSpread = $.fn.Spread.init($("#rationItemsSheet"), me.spSetting_ration);
- me.rationGLJSpread = $.fn.Spread.init($("#rationGLJSheet"), me.spSetting_rationGLJ);
- }
- }
|