| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- /**
- * 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: basePath + 'document/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: basePath + 'document/fundinouttype/list',
- actionMethods: {
- read: 'GET'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- }
- },
- pageSize: null,
- autoLoad: false
- },
- storeinformation: {
- fields:[
- {name: 'id', type: 'int'},
- {name: 'wh_code', type: 'string'},
- {name: 'wh_description', type: 'string'},
- {name: 'wh_statuscode', type: 'string'},
- {name: 'wh_status', type: 'string'}
- ],
- proxy: {
- type: 'ajax',
- url: basePath + 'document/warehouse/list',
- actionMethods: {
- read: 'GET'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- }
- },
- pageSize: null,
- autoLoad: false
- }
- }
- });
|