FormPanel.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. Ext.define('saas.view.money.fundtransfer.FormPanel', {
  2. extend: 'saas.view.core.form.FormPanel',
  3. xtype: 'money-fundtransfer-formpanel',
  4. controller: 'money-fundtransfer-formpanel',
  5. viewModel: 'money-fundtransfer-formpanel',
  6. viewName: 'money-fundtransfer-formpanel',
  7. caller:'FundTransfer',
  8. //字段属性
  9. _title:'其它收入单',
  10. _idField: 'id',
  11. _codeField: 'ft_code',
  12. _statusField: 'ft_status',
  13. _statusCodeField: 'ft_statuscode',
  14. _relationColumn: 'ftd_ftid',
  15. _readUrl:'/api/money/fundtransfer/read/',
  16. _saveUrl:'/api/money/fundtransfer/save',
  17. _auditUrl:'/api/money/fundtransfer/audit/',
  18. _unAuditUrl: '/api/money/fundtransfer/unAudit/',
  19. _deleteUrl:'/api/money/fundtransfer/delete/',
  20. initId:0,
  21. defaultItems: [{
  22. xtype: 'hidden',
  23. name: 'id',
  24. fieldLabel: 'id'
  25. }, {
  26. format : "Y-m-d",
  27. xtype : "datefield",
  28. name : "ft_date",
  29. fieldLabel : "单据日期"
  30. }, {
  31. name : "detailGridField",
  32. xtype : "detailGridField",
  33. storeModel:'saas.model.money.FundTransfer',
  34. detnoColumn: 'ftd_detno',
  35. deleteDetailUrl:'/api/money/fundtransfer/deleteItem/',
  36. columnWidth : 1,
  37. columns : [
  38. {
  39. text : "id",
  40. dataIndex : "id",
  41. xtype : "numbercolumn",
  42. width:0
  43. }, {
  44. text : "期间",
  45. dataIndex : "ftd_ym",
  46. editor : {
  47. xtype : "numberfield"
  48. },
  49. width : 120.0,
  50. xtype : "numbercolumn",
  51. items : null
  52. }, {
  53. text : "转出账户ID",
  54. dataIndex : "ftd_bankid",
  55. width : 0
  56. }, {
  57. text : "转出账户编号",
  58. dataIndex : "ftd_bankcode",
  59. width :0
  60. }, {
  61. text : "转出账户",
  62. width : 200.0,
  63. dataIndex : "ftd_bankname",
  64. xtype : "",
  65. items : null,
  66. editor : {
  67. displayField : "display",
  68. editable : true,
  69. format : "",
  70. hideTrigger : false,
  71. maxLength : 100.0,
  72. minValue : null,
  73. positiveNum : false,
  74. queryMode : "local",
  75. store : null,
  76. valueField : "value",
  77. xtype : "dbfindtrigger"
  78. }
  79. }, {
  80. text : "转入账户ID",
  81. dataIndex : "ftd_inbankid",
  82. width : 0
  83. }, {
  84. text : "转入账户编号",
  85. dataIndex : "ftd_inbankcode",
  86. width :0
  87. }, {
  88. text : "转入账户",
  89. width : 200.0,
  90. dataIndex : "ftd_inbankname",
  91. xtype : "",
  92. items : null,
  93. editor : {
  94. displayField : "display",
  95. editable : true,
  96. format : "",
  97. hideTrigger : false,
  98. maxLength : 100.0,
  99. minValue : null,
  100. positiveNum : false,
  101. queryMode : "local",
  102. store : null,
  103. valueField : "value",
  104. xtype : "dbfindtrigger"
  105. }
  106. }, {
  107. text : "金额",
  108. dataIndex : "ftd_nowbalance",
  109. editor : {
  110. xtype : "numberfield"
  111. },
  112. width : 120.0,
  113. xtype : "numbercolumn",
  114. format:'0',
  115. items : null,
  116. summaryType: 'sum'
  117. }, {
  118. text : "结算方式号",
  119. dataIndex : "ftd_paycode",
  120. width : 100,
  121. editor:{
  122. xtype: ''
  123. }
  124. }, {
  125. text : "结算方式",
  126. width : 150.0,
  127. dataIndex : "ftd_paymethod",
  128. xtype : "",
  129. items : null,
  130. editor:{
  131. xtype: 'combobox',
  132. name: 'ftd_paymethod',
  133. queryMode: 'local',
  134. displayField: 'ftd_paymethod_d',
  135. valueField: 'ftd_paymethod',
  136. editable:false,
  137. store: Ext.create('Ext.data.ArrayStore', {
  138. fields: ['ftd_paymethod', 'ftd_paymethod_d'],
  139. data: [
  140. ["无", "无"],
  141. ["支付宝转账", "支付宝转账"],
  142. ["微信转账", "微信转账"],
  143. ["现金", "现金"],
  144. ["银行转账", "银行转账"]
  145. ]
  146. })
  147. }
  148. }, {
  149. text : "备注",
  150. dataIndex : "ftd_remark",
  151. width : 120.0,
  152. items : null,
  153. flex : 1.0,
  154. editor : {
  155. xtype : ""
  156. }
  157. }
  158. ]
  159. },{
  160. xtype : "textfield",
  161. name : "ft_remark",
  162. fieldLabel : "备注",
  163. allowBlank : true,
  164. columnWidth : 0.75
  165. }, {
  166. xtype : "textfield",
  167. name : "ft_recorder",
  168. fieldLabel : "录入人",
  169. readOnly:true
  170. }, {
  171. format : "Y-m-d",
  172. xtype : "datefield",
  173. name : "ft_recorddate",
  174. fieldLabel : "录入日期",
  175. readOnly:true
  176. }
  177. ]
  178. });