BasePanel.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. // _dataUrl:'http://192.168.253.31:9480/product/list',
  18. _batchOpenUrl:'/api/document/product/batchOpen',
  19. _batchCloseUrl:'/api/document/product/batchClose',
  20. _batchDeleteUrl:'/api/document/product/batchDelete',
  21. gridConfig: {
  22. idField: 'id',
  23. codeField: 'pr_code',
  24. statusCodeField:'pr_statuscode',
  25. dataUrl: '/api/document/product/list',
  26. columns : [{
  27. text : "id",
  28. width : 0,
  29. dataIndex : "id",
  30. xtype : "numbercolumn",
  31. },{
  32. text : "物料编号",
  33. width : 200.0,
  34. dataIndex : "pr_code",
  35. xtype : "",
  36. },
  37. {
  38. text : "物料名称",
  39. dataIndex : "pr_detail",
  40. width : 120.0,
  41. xtype : "",
  42. },
  43. {
  44. text : "状态",
  45. dataIndex : "pr_status",
  46. width : 120.0,
  47. xtype : ""
  48. },
  49. {
  50. text : "状态码",
  51. dataIndex : "pr_statuscode",
  52. width : 0,
  53. xtype : ""
  54. },
  55. {
  56. text : "物料种类",
  57. dataIndex : "pr_type",
  58. width : 120.0,
  59. xtype : "",
  60. }]
  61. },
  62. });