QueryPanel.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. Ext.define('saas.view.money.fundtransfer.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'money-fundtransfer-querypanel',
  4. controller: 'money-fundtransfer-querypanel',
  5. viewModel: 'money-fundtransfer-querypanel',
  6. viewName: 'money-fundtransfer-querypanel',
  7. queryFormItems: [{
  8. xtype : "textfield",
  9. name : "ft_code",
  10. fieldLabel : "单据编号",
  11. },{
  12. xtype : "textfield",
  13. name : "ft_recorder",
  14. fieldLabel : "制单人",
  15. },{
  16. xtype : "textfield",
  17. name : "ft_auditman",
  18. fieldLabel : "审核人",
  19. },{
  20. xtype : "condatefield",
  21. name : "ft_date",
  22. fieldLabel : "单据日期",
  23. columnWidth: 0.5
  24. },{
  25. xtype: 'multicombo',
  26. name: 'ft_status',
  27. fieldLabel: '审核状态',
  28. datas: [
  29. ["已审核", "已审核"],
  30. ["未审核", "未审核"]
  31. ]
  32. },{
  33. name : "ft_status",
  34. fieldLabel : "结算方式",
  35. xtype:'combo',
  36. queryMode: 'local',
  37. displayField: 'display',
  38. valueField: 'value',
  39. store:Ext.create('Ext.data.Store', {
  40. fields: ['value', 'display'],
  41. data : [
  42. {value:"信用卡", display:"信用卡"},
  43. {value:"支票", display:"支票"},
  44. {value:"汇票", display:"汇票"},
  45. {value:"现金", display:"现金"},
  46. {value:"银行转账", display:"银行转账"},
  47. {value:"支付宝转账", display:"支付宝转账"},
  48. {value:"微信转账", display:"微信转账"}
  49. ]
  50. })
  51. },{
  52. xtype : "dbfindtrigger",
  53. name : "ftd_bankname",
  54. fieldLabel : "转出账号",
  55. },{
  56. xtype : "dbfindtrigger",
  57. name : "ftd_inbankname",
  58. fieldLabel : "转入账号",
  59. },{
  60. xtype: 'textfield',
  61. name: 'creatorName',
  62. fieldLabel: '录入人'
  63. }],
  64. moreQueryFormItems: [],
  65. queryGridConfig: {
  66. idField: 'id',
  67. codeField: 'ft_code',
  68. addTitle: '资金转存',
  69. addXtype: 'money-fundtransfer-formpanel',
  70. defaultCondition:'',
  71. baseVastUrl: '/api/money/fundtransfer/',
  72. // baseVastUrl: 'http://192.168.253.35:8880/fundtransfer/',
  73. baseColumn: [{
  74. text: 'id',
  75. dataIndex: 'id',
  76. width: 0
  77. }, {
  78. text: '单据编号',
  79. dataIndex: 'ft_code',
  80. width: 200
  81. }, {
  82. text: '单据日期',
  83. dataIndex: 'ft_date',
  84. xtype: 'datecolumn',
  85. width: 200
  86. },{
  87. text: '审核状态',
  88. dataIndex: 'ft_status',
  89. width: 120
  90. }, {
  91. text: '录入人',
  92. dataIndex: 'ft_recorder',
  93. width: 120
  94. }, {
  95. text: '审核人',
  96. dataIndex: 'ft_auditman',
  97. width: 120
  98. },{
  99. text: '转出账户',
  100. dataIndex: 'ftd_bankname',
  101. width: 120
  102. }, {
  103. text: '转入账户',
  104. dataIndex: 'ftd_inbankname',
  105. width: 120
  106. }, {
  107. text: '金额',
  108. xtype: 'numbercolumn',
  109. dataIndex: 'ftd_nowbalance',
  110. width: 120,
  111. renderer : function(v) {
  112. var arr = (v + '.').split('.');
  113. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  114. var format = '0,000.' + xr.join();
  115. return Ext.util.Format.number(v, format);
  116. },
  117. }, {
  118. text: '结算方式',
  119. dataIndex: 'ftd_paymethod',
  120. width: 120
  121. }, {
  122. text: '结算编号',
  123. dataIndex: 'ftd_paycode',
  124. width: 120
  125. }, {
  126. text: '备注',
  127. dataIndex: 'ftd_remark',
  128. width: 250
  129. }],
  130. relativeColumn: []
  131. }
  132. });