QueryPanelController.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Ext.define('saas.view.sale.saleout.QueryPanelController', {
  2. extend: 'saas.view.core.query.QueryPanelController',
  3. alias: 'controller.sale-saleout-querypanel',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. //放大镜赋值关系 以及 tpl模板
  8. 'dbfindtrigger[name=sa_custname]':{
  9. beforerender:function(f){}
  10. },
  11. //放大镜赋值关系 以及 tpl模板
  12. 'dbfindtrigger[name=pd_prodcode]':{
  13. beforerender:function(f){
  14. Ext.apply(f,{
  15. conditionCode:'pr_code',
  16. dataUrl:basePath+'document/product/getProductsByCondition',
  17. dbfinds:[{
  18. from:'pr_code',to:'pd_prodcode',
  19. from:'pr_unit',to:'pd_unit'
  20. }],
  21. dbtpls:[{
  22. field:'pr_code',width:100
  23. },{
  24. field:'pr_detail',width:100
  25. }],
  26. dbColumns:[{
  27. "text": "物料ID",
  28. "flex": 0,
  29. "dataIndex": "pr_id",
  30. "width": 0,
  31. "xtype": "",
  32. "items": null
  33. },{
  34. "text": "物料编号",
  35. "flex": 1,
  36. "dataIndex": "pr_code",
  37. "width": 100,
  38. "xtype": "",
  39. "items": null
  40. }, {
  41. "text": "物料名称",
  42. "flex": 1,
  43. "dataIndex": "pr_detail",
  44. "xtype": "",
  45. "items": null
  46. }, {
  47. "text": "物料规格",
  48. "flex": 0,
  49. "dataIndex": "pr_spec",
  50. "width": 200,
  51. "xtype": "",
  52. "items": null
  53. }, {
  54. "text": "物料单位",
  55. "flex": 0,
  56. "dataIndex": "pr_unit",
  57. "width": 200,
  58. "xtype": "",
  59. "items": null
  60. }]
  61. }) ;
  62. }
  63. }
  64. });
  65. }
  66. });