ration.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Created by Tony on 2017/4/28.
  3. */
  4. var params = {}
  5. $("#dinge").click(function(){
  6. $(this).attr('href', "/rationRepository/ration" + "?params=" + JSON.stringify(params))
  7. })
  8. $("#gongliao").click(function(){
  9. $(this).attr('href', "/rationRepository/gongliao" + "?params=" + JSON.stringify(params))
  10. });
  11. var rationOprObj = {
  12. sheet: null,
  13. setting: {
  14. header:[
  15. {headerName:"编码",headerWidth:120,data:"rationCode"},
  16. {headerName:"名称",headerWidth:400,data:"rationName"},
  17. {headerName:"单位",headerWidth:120,data:"unit"},
  18. {headerName:"基价",headerWidth:120,data:"basePrice"},
  19. {headerName:"显示名称(以%s表示参数)",headerWidth:450,data:"caption"},
  20. {headerName:"取费专业",headerWidth:120,data:"feeType"}
  21. ],
  22. view:{
  23. comboBox:[
  24. {row:-1,col:2,rowCount:-1,colCount:1}
  25. ],
  26. lockedCells:[
  27. {row:-1,col:3,rowCount:-1, colCount:1}
  28. ]
  29. }
  30. },
  31. buildSheet: function(container) {
  32. var me = this;
  33. me.sheet = sheetCommonObj.buildSheet(container, me.setting);
  34. }
  35. }