CompanyRegInfo.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**
  2. * 企业注册数据
  3. */
  4. Ext.define('saas.view.statistical.CompanyRegInfo', {
  5. extend: 'saas.view.core.base.BasePanel',
  6. xtype: 'statistical-companyreginfo',
  7. initComponent: function () {
  8. Ext.apply(this, {
  9. searchField: [{
  10. xtype: "textfield",
  11. name: "name",
  12. emptyText: '企业名称'
  13. }, {
  14. xtype: 'textfield',
  15. name: 'realname',
  16. emptyText: '管理员'
  17. }],
  18. gridConfig: {
  19. dataUrl: '/api/operation/data/getCompany',
  20. // dataUrl: 'http://10.1.80.35:9040/data/getCompany',
  21. columns: [{
  22. text: '注册时间',
  23. dataIndex: 'create_time',
  24. width: 180,
  25. xtype: 'datecolumn',
  26. renderer: function (v, m, r) {
  27. return Ext.Date.format(new Date(v), 'Y-m-d H:i:s');
  28. }
  29. }, {
  30. text: '企业编号',
  31. width: 200,
  32. dataIndex: 'business_code'
  33. }, {
  34. text: '企业名称',
  35. width: 200,
  36. dataIndex: 'name'
  37. }, {
  38. text: '应用',
  39. width: 80,
  40. dataIndex: 'app_id',
  41. align: 'center',
  42. renderer: function (v, m, r) {
  43. return {
  44. 'trade-app': '贸易云',
  45. 'make-app': '制造云'
  46. }[v];
  47. }
  48. }, {
  49. text: 'UU号',
  50. width: 120,
  51. dataIndex: 'uu'
  52. }, {
  53. text: '企业地址',
  54. width: 250,
  55. dataIndex: 'address'
  56. }, {
  57. text: '电话',
  58. width: 100,
  59. dataIndex: 'tel'
  60. }, {
  61. text: '传真',
  62. width: 100,
  63. dataIndex: 'fax'
  64. }, {
  65. text: '管理员',
  66. width: 100,
  67. dataIndex: 'realname'
  68. }, {
  69. text: '联系方式',
  70. width: 150,
  71. dataIndex: 'mobile'
  72. }]
  73. },
  74. });
  75. this.callParent(arguments);
  76. }
  77. });