PlanPriceForm.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Ext.define('erp.view.co.inventory.PlanPriceForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.PlanPrice',
  4. id: 'form',
  5. title: '物料计划单价批量更新',
  6. frame : true,
  7. autoScroll : true,
  8. buttonAlign : 'center',
  9. FormUtil: Ext.create('erp.util.FormUtil'),
  10. fieldDefaults : {
  11. margin : '4 2 4 2',
  12. fieldStyle : "background:#FFFAFA;color:#515151;",
  13. labelAlign : "right",
  14. msgTarget: 'side',
  15. blankText : $I18N.common.form.blankText
  16. },
  17. initComponent : function(){
  18. this.callParent(arguments);
  19. },
  20. items: [{
  21. xtype: 'condatefield',
  22. fieldLabel: '日期',
  23. allowBlank: false,
  24. id: 'date',
  25. name: 'date'
  26. },
  27. {
  28. xtype: 'ftfindfield',
  29. fieldLabel: '物料范围',
  30. allowBlank: false,
  31. id: 'product',
  32. name: 'product'
  33. },
  34. {
  35. xtype: 'combobox',
  36. fieldLabel: '更新规则',
  37. allowBlank: false,
  38. id: 'rule',
  39. name: 'rule',
  40. store : Ext.create('Ext.data.Store', {
  41. fields: ['display', 'value'],
  42. data : [
  43. {"display": '最新单价', "value": '最新单价'},
  44. {"display": '平均单价', "value": '平均单价'}
  45. ]
  46. })
  47. }],
  48. buttons: [{
  49. xtype: 'erpConfirmButton'
  50. },{
  51. xtype:'erpCloseButton'
  52. }]
  53. });