/** * 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: '/api/document/customerkind/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, vendorkind:{ fields:[ {name: 'id', type: 'int'}, {name: 'vk_name', type: 'string'} ], proxy: { type: 'ajax', url: '/api/document/vendorkind/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, productkind:{ fields:[ {name: 'id', type: 'int'}, {name: 'pt_name', type: 'string'} ], proxy: { type: 'ajax', url: '/api/document/producttype/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, productbrand:{ fields:[ {name: 'id', type: 'int'}, {name: 'pb_name', type: 'string'} ], proxy: { type: 'ajax', url: '/api/document/productbrand/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, 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'}, {name: 'updateTime', type: 'date'} ], proxy: { type: 'ajax', url: '/api/document/bankinformation/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data.list' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, inoutkind:{ fields:[ {name: 'id', type: 'int'}, {name: 'ft_type', type: 'string'}, {name: 'ft_name', type: 'string'} ], proxy: { type: 'ajax', url: '/api/document/fundinouttype/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, warehouse: { fields:[ {name: 'id', type: 'int'}, {name: 'wh_code', type: 'string'}, {name: 'wh_type', type: 'string'}, {name: 'wh_description', type: 'string'}, {name: 'wh_statuscode', type: 'string'}, {name: 'wh_status', type: 'string'} ], proxy: { type: 'ajax', url: '/api/document/warehouse/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data.list' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, address: { fields:[ {name: 'id', type: 'int'}, {name: 'ad_address', type: 'string'}, {name: 'ad_recorddate', type: 'date'} ], proxy: { type: 'ajax', url: '/api/document/address/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } }, productunit: { fields:[ {name: 'id', type: 'int'}, {name: 'pu_name', type: 'string'} ], proxy: { type: 'ajax', url: '/api/document/productunit/list', actionMethods: { read: 'GET' }, reader: { type: 'json', rootProperty: 'data' } }, pageSize: null, autoLoad: false, listeners: { beforeload: function (store, op) { Ext.apply(store.proxy.extraParams, { number: 1, size: 1000 }); } } } } });