BasePanel.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. renderer : function(v) {
  79. return Ext.util.Format.number(v, '0');
  80. }
  81. }, {
  82. text : "纳税人识别号",
  83. dataIndex : "ve_nsrzh",
  84. width : 120.0,
  85. xtype : ""
  86. }, {
  87. text : "开户银行",
  88. dataIndex : "ve_bankcode",
  89. width : 120.0,
  90. xtype : ""
  91. }, {
  92. text : "银行账户",
  93. dataIndex : "ve_bankaccount",
  94. width : 120.0,
  95. xtype : ""
  96. }, {
  97. text : "状态",
  98. dataIndex : "ve_status",
  99. width : 120.0,
  100. xtype : ""
  101. }]
  102. },
  103. refresh:function(){
  104. this.items.items[0].store.load()
  105. }
  106. });