KindModel.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_name', type: 'string'}
  30. ],
  31. proxy: {
  32. type: 'ajax',
  33. url: 'http://192.168.253.41:9480/api/document/vendorkind/getAll',
  34. actionMethods: {
  35. read: 'GET'
  36. },
  37. reader: {
  38. type: 'json',
  39. rootProperty: 'data'
  40. }
  41. },
  42. pageSize: null,
  43. autoLoad: false
  44. },
  45. productkind:{
  46. fields:[
  47. {name: 'pk_id', type: 'int'},
  48. {name: 'pk_kind', type: 'string'}
  49. ],
  50. data:[]
  51. },
  52. inoutkind:{
  53. fields:[
  54. {name: 'io_id', type: 'int'},
  55. {name: 'io_kind', type: 'string'}
  56. ],
  57. data:[]
  58. },
  59. }
  60. });