BenchQueryPanel.js 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Ext.define('make.view.osmake.osMakeCheckIn.BenchQueryPanel', {
  2. extend: 'saas.view.core.bench.Query',
  3. xtype: 'osmake-osmakecheckin-benchpanel',
  4. viewModel:'osmake-osmakecheckin-benchquery',
  5. caller: 'OsMakeIn',
  6. items: [
  7. {
  8. itemId: 'All',
  9. xtype: 'osmake-osmakecheckin-querypanel',
  10. addTitle: '外协验收',
  11. addXtype: 'osmake-osmakecheckin-formpanel',
  12. defaultCondition: ' pi_class = \'OSMAKEIN\' ',
  13. baseVastUrl: '/api/make/prodinout/'
  14. },
  15. {
  16. //待完工
  17. itemId: 'osmake-osmakecheckin-benchpanel-1',
  18. xtype: 'osmake-osmakecheckin-querypanel-1',
  19. addTitle: '外协验收',
  20. addXtype: 'osmake-osmakecheckin-formpanel',
  21. defaultCondition: ' pi_class = \'OSMAKEIN\' and pi_statuscode <> \'AUDITED\' ',
  22. baseVastUrl: '/api/make/prodinout/',
  23. countGroupFields:'pi_inoutno',
  24. _needCount: true
  25. },
  26. {
  27. //已完工
  28. itemId: 'osmake-osmakecheckin-benchpanel-2',
  29. xtype: 'osmake-osmakecheckin-querypanel-2',
  30. addTitle: '外协验收',
  31. addXtype: 'osmake-osmakecheckin-formpanel',
  32. defaultCondition: ' pi_class = \'OSMAKEIN\' AND PI_STATUS = \'已审核\' ',
  33. baseVastUrl: '/api/make/prodinout/',
  34. //countGroupFields:'pu_vendname,pu_currency',
  35. _needCount: true
  36. },{
  37. //待对账
  38. itemId: 'osmake-osmakecheckin-benchpanel-3',
  39. xtype: 'osmake-osmakecheckin-querypanel-3',
  40. countGroupFields:'pi_vendcode,pi_currency',
  41. baseVastUrl: '/api/make/prodinout/',
  42. defaultCondition:"((pi_status='已审核' and pi_class in('OSMAKEIN','OSMAKEINBACK')) or (pi_class='ESTIMATE' and prodiodetail.pd_type in ('外协验收','外协验退'))) "
  43. +"and ifnull(prodiodetail.apcheckStatus,' ')=' ' and ifnull(prodiodetail.pd_ordertotal,0)>ifnull(prodiodetail.pd_recamount,0)",
  44. _needCount: true
  45. },{
  46. //待开票
  47. itemId: 'osmake-osmakecheckin-benchpanel-4',
  48. xtype: 'osmake-osmakecheckin-querypanel-5',
  49. countGroupFields:'pi_vendcode,pi_currency',
  50. baseVastUrl: '/api/make/prodinout/',
  51. defaultCondition:"((pi_status='已审核' and pi_class in('OSMAKEIN','OSMAKEINBACK')) or(pi_class='ESTIMATE' and prodiodetail.pd_type in('外协验收','外协验退'))) "
  52. +"and abs(round(ifnull(prodiodetail.pd_ordertotal,0),2))>abs(round(ifnull(prodiodetail.pd_billamount,0),2))",
  53. _needCount: true
  54. },{
  55. //待付款
  56. itemId: 'osmake-osmakecheckin-benchpanel-5',
  57. xtype: 'osmake-osmakecheckin-querypanel-4',
  58. countGroupFields:'pi_vendcode,pi_currency',
  59. baseVastUrl: '/api/make/prodinout/',
  60. defaultCondition:"pi_status='已审核' and pi_class in('OSMAKEIN','OSMAKEINBACK') and exists(select 1 from prodiodetail b where b.pd_piid=pi_id and ifnull(b.pd_ordertotal,0)>ifnull(pd_recamount,0))",
  61. _needCount: true
  62. }
  63. ],
  64. hiddenMe:true,
  65. countUrl:'make/prodinout/osMakeInCount',
  66. addBtnText:'新增外协验收单'
  67. });