QueryPanelController.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. "text": "供应商编号",
  34. "flex": 1,
  35. "dataIndex": "ve_code",
  36. "width": 100
  37. }, {
  38. "text": "供应商名称",
  39. "flex": 1,
  40. "dataIndex": "ve_name",
  41. "width": 100
  42. }, {
  43. "text": "供应商类型",
  44. "flex": 0,
  45. "dataIndex": "ve_type",
  46. "width": 200,
  47. "items": null
  48. }, {
  49. "text": "税率",
  50. "flex": 1,
  51. "dataIndex": "ve_taxrate",
  52. "width": 100
  53. }, {
  54. "text": "承付天数",
  55. "flex": 1,
  56. "dataIndex": "ve_promisedays",
  57. "width": 100
  58. }, {
  59. "text": "纳税人识别号",
  60. "flex": 1,
  61. "dataIndex": "ve_bankaccount",
  62. "width": 100
  63. }, {
  64. "text": "开户银行",
  65. "flex": 1,
  66. "dataIndex": "ve_bankaccount",
  67. "width": 100
  68. }, {
  69. "text": "银行账户",
  70. "flex": 1,
  71. "dataIndex": "ve_bankcode",
  72. "width": 100
  73. }]
  74. }) ;
  75. }
  76. },
  77. //放大镜赋值关系 以及 tpl模板
  78. 'dbfindtrigger[name=os_bankname]':{
  79. beforerender:function(f){
  80. Ext.apply(f,{
  81. conditionCode:'os_bankcode',
  82. dataUrl:'/api/document/bankinformation/list',
  83. dbfinds:[{
  84. from:'bk_bankcode',to:'os_bankcode'
  85. },{
  86. from:'bk_bankname',to:'os_bankname'
  87. },{
  88. from:'id',to:'os_bankid'
  89. }],
  90. dbtpls:[{
  91. field:'bk_bankcode',width:100
  92. },{
  93. field:'bk_bankname',width:100
  94. }],
  95. dbColumns:[{
  96. "text": "账户ID",
  97. "flex": 0,
  98. "dataIndex": "id",
  99. "width": 0,
  100. "xtype": ""
  101. },{
  102. "text": "账户编号",
  103. "flex": 1,
  104. "dataIndex": "bk_bankcode",
  105. "width": 120,
  106. "xtype": ""
  107. }, {
  108. "text": "账户名称",
  109. "flex": 1,
  110. "dataIndex": "bk_bankname",
  111. "width": 150,
  112. "xtype": ""
  113. }, {
  114. "text": "账户类型",
  115. "flex": 1,
  116. "dataIndex": "bk_type",
  117. "width": 120,
  118. "xtype": ""
  119. }, {
  120. "text": "账户余额",
  121. "flex": 1,
  122. "dataIndex": "bk_thisamount",
  123. "width": 120,
  124. "xtype": ""
  125. }, {
  126. "text": "建帐日期",
  127. "flex": 1,
  128. "dataIndex": "bk_date",
  129. "width": 120,
  130. "xtype": "datecolumn"
  131. }]
  132. }) ;
  133. }
  134. }
  135. });
  136. }
  137. });