BasePanel.js 1.6 KB

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