KindModel.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: 'id', type: 'int'},
  14. {name: 'ck_name', type: 'string'}
  15. ],
  16. proxy: {
  17. type: 'ajax',
  18. url: 'http://192.168.253.41:9480/customerkind/getAll',
  19. actionMethods: {
  20. read: 'GET'
  21. },
  22. reader: {
  23. type: 'json',
  24. rootProperty: 'data'
  25. }
  26. },
  27. pageSize: null,
  28. autoLoad: true
  29. },
  30. vendorkind:{
  31. fields:[
  32. {name: 'id', type: 'int'},
  33. {name: 'vk_name', type: 'string'}
  34. ],
  35. proxy: {
  36. type: 'ajax',
  37. url: 'http://192.168.253.41:9480/api/document/vendorkind/getAll',
  38. actionMethods: {
  39. read: 'GET'
  40. },
  41. reader: {
  42. type: 'json',
  43. rootProperty: 'data'
  44. }
  45. },
  46. pageSize: null,
  47. autoLoad: false
  48. },
  49. productkind:{
  50. fields:[
  51. {name: 'pk_id', type: 'int'},
  52. {name: 'pk_kind', type: 'string'}
  53. ],
  54. data:[]
  55. },
  56. inoutkind:{
  57. fields:[
  58. {name: 'io_id', type: 'int'},
  59. {name: 'io_kind', type: 'string'}
  60. ],
  61. data:[]
  62. },
  63. }
  64. });