BenchQueryPanel.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Ext.define('make.view.osmake.reconciliation.BenchQueryPanel', {
  2. extend: 'saas.view.core.bench.Query',
  3. xtype: 'osmake-reconciliation-benchpanel',
  4. viewModel: 'osmake-reconciliation-benchquery',
  5. caller:'APCHECKOS',
  6. selfFields:'APCHECK.creatorId',
  7. items: [
  8. {
  9. itemId: 'All',
  10. xtype: 'osmake-reconciliation-querypanel',
  11. defaultCondition:"ac_class='OS'"
  12. },
  13. {
  14. itemId: 'Me',
  15. xtype: 'osmake-reconciliation-querypanel',
  16. defaultCondition:"ac_class='OS'"
  17. },
  18. {
  19. //对账
  20. itemId: 'osmake-reconciliation-benchpanel-1',
  21. xtype: 'osmake-reconciliation-querypanel-3',
  22. defaultCondition:"((pi_class in ('OSMAKEIN','OSMAKEINBACK') and pi_statuscode='AUDITED')"
  23. +"or (pi_class='ESTIMATE' and prodiodetail.pd_type in ('外协验收','外协验退')))",
  24. _needCount: true
  25. },
  26. {
  27. //待审核
  28. itemId: 'osmake-reconciliation-benchpanel-2',
  29. xtype: 'osmake-reconciliation-querypanel-1',
  30. defaultCondition:"ac_class='OS' and ac_statuscode!='AUDITED'",
  31. _needCount: true
  32. },
  33. {
  34. //已审核
  35. itemId: 'osmake-reconciliation-benchpanel-3',
  36. xtype: 'osmake-reconciliation-querypanel-2',
  37. defaultCondition:"ac_class='OS' and ac_statuscode='AUDITED'",
  38. _needCount: false
  39. },
  40. {
  41. //待开票
  42. itemId: 'osmake-reconciliation-benchpanel-4',
  43. xtype: 'osmake-reconciliation-querypanel-4',
  44. countGroupFields:'ac_vendcode,ac_currency',
  45. defaultCondition:"ac_class='OS' and ac_statuscode='AUDITED' and abs(ifnull(apcheckdetail.ad_billqty,0))<abs(ifnull(ad_b2bqty,0))",
  46. _needCount: true
  47. }
  48. ],
  49. countUrl:'money/apcheck/countOS',
  50. addBtnText:''
  51. });