QueryPanel.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. hidden:true,
  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. },{
  71. text: '单位',
  72. dataIndex: 'ma_produnit',
  73. width: 120,
  74. },{
  75. text: '单位成本',
  76. dataIndex: 'ma_total',
  77. xtype: 'numbercolumn',
  78. width: 120,
  79. },{
  80. text: '状态',
  81. dataIndex: 'ma_status',
  82. width: 120,
  83. }],
  84. relativeColumn: []
  85. }
  86. });