intoStore_body.html 7.6 KB

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