queryStockQj.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. define(function (require) {
  2. return function (context) {
  3. var aa = require('/app/view/queryStockMatMiss.js')(context);
  4. var aanorth = aa.north;
  5. var aacenter = aa.center;
  6. var aasouth = aa.south;
  7. var bb = require('/app/view/queryStockMiss.js')(context);
  8. var bbnorth = bb.north;
  9. var bbcenter = bb.center;
  10. return {
  11. south: {
  12. height: '100%',
  13. border: false,
  14. items: {
  15. xtype: 'tabs',
  16. onSelect: function (title, index) {
  17. $("#" + aa.center.items.id).reload();
  18. setTimeout(function () {
  19. console.log($("input[name='queryProperties']").prev()[0]);
  20. $("input[name='queryProperties']").prev()[0].focus();
  21. })
  22. $("#" + bb.center.items.id).reload();
  23. setTimeout(function () {
  24. console.log($("input[name='queryProperties']").prev()[0]);
  25. $("input[name='queryProperties']").prev()[0].focus();
  26. })
  27. },
  28. items: [
  29. {
  30. title: '库存缺件',
  31. items: {
  32. xtype: 'layout',
  33. north: aanorth,
  34. center: aacenter,
  35. south: aasouth,
  36. },
  37. },
  38. {
  39. title: '需求单缺件',
  40. items: {
  41. xtype: 'layout',
  42. north: bbnorth,
  43. center: bbcenter,
  44. },
  45. },
  46. ],
  47. }
  48. }
  49. };
  50. };
  51. });