QueryPanel.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. fieldLabel: 'ID',
  11. allowBlank: true,
  12. getCondition: function(value) {
  13. return 'ma_id=' + value;
  14. }
  15. },{
  16. xtype: 'textfield',
  17. name: 'ma_code',
  18. fieldLabel: '单据编号'
  19. },{
  20. xtype: 'textfield',
  21. name: 'ma_type',
  22. fieldLabel: '类型'
  23. },{
  24. xtype: 'textfield',
  25. name: 'ma_prodcode',
  26. fieldLabel: '产品编号'
  27. }],
  28. moreQueryFormItems: [],
  29. queryGridConfig: {
  30. idField: 'id',
  31. codeField: 'ma_code',
  32. addTitle: '制造单',
  33. addXtype: 'stock-make-formpanel',
  34. defaultCondition:'',
  35. baseVastUrl: '/api/storage/make/',
  36. baseColumn: [{
  37. text: 'id',
  38. dataIndex: 'id',
  39. hidden:true,
  40. xtype: 'numbercolumn'
  41. }, {
  42. text: '单据编号',
  43. dataIndex: 'ma_code',
  44. width: 200
  45. }, {
  46. text: '类型',
  47. dataIndex: 'ma_type',
  48. width: 120
  49. }, {
  50. text: '产品编号',
  51. dataIndex: 'ma_prodcode',
  52. width: 200
  53. }, {
  54. text: '产品名称',
  55. dataIndex: 'ma_proddetail',
  56. width: 120
  57. }, {
  58. text: '版本号',
  59. dataIndex: 'ma_version',
  60. width: 120
  61. }, {
  62. text: '数量',
  63. dataIndex: 'ma_qty',
  64. xtype: 'numbercolumn',
  65. width: 120,
  66. },{
  67. text: '单位',
  68. dataIndex: 'ma_produnit',
  69. width: 120,
  70. },{
  71. text: '单位成本',
  72. dataIndex: 'ma_total',
  73. xtype: 'numbercolumn',
  74. width: 120,
  75. },{
  76. text: '状态',
  77. dataIndex: 'ma_status',
  78. width: 120,
  79. }],
  80. relativeColumn: []
  81. }
  82. });