| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- Ext.define('saas.view.document.vendor.BasePanel', {
- extend: 'saas.view.core.base.BasePanel',
- xtype: 'document-vendor-basepanel',
- controller: 'document-vendor-basepanel',
- viewModel: 'document-vendor-basepanel',
- searchField:[{
- xtype : "remotecombo",
- storeUrl:'/api/document/vendorkind/getCombo',
- name : "ve_type",
- emptyText : "请选择供应商类型",
- columnWidth : 0.25,
- hiddenBtn:true
- },{
- xtype : "textfield",
- name : "ve_name",
- emptyText : "供应商名称",
- columnWidth : 0.25,
- },{
- xtype : "textfield",
- name : "ve_code",
- emptyText : "供应商编号",
- columnWidth : 0.25,
- }],
- //字段属性
- _formXtype:'document-vendor-formpanel',
- _title:'供应商资料',
- // _dataUrl:'/api/ducument/vendor/list',
- _deleteUrl:'/api/document/vendor/delete/',
- _batchOpenUrl:'/api/document/vendor/batchOpen',
- _batchCloseUrl:'/api/document/vendor/batchClose',
- _batchDeleteUrl:'/api/document/vendor/batchDelete',
- gridConfig: {
- idField: 'id',
- codeField: 've_code',
- statusCodeField:'ve_statuscode',
- dataUrl: '/api/document/vendor/list',
- columns : [{
- text : "供应商id",
- width : 0,
- dataIndex : "id",
- xtype : "numbercolumn",
- },{
- text : "供应商编号",
- width : 200.0,
- dataIndex : "ve_code",
- xtype : "",
- },
- {
- text : "供应商名称",
- dataIndex : "ve_name",
- width : 120.0,
- xtype : "",
- },
- {
- text : "供应商类型",
- dataIndex : "ve_type",
- width : 120.0,
- xtype : "",
- },
- {
- text : "供应商状态码",
- dataIndex : "ve_statuscode",
- width : 0,
- xtype : ""
- },
- {
- text : "税率",
- dataIndex : "ve_taxrate",
- width : 120.0,
- xtype : "",
- align:'end'
- }, {
- text : "承付天数",
- xtype: 'numbercolumn',
- dataIndex : "ve_promisedays",
- width : 120.0,
- align:'end'
- }, {
- text : "纳税人识别号",
- dataIndex : "ve_nsrzh",
- width : 120.0,
- xtype : ""
- }, {
- text : "开户银行",
- dataIndex : "ve_bankcode",
- width : 120.0,
- xtype : ""
- }, {
- text : "银行账户",
- dataIndex : "ve_bankaccount",
- width : 120.0,
- xtype : ""
- }, {
- text : "状态",
- dataIndex : "ve_status",
- width : 120.0,
- xtype : ""
- }]
- },
- refresh:function(){
- this.items.items[0].store.load()
- }
- });
|