QueryPanel.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. Ext.define('saas.view.stock.make.QueryPanel', {
  2. extend: 'saas.view.core.query.QueryPanel',
  3. xtype: 'stock-make-querypanel',
  4. controller: 'stock-make-querypanel',
  5. viewModel: 'stock-make-querypanel',
  6. viewName: 'stock-make-querypanel',
  7. queryFormItems: [{
  8. xtype: 'hidden',
  9. name: 'ma_id',
  10. bind: '{ma_id}',
  11. fieldLabel: 'ID',
  12. allowBlank: true,
  13. getCondition: function(value) {
  14. return 'ma_id=' + value;
  15. }
  16. },{
  17. xtype: 'textfield',
  18. name: 'ma_code',
  19. bind: '{ma_code}',
  20. fieldLabel: '单据编号'
  21. },{
  22. xtype: 'textfield',
  23. name: 'ma_type',
  24. bind: '{ma_type}',
  25. fieldLabel: '类型'
  26. },{
  27. xtype: 'textfield',
  28. name: 'ma_prodcode',
  29. bind: '{ma_prodcode}',
  30. fieldLabel: '产品编号'
  31. }],
  32. moreQueryFormItems: [],
  33. queryGridConfig: {
  34. idField: 'id',
  35. codeField: 'ma_code',
  36. addTitle: '制造单',
  37. addXtype: 'stock-make-formpanel',
  38. defaultCondition:'',
  39. baseVastUrl: '/api/storage/make/',
  40. baseColumn: [{
  41. text: 'id',
  42. dataIndex: 'id',
  43. width: 100,
  44. xtype: 'numbercolumn'
  45. }, {
  46. text: '单据编号',
  47. dataIndex: 'ma_code',
  48. width: 200
  49. }, {
  50. text: '类型',
  51. dataIndex: 'ma_type',
  52. width: 120
  53. }, {
  54. text: '产品编号',
  55. dataIndex: 'ma_prodcode',
  56. width: 200
  57. }, {
  58. text: '产品名称',
  59. dataIndex: 'ma_proddetail',
  60. width: 120
  61. }, {
  62. text: '版本号',
  63. dataIndex: 'ma_version',
  64. width: 120
  65. }, {
  66. text: '数量',
  67. dataIndex: 'ma_qty',
  68. xtype: 'numbercolumn',
  69. width: 120,
  70. flex: 1
  71. },{
  72. text: '单位',
  73. dataIndex: 'ma_produnit',
  74. width: 120,
  75. flex: 1
  76. },{
  77. text: '单位成本',
  78. dataIndex: 'ma_total',
  79. xtype: 'numbercolumn',
  80. width: 120,
  81. flex: 1
  82. },{
  83. text: '状态',
  84. dataIndex: 'ma_status',
  85. width: 120,
  86. flex: 1
  87. }],
  88. relativeColumn: []
  89. }
  90. });