FormPanel.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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: 'pd_code',
  12. _statusField: 'pd_status',
  13. _statusCodeField: 'pd_statuscode',
  14. _readUrl: 'http://192.168.253.129:8920/api/money/recbalance/read',
  15. _saveUrl: 'http://192.168.253.129:8920/money/recbalance/save',
  16. _auditUrl: 'http://192.168.0.181:8560/api/purchase/purchase/audit',
  17. _deleteUrl: 'http://192.168.0.181:8560/api/purchase/purchase/delete/',
  18. _deleteDetailUrl: 'http://192.168.0.181:8560/api/purchase/purchase/deleteItem/',
  19. _turnInUrl: 'http://192.168.253.228:8800/purchase/turnProdin/',
  20. initId: 0,
  21. defaultItems: [{
  22. xtype: 'hidden',
  23. name: 'id',
  24. fieldLabel: 'id'
  25. }, {
  26. xtype: 'hidden',
  27. name: 'rb_custid',
  28. fieldLabel: '客户ID'
  29. }, {
  30. xtype: 'hidden',
  31. name: 'rb_custcode',
  32. fieldLabel: '客户编号'
  33. }, {
  34. xtype: "dbfindtrigger",
  35. name: "rb_custname",
  36. fieldLabel: "客户名称",
  37. dataUrl: '',
  38. }, {
  39. xtype: "numberfield",
  40. name: "rb_rbdamount",
  41. readOnly: true,
  42. editable: false,
  43. fieldLabel: "总欠款"
  44. }, {
  45. xtype: "datefield",
  46. name: "rb_date",
  47. fieldLabel: "日期"
  48. }, {
  49. xtype: "textfield",
  50. name: "rb_manname",
  51. fieldLabel: "收款人"
  52. }, {
  53. xtype: 'textareafield',
  54. name: 'rb_remark',
  55. fieldLabel: '备注',
  56. columnWidth: 1
  57. }, {
  58. xtype: "numberfield",
  59. name: "rb_discounts",
  60. fieldLabel: "整单折扣"
  61. }, {
  62. xtype: 'numberfield',
  63. name: 'rb_preamount',
  64. fieldLabel : '本次预收款'
  65. }, {
  66. xtype: "detailGridField",
  67. storeModel: 'saas.model.money.RecBalance1',
  68. _detnoColumn: 'rd_detno',
  69. columns: [{
  70. text: "序号",
  71. dataIndex: "rd_detno",
  72. width: 100,
  73. xtype: "numbercolumn",
  74. align: 'center',
  75. format: '0',
  76. summaryType: 'count',
  77. summaryRenderer: function (value, summaryData, dataIndex) {
  78. return Ext.String.format('合计: {0}条', value);
  79. },
  80. }, {
  81. text: '资金账户',
  82. dataIndex: 'rd_bankname',
  83. width : 200.0,
  84. editor : {
  85. displayField : "display",
  86. editable : true,
  87. format : "",
  88. hideTrigger : false,
  89. maxLength : 100.0,
  90. minValue : null,
  91. positiveNum : false,
  92. queryMode : "local",
  93. store : null,
  94. valueField : "value",
  95. xtype : "dbfindtrigger"
  96. }
  97. }, {
  98. text: "收款金额",
  99. dataIndex: "rd_amount",
  100. }, {
  101. text: "结算方式",
  102. dataIndex: "rd_paymethod"
  103. }, {
  104. text: "结算号",
  105. dataIndex: "rd_paycode"
  106. }, {
  107. text: "备注",
  108. dataIndex: "rd_remark"
  109. }]
  110. }, {
  111. xtype: "detailGridField",
  112. storeModel: 'saas.model.money.RecBalance1',
  113. _detnoColumn: 'rbd_detno',
  114. columns: [{
  115. text: "序号",
  116. dataIndex: "rbd_detno",
  117. width: 100,
  118. xtype: "numbercolumn",
  119. align: 'center',
  120. format: '0',
  121. summaryType: 'count',
  122. summaryRenderer: function (value, summaryData, dataIndex) {
  123. return Ext.String.format('合计: {0}条', value);
  124. },
  125. }, {
  126. text: '来源单号',
  127. dataIndex: 'rbd_slcode'
  128. }, {
  129. text: "业务类型",
  130. dataIndex: "rbd_slkind",
  131. }, {
  132. text: "单据日期",
  133. dataIndex: "rbd_sldate"
  134. }, {
  135. text: "单据金额",
  136. dataIndex: "rbd_amount"
  137. }, {
  138. text: "已核销金额",
  139. dataIndex: "rbd_nowbalance"
  140. }, {
  141. text: "未核销金额",
  142. dataIndex: "pbd_nowbalance"
  143. }, {
  144. text: "本次核销金额",
  145. dataIndex: "pbd_nowbalance"
  146. }]
  147. }, {
  148. xtype: 'textfield',
  149. name: 'companyid',
  150. fieldLabel: '公司id'
  151. }, {
  152. format: "Y-m-d h:i:s",
  153. xtype: "datefield",
  154. name: "pb_recorddate",
  155. fieldLabel: "创建时间"
  156. }, {
  157. format: "Y-m-d h:i:s",
  158. xtype: "datefield",
  159. name: "updatedate",
  160. fieldLabel: "更新时间"
  161. }, {
  162. xtype: "textfield",
  163. readOnly: true,
  164. editable: false,
  165. name: "pd_status",
  166. fieldLabel: "单据状态"
  167. }, {
  168. xtype: "hidden",
  169. readOnly: true,
  170. editable: false,
  171. name: "pd_statuscode",
  172. fieldLabel: "单据状态码"
  173. }]
  174. });