FormPanel.js 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. _auditmanField: 'ft_auditman',
  15. _auditdateField: 'ft_auditdate',
  16. _relationColumn: 'ftd_ftid',
  17. _readUrl: '/api/money/fundtransfer/read',
  18. _saveUrl: '/api/money/fundtransfer/save',
  19. _auditUrl: '/api/money/fundtransfer/audit',
  20. _unAuditUrl: '/api/money/fundtransfer/unAudit',
  21. _deleteUrl: '/api/money/fundtransfer/delete',
  22. initId: 0,
  23. initComponent: function () {
  24. Ext.apply(this, {
  25. defaultItems: [{
  26. xtype: 'hidden',
  27. name: 'id',
  28. fieldLabel: 'id'
  29. }, {
  30. xtype: "datefield",
  31. name: "ft_date",
  32. fieldLabel: "单据日期",
  33. defaultValue: new Date(),
  34. allowBlank: false
  35. }, {
  36. name: "detailGridField",
  37. xtype: "detailGridField",
  38. storeModel: 'saas.model.money.FundTransfer',
  39. detnoColumn: 'ftd_detno',
  40. deleteDetailUrl: '/api/money/fundtransfer/deleteDetail',
  41. columnWidth: 1,
  42. columns: [{
  43. text: "id",
  44. dataIndex: "id",
  45. xtype: "numbercolumn",
  46. hidden: true
  47. }, {
  48. text: "期间",
  49. dataIndex: "ftd_ym",
  50. editor: {
  51. xtype: "numberfield"
  52. },
  53. width: 110.0,
  54. items: null,
  55. hidden: true
  56. }, {
  57. text: "转出账户ID",
  58. dataIndex: "ftd_bankid",
  59. hidden: true
  60. }, {
  61. text: "转出账户编号",
  62. dataIndex: "ftd_bankcode",
  63. hidden: true
  64. }, {
  65. text: "转出账户",
  66. width: 200.0,
  67. dataIndex: "ftd_bankname",
  68. xtype: "",
  69. items: null,
  70. allowBlank: false,
  71. editor: {
  72. xtype: "bandinfoDbfindTrigger",
  73. displayField: "display",
  74. editable: true,
  75. format: "",
  76. hideTrigger: false,
  77. maxLength: 100.0,
  78. minValue: null,
  79. positiveNum: false,
  80. queryMode: "local",
  81. store: null,
  82. valueField: "value"
  83. }
  84. }, {
  85. text: "转出账户余额(元)",
  86. dataIndex: "bk_outthisamount",
  87. ignore: true
  88. }, {
  89. text: "转入账户ID",
  90. dataIndex: "ftd_inbankid",
  91. hidden: true
  92. }, {
  93. text: "转入账户编号",
  94. dataIndex: "ftd_inbankcode",
  95. hidden: true
  96. }, {
  97. text: "转入账户",
  98. width: 200.0,
  99. dataIndex: "ftd_inbankname",
  100. xtype: "",
  101. items: null,
  102. allowBlank: false,
  103. editor: {
  104. displayField: "display",
  105. editable: true,
  106. format: "",
  107. hideTrigger: false,
  108. maxLength: 100.0,
  109. minValue: null,
  110. positiveNum: false,
  111. queryMode: "local",
  112. store: null,
  113. valueField: "value",
  114. xtype: "bandinfoDbfindTrigger"
  115. }
  116. }, {
  117. text: "转入账户余额(元)",
  118. dataIndex: "bk_inthisamount",
  119. ignore: true,
  120. width: 150.0
  121. }, {
  122. text: "本次转出金额(元)",
  123. xtype: 'numbercolumn',
  124. dataIndex: "ftd_nowbalance",
  125. width: 150.0,
  126. allowBlank: false,
  127. editor: {
  128. xtype: "numberfield",
  129. decimalPrecision: 2
  130. },
  131. renderer: function (v) {
  132. return saas.util.BaseUtil.numberFormat(v, 2, true);
  133. },
  134. summaryType: 'sum',
  135. summaryRenderer: function (v) {
  136. return saas.util.BaseUtil.numberFormat(v, 2, true);
  137. }
  138. }, {
  139. text: "结算方式",
  140. width: 110.0,
  141. dataIndex: "ftd_paymethod",
  142. editor: {
  143. xtype: 'combo',
  144. queryMode: 'local',
  145. displayField: 'display',
  146. valueField: 'value',
  147. store: Ext.create('Ext.data.Store', {
  148. fields: ['value', 'display'],
  149. data: [{
  150. value: "信用卡",
  151. display: "信用卡"
  152. }, {
  153. value: "支票",
  154. display: "支票"
  155. }, {
  156. value: "汇票",
  157. display: "汇票"
  158. }, {
  159. value: "现金",
  160. display: "现金"
  161. }, {
  162. value: "银行转账",
  163. display: "银行转账"
  164. }, {
  165. value: "支付宝转账",
  166. display: "支付宝转账"
  167. }, {
  168. value: "微信转账",
  169. display: "微信转账"
  170. }]
  171. })
  172. }
  173. }, {
  174. text: "结算号",
  175. dataIndex: "ftd_paycode",
  176. width: 150,
  177. editor: {
  178. xtype: ''
  179. }
  180. }, {
  181. text: "备注",
  182. dataIndex: "ftd_remark",
  183. width: 250.0,
  184. items: null,
  185. editor: {
  186. xtype: ""
  187. }
  188. }]
  189. }, {
  190. xtype: "textfield",
  191. name: "ft_remark",
  192. fieldLabel: "备注",
  193. allowBlank: true,
  194. columnWidth: 1
  195. }, {
  196. xtype: "hidden",
  197. name: "creatorId",
  198. fieldLabel: "录入人ID",
  199. readOnly: true
  200. }, {
  201. xtype: "textfield",
  202. name: "creatorName",
  203. fieldLabel: "录入人",
  204. readOnly: true
  205. }, {
  206. xtype: "datefield",
  207. name: "createTime",
  208. fieldLabel: "录入日期",
  209. readOnly: true,
  210. defaultValue: new Date()
  211. }, {
  212. xtype: "hidden",
  213. name: "updaterId",
  214. fieldLabel: "更新人ID",
  215. readOnly: true
  216. }, {
  217. xtype: "hidden",
  218. name: "updaterName",
  219. fieldLabel: "更新人",
  220. readOnly: true
  221. }, {
  222. xtype: "hidden",
  223. name: "updateTime",
  224. fieldLabel: "更新日期",
  225. readOnly: true,
  226. defaultValue: new Date()
  227. }, {
  228. xtype: 'textfield',
  229. name: 'ft_auditman',
  230. fieldLabel: '审核人',
  231. readOnly: true
  232. }, {
  233. xtype: "datefield",
  234. name: "ft_auditdate",
  235. fieldLabel: "审核日期",
  236. readOnly: true
  237. }]
  238. });
  239. this.callParent(arguments);
  240. },
  241. });