BasePanel.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Ext.define('saas.view.document.product.BasePanel', {
  2. extend: 'saas.view.core.base.BasePanel',
  3. xtype: 'document-product-basepanel',
  4. controller: 'document-product-basepanel',
  5. viewModel: 'document-product-basepanel',
  6. searchField:[{
  7. editable:false,
  8. hiddenBtn:true,
  9. xtype : "remotecombo",
  10. storeUrl: '/api/document/producttype/getCombo',
  11. name : "pr_kind",
  12. emptyText : "请选择物料类型"
  13. },{
  14. xtype : "textfield",
  15. name : "pr_detail",
  16. emptyText : "物料名称",
  17. columnWidth : 0.25,
  18. },{
  19. xtype : "textfield",
  20. name : "pr_code",
  21. emptyText : "物料编号",
  22. columnWidth : 0.25,
  23. },{
  24. xtype : "textfield",
  25. name : "pr_unit",
  26. emptyText : "物料单位",
  27. columnWidth : 0.25,
  28. }],
  29. //字段属性
  30. _formXtype:'document-product-formpanel',
  31. _title:'物料资料',
  32. _deleteUrl:'/api/document/product/delete/',
  33. // _dataUrl:'http://192.168.253.31:9480/product/list',
  34. _batchOpenUrl:'/api/document/product/batchOpen',
  35. _batchCloseUrl:'/api/document/product/batchClose',
  36. _batchDeleteUrl:'/api/document/product/batchDelete',
  37. gridConfig: {
  38. idField: 'id',
  39. codeField: 'pr_code',
  40. statusCodeField:'pr_statuscode',
  41. dataUrl: '/api/document/product/list',
  42. columns : [{
  43. text : "id",
  44. width : 0,
  45. dataIndex : "id",
  46. xtype : "numbercolumn",
  47. },{
  48. text : "物料编号",
  49. width : 200.0,
  50. dataIndex : "pr_code",
  51. xtype : "",
  52. },
  53. {
  54. text : "物料名称",
  55. dataIndex : "pr_detail",
  56. width : 120.0,
  57. xtype : "",
  58. },
  59. {
  60. text : "状态",
  61. dataIndex : "pr_status",
  62. width : 120.0,
  63. xtype : ""
  64. },
  65. {
  66. text : "状态码",
  67. dataIndex : "pr_statuscode",
  68. width : 0,
  69. xtype : ""
  70. },
  71. {
  72. text : "物料种类",
  73. dataIndex : "pr_kind",
  74. width : 120.0,
  75. xtype : "",
  76. }]
  77. },
  78. refresh:function(){
  79. this.items.items[0].store.load()
  80. }
  81. });