BasePanel.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Ext.define('saas.view.document.customer.BasePanel', {
  2. extend: 'saas.view.core.base.BasePanel',
  3. xtype: 'document-customer-basepanel',
  4. controller: 'document-customer-basepanel',
  5. viewModel: 'document-customer-basepanel',
  6. searchField:[{
  7. editable:false,
  8. hiddenBtn:true,
  9. xtype : "remotecombo",
  10. storeUrl:'/api/document/customerkind/getCombo',
  11. name : "cu_type",
  12. emptyText : "请选择客户类型",
  13. columnWidth : 0.25
  14. }],
  15. //字段属性
  16. _formXtype:'document-customer-formpanel',
  17. _title:'客户资料',
  18. _deleteUrl:'/api/document/customer/delete/',
  19. // _dataUrl:'/api/ducument/customer/list',
  20. _batchOpenUrl:'/api/document/customer/batchOpen',
  21. _batchCloseUrl:'/api/document/customer/batchClose',
  22. _batchDeleteUrl:'/api/document/customer/batchDelete',
  23. gridConfig: {
  24. idField: 'id',
  25. codeField: 'cu_code',
  26. statusCodeField:'cu_statuscode',
  27. dataUrl: '/api/document/customer/list',
  28. columns : [{
  29. text : "客户id",
  30. width : 0,
  31. dataIndex : "id",
  32. xtype : "numbercolumn",
  33. },{
  34. text : "客户编号",
  35. width : 200.0,
  36. dataIndex : "cu_code",
  37. },
  38. {
  39. text : "客户名称",
  40. dataIndex : "cu_name",
  41. width : 120.0,
  42. },
  43. {
  44. text : "客户状态",
  45. dataIndex : "cu_status",
  46. width : 120.0,
  47. },
  48. {
  49. text : "客户状态码",
  50. dataIndex : "cu_statuscode",
  51. width : 0,
  52. },
  53. {
  54. text : "客户UU",
  55. dataIndex : "cu_uu",
  56. width : 120.0,
  57. },
  58. {
  59. text : "客户类型",
  60. dataIndex : "cu_type",
  61. width : 120.0,
  62. },
  63. {
  64. text : "默认客户地址",
  65. dataIndex : "ca_address",
  66. width : 120.0,
  67. },
  68. {
  69. text : "默认客户联系人",
  70. dataIndex : "cc_name",
  71. flex : 1.0,
  72. }]
  73. },
  74. refresh:function(){
  75. this.items.items[0].store.load()
  76. }
  77. });