BasePanel.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. //字段属性
  8. _formXtype:'document-bom-formpanel',
  9. _title:'BOM资料',
  10. _deleteUrl:'/api/document/bom/delete/',
  11. // _dataUrl:'/api/ducument/customer/list',
  12. _batchOpenUrl:'/api/document/bom/batchOpen',
  13. _batchCloseUrl:'/api/document/bom/batchClose',
  14. _batchDeleteUrl:'/api/document/bom/batchDelete',
  15. gridConfig: {
  16. idField: 'id',
  17. codeField: 'bo_mothercode',
  18. statusCodeField:'bo_statuscode',
  19. dataUrl: '/api/document/bom/list',
  20. columns : [{
  21. text : "id",
  22. width : 0,
  23. dataIndex : "id",
  24. xtype : "numbercolumn",
  25. },{
  26. text : "母件id",
  27. width : 0,
  28. dataIndex : "bo_motherid",
  29. xtype : "numbercolumn",
  30. },{
  31. text : "母件编号",
  32. width : 200.0,
  33. dataIndex : "bo_mothercode",
  34. },
  35. {
  36. text : "母件名称",
  37. dataIndex : "bo_mothername",
  38. width : 120.0,
  39. },
  40. {
  41. text : "BOM状态",
  42. dataIndex : "bo_status",
  43. width : 120.0,
  44. },
  45. {
  46. text : "BOM状态码",
  47. dataIndex : "bo_statuscode",
  48. width : 0,
  49. },
  50. {
  51. text : "BOM版本",
  52. dataIndex : "bo_version",
  53. width : 120.0,
  54. }]
  55. },
  56. refresh:function(){
  57. this.items.items[0].store.load()
  58. }
  59. });