/** * 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_name', type: 'string'} ], proxy: { type: 'ajax', url: 'http://192.168.253.41:9480/api/document/vendorkind/getAll', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, 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:[] }, } });