BasePanel.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. statusCodeField:'ve_statuscode',
  52. dataUrl: basePath+'document/vendor/list',
  53. columns : [{
  54. text : "供应商id",
  55. width : 0,
  56. dataIndex : "id",
  57. xtype : "numbercolumn",
  58. },{
  59. text : "供应商编号",
  60. width : 200.0,
  61. dataIndex : "ve_code",
  62. xtype : "",
  63. },
  64. {
  65. text : "供应商名称",
  66. dataIndex : "ve_name",
  67. width : 120.0,
  68. xtype : "",
  69. },
  70. {
  71. text : "供应商状态",
  72. dataIndex : "ve_status",
  73. width : 120.0,
  74. xtype : ""
  75. },
  76. {
  77. text : "供应商状态码",
  78. dataIndex : "ve_statuscode",
  79. width : 0,
  80. xtype : ""
  81. },
  82. {
  83. text : "供应商UU",
  84. dataIndex : "ve_uu",
  85. width : 120.0,
  86. xtype : "",
  87. },
  88. {
  89. text : "默认供应商联系人",
  90. dataIndex : "vc_name",
  91. flex : 1.0,
  92. xtype : "",
  93. }]
  94. },
  95. });