BasePanel.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Ext.define('saas.view.document.vendor.BasePanel', {
  2. extend: 'saas.view.core.base.BasePanel',
  3. xtype: 'document-vendor-basepanel',
  4. controller: 'document-vendor-basepanel',
  5. viewModel: 'document-vendor-basepanel',
  6. searchField:[{
  7. xtype : "remotecombo",
  8. storeUrl:basePath+'document/vendorkind/getCombo',
  9. name : "ve_type",
  10. emptyText : "请选择供应商类型",
  11. allowBlank : true,
  12. queryMode: 'local',
  13. displayField: 'display',
  14. valueField: 'value',
  15. columnWidth : 0.25,
  16. etc:{
  17. vendorkind:{
  18. keyField:'id',
  19. dataField:'vk_name',
  20. reqUrl:basePath+'document/vendorkind/save',
  21. delUrl:basePath+'document/vendorkind/delete'
  22. }
  23. },
  24. addHandler:function(b){
  25. var form = this.ownerCmp.ownerCt.ownerCt;
  26. this.dialog = form.getController().getView().add({
  27. xtype: 'document-kind-childwin',
  28. bind: {
  29. title: '新增供应商类型'
  30. },
  31. dataKind:'vendorkind',
  32. belong:this.ownerCmp.etc['vendorkind'],
  33. _parent:form,
  34. record:null,
  35. session: true
  36. });
  37. this.dialog.show();
  38. }
  39. }],
  40. //字段属性
  41. _formXtype:'document-vendor-formpanel',
  42. _title:'供应商资料',
  43. // _dataUrl:basePath+'ducument/vendor/list',
  44. _deleteUrl:basePath+'document/vendor/delete/',
  45. _batchOpenUrl:basePath+'document/vendor/batchOpen',
  46. _batchCloseUrl:basePath+'document/vendor/batchClose',
  47. _batchDeleteUrl:basePath+'document/vendor/batchDelete',
  48. gridConfig: {
  49. idField: 'id',
  50. codeField: 've_code',
  51. dataUrl: basePath+'document/vendor/list',
  52. columns : [{
  53. text : "供应商id",
  54. width : 0,
  55. dataIndex : "id",
  56. xtype : "numbercolumn",
  57. },{
  58. text : "供应商编号",
  59. width : 200.0,
  60. dataIndex : "ve_code",
  61. xtype : "",
  62. },
  63. {
  64. text : "供应商名称",
  65. dataIndex : "ve_name",
  66. width : 120.0,
  67. xtype : "",
  68. },
  69. {
  70. text : "供应商状态",
  71. dataIndex : "ve_status",
  72. width : 120.0,
  73. xtype : ""
  74. },
  75. {
  76. text : "供应商UU",
  77. dataIndex : "ve_uu",
  78. width : 120.0,
  79. xtype : "",
  80. },
  81. {
  82. text : "默认供应商联系人",
  83. dataIndex : "vc_name",
  84. flex : 1.0,
  85. xtype : "",
  86. }]
  87. },
  88. });