FormPanel.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. _deleteUrl:'/api/money/fundtransfer/delete/',
  18. initId:0,
  19. defaultItems: [{
  20. xtype: 'hidden',
  21. name: 'id',
  22. fieldLabel: 'id'
  23. }, {
  24. format : "Y-m-d",
  25. xtype : "datefield",
  26. name : "ft_date",
  27. fieldLabel : "单据日期"
  28. }, {
  29. name : "detailGridField",
  30. xtype : "detailGridField",
  31. storeModel:'saas.model.money.FundTransfer',
  32. detnoColumn: 'ftd_detno',
  33. deleteDetailUrl:'/api/money/fundtransfer/deleteItem/',
  34. columnWidth : 1,
  35. columns : [
  36. {
  37. text : "id",
  38. dataIndex : "id",
  39. xtype : "numbercolumn",
  40. width:0
  41. }, {
  42. text : "期间",
  43. dataIndex : "ftd_ym",
  44. editor : {
  45. xtype : "numberfield"
  46. },
  47. width : 120.0,
  48. xtype : "numbercolumn",
  49. items : null
  50. }, {
  51. text : "转出账户ID",
  52. dataIndex : "ftd_bankid",
  53. width : 0
  54. }, {
  55. text : "转出账户编号",
  56. dataIndex : "ftd_bankcode",
  57. width :0
  58. }, {
  59. text : "转出账户",
  60. width : 200.0,
  61. dataIndex : "ftd_bankname",
  62. xtype : "",
  63. items : null,
  64. editor : {
  65. displayField : "display",
  66. editable : true,
  67. format : "",
  68. hideTrigger : false,
  69. maxLength : 100.0,
  70. minValue : null,
  71. positiveNum : false,
  72. queryMode : "local",
  73. store : null,
  74. valueField : "value",
  75. xtype : "dbfindtrigger"
  76. }
  77. }, {
  78. text : "转入账户ID",
  79. dataIndex : "ftd_inbankid",
  80. width : 0
  81. }, {
  82. text : "转入账户编号",
  83. dataIndex : "ftd_inbankcode",
  84. width :0
  85. }, {
  86. text : "转入账户",
  87. width : 200.0,
  88. dataIndex : "ftd_inbankname",
  89. xtype : "",
  90. items : null,
  91. editor : {
  92. displayField : "display",
  93. editable : true,
  94. format : "",
  95. hideTrigger : false,
  96. maxLength : 100.0,
  97. minValue : null,
  98. positiveNum : false,
  99. queryMode : "local",
  100. store : null,
  101. valueField : "value",
  102. xtype : "dbfindtrigger"
  103. }
  104. }, {
  105. text : "金额",
  106. dataIndex : "ftd_nowbalance",
  107. editor : {
  108. xtype : "numberfield"
  109. },
  110. width : 120.0,
  111. xtype : "numbercolumn",
  112. format:'0',
  113. items : null,
  114. summaryType: 'sum'
  115. }, {
  116. text : "结算方式号",
  117. dataIndex : "ftd_paycode",
  118. width : 100,
  119. editor:{
  120. xtype: ''
  121. }
  122. }, {
  123. text : "结算方式",
  124. width : 200.0,
  125. dataIndex : "ftd_paymethod",
  126. xtype : "",
  127. items : null,
  128. editor : {
  129. displayField : "display",
  130. editable : true,
  131. format : "",
  132. hideTrigger : false,
  133. maxLength : 100.0,
  134. minValue : null,
  135. positiveNum : false,
  136. queryMode : "local",
  137. store : null,
  138. valueField : "value",
  139. xtype : "dbfindtrigger"
  140. }
  141. }, {
  142. text : "备注",
  143. dataIndex : "ftd_remark",
  144. width : 120.0,
  145. items : null,
  146. flex : 1.0,
  147. editor : {
  148. xtype : ""
  149. }
  150. }
  151. ]
  152. },{
  153. xtype : "textfield",
  154. name : "ft_remark",
  155. fieldLabel : "备注",
  156. allowBlank : true,
  157. columnWidth : 0.75
  158. }, {
  159. xtype : "textfield",
  160. name : "ft_recorder",
  161. fieldLabel : "录入人",
  162. readOnly:true
  163. }, {
  164. format : "Y-m-d",
  165. xtype : "datefield",
  166. name : "ft_recorddate",
  167. fieldLabel : "录入日期",
  168. readOnly:true
  169. }
  170. ]
  171. });