BasePanel.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_type",
  12. emptyText : "请选择物料类型"
  13. }],
  14. //字段属性
  15. _formXtype:'document-product-formpanel',
  16. _title:'物料资料',
  17. _deleteUrl:'/api/document/product/delete/',
  18. // _dataUrl:'http://192.168.253.31:9480/product/list',
  19. _batchOpenUrl:'/api/document/product/batchOpen',
  20. _batchCloseUrl:'/api/document/product/batchClose',
  21. _batchDeleteUrl:'/api/document/product/batchDelete',
  22. gridConfig: {
  23. idField: 'id',
  24. codeField: 'pr_code',
  25. statusCodeField:'pr_statuscode',
  26. dataUrl: '/api/document/product/list',
  27. columns : [{
  28. text : "id",
  29. width : 0,
  30. dataIndex : "id",
  31. xtype : "numbercolumn",
  32. },{
  33. text : "物料编号",
  34. width : 200.0,
  35. dataIndex : "pr_code",
  36. xtype : "",
  37. },
  38. {
  39. text : "物料名称",
  40. dataIndex : "pr_detail",
  41. width : 120.0,
  42. xtype : "",
  43. },
  44. {
  45. text : "状态",
  46. dataIndex : "pr_status",
  47. width : 120.0,
  48. xtype : ""
  49. },
  50. {
  51. text : "状态码",
  52. dataIndex : "pr_statuscode",
  53. width : 0,
  54. xtype : ""
  55. },
  56. {
  57. text : "物料种类",
  58. dataIndex : "pr_type",
  59. width : 120.0,
  60. xtype : "",
  61. }]
  62. },
  63. refresh:function(){
  64. this.items.items[0].store.load()
  65. }
  66. });