CompanyInfo.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Ext.define('saas.view.statistical.CompanyInfo', {
  2. extend: 'saas.view.core.form.FormPanel',
  3. xtype: 'companyinfo',
  4. viewModel: 'companyinfo',
  5. _readUrl: '/api/operation/data/companyAnalyzeRead',
  6. codeInHeader: false,
  7. initComponent: function () {
  8. var me = this;
  9. Ext.apply(this, {
  10. defaultItems: [{
  11. xtype: 'hidden',
  12. name: 'ca_id',
  13. fieldLabel: 'id'
  14. }, {
  15. xtype: 'textfield',
  16. name: 'ca_companyid',
  17. fieldLabel: '客户编号'
  18. }, {
  19. xtype: "textfield",
  20. name: "ca_company",
  21. fieldLabel: "客户名称",
  22. }, {
  23. xtype: "textfield",
  24. name: "ca_address",
  25. fieldLabel: "地址",
  26. }, {
  27. xtype: "textfield",
  28. name: "ca_admin",
  29. fieldLabel: "管理员",
  30. }, {
  31. xtype: "datefield",
  32. name: "ca_createtime",
  33. format: 'Y-m-d H:i:s',
  34. fieldLabel: "注册时间",
  35. }, {
  36. xtype: "datefield",
  37. name: "ca_newestlogtime",
  38. format: 'Y-m-d H:i:s',
  39. fieldLabel: "最后操作时间",
  40. }, {
  41. xtype: 'textfield',
  42. name: 'ca_phase',
  43. fieldLabel: '目前阶段',
  44. }, {
  45. xtype: 'textfield',
  46. name: 'ca_status',
  47. fieldLabel: '使用状态',
  48. }, {
  49. name: "detailGridField",
  50. xtype: "detailGridField",
  51. storeModel: 'saas.model.statistical.CompanyInfo',
  52. detnoColumn: 'ord_detno',
  53. deleteDetailUrl: '/api/money/othreceipts/deleteDetail',
  54. showCount: false,
  55. columns: [{
  56. text: "账户统计",
  57. dataIndex: "cd_accountnum",
  58. width: 140,
  59. align: 'end'
  60. }, {
  61. text: "物料资料统计",
  62. dataIndex: "cd_productnum",
  63. width: 140,
  64. align: 'end'
  65. }, {
  66. text: "客户资料统计",
  67. dataIndex: "cd_customernum",
  68. width: 140,
  69. align: 'end'
  70. }, {
  71. text: "供应商资料统计",
  72. dataIndex: "cd_vendornum",
  73. width: 140,
  74. align: 'end'
  75. }, {
  76. text: "销售订单统计",
  77. dataIndex: "cd_salenum",
  78. width: 140,
  79. align: 'end'
  80. }, {
  81. text: "采购订单统计",
  82. dataIndex: "cd_purchasenum",
  83. width: 140,
  84. align: 'end'
  85. }, {
  86. text: "出入库单据统计",
  87. dataIndex: "cd_prodionum",
  88. width: 140,
  89. align: 'end'
  90. }, {
  91. text: "付款单统计",
  92. dataIndex: "cd_paynum",
  93. width: 140,
  94. align: 'end'
  95. }, {
  96. text: "收款单统计",
  97. dataIndex: "cd_receivenum",
  98. width: 140,
  99. align: 'end'
  100. }]
  101. }],
  102. });
  103. this.callParent();
  104. this.setEditable(false);
  105. },
  106. });