deposit-detail.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>押金详情-创业帮</title>
  6. <meta name="keywords" content="押金详情-创业帮">
  7. <meta name="description" content="押金详情-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="押金详情-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. <link rel="stylesheet" href="./static/css/possDetail.css?t=996462">
  17. <style>
  18. .van-list .panel{padding:15px;margin: 12px 9px 0;border-radius:12px;}
  19. .van-list .panel .title{padding-bottom:.25rem !important;}
  20. .van-list .panel .title .kind{background-color: #FFE0D3;font-size:.2667rem;padding: 2px 6px;border-radius:3px;color: #FD824D;justify-content:center;align-items:center;}
  21. .spline{border-top:1px solid #f1f1f1;padding-top:.24rem;}
  22. .jcsb{justify-content: space-between;}
  23. </style>
  24. </head>
  25. <body class="pb0 ovh pt0" style="padding-top:0;background-color:#f6f6f6;">
  26. <div class="warehouse rel" id="app" v-cloak>
  27. <div class="ovh-x" ref="wrapper1">
  28. <van-pull-refresh v-model="refreshing" @refresh="onRefresh" style="height:100%;min-height:10vh;">
  29. <div class="nodata c999 f14 tc mt16" v-if="productinfo.length === 0">暂无任何记录</div>
  30. <van-list @load="onLoad" v-model="loading" :finished="finished" finished-text="没有更多数据了" :immediate-check="false" v-if=" productinfo.length !== 0">
  31. <div class="panel bgcfff rel pt16 pb16 bottom_line" v-for="item,index in productinfo" :key="index">
  32. <div class="info f14 c333">
  33. <div class="item title bottom_line df aic jcsb" style="justify-content:space-between;align-items:center">
  34. <div class="df"><span class="f16 c33 b mr12">{{item.BrandId}}</span><span class="ml4 kind df" v-if="index === 0">主机具</span></div>
  35. <div class="df" style="justify-content:flex-end;">
  36. <button class="undelive r9 f12" v-if="item.DepositStatus === 1" @click="delivergoods(item)">退押金</button><span class="c999 f12" v-if="item.DepositStatus === 0 ">未达标</span><span class="c999 f12" v-if="item.DepositStatus === 2 ">免押机具</span><span class="c999 f12" v-if="item.DepositStatus === 3 ">已返还</span><span class="c999 f12" v-if="item.DepositStatus === 5 ">返还失败</span>
  37. </div>
  38. </div>
  39. <div class="item mt8 df jcsb mt16">
  40. <div class="c999 f14">商户姓名:</div>
  41. <div class="ml4 c333">{{item.MerRealName}}</div>
  42. </div>
  43. <div class="item mt8 df jcsb mt16">
  44. <div class="c999 f14">SN号:</div>
  45. <div class="ml4 c333">{{item.KqSnNo}}</div>
  46. </div>
  47. <div class="item mt8 df jcsb pt4">
  48. <div class="c999 f14">押金金额:</div>
  49. <div class="ml4 c333">{{item.DepositMoney}} 元</div>
  50. </div>
  51. <div class="item mt8 df jcsb pt4" v-if="item.DepositStatus !== 5 &amp;&amp; item.Status != 5">
  52. <div class="c999 f14">连续达标月数:</div>
  53. <div class="ml4 c333">{{item.Months}} 个月</div>
  54. </div>
  55. <div class="item mt8 df jcsb pt4" v-if="item.DepositStatus !== 5 &amp;&amp; item.Status === 5">
  56. <div class="c999 f14">未达标原因:</div>
  57. <div class="ml4 c333">{{item.Months}} 未刷满 10,000 元</div>
  58. </div>
  59. <div class="item mt8 df jcsb pt4">
  60. <div class="c999 f14">本月交易额:</div>
  61. <div class="ml4 c333">{{item.TradeAmtForMonth}} 元</div>
  62. </div>
  63. <div class="item mt8 df jcsb mt16">
  64. <div class="c999 f14">开通时间:</div>
  65. <div class="ml4 c333">{{item.CreateDate}}</div>
  66. </div>
  67. <div class="item mt8 df jcsb pt4" v-if="item.DepositStatus === 5">
  68. <div class="c999 f14">失败原因:</div>
  69. <div class="ml4 c333">{{item.Months}} 月未达标</div>
  70. </div>
  71. <div class="item mt8 df jcsb pt4">
  72. <div class="f12 c999">*达标规则:激活次月起连续10个月贷记卡每个月交易额满1万元</div>
  73. </div>
  74. </div>
  75. </div>
  76. </van-list>
  77. </van-pull-refresh>
  78. </div>
  79. </div>
  80. <script src="./static/js/klm-vv.min.js?t=99999999912312"></script>
  81. <script src="./static/js/appfunc.min.js?t=99999999912312"></script>
  82. <script src="./static/js/klm-axios-config.js?t=99999999912312"></script>
  83. <script src="./static/js/publicfn.js?t=999999999"></script>
  84. <script>
  85. function OnStart(){
  86. app.backgetwarehouselist();
  87. };
  88. // 在 #app 标签下渲染一个按钮组件
  89. let app = new Vue({
  90. el: '#app',
  91. data() {
  92. return {
  93. toptitleisshow:true,
  94. loading: true,
  95. finished: false,
  96. refreshing: false,
  97. searchContent:'',
  98. openindex:-1,
  99. productinfo:[
  100. ],
  101. startDate: '',
  102. endDate: '',
  103. pageinfo:{
  104. PageSize:10,
  105. PageNum:1
  106. },
  107. NoList:'',
  108. };
  109. },
  110. created() {
  111. this.toptitleisshow = toptitleisshow;
  112. this.getwarehouselist();
  113. },
  114. updated() {
  115. this.$nextTick(() => {
  116. this.$refs.wrapper1.style.height = `${document.documentElement.clientHeight-30}px`;
  117. });
  118. },
  119. methods: {
  120. delivergoods(item = ''){
  121. PublicLib.putCookieInfo('merChantId', item.Id);
  122. //- PublicLib.Goto({Url:'get-deposit'});
  123. window.location.href = ' /p/get-deposit';
  124. },
  125. onLoad() {
  126. this.pageinfo.PageNum++;
  127. this.getwarehouselist('onload');
  128. },
  129. onRefresh() {
  130. this.finished = false;
  131. this.loading = true;
  132. this.refreshing = false;
  133. this.pageinfo.PageNum = 1;
  134. this.getwarehouselist();
  135. },
  136. //- 格式化显示时间
  137. formatter(type, val) {
  138. if (type === 'year') {
  139. return `${val}年`;
  140. } else if (type === 'month') {
  141. return `${val}月`;
  142. } else if (type === 'day') {
  143. return `${val}日`;
  144. };
  145. return val;
  146. },
  147. //- 时间参数转换
  148. onParamsDate(date){
  149. if(date === '') return '';
  150. return formatDate(new Date(date).getFullYear(),new Date(date).getMonth() + 1,new Date(date).getDate());
  151. },
  152. //- 获取仓库列表
  153. async getwarehouselist(type = 'refresh'){
  154. const MerIdcardNo = (JSON.parse(PublicLib.getCookieInfo('formInfo'))).MerIdcardNo;
  155. const res = await getRequest('api/v1/pos/posmerchantinfo/depositmerchantlist?t='+Math.random(6),JSON.stringify({...this.pageinfo,MerIdcardNo}));
  156. if(res.status !== '1') return tips('获取失败');
  157. if(res.data.length < this.pageinfo.PageSize) {
  158. this.finished = true;
  159. };
  160. if(type === 'onload'){
  161. this.productinfo.push(...res.data);
  162. };
  163. if(type === 'refresh'){
  164. this.productinfo = res.data;
  165. };
  166. this.loading = false;
  167. }
  168. },
  169. goback(){
  170. PublicLib.GoBack({Level:1});
  171. },
  172. });
  173. </script>
  174. </body>
  175. </html>