CustomerCheck.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Ext.define('saas.view.money.report.CustomerCheckCheck', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'monry-report-customercheck',
  4. controller: 'money-report-customercheck',
  5. viewModel: 'money-report-customercheck',
  6. viewName: 'money-report-customercheck',
  7. groupField: null,
  8. listUrl: '/api/money/report/customercheck',
  9. // listUrl: 'http://192.168.253.35:8880/report/customercheck',
  10. defaultCondition: null,
  11. reportTitle: '客户对账单',
  12. QueryWidth:0.1,
  13. //筛选:客户、日期(必填)
  14. searchItems: [ {
  15. xtype: 'dbfindtrigger',
  16. name: 'pi_custname',
  17. fieldLabel: '客户名称',
  18. columnWidth: 0.2
  19. }, {
  20. xtype: 'condatefield',
  21. name: 'pi_date',
  22. fieldLabel: '单据日期',
  23. columnWidth: 0.5
  24. }],
  25. reportColumns: [
  26. {
  27. text: 'id',
  28. dataIndex: 'pi_id',
  29. hidden: true
  30. }, {
  31. text: '单号',
  32. dataIndex: 'pi_inoutno',
  33. width: 200
  34. }, {
  35. text: '单据类型',
  36. dataIndex: 'pi_class',
  37. width: 200
  38. }, {
  39. text: '单据日期',
  40. dataIndex: 'pi_date',
  41. width: 200
  42. }, {
  43. text: '序号',
  44. dataIndex: 'pd_pdno'
  45. },{
  46. text:'客户编号',
  47. dataIndex:'pi_vendcode',
  48. hidden: true
  49. },{
  50. text:'客户名称',
  51. dataIndex:'pi_vendname',
  52. hidden: true
  53. },{
  54. text: '物料编号',
  55. dataIndex: 'pr_code'
  56. }, {
  57. text: '物料名称',
  58. dataIndex: 'pr_detail'
  59. }, {
  60. text: '物料规格',
  61. dataIndex: 'pr_spec'
  62. }, {
  63. text: '单位',
  64. dataIndex: 'pd_unit'
  65. }, {
  66. text: '数量',
  67. xtype: 'numbercolumn',
  68. dataIndex: 'qty',
  69. summaryType: 'count',
  70. align: 'end'
  71. }, {
  72. text: '单价',
  73. xtype: 'numbercolumn',
  74. dataIndex: 'pd_orderprice'
  75. }, {
  76. text: '税率',
  77. xtype: 'numbercolumn',
  78. dataIndex: 'pd_taxrate'
  79. }, {
  80. text: '金额',
  81. xtype: 'numbercolumn',
  82. dataIndex: 'pd_total',
  83. summaryType: 'count'
  84. }, {
  85. text: '不含税单价',
  86. xtype: 'numbercolumn',
  87. dataIndex: 'pd_netprice'
  88. }, {
  89. text: '不含税金额',
  90. xtype: 'numbercolumn',
  91. dataIndex: 'pd_nettotal',
  92. summaryType: 'count'
  93. }, {
  94. text: '备注',
  95. dataIndex: 'pd_remark'
  96. }]
  97. });