BasePanel.js 2.2 KB

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