KindModel.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * Created by zhouy on 2018/10/18.
  3. */
  4. Ext.define('saas.view.document.kind.KindModel', {
  5. extend: 'Ext.app.ViewModel',
  6. alias: 'viewmodel.document-kind',
  7. data: {
  8. title: '客户'
  9. },
  10. stores: {
  11. customerkind: {
  12. fields:[
  13. {name: 'ck_id', type: 'int'},
  14. {name: 'ck_kind', type: 'string'}
  15. ],
  16. proxy: {
  17. type: 'ajax',
  18. url: 'resources/json/customer.json',
  19. reader: {
  20. type: 'json'
  21. }
  22. },
  23. pageSize: null,
  24. autoLoad: true
  25. },
  26. vendorkind:{
  27. fields:[
  28. {name: 'vk_id', type: 'int'},
  29. {name: 'vk_kind', type: 'string'}
  30. ],
  31. proxy: {
  32. type: 'ajax',
  33. url: 'resources/json/vendor.json',
  34. reader: {
  35. type: 'json'
  36. }
  37. },
  38. pageSize: null,
  39. autoLoad: false
  40. },
  41. productkind:{
  42. fields:[
  43. {name: 'pk_id', type: 'int'},
  44. {name: 'pk_kind', type: 'string'}
  45. ],
  46. data:[]
  47. },
  48. inoutkind:{
  49. fields:[
  50. {name: 'io_id', type: 'int'},
  51. {name: 'io_kind', type: 'string'}
  52. ],
  53. data:[]
  54. },
  55. }
  56. });