dinge.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * Created by Syusuke on 2017/3/17.
  3. */
  4. //---------------------------------------------------页面跳转
  5. var params = {}
  6. $("#dinge").click(function(){
  7. $(this).attr('href', "/rationLibEditor/rationLib" + "?params=" + JSON.stringify(params))
  8. })
  9. $("#gongliao").click(function(){
  10. $(this).attr('href', "/rationLibEditor/gongliao" + "?params=" + JSON.stringify(params))
  11. });
  12. var rationOprObj = {
  13. rationSpread : null,
  14. rationGLJSpread: null,
  15. spSetting_ration: {
  16. spType:"Ration",
  17. header:[
  18. {headerName:"编码",headerWidth:120,data:"rationCode"},
  19. {headerName:"名称",headerWidth:400,data:"rationName"},
  20. {headerName:"单位",headerWidth:120,data:"unit"},
  21. {headerName:"基价",headerWidth:120,data:"basePrice"},
  22. {headerName:"显示名称(以%s表示参数)",headerWidth:450,data:"caption"},
  23. {headerName:"取费专业",headerWidth:120,data:"feeType"}
  24. ],
  25. view:{
  26. comboBox:[
  27. {row:-1,col:2,rowCount:-1,colCount:1}
  28. ],
  29. lockedCells:[
  30. {row:-1,col:3,rowCount:-1, colCount:1}
  31. ]
  32. }
  33. },
  34. spSetting_rationGLJ: {
  35. spType:"RationGLJ",
  36. header:[
  37. {headerName:"编码",headerWidth:160},
  38. {headerName:"名称",headerWidth:400},
  39. {headerName:"单位",headerWidth:160},
  40. {headerName:"单位基价",headerWidth:160},
  41. {headerName:"定额消耗",headerWidth:160},
  42. {headerName:"类型",headerWidth:160},
  43. {headerName:"操作",headerWidth:130}
  44. ],
  45. view:{
  46. comboBox:[],
  47. lockedCells:[
  48. {row:-1,col:1,rowCount:-1, colCount:1},
  49. {row:-1,col:2,rowCount:-1, colCount:1},
  50. {row:-1,col:3,rowCount:-1, colCount:1},
  51. {row:-1,col:5,rowCount:-1, colCount:1},
  52. {row:-1,col:6,rowCount:-1, colCount:1}
  53. ]
  54. }
  55. },
  56. mkRationItemSpread: function() {
  57. var me = this;
  58. me.rationSpread = $.fn.Spread.init($("#rationItemsSheet"), me.spSetting_ration);
  59. me.rationGLJSpread = $.fn.Spread.init($("#rationGLJSheet"), me.spSetting_rationGLJ);
  60. }
  61. }