ProductTrigger.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('uas.view.trigger.define.ProductTrigger', {
  2. extend: 'uas.view.trigger.DbfindTrigger',
  3. xtype: 'producttrigger',
  4. dbtpls: [{
  5. field: 'code',width: 200
  6. }, {
  7. field: 'price',width: 80
  8. }],
  9. dbColumns:[{
  10. text: "物料ID",
  11. hidden: true,
  12. dataIndex: "id"
  13. }, {
  14. text: "物料编号",
  15. dataIndex: "code",
  16. width: 250,
  17. filter:{
  18. type:'string'
  19. }
  20. },{
  21. text: "供应商",
  22. width: 190,
  23. dataIndex: "vendor",
  24. filter:{
  25. type:'string'
  26. }
  27. }, {
  28. text : "型号",
  29. dataIndex : "currency",
  30. width : 200.0,
  31. filter:{
  32. type:'string'
  33. }
  34. }, {
  35. text : "规格",
  36. dataIndex : "currency",
  37. width : 200.0,
  38. filter:{
  39. type:'string'
  40. }
  41. },{
  42. text: "单位",
  43. dataIndex: "currency",
  44. width: 65
  45. },{
  46. text: "类型",
  47. dataIndex: "currency",
  48. width: 100
  49. },{
  50. text: "库存",
  51. dataIndex: "price",
  52. width: 100,
  53. xtype: 'numbercolumn',
  54. filter:{
  55. type:'number'
  56. }
  57. }, {
  58. dataIndex: '',
  59. flex: 1
  60. }]
  61. });