intoStore_body.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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 style="display:flex">
  88. <p style="flex : 1">
  89. 本月待完成:{{ item.leftNum }}条
  90. </p>
  91. <p style="flex : 1">
  92. 本月已完成:{{ item.scanNum }}条
  93. </p>
  94. </div>
  95. <div style="display:flex">
  96. <p style="flex : 1">
  97. 期间进货:{{ item.scanNumes }}条
  98. </p>
  99. </div>
  100. </div>
  101. </li>
  102. </ul>
  103. </div>
  104. </div>
  105. <div v-show="totalList.length == 0" style="text-align:center;overflow:auto">
  106. <img src="../../../../../image/image/nodata.png" style="margin:2rem auto;width:100%;height:100%" />
  107. </div>
  108. </div>
  109. </div>
  110. </body>
  111. </html>
  112. <link rel="stylesheet" href="../../../../../script/mescroll/mescroll.min.css">
  113. <script type="text/javascript" src="../../../../../script/mescroll/mescroll.min.js"></script>
  114. <script type="text/javascript" src="../../../../../script/api.js"></script>
  115. <script type="text/javascript" src="../../../../../script/httpRequest.js"></script>
  116. <script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
  117. <script type="text/javascript">
  118. apiready = function() {
  119. var date = new Date();
  120. if((date.getMonth()+1)<10){
  121. var mon="0"+(date.getMonth()+1)
  122. }else{
  123. var mon=(date.getMonth()+1)
  124. }
  125. new Vue({
  126. el : '#app',
  127. data : {
  128. list : [],
  129. kunnr : '',
  130. frist : 1,
  131. current : 1,
  132. size : 10,
  133. totalPages : 1,
  134. totalInfo : {}, // 进货分析中的库存总量
  135. totalList : [], // 进货分析的数据列表
  136. // 添加查询
  137. timeShow: false,
  138. // keyword: '',
  139. startTime : date.getFullYear()+'-'+mon+'-01',
  140. endTime : '至今'
  141. },
  142. methods : {
  143. init : function(){
  144. var _this = this;
  145. this.kunnr = $api.getStorage('kunnr');
  146. this.getStoreList_jiage();
  147. },
  148. // 查询数据
  149. // 选择筛选条件
  150. comfirm : function(v) {
  151. this.timeShow = false
  152. },
  153. //选择时间
  154. getTimes : function(type){
  155. var _this = this;
  156. this.getTime(function(time){
  157. if(type == 0){
  158. _this.startTime = time;
  159. }else{
  160. _this.endTime = time;
  161. }
  162. _this.getStoreList_jiage();
  163. })
  164. },
  165. // 查询门店进货分析 -- 贾哥
  166. getStoreList_jiage : function(mescroll){
  167. var startTime = this.startTime == date.getFullYear()+'-'+mon+'-1' ? '' : this.startTime;
  168. var endTime = this.endTime == '至今' ? '' : this.endTime;
  169. var data = "agentCode=" + this.kunnr
  170. + "&current=" + this.current
  171. + "&size=" + this.size
  172. + "&startTime="+ startTime
  173. + "&endTime=" + endTime;
  174. var _this = this;
  175. this.$get("getInfoStoreU_jiage",data,function(ret){
  176. if (ret.code == 0 || ret.code == '0') {
  177. _this.totalInfo = ret.total;
  178. _this.totalList = _this.current == 1 ? ret.page.records : _this.totalList.concat(ret.page.records);
  179. _this.totalPages = ret.page.pages;
  180. if(mescroll){
  181. mescroll.endSuccess(_this.size,true);
  182. }
  183. if(_this.frist == 1){
  184. _this.$nextTick(function(){
  185. _this.configs();
  186. })
  187. }
  188. }
  189. })
  190. },
  191. /**
  192. * 查询门店进货分析
  193. */
  194. getStoreList : function(mescroll){
  195. var _this = this,url = "getIntoStoreU";
  196. var data = {
  197. "kunnr": this.kunnr,
  198. "pageSize": this.size,
  199. "size":this.current,
  200. "url" : "json",
  201. "type" : "body",
  202. "startTime": this.startTime,
  203. "endTime": this.endTime
  204. }
  205. this.$post(url,data,function(ret){
  206. if (ret.code == 0 || ret.code == '0') {
  207. _this.totalInfo = ret.count;
  208. _this.totalList = _this.current == 1 ? ret.Data : _this.totalList.concat(ret.Data);
  209. _this.totalPages = ret.Data.pageCount;
  210. if(mescroll){
  211. mescroll.endSuccess(_this.size,true);
  212. }
  213. if(_this.frist == 1){
  214. _this.$nextTick(function(){
  215. _this.configs();
  216. })
  217. }
  218. }
  219. })
  220. },
  221. configs : function(){
  222. var _this = this;
  223. this.frist = 2;
  224. this.configDownAndPull("mescroll", function(mescroll) {
  225. _this.current = 1;
  226. _this.getStoreList_jiage(mescroll);
  227. }, function(mescroll) {
  228. if (_this.current < _this.totalPages) {
  229. _this.current = _this.current + 1;
  230. _this.getStoreList_jiage(mescroll, 1);
  231. } else {
  232. mescroll.endSuccess(_this.size, false);
  233. }
  234. })
  235. }
  236. },
  237. mounted : function() {
  238. this.init();
  239. }
  240. })
  241. }
  242. </script>