QueryPanelController.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Ext.define('saas.view.money.othspendings.QueryPanelController', {
  2. extend: 'saas.view.core.query.QueryPanelController',
  3. alias: 'controller.money-othspendings-querypanel',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. //放大镜赋值关系 以及 tpl模板
  8. 'dbfindtrigger[name=os_vendname]':{
  9. beforerender:function(f){
  10. Ext.apply(f,{
  11. dataUrl:'/api/document/vendor/list',
  12. addXtype: 'document-vendor-formpanel',
  13. addTitle: '供应商资料',
  14. dbfinds:[{
  15. from:'id',to:'os_vendid'
  16. },{
  17. from:'ve_code',to:'os_vendcode'
  18. },{
  19. from:'ve_name',to:'os_vendname'
  20. }],
  21. dbtpls:[{
  22. field:'ve_code',width:100
  23. },{
  24. field:'ve_name',width:100
  25. }],
  26. dbColumns:[{
  27. "text": "供应商ID",
  28. "flex": 0,
  29. "dataIndex": "id",
  30. "width": 100,
  31. "xtype": "numbercolumn"
  32. },{
  33. conditionCode:'ve_code',
  34. "text": "供应商编号",
  35. "flex": 1,
  36. "dataIndex": "ve_code",
  37. "width": 100
  38. }, {
  39. conditionCode:'ve_name',
  40. "text": "供应商名称",
  41. "flex": 1,
  42. "dataIndex": "ve_name",
  43. "width": 100
  44. }, {
  45. conditionCode:'cu_type',
  46. "text": "供应商类型",
  47. "flex": 0,
  48. "dataIndex": "ve_type",
  49. "width": 200,
  50. "items": null
  51. }]
  52. }) ;
  53. }
  54. },
  55. //放大镜赋值关系 以及 tpl模板
  56. 'dbfindtrigger[name=os_bankname]':{
  57. beforerender:function(f){
  58. Ext.apply(f,{
  59. conditionCode:'os_bankcode',
  60. dataUrl:'/api/document/bankinformation/list',
  61. dbfinds:[{
  62. from:'bk_bankcode',to:'os_bankcode'
  63. },{
  64. from:'bk_bankname',to:'os_bankname'
  65. },{
  66. from:'id',to:'os_bankid'
  67. }],
  68. dbtpls:[{
  69. field:'bk_bankcode',width:100
  70. },{
  71. field:'bk_bankname',width:100
  72. }],
  73. dbColumns:[{
  74. "text": "账户ID",
  75. "flex": 0,
  76. "dataIndex": "id",
  77. "width": 0,
  78. "xtype": "numbercolumn",
  79. "items": null
  80. },{
  81. "text": "账户编号",
  82. "flex": 1,
  83. "dataIndex": "bk_bankcode",
  84. "width": 100,
  85. "xtype": "",
  86. "items": null
  87. }, {
  88. "text": "账户名称",
  89. "flex": 1,
  90. "dataIndex": "bk_bankname",
  91. "xtype": "",
  92. "items": null
  93. }, {
  94. "text": "账户类型",
  95. "flex": 0,
  96. "dataIndex": "bk_type",
  97. "width": 200,
  98. "xtype": "",
  99. "items": null
  100. }]
  101. }) ;
  102. }
  103. }
  104. });
  105. }
  106. });