/** * 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: 'id', type: 'int'}, {name: 'ck_name', type: 'string'} ], proxy: { type: 'ajax', url: basePath + 'document/customerkind/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false }, vendorkind:{ fields:[ {name: 'id', type: 'int'}, {name: 'vk_name', type: 'string'} ], proxy: { type: 'ajax', url: basePath + 'document/vendorkind/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false }, productkind:{ fields:[ {name: 'id', type: 'int'}, {name: 'pt_name', type: 'string'} ], proxy: { type: 'ajax', url: basePath + 'document/producttype/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false }, productbrand:{ fields:[ {name: 'id', type: 'int'}, {name: 'pb_name', type: 'string'} ], proxy: { type: 'ajax', url: basePath + 'document/productbrand/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false }, bankinformation:{ fields:[ {name: 'id', type: 'int'}, {name: 'bk_bankname', type: 'string'}, {name: 'bk_bankcode', type: 'string'}, {name: 'bk_type', type: 'string'}, {name: 'bk_beginamount', type: 'float'}, {name: 'bk_thisamount', type: 'float'}, {name: 'bk_date', type: 'date'} ], proxy: { type: 'ajax', url: 'http://192.168.253.129:9480/bankinformation/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false }, inoutkind:{ fields:[ {name: 'id', type: 'int'}, {name: 'ft_type', type: 'string'}, {name: 'ft_name', type: 'string'} ], proxy: { type: 'ajax', url: 'http://192.168.253.31:9480/fundinouttype/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false }, } });