FormPanel.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. Ext.define('saas.view.money.recBalance.FormPanel', {
  2. extend: 'saas.view.core.form.FormPanel',
  3. xtype: 'money-recbalance-formpanel',
  4. controller: 'money-recbalance-formpanel',
  5. viewModel: 'money-recbalance-formpanel',
  6. viewName: 'money-recbalance-formpanel',
  7. caller: 'RecBalance',
  8. //字段属性
  9. _title: '收款单',
  10. _idField: 'id',
  11. _codeField: 'rb_code',
  12. _statusField: 'rb_status',
  13. _statusCodeField: 'rb_statuscode',
  14. _readUrl: '/api/money/recbalance/read/',
  15. _saveUrl: '/api/money/recbalance/save/',
  16. _auditUrl: '/api/money/recbalance/audit/',
  17. _unAuditUrl: '/api/money/recbalance/unAudit/',
  18. _deleteUrl: '/api/money/recbalance/delete/',
  19. initId: 0,
  20. defaultItems: [{
  21. xtype: 'hidden',
  22. name: 'id',
  23. fieldLabel: 'id'
  24. }, {
  25. xtype: 'hidden',
  26. name: 'rb_custid',
  27. fieldLabel: '客户ID'
  28. }, {
  29. xtype: 'hidden',
  30. name: 'rb_kind',
  31. fieldLabel: '单据类型',
  32. defaultValue: '收款单'
  33. }, {
  34. xtype: 'hidden',
  35. name: 'rb_custcode',
  36. fieldLabel: '客户编号'
  37. }, {
  38. xtype: "dbfindtrigger",
  39. name: "rb_custname",
  40. fieldLabel: "客户名称",
  41. }, {
  42. xtype: "numberfield",
  43. name: "rb_rdamount",
  44. fieldLabel: "总欠款"
  45. }, {
  46. xtype: 'numberfield',
  47. name: 'rb_rbdamount',
  48. fieldLabel: '本次核销金额'
  49. }, {
  50. xtype: "datefield",
  51. name: "rb_date",
  52. fieldLabel: "日期"
  53. }, {
  54. xtype: "textfield",
  55. name: "rb_manname",
  56. fieldLabel: "收款人"
  57. }, {
  58. xtype: 'textareafield',
  59. name: 'rb_remark',
  60. fieldLabel: '备注',
  61. columnWidth: 1
  62. }, {
  63. xtype: "numberfield",
  64. name: "rb_discounts",
  65. fieldLabel: "整单折扣"
  66. }, {
  67. xtype: 'numberfield',
  68. name: 'rb_preamount',
  69. fieldLabel : '本次预收款'
  70. }, {
  71. xtype: 'numberfield',
  72. name: 'rb_havebalance',
  73. fieldLabel: '已核销金额'
  74. }, {
  75. xtype: "detailGridField",
  76. storeModel: 'saas.model.money.RecBalance1',
  77. detnoColumn: 'rd_detno',
  78. deleteDetailUrl: '/api/money/recbalance/deleteDetail1/',
  79. columns: [{
  80. text: 'ID',
  81. dataIndex: 'id',
  82. hidden: true
  83. }, {
  84. text: '期间',
  85. dataIndex: 'rd_ym',
  86. editor: {
  87. xtype: 'numberfield'
  88. }
  89. }, {
  90. text: '资金账户ID',
  91. dataIndex: 'rd_bankid',
  92. width : 100.0,
  93. editor: {
  94. xtype: 'numberfield'
  95. }
  96. }, {
  97. text: '资金账户编号',
  98. dataIndex: 'rd_bankcode',
  99. width : 100.0,
  100. editor: {
  101. xtype: 'textfield'
  102. }
  103. }, {
  104. text: '资金账户',
  105. dataIndex: 'rd_bankname',
  106. width : 200.0,
  107. editor: {
  108. xtype: 'textfield'
  109. }
  110. }, {
  111. text: "收款金额",
  112. dataIndex: "rd_amount",
  113. editor: {
  114. xtype: 'numberfield'
  115. }
  116. }, {
  117. text: "结算方式",
  118. dataIndex: "rd_paymethod",
  119. editor: {
  120. xtype: 'textfield'
  121. }
  122. }, {
  123. text: "结算号",
  124. dataIndex: "rd_paycode",
  125. editor: {
  126. xtype: 'textfield'
  127. }
  128. }, {
  129. text: "备注",
  130. dataIndex: "rd_remark",
  131. editor: {
  132. xtype: 'textfield'
  133. }
  134. }]
  135. }, {
  136. xtype: "detailGridField",
  137. storeModel: 'saas.model.money.RecBalance2',
  138. detnoColumn: 'rbd_detno',
  139. deleteDetailUrl: '/api/money/recbalance/deleteDetail2/',
  140. columns: [{
  141. text: 'ID',
  142. dataIndex: 'id',
  143. hidden: true
  144. }, {
  145. text: '期间',
  146. dataIndex: 'rbd_ym',
  147. editor: {
  148. xtype: 'numberfield'
  149. }
  150. }, {
  151. text: '来源ID',
  152. dataIndex: 'rbd_slid',
  153. editor: {
  154. xtype: 'numberfield'
  155. }
  156. }, {
  157. text: '来源单号',
  158. dataIndex: 'rbd_slcode',
  159. editor: {
  160. xtype: 'textfield'
  161. }
  162. }, {
  163. text: "业务类型",
  164. dataIndex: "rbd_slkind",
  165. editor: {
  166. xtype: 'textfield'
  167. }
  168. }, {
  169. text: "单据日期",
  170. dataIndex: "rbd_sldate",
  171. editor: {
  172. xtype: 'datefield'
  173. }
  174. }, {
  175. text: "单据金额",
  176. dataIndex: "rbd_amount",
  177. editor: {
  178. xtype: 'numberfield'
  179. }
  180. // }, {
  181. // text: "已核销金额",
  182. // dataIndex: "rbd_nowbalance",
  183. // editor: {
  184. // xtype: 'numberfield'
  185. // }
  186. // }, {
  187. // text: "未核销金额",
  188. // dataIndex: "pbd_nowbalance",
  189. // editor: {
  190. // xtype: 'numberfield'
  191. // }
  192. }, {
  193. text: "本次核销金额",
  194. dataIndex: "pbd_nowbalance",
  195. editor: {
  196. xtype: 'numberfield'
  197. }
  198. }, {
  199. text: '备注',
  200. dataIndex: 'rbd_remark',
  201. editor: {
  202. xtype: 'textfield'
  203. }
  204. }]
  205. }, {
  206. xtype: 'numberfield',
  207. name: 'rb_recorderid',
  208. fieldLabel: '录入人ID'
  209. }, {
  210. xtype: 'textfield',
  211. name: 'rb_recorder',
  212. fieldLabel: '录入人'
  213. }, {
  214. xtype: 'numberfield',
  215. name: 'updaterId',
  216. fieldLabel: '更新人ID'
  217. }, {
  218. xtype: 'datefield',
  219. name: 'updatedate',
  220. fieldLabel: '更新时间'
  221. }, {
  222. xtype: "datefield",
  223. name: "rb_recorddate",
  224. fieldLabel: "创建时间"
  225. }]
  226. });