BasePanel.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Ext.define('saas.view.document.bom.BasePanel', {
  2. extend: 'saas.view.core.base.BasePanel',
  3. xtype: 'document-bom-basepanel',
  4. controller: 'document-bom-basepanel',
  5. viewModel: 'document-bom-basepanel',
  6. searchField:[{
  7. xtype : "textfield",
  8. name : "bo_mothercode",
  9. emptyText : "产品编号",
  10. width:120
  11. },{
  12. xtype : "textfield",
  13. name : "bo_mothername",
  14. emptyText : "产品名称",
  15. width:120
  16. },{
  17. xtype : "textfield",
  18. name : "bo_status",
  19. emptyText : "产品状态",
  20. width:100
  21. }],
  22. //字段属性
  23. _formXtype:'document-bom-formpanel',
  24. _title:'BOM资料',
  25. _deleteUrl:'/api/document/bom/delete/',
  26. // _dataUrl:'/api/ducument/customer/list',
  27. _batchOpenUrl:'/api/document/bom/batchOpen',
  28. _batchCloseUrl:'/api/document/bom/batchClose',
  29. _batchDeleteUrl:'/api/document/bom/batchDelete',
  30. gridConfig: {
  31. idField: 'id',
  32. codeField: 'bo_mothercode',
  33. statusCodeField:'bo_statuscode',
  34. dataUrl: '/api/document/bom/list',
  35. columns : [{
  36. text : "id",
  37. width : 0,
  38. dataIndex : "id",
  39. xtype : "numbercolumn",
  40. },{
  41. text : "产品id",
  42. width : 0,
  43. dataIndex : "bo_motherid",
  44. xtype : "numbercolumn",
  45. },{
  46. text : "产品编号",
  47. dataIndex : "bo_mothercode",
  48. width : 200.0,
  49. },
  50. {
  51. text : "产品名称",
  52. dataIndex : "bo_mothername",
  53. width : 120.0,
  54. },
  55. {
  56. text : "产品状态",
  57. dataIndex : "bo_status",
  58. width : 120.0,
  59. },
  60. {
  61. text : "产品状态码",
  62. dataIndex : "bo_statuscode",
  63. width : 0,
  64. },
  65. {
  66. text : "产品版本",
  67. dataIndex : "bo_version",
  68. width : 120.0,
  69. }]
  70. },
  71. refresh:function(){
  72. this.items.items[0].store.load()
  73. }
  74. });