/** * Created by zhouy on 2018/10/18. */ Ext.define('saas.view.document.kind.KindModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.document-kind', data: { title: '客户' }, stores: { customerkind: { fields:[ {name: 'ck_id', type: 'int'}, {name: 'ck_kind', type: 'string'} ], proxy: { type: 'ajax', url: 'resources/json/customer.json', reader: { type: 'json' } }, pageSize: null, autoLoad: true }, vendorkind:{ fields:[ {name: 'vk_id', type: 'int'}, {name: 'vk_kind', type: 'string'} ], proxy: { type: 'ajax', url: 'resources/json/vendor.json', reader: { type: 'json' } }, pageSize: null, autoLoad: false }, productkind:{ fields:[ {name: 'pk_id', type: 'int'}, {name: 'pk_kind', type: 'string'} ], data:[] }, inoutkind:{ fields:[ {name: 'io_id', type: 'int'}, {name: 'io_kind', type: 'string'} ], data:[] }, } });