| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- /**
- * 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
- });
- }
- }
- }
- }
- });
|