| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- /**
- * 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: 'http://192.168.253.41:9480/customerkind/getAll',
- actionMethods: {
- read: 'GET'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- }
- },
- pageSize: null,
- autoLoad: true
- },
- vendorkind:{
- fields:[
- {name: 'id', type: 'int'},
- {name: 'vk_name', type: 'string'}
- ],
- proxy: {
- type: 'ajax',
- url: 'http://192.168.253.41:9480/vendorkind/getAll',
- actionMethods: {
- read: 'GET'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- }
- },
- pageSize: null,
- autoLoad: true
- },
- productkind:{
- fields:[
- {name: 'id', type: 'int'},
- {name: 'pt_name', type: 'string'}
- ],
- proxy: {
- type: 'ajax',
- url: 'http://192.168.253.41:9480/producttype/getAll',
- actionMethods: {
- read: 'GET'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- }
- },
- pageSize: null,
- autoLoad: true
- },
- productbrand:{
- fields:[
- {name: 'id', type: 'int'},
- {name: 'pb_name', type: 'string'}
- ],
- proxy: {
- type: 'ajax',
- url: 'http://192.168.253.41:9480/productbrand/getAll',
- actionMethods: {
- read: 'GET'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- }
- },
- pageSize: null,
- autoLoad: true
- },
- inoutkind:{
- fields:[
- {name: 'io_id', type: 'int'},
- {name: 'io_kind', type: 'string'}
- ],
- data:[]
- },
- }
- });
|