BasePanel.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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:'/api/document/vendorkind/getCombo',
  9. name : "ve_type",
  10. emptyText : "请选择供应商类型",
  11. columnWidth : 0.25,
  12. hiddenBtn:true
  13. },{
  14. xtype : "textfield",
  15. name : "ve_name",
  16. emptyText : "供应商名称",
  17. columnWidth : 0.25,
  18. },{
  19. xtype : "textfield",
  20. name : "ve_code",
  21. emptyText : "供应商编号",
  22. columnWidth : 0.25,
  23. }],
  24. //字段属性
  25. _formXtype:'document-vendor-formpanel',
  26. _title:'供应商资料',
  27. // _dataUrl:'/api/ducument/vendor/list',
  28. _deleteUrl:'/api/document/vendor/delete/',
  29. _batchOpenUrl:'/api/document/vendor/batchOpen',
  30. _batchCloseUrl:'/api/document/vendor/batchClose',
  31. _batchDeleteUrl:'/api/document/vendor/batchDelete',
  32. gridConfig: {
  33. idField: 'id',
  34. codeField: 've_code',
  35. statusCodeField:'ve_statuscode',
  36. dataUrl: '/api/document/vendor/list',
  37. columns : [{
  38. text : "供应商id",
  39. width : 0,
  40. dataIndex : "id",
  41. xtype : "numbercolumn",
  42. },{
  43. text : "供应商编号",
  44. width : 200.0,
  45. dataIndex : "ve_code",
  46. xtype : "",
  47. },
  48. {
  49. text : "供应商名称",
  50. dataIndex : "ve_name",
  51. width : 120.0,
  52. xtype : "",
  53. },
  54. {
  55. text : "供应商类型",
  56. dataIndex : "ve_type",
  57. width : 120.0,
  58. xtype : "",
  59. },
  60. {
  61. text : "供应商状态码",
  62. dataIndex : "ve_statuscode",
  63. width : 0,
  64. xtype : ""
  65. },
  66. {
  67. text : "税率",
  68. dataIndex : "ve_taxrate",
  69. width : 120.0,
  70. xtype : "",
  71. align:'end'
  72. }, {
  73. text : "承付天数",
  74. xtype: 'numbercolumn',
  75. dataIndex : "ve_promisedays",
  76. width : 120.0,
  77. align:'end'
  78. }, {
  79. text : "纳税人识别号",
  80. dataIndex : "ve_nsrzh",
  81. width : 120.0,
  82. xtype : ""
  83. }, {
  84. text : "开户银行",
  85. dataIndex : "ve_bankcode",
  86. width : 120.0,
  87. xtype : ""
  88. }, {
  89. text : "银行账户",
  90. dataIndex : "ve_bankaccount",
  91. width : 120.0,
  92. xtype : ""
  93. }, {
  94. text : "状态",
  95. dataIndex : "ve_status",
  96. width : 120.0,
  97. xtype : ""
  98. }]
  99. },
  100. refresh:function(){
  101. this.items.items[0].store.load()
  102. }
  103. });