ChangeSellerForm.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Ext.define('erp.view.fa.ars.ChangeSellerForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.ChangeSeller',
  4. id: 'form',
  5. title: '业务员转移',
  6. frame : true,
  7. autoScroll : true,
  8. buttonAlign : 'center',
  9. FormUtil: Ext.create('erp.util.FormUtil'),
  10. confirmUrl:'',
  11. fieldDefaults : {
  12. margin : '4 2 4 2',
  13. labelAlign : "right",
  14. msgTarget: 'side',
  15. blankText : $I18N.common.form.blankText
  16. },
  17. initComponent : function(){
  18. this.callParent(arguments);
  19. /*this.title = this.FormUtil.getActiveTab().title;*/
  20. },
  21. items: [{
  22. xtype: 'fieldcontainer',
  23. fieldLabel: '从业务员',
  24. labelWidth: 80,
  25. height: 23,
  26. layout: 'hbox',
  27. columnWidth: 0.5,
  28. id: 'sellercode1',
  29. items: [{
  30. labelWidth: 35,
  31. xtype: 'dbfindtrigger',
  32. flex: 0.32,
  33. id: 'sa_sellercode',
  34. name: 'sa_sellercode'
  35. },{
  36. xtype: 'textfield',
  37. id: 'sa_seller',
  38. name: 'sa_seller',
  39. flex:0.32,
  40. readOnly: true,
  41. fieldStyle: 'background:#f1f1f1;'
  42. }],
  43. getValue: function() {
  44. var a = Ext.getCmp('sa_sellercode');
  45. if(!Ext.isEmpty(a.value)) {
  46. return a.value;
  47. }
  48. return null;
  49. }
  50. },{
  51. xtype: 'fieldcontainer',
  52. fieldLabel: '到业务员',
  53. labelWidth: 80,
  54. height: 23,
  55. layout: 'hbox',
  56. columnWidth: 0.5,
  57. id: 'sellercode2',
  58. defaults: {
  59. fieldStyle : "background:#FFFAFA;color:#515151;"
  60. },
  61. items: [{
  62. labelWidth: 35,
  63. xtype: 'dbfindtrigger',
  64. flex: 0.32,
  65. id: 'sn_sellercode',
  66. name: 'sn_sellercode'
  67. },{
  68. xtype: 'textfield',
  69. id: 'sn_sellername',
  70. name: 'sn_sellername',
  71. flex:0.32,
  72. readOnly: true,
  73. fieldStyle: 'background:#f1f1f1;'
  74. }],
  75. getValue: function() {
  76. var a = Ext.getCmp('sn_sellercode');
  77. if(!Ext.isEmpty(a.value)) {
  78. return a.value;
  79. }
  80. return null;
  81. }
  82. },/*{
  83. xtype: 'checkbox',
  84. id: 'customer',
  85. checked: true,
  86. boxLabel: '客户资料'
  87. },*/{
  88. xtype: 'checkbox',
  89. id: 'sale',
  90. checked: true,
  91. boxLabel: '销售订单'
  92. },{
  93. xtype: 'checkbox',
  94. id: 'sendnotify',
  95. checked: true,
  96. boxLabel: '出货通知单'
  97. },{
  98. xtype: 'checkbox',
  99. id: 'prodio',
  100. checked: true,
  101. boxLabel: '出货单/销售退货单'
  102. },{
  103. xtype: 'checkbox',
  104. id: 'arbill',
  105. checked: true,
  106. boxLabel: '应收发票'
  107. },{
  108. xtype: 'checkbox',
  109. id: 'sellermonth',
  110. boxLabel: '当月SellerMonth'
  111. }],
  112. buttons: [{
  113. xtype: 'erpConfirmButton'
  114. },{
  115. xtype:'erpCloseButton'
  116. }]
  117. });