BenchQueryPanel.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Ext.define('make.view.stock.osMakeCheckIn.BenchQueryPanel', {
  2. extend: 'saas.view.core.bench.Query',
  3. xtype: 'stock-osmakecheckin-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:'StockOSMakeCheckIn',
  17. items: [
  18. {
  19. itemId: 'All',
  20. xtype: 'stock-osmakecheckin-querypanel',
  21. addTitle: '外协验收',
  22. addXtype: 'osmake-osmakecheckin-formpanel',
  23. defaultCondition: ' pi_class = \'OSMAKEIN\' ',
  24. baseVastUrl: '/api/make/prodinout/'
  25. },
  26. {
  27. //待退料
  28. itemId: 'stock-osmakecheckin-benchpanel-1',
  29. xtype: 'stock-osmakecheckin-querypanel-1',
  30. addTitle: '外协验收',
  31. addXtype: 'osmake-osmakecheckin-formpanel',
  32. defaultCondition: ' pi_class = \'OSMAKEIN\' and pi_statuscode <> \'AUDITED\' ',
  33. baseVastUrl: '/api/make/prodinout/',
  34. countGroupFields:'pi_inoutno',
  35. _needCount: true
  36. },
  37. {
  38. //已退料
  39. itemId: 'stock-osmakecheckin-benchpanel-2',
  40. xtype: 'stock-osmakecheckin-querypanel-2',
  41. addTitle: '外协验收',
  42. addXtype: 'osmake-osmakecheckin-formpanel',
  43. defaultCondition: ' pi_class = \'OSMAKEIN\' AND PI_STATUS = \'已审核\' ',
  44. baseVastUrl: '/api/make/prodinout/',
  45. _needCount: true
  46. }
  47. ],
  48. hiddenMe:true,
  49. countUrl:'make/prodinout/osMakeInCount'
  50. });