BenchQueryPanel.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Ext.define('make.view.make.bom.BenchQueryPanel', {
  2. extend: 'saas.view.core.bench.Query',
  3. xtype: 'make-bom-benchpanel',
  4. viewModel: {
  5. extend: 'saas.view.core.bench.QueryModel',
  6. stores: {
  7. menus: {
  8. model: 'saas.model.core.benchMenu',
  9. data: [
  10. {desc: '待审核',isCount: 1},
  11. {desc: '已审核',isCount: 0}
  12. ]
  13. }
  14. }
  15. },
  16. caller:'Bom',
  17. selfFields:'bom.creatorId',
  18. items: [
  19. {
  20. itemId: 'All',
  21. xtype: 'make-bom-querypanel',
  22. baseVastUrl: '/api/make/bom/'
  23. //defaultCondition:""
  24. },
  25. {
  26. //待审核
  27. itemId: 'make-bom-benchpanel-1',
  28. xtype: 'make-bom-querypanel-1',
  29. defaultCondition: "bo_statuscode='UNAUDITED'",
  30. _needCount: true,
  31. baseVastUrl: '/api/make/bom/'
  32. },
  33. {
  34. //已审核
  35. itemId: 'make-bom-benchpanel-2',
  36. xtype: 'make-bom-querypanel-2',
  37. defaultCondition: "bo_statuscode='AUDITED'",
  38. _needCount: true,
  39. baseVastUrl: '/api/make/bom/'
  40. }
  41. ],
  42. countUrl:'make/bom/count',
  43. addBtnText:'新增BOM',
  44. addOtherBtnText:'BOM差异比对',
  45. hiddenMe:true,
  46. onOtherBehavior:function(){
  47. saas.util.BaseUtil.openTab('make-bom-bomcompare', 'BOM差异比对','maintab--make-bom-bomcompare');
  48. }
  49. });