KindModel.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/vendorkind/getAll',
  38. actionMethods: {
  39. read: 'GET'
  40. },
  41. reader: {
  42. type: 'json',
  43. rootProperty: 'data'
  44. }
  45. },
  46. pageSize: null,
  47. autoLoad: true
  48. },
  49. productkind:{
  50. fields:[
  51. {name: 'id', type: 'int'},
  52. {name: 'pt_name', type: 'string'}
  53. ],
  54. proxy: {
  55. type: 'ajax',
  56. url: 'http://192.168.253.41:9480/producttype/getAll',
  57. actionMethods: {
  58. read: 'GET'
  59. },
  60. reader: {
  61. type: 'json',
  62. rootProperty: 'data'
  63. }
  64. },
  65. pageSize: null,
  66. autoLoad: true
  67. },
  68. productbrand:{
  69. fields:[
  70. {name: 'id', type: 'int'},
  71. {name: 'pb_name', type: 'string'}
  72. ],
  73. proxy: {
  74. type: 'ajax',
  75. url: 'http://192.168.253.41:9480/productbrand/getAll',
  76. actionMethods: {
  77. read: 'GET'
  78. },
  79. reader: {
  80. type: 'json',
  81. rootProperty: 'data'
  82. }
  83. },
  84. pageSize: null,
  85. autoLoad: true
  86. },
  87. inoutkind:{
  88. fields:[
  89. {name: 'io_id', type: 'int'},
  90. {name: 'io_kind', type: 'string'}
  91. ],
  92. data:[]
  93. },
  94. }
  95. });