BasePanel.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. deleteMoreMsg: '删除的BOM资料将不能恢复,请确认是否删除?',
  7. deleteOneMsg: '删除的BOM资料将不能恢复,请确认是否删除?',
  8. searchField:[{
  9. xtype : "textfield",
  10. name : "bo_mothercode",
  11. emptyText : "产品编号",
  12. width:120
  13. },{
  14. xtype : "textfield",
  15. name : "bo_mothername",
  16. emptyText : "产品名称",
  17. width:120
  18. },{
  19. xtype : "textfield",
  20. name : "bo_status",
  21. emptyText : "产品状态",
  22. width:100
  23. }],
  24. //字段属性
  25. _formXtype:'document-bom-formpanel',
  26. _title:'BOM资料',
  27. _deleteUrl:'/api/document/bom/delete/',
  28. // _dataUrl:'/api/ducument/customer/list',
  29. _batchOpenUrl:'/api/document/bom/batchOpen',
  30. _batchCloseUrl:'/api/document/bom/batchClose',
  31. _batchDeleteUrl:'/api/document/bom/batchDelete',
  32. gridConfig: {
  33. idField: 'id',
  34. codeField: 'bo_mothercode',
  35. statusCodeField:'bo_statuscode',
  36. dataUrl: '/api/document/bom/list',
  37. columns : [{
  38. text : "id",
  39. width : 0,
  40. dataIndex : "id",
  41. xtype : "numbercolumn",
  42. },{
  43. text : "产品id",
  44. width : 0,
  45. dataIndex : "bo_motherid",
  46. xtype : "numbercolumn",
  47. },{
  48. text : "产品编号",
  49. dataIndex : "bo_mothercode",
  50. width : 200.0,
  51. },
  52. {
  53. text : "产品名称",
  54. dataIndex : "bo_mothername",
  55. width : 120.0,
  56. },
  57. {
  58. text : "产品状态",
  59. dataIndex : "bo_status",
  60. width : 120.0,
  61. },
  62. {
  63. text : "产品状态码",
  64. dataIndex : "bo_statuscode",
  65. width : 0,
  66. },
  67. {
  68. text : "产品版本",
  69. dataIndex : "bo_version",
  70. width : 120.0,
  71. }]
  72. },
  73. refresh:function(){
  74. this.items.items[0].store.load()
  75. }
  76. });