intoStore_body.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <!DOCTYPE html>
  2. <html class="">
  3. <!--STATUS OK-->
  4. <head>
  5. <meta name="referrer" content="always" />
  6. <meta charset='utf-8' />
  7. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="x-dns-prefetch-control" content="on">
  9. <meta name="description" content="">
  10. <meta name="format-detection" content="telephone=no" />
  11. <link rel="stylesheet" type="text/css" href="../../../../../css/css/vant-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="../../../../../css/css/iconfont.css">
  13. <link rel="stylesheet" type="text/css" href="../../../../../css/css/main.css" />
  14. <script src="../../../../../script/js/vue.js"></script>
  15. <script src="../../../../../script/js/vant-ui.js"></script>
  16. <script src="../../../../../script/js/main.js"></script>
  17. <title></title>
  18. </head>
  19. <style>
  20. .menu .item p {
  21. font-size: 0.26rem;
  22. }
  23. .line1 {
  24. width:300px;
  25. overflow: hidden;
  26. text-overflow:ellipsis;
  27. }
  28. .jinhuoRank li {
  29. height: auto;
  30. }
  31. .jinhuoRank li .info{
  32. padding-bottom: .2rem;
  33. }
  34. .seeDetails{
  35. font-size: 0.22rem;
  36. padding: 0.2rem;
  37. padding-top: 0.2rem;
  38. display: flex;
  39. justify-content: space-between;
  40. width: 6.74rem;
  41. margin: 0 auto;
  42. border-top: 1px solid #c8cdd0;
  43. }
  44. </style>
  45. <body>
  46. <div id="app" v-cloak>
  47. <div class="pageView filterpage" style="overflow:scroll;overflow-y:hidden">
  48. <div class="leiji flex a-center j-center" style="background-color:#00a0ea;color:#fff;font-size:0.4rem;padding:0.2rem 0">
  49. 期间进货总量:
  50. <h4> {{ totalInfo }} </h4>
  51. </div>
  52. <van-popup position="bottom" v-model="timeShow">
  53. <mycalendar @comfirm="comfirm" @close="timeShow = false"></mycalendar>
  54. </van-popup>
  55. <div class="zhuceTimer flex a-center jlr">
  56. <div class="flex a-center" v-on:click="getTimes">
  57. <h4>进货时间:</h4>
  58. <p v-on:click="getTimes(0)">{{ startTime }}</p> ~ <p v-on:click="getTimes(1)">{{ endTime }}</p>
  59. </div>
  60. </div>
  61. <div class="view flex col" style="height:95%" >
  62. <div class="page router fx1" id="mescroll">
  63. <ul class="jinhuoRank" >
  64. <li v-for="item in totalList">
  65. <!-- <div class="image"><img :src="item.storeImageUrl">
  66. </div> -->
  67. <div class="info">
  68. <p>
  69. {{ item.storeName }}
  70. </p>
  71. <div style="display:flex">
  72. <p style="flex : 1">
  73. 电话:{{ item.storePhone }}
  74. </p>
  75. <p style="flex : 1">
  76. 经销品牌:{{ item.brandName }}
  77. </p>
  78. </div>
  79. <div style="display:flex">
  80. <p style="flex : 1">
  81. 总签约任务:{{ item.numTask }}条
  82. </p>
  83. <p style="flex : 1">
  84. 总扫码入库数:{{ item.ocount }}条
  85. </p>
  86. </div>
  87. </div>
  88. <div class="seeDetails" class="flex labelValue" @click="handleSeeDetails"><span>查看详情</span> <img src="../../../../../image/image/009.png" style="width:.13rem;height:.26rem;" class="pull-right"/></div>
  89. </li>
  90. </ul>
  91. </div>
  92. </div>
  93. <div v-show="totalList.length == 0" style="text-align:center;overflow:auto">
  94. <img src="../../../../../image/image/nodata.png" style="margin:2rem auto;width:100%;height:100%" />
  95. </div>
  96. </div>
  97. </div>
  98. </body>
  99. </html>
  100. <link rel="stylesheet" href="../../../../../script/mescroll/mescroll.min.css">
  101. <script type="text/javascript" src="../../../../../script/mescroll/mescroll.min.js"></script>
  102. <script type="text/javascript" src="../../../../../script/api.js"></script>
  103. <script type="text/javascript" src="../../../js/httpRequest_tbr.js"></script>
  104. <script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
  105. <script type="text/javascript">
  106. apiready = function() {
  107. var date = new Date();
  108. if((date.getMonth()+1)<10){
  109. var mon="0"+(date.getMonth()+1)
  110. }else{
  111. var mon=(date.getMonth()+1)
  112. }
  113. new Vue({
  114. el : '#app',
  115. data : {
  116. list : [],
  117. kunnr : '',
  118. frist : 1,
  119. current : 1,
  120. size : 10,
  121. totalPages : 1,
  122. totalInfo : {}, // 进货分析中的库存总量
  123. totalList : [], // 进货分析的数据列表
  124. // 添加查询
  125. timeShow: false,
  126. // keyword: '',
  127. startTime : date.getFullYear()+'-'+mon+'-01',
  128. endTime : '至今'
  129. },
  130. methods : {
  131. init : function(){
  132. var _this = this;
  133. this.kunnr = $api.getStorage('kunnr');
  134. this.getStoreList_jiage();
  135. },
  136. // 查询数据
  137. // 选择筛选条件
  138. comfirm : function(v) {
  139. this.timeShow = false
  140. },
  141. //选择时间
  142. getTimes : function(type){
  143. var _this = this;
  144. this.getTime(function(time){
  145. if(type == 0){
  146. _this.startTime = time;
  147. }else{
  148. _this.endTime = time;
  149. }
  150. _this.getStoreList_jiage();
  151. })
  152. },
  153. // 查询门店进货分析 -- 贾哥
  154. getStoreList_jiage : function(mescroll){
  155. var startTime = this.startTime == date.getFullYear()+'-'+mon+'-1' ? '' : this.startTime;
  156. var endTime = this.endTime == '至今' ? '' : this.endTime;
  157. var data = "agentCode=" + this.kunnr
  158. + "&current=" + this.current
  159. + "&size=" + this.size
  160. + "&startTime="+ startTime
  161. + "&endTime=" + endTime;
  162. var _this = this;
  163. this.$get("getInfoStoreU_jiage",data,function(ret){
  164. if (ret.code == 0 || ret.code == '0') {
  165. _this.totalInfo = ret.total;
  166. _this.totalList = _this.current == 1 ? ret.page.records : _this.totalList.concat(ret.page.records);
  167. _this.totalPages = ret.page.pages;
  168. if(mescroll){
  169. mescroll.endSuccess(_this.size,true);
  170. }
  171. if(_this.frist == 1){
  172. _this.$nextTick(function(){
  173. _this.configs();
  174. })
  175. }
  176. }
  177. })
  178. },
  179. /**
  180. * 查询门店进货分析
  181. */
  182. getStoreList : function(mescroll){
  183. var _this = this,url = "getIntoStoreU";
  184. var data = {
  185. "kunnr": this.kunnr,
  186. "pageSize": this.size,
  187. "size":this.current,
  188. "url" : "json",
  189. "type" : "body",
  190. "startTime": this.startTime,
  191. "endTime": this.endTime
  192. }
  193. this.$post(url,data,function(ret){
  194. if (ret.code == 0 || ret.code == '0') {
  195. _this.totalInfo = ret.count;
  196. _this.totalList = _this.current == 1 ? ret.Data : _this.totalList.concat(ret.Data);
  197. _this.totalPages = ret.Data.pageCount;
  198. if(mescroll){
  199. mescroll.endSuccess(_this.size,true);
  200. }
  201. if(_this.frist == 1){
  202. _this.$nextTick(function(){
  203. _this.configs();
  204. })
  205. }
  206. }
  207. })
  208. },
  209. configs : function(){
  210. var _this = this;
  211. this.frist = 2;
  212. this.configDownAndPull("mescroll", function(mescroll) {
  213. _this.current = 1;
  214. _this.getStoreList_jiage(mescroll);
  215. }, function(mescroll) {
  216. if (_this.current < _this.totalPages) {
  217. _this.current = _this.current + 1;
  218. _this.getStoreList_jiage(mescroll, 1);
  219. } else {
  220. mescroll.endSuccess(_this.size, false);
  221. }
  222. })
  223. },
  224. // 查看详情
  225. handleSeeDetails: function(orderId) {
  226. this.goWin('intoStore_details_win', '../intoStore_details/intoStore_details_win.html', {
  227. id: orderId
  228. });
  229. }
  230. },
  231. mounted : function() {
  232. this.init();
  233. }
  234. })
  235. }
  236. </script>