KindModel.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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: basePath + 'document/customerkind/list',
  19. actionMethods: {
  20. read: 'GET'
  21. },
  22. reader: {
  23. type: 'json',
  24. rootProperty: 'data'
  25. }
  26. },
  27. pageSize: null,
  28. autoLoad: false
  29. },
  30. vendorkind:{
  31. fields:[
  32. {name: 'id', type: 'int'},
  33. {name: 'vk_name', type: 'string'}
  34. ],
  35. proxy: {
  36. type: 'ajax',
  37. url: basePath + 'document/vendorkind/list',
  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: 'id', type: 'int'},
  52. {name: 'pt_name', type: 'string'}
  53. ],
  54. proxy: {
  55. type: 'ajax',
  56. url: basePath + 'document/producttype/list',
  57. actionMethods: {
  58. read: 'GET'
  59. },
  60. reader: {
  61. type: 'json',
  62. rootProperty: 'data'
  63. }
  64. },
  65. pageSize: null,
  66. autoLoad: false
  67. },
  68. productbrand:{
  69. fields:[
  70. {name: 'id', type: 'int'},
  71. {name: 'pb_name', type: 'string'}
  72. ],
  73. proxy: {
  74. type: 'ajax',
  75. url: basePath + 'document/productbrand/list',
  76. actionMethods: {
  77. read: 'GET'
  78. },
  79. reader: {
  80. type: 'json',
  81. rootProperty: 'data'
  82. }
  83. },
  84. pageSize: null,
  85. autoLoad: false
  86. },
  87. bankinformation:{
  88. fields:[
  89. {name: 'id', type: 'int'},
  90. {name: 'bk_bankname', type: 'string'},
  91. {name: 'bk_bankcode', type: 'string'},
  92. {name: 'bk_type', type: 'string'},
  93. {name: 'bk_beginamount', type: 'float'},
  94. {name: 'bk_thisamount', type: 'float'},
  95. {name: 'bk_date', type: 'date'}
  96. ],
  97. proxy: {
  98. type: 'ajax',
  99. url: basePath + 'document/bankinformation/list',
  100. actionMethods: {
  101. read: 'GET'
  102. },
  103. reader: {
  104. type: 'json',
  105. rootProperty: 'data'
  106. }
  107. },
  108. pageSize: null,
  109. autoLoad: false
  110. },
  111. inoutkind:{
  112. fields:[
  113. {name: 'id', type: 'int'},
  114. {name: 'ft_type', type: 'string'},
  115. {name: 'ft_name', type: 'string'}
  116. ],
  117. proxy: {
  118. type: 'ajax',
  119. url: basePath + 'document/fundinouttype/list',
  120. actionMethods: {
  121. read: 'GET'
  122. },
  123. reader: {
  124. type: 'json',
  125. rootProperty: 'data'
  126. }
  127. },
  128. pageSize: null,
  129. autoLoad: false
  130. },
  131. storeinformation: {
  132. fields:[
  133. {name: 'id', type: 'int'},
  134. {name: 'wh_code', type: 'string'},
  135. {name: 'wh_description', type: 'string'},
  136. {name: 'wh_statuscode', type: 'string'},
  137. {name: 'wh_status', type: 'string'}
  138. ],
  139. proxy: {
  140. type: 'ajax',
  141. url: basePath + 'document/warehouse/list',
  142. actionMethods: {
  143. read: 'GET'
  144. },
  145. reader: {
  146. type: 'json',
  147. rootProperty: 'data'
  148. }
  149. },
  150. pageSize: null,
  151. autoLoad: false
  152. }
  153. }
  154. });