| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- /**
- * Created by zhouy on 2018/10/18.
- */
- Ext.define('saas.view.document.kind.Kind', {
- extend: 'Ext.panel.Panel',
- xtype: 'document-kind',
- autoScroll: true,
- layout:'fit',
- controller:'document-kind',
- viewModel: {
- type: 'document-kind'
- },
- tbar: [{
- xtype: 'segmentedbutton',
- reference: 'dataKind',
- value: 'customerkind',
- bind:'{segmented}',
- items: [{
- text: '客户',
- value: 'customerkind'
- }, {
- text: '供应商',
- value: 'vendorkind'
- }, {
- text: '商品',
- value: 'productkind'
- }, {
- text: '收支',
- value: 'inoutkind'
- }],
- listeners: {
- toggle: 'onKindToggle'
- }
- },'->',
- {
- xtype:'button',
- text:'新增',
- listeners: {
- click: 'onAdd'
- }
- },{
- xtype:'button',
- text:'刷新',
- listeners: {
- click: 'onRefresh'
- }
- }],
- items:[{
- xtype:'grid',
- reference: 'document-kind-Grid',
- margin: '10 0 0 0',
- flex: 1,
- frame:true,
- bind:{
- selection: '{selectedCompany}'
- },
- listeners:{
- render:'loadDefualt'
- }
- }],
- etc:{
- customerkind:{
- columns: [{
- text: '客户类型',
- dataIndex: 'ck_kind',
- flex: 1
- }],
- formItems:[{
- xtype:'hidden',
- name:'ck_id'
- },{
- xtype:'textfield',
- name:'ck_kind',
- allowBlank:false,
- fieldLabel:'类型'
- }],
- keyField:'ck_id',
- reqUrl:''
- },
- vendorkind:{
- columns: [{
- text: '供应商类型',
- dataIndex: 'vk_name',
- flex: 1
- }],
- keyField:'vk_id',
- dataField:'vk_name',
- reqUrl:'http://192.168.253.41:9480/api/document/vendorkind/save'
- },
- productkind:{
- columns: [{
- text: '物料类型',
- dataIndex: 'pk_kind',
- flex: 1
- }],
- keyField:'pk_id',
- },
- inoutkind:{
- columns: [{
- text: '收支类型',
- dataIndex: 'io_kind',
- flex: 1
- }],
- keyField:'io_id'
- }
- }
- })
|